Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect equations when size limit is increased. #3

Open
rudymatela opened this issue Sep 11, 2017 · 1 comment
Open

Incorrect equations when size limit is increased. #3

rudymatela opened this issue Sep 11, 2017 · 1 comment

Comments

@rudymatela
Copy link
Owner

@barrucadu reports an issue when applying Speculate to DejaFu:

  • speculate -t20000 -s5: doesn't find any equalities, only conditional equations.

  • speculate -t20000 -s6: finds these equalities:

                            isBlock ta == isBlock ta'
      (isBarrier a == isCommit a crid) == (False == synchronises a crid)
    

    (isBarrier a == synchronises a crid) == (False == isCommit a crid)
    ...

Property 1 is wrong. Something gets weird with ThreadActions ("ta") when the size is increased, even though the number of tests remains the same.

@rudymatela
Copy link
Owner Author

I haven't looked into this in depth yet. But, as I mentioned to @barrucadu in person, the issue is most likely that an incorrect equation of bigger size was found then rewritten to an equation of smaller size. (The bigger the size of an equation, the larger the number of tests we need to falsify it). This causes the confusing behaviour of having an otherwise unfound equation of smaller size when size limit is increased.

To avoid this happening, before reporting equations, maybe Speculate should test them again with either the set number of tests or a separate larger number of tests. Perhaps also report a warning to the user that the number of tests should be increased as an incorrect equation was found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant