I use z3 as the main constraint resolver in my application through my C ++ interface. I declare a z3 context as a member of a class that is used to solve many independent sets of constraints.
Here's the thing: I declare the “solver” of z3 when solving a set of constraints, but the z3 context is the same during solving many independent problems. I'm not sure if it is right to use the same z3 context when solving independent problems. By the way, my The program does what I expected.
source
share