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

tautological inequality in the find algorithm ACSL #15

Closed
dawagner opened this issue Jun 12, 2019 · 2 comments
Closed

tautological inequality in the find algorithm ACSL #15

dawagner opened this issue Jun 12, 2019 · 2 comments

Comments

@dawagner
Copy link

https://github.com/fraunhoferfokus/acsl-by-example/blob/master/StandardAlgorithms/nonmutating/find/find.h has the following spec:

ensures   0 <= \result <= \result;

the right part of which is always true. Did you mean 0 <= \result <= n?

@jensgerlach
Copy link
Contributor

Halle David,

thanks for pointing out this typo! Your suggestion is of course correct.
In fact, we found this error a couple of weeks ago and have fixed it already in the internal repository.

@dawagner
Copy link
Author

ok, great :)

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

No branches or pull requests

2 participants