I have a simple question. How is it possible to determine if solver timed out with following API –
Z3_lbool Z3_API Z3_solver_check (Z3_context c, Z3_solver s )
Since Z3_lbool is just true, false or undefined.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the API
Z3_string Z3_solver_get_reason_unknown(Z3_context c, Z3_solver s).If you are using C++, the object solver provides the method
std::string reason_unknown(). Here is a small example that uses it: