Verification parity between method and function. #5414
Answered
by
stefan-aws
rdivyanshu
asked this question in
Q&A
-
In following code snippet method version verifies but function version timeout. It seems puzzling to end user as both version looks equivalent (modulo how verification encoding is done for method vs function which end user doesn't care about). Is there explanation for this behavior ?
|
Beta Was this translation helpful? Give feedback.
Answered by
stefan-aws
May 13, 2024
Replies: 1 comment
-
I suspect this has to do with i) triggers and ii) the such-that assignment
and
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rdivyanshu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I suspect this has to do with i) triggers and ii) the such-that assignment
:|
. If you externalise the predicate in the quantifier, add{:trigger true}
, and turn your functionghost
to avoid having to prove the uniqueness of your choice, things work out: