Skip to content

Commit

Permalink
added proper timeouts for cvc4 and boolector (#2418)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrieco-tob committed Apr 1, 2021
1 parent 9bfb3ac commit 2e990ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manticore/core/smtlib/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -736,14 +736,14 @@ def __init__(self):
class CVC4Solver(SMTLIBSolver):
def __init__(self):
init = ["(set-logic QF_AUFBV)", "(set-option :produce-models true)"]
command = f"{consts.cvc4_bin} --lang=smt2 --incremental"
command = f"{consts.cvc4_bin} --tlimit={consts.timeout * 1000} --lang=smt2 --incremental"
super().__init__(command=command, init=init)


class BoolectorSolver(SMTLIBSolver):
def __init__(self):
init = ["(set-logic QF_AUFBV)", "(set-option :produce-models true)"]
command = f"{consts.boolector_bin} -i"
command = f"{consts.boolector_bin} --time={consts.timeout} -i"
super().__init__(command=command, init=init)


Expand Down

0 comments on commit 2e990ba

Please sign in to comment.