Can Seahorn treat a function as pure? #538
-
Hello! I'm looking for a way to get Seahorn to treat a function as pure. For example, I would like this to verify under the assumption that #include "seahorn/seahorn.h"
extern int f(int);
void main(void) {
int x = f(5);
int y = f(5);
sassert(x == y);
} I'm essentially looking for a way to have the verifier treat |
Beta Was this translation helpful? Give feedback.
Answered by
agurfinkel
Oct 25, 2023
Replies: 1 comment
-
the bmc engine has an option for that. We have not used it in a while, so it might need some improvements. It does work for your specific example:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rcdickerson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the bmc engine has an option for that. We have not used it in a while, so it might need some improvements. It does work for your specific example: