You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: postcondition not satisfied
--> minimum_issue.rs:17:5
|
16 | seq1.fold_right(|x, acc : nat| acc + (x as nat), 0) == seq2.fold_right(|x, acc : nat| acc + (x as nat), 0)
| ---------------------------------------------------------------------------------------------------------- failed this postcondition
17 | {}
| ^^ at the end of the function body
error: aborting due to 1 previous error
verification results:: 0 verified, 1 errors
We think this is an issue with the relationship between fold_right and polymorphism. It verifies if we get rid of the polymorphism. It also verifies if we just replace the body with seq1.fold_right(|x, acc : nat| acc + acc, 0) == seq2.fold_right(|x, acc : nat| acc + acc, 0)
Running this code:
Results in the verification failing:
We think this is an issue with the relationship between fold_right and polymorphism. It verifies if we get rid of the polymorphism. It also verifies if we just replace the body with
seq1.fold_right(|x, acc : nat| acc + acc, 0) == seq2.fold_right(|x, acc : nat| acc + acc, 0)
See attached zip file. Thanks!
2024-09-27-16-09-22.zip
The text was updated successfully, but these errors were encountered: