aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-11-06 11:11:05 +0100
committerClifford Wolf <clifford@clifford.at>2018-11-06 11:11:05 +0100
commitf6c4485a3ac315fbed76f1a2e1f22df7afb36886 (patch)
treeddf780bd6f21710c086b7cd913ba9fcaf54bbc11 /backends/smt2
parent60ecc5c70ceb0c089e2054514138e7b0388a7722 (diff)
downloadyosys-f6c4485a3ac315fbed76f1a2e1f22df7afb36886.tar.gz
yosys-f6c4485a3ac315fbed76f1a2e1f22df7afb36886.tar.bz2
yosys-f6c4485a3ac315fbed76f1a2e1f22df7afb36886.zip
Run solver in non-incremental mode whem smtio.py is configured for non-incremental solving
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends/smt2')
-rw-r--r--backends/smt2/smtio.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py
index e8ed5e63b..4c3245984 100644
--- a/backends/smt2/smtio.py
+++ b/backends/smt2/smtio.py
@@ -163,19 +163,28 @@ class SmtIo:
self.unroll = False
if self.solver == "yices":
- self.popen_vargs = ['yices-smt2', '--incremental'] + self.solver_opts
+ if self.noincr:
+ self.popen_vargs = ['yices-smt2'] + self.solver_opts
+ else:
+ self.popen_vargs = ['yices-smt2', '--incremental'] + self.solver_opts
if self.solver == "z3":
self.popen_vargs = ['z3', '-smt2', '-in'] + self.solver_opts
if self.solver == "cvc4":
- self.popen_vargs = ['cvc4', '--incremental', '--lang', 'smt2.6' if self.logic_dt else 'smt2'] + self.solver_opts
+ if self.noincr:
+ self.popen_vargs = ['cvc4', '--lang', 'smt2.6' if self.logic_dt else 'smt2'] + self.solver_opts
+ else:
+ self.popen_vargs = ['cvc4', '--incremental', '--lang', 'smt2.6' if self.logic_dt else 'smt2'] + self.solver_opts
if self.solver == "mathsat":
self.popen_vargs = ['mathsat'] + self.solver_opts
if self.solver == "boolector":
- self.popen_vargs = ['boolector', '--smt2', '-i'] + self.solver_opts
+ if self.noincr:
+ self.popen_vargs = ['boolector', '--smt2'] + self.solver_opts
+ else:
+ self.popen_vargs = ['boolector', '--smt2', '-i'] + self.solver_opts
self.unroll = True
if self.solver == "abc":