How to set solver's timeout for Z3 JAVA API?
Back to this question again:
Here is my code:
Context ctx = getZ3Context();
solver = ctx.MkSolver();
Params p = ctx.MkParams();
p.Add("timeout", 1);
solver.setParameters(p);
Not work, the solver just running the query forever. Any idea about this?
Okay, finally found a solution myself:
I haven't used the Java API, but from Looking at the official Java example and at this snippet, I'd assume that something along the following lines should work: