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

Array encoding too weak to show congruence #770

Open
jcp19 opened this issue May 21, 2024 · 0 comments
Open

Array encoding too weak to show congruence #770

jcp19 opened this issue May 21, 2024 · 0 comments

Comments

@jcp19
Copy link
Contributor

jcp19 commented May 21, 2024

The following Gobra program fails to verify, even though it should:

package test

pure
decreases
func f(arr [3]int) int

requires a == b
func test(a [3]int, b [3]int) {
        assert f(a) == f(b)
}

Error:

Assert might fail. 
Assertion f(a) == f(b) might not hold.
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