Substitute function body (using z3py) #5933
-
Consider a simple program below:
To verify the Hoare trip, a convenient way is to use the CHC engine of Z3, e.g.,
Another possible strategy is to use template-based invariant generation (or CEGIS-style invariant learning, etc)
For more general cases, is there any suggestion for substituting the function body using some templates?
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You would have to use the API and a visitor pattern on expressions. |
Beta Was this translation helpful? Give feedback.
You would have to use the API and a visitor pattern on expressions.