Skip to content

Can Seahorn treat a function as pure? #538

Closed Answered by agurfinkel
rcdickerson asked this question in Q&A
Discussion options

You must be logged in to vote

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:

./run/bin/sea bpf -S -m64 --bmc=opsem  /tmp/issue538.c --horn-bv2-enable-external-calls
...
Modelling   %_0 = tail call i32 @f(i32 noundef 5) #7 with an uninterpreted function
Modelling   %_1 = tail call i32 @f(i32 noundef 5) #7 with an uninterpreted function
unsat

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rcdickerson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants