Different behavior between API and direct call to z3 #7089
-
Hello, I am new user of z3 and I noticed a different behavior between API and direct call to z3. What I have done so far is:
When calling z3 directly, the funtion R1 from the resulting model is what I expect:
When calling the API, the function R1 is:
To find outwhy the behavior is different I printed traces from z3 (also below) and saw
It seems that the forall has been removed and rvar has been set to {f1=true;f2=false} but I do not understand why. Any ideas ? Thank you for your help. François code snippet:
The .z3-trace file :
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It was indeed a bug in my function. It seems that it was because I used mk_forall instead of mk_forall_const. The quantifier should be :
|
Beta Was this translation helpful? Give feedback.
It was indeed a bug in my function. It seems that it was because I used mk_forall instead of mk_forall_const. The quantifier should be :