diff options
author | Jannis Harder <me@jix.one> | 2022-06-10 15:25:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-10 15:25:57 +0200 |
commit | 53b205c41df737d2fc4feaf6a46e596a93780bf8 (patch) | |
tree | c99fd2bb9c3b9fc33c23d9534d3a8d325aa31501 | |
parent | 4b423dcfb4727d5581445e9acbff1051faa0b6ff (diff) | |
parent | 0c5f62f6ffd53c1a65325df0d71046957d94dfd0 (diff) | |
download | yosys-53b205c41df737d2fc4feaf6a46e596a93780bf8.tar.gz yosys-53b205c41df737d2fc4feaf6a46e596a93780bf8.tar.bz2 yosys-53b205c41df737d2fc4feaf6a46e596a93780bf8.zip |
Merge pull request #3368 from jix/smtbmc-unroll-noincr-traces-fix
smtbmc: noincr: keep solver running for post check-sat unrolling
-rw-r--r-- | backends/smt2/smtio.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index 64e4cd79a..91efc13a3 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -411,6 +411,13 @@ class SmtIo: recheck = None + if self.solver != "dummy": + if self.noincr: + # Don't close the solver yet, if we're just unrolling definitions + # required for a (get-...) statement + if self.p is not None and not stmt.startswith("(get-") and unroll: + self.p_close() + if unroll and self.unroll: stmt = self.unroll_buffer + stmt self.unroll_buffer = "" @@ -473,8 +480,6 @@ class SmtIo: if self.solver != "dummy": if self.noincr: - if self.p is not None and not stmt.startswith("(get-"): - self.p_close() if stmt == "(push 1)": self.smt2cache.append(list()) elif stmt == "(pop 1)": |