-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CVC5 timeout implementation #419
Comments
Hi. There’s no need to create a second SolverContext to implement a timeout for a solver. You can use the There is an example for this in the test files: java-smt/src/org/sosy_lab/java_smt/test/TimeoutTest.java Lines 131 to 150 in 08820e3
There is a limitation: we currently do not support "timeout per prover instance", because the |
Could I use corresponding |
That’s a great question! While I haven’t personally tried this, it appears that once the |
I'll definitely try to use the same context tomorrow) And if it doesn't work, it seems impossible to reuse previously generated constraints in new CVC5 context due to the unimplemented |
Hi!
I am trying to implement timeout on query to CVC5 solver. I am aware of non-existence of such interface in library (there is
ShutdownManager
, but it does not implement timeout by itself). If I want to timeout solver, I need to run it in separate thread. So, according to the description ofSolverContext
, I have to create newSolverContext
and transfer formulas from original context to the new one usingtranslateFrom
method. This method usesparse
method which it is not implemented for CVC5...I also tried to pass formulas to new context
prover
without conversion and got errorio.github.cvc5.CVC5ApiException: Given term is not associated with the term manager of this solver
. And also tried to callisUnsat
from old context in new thread which resulted in error in native code.So, is it real to implement timeout for CVC5 solver? Maybe I am missing something...
The text was updated successfully, but these errors were encountered: