From 9847a4eea8b6d758c06d3d95f2bfe84c57774364 Mon Sep 17 00:00:00 2001 From: Alberto Gonzalez Date: Fri, 1 May 2020 23:17:35 +0000 Subject: smtbmc and qbfsat: Add timeout option to set solver timeouts for Z3, Yices, and CVC4. --- backends/smt2/smtbmc.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'backends/smt2/smtbmc.py') diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py index cc3ebb129..03f001bfd 100644 --- a/backends/smt2/smtbmc.py +++ b/backends/smt2/smtbmc.py @@ -1557,8 +1557,9 @@ else: # not tempind, covermode smt_assert(get_constr_expr(constr_asserts, i)) print_msg("Solving for step %d.." % (last_check_step)) - if smt_check_sat() != "sat": - print("%s No solution found!" % smt.timestamp()) + status = smt_check_sat() + if status != "sat": + print("%s No solution found! (%s)" % (smt.timestamp(), status)) retstatus = "FAILED" break -- cgit v1.2.3