diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-03-17 12:17:53 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2018-03-17 12:17:53 +0100 |
commit | 4d4e3a8ca62dd9484942d3adf107354468f9897d (patch) | |
tree | 6f16c2a541f2a10157ed9936ee3c322eb52e9890 /backends/smt2 | |
parent | e7862d4f644d4fc6a97e9c66da431f7a22a0ceef (diff) | |
download | yosys-4d4e3a8ca62dd9484942d3adf107354468f9897d.tar.gz yosys-4d4e3a8ca62dd9484942d3adf107354468f9897d.tar.bz2 yosys-4d4e3a8ca62dd9484942d3adf107354468f9897d.zip |
Improve handling of invalid check-sat result in smtio.py
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends/smt2')
-rw-r--r-- | backends/smt2/smtio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backends/smt2/smtio.py b/backends/smt2/smtio.py index 1d5c89d8e..5c46da4e7 100644 --- a/backends/smt2/smtio.py +++ b/backends/smt2/smtio.py @@ -646,12 +646,13 @@ class SmtIo: sys.stderr.flush() result = self.read() - assert result in ["sat", "unsat"] if self.debug_file: print("(set-info :status %s)" % result, file=self.debug_file) print("(check-sat)", file=self.debug_file) self.debug_file.flush() + + assert result in ["sat", "unsat"] return result def parse(self, stmt): |