From: Clifford Wolf Date: Sat, 17 Mar 2018 11:17:53 +0000 (+0100) Subject: Improve handling of invalid check-sat result in smtio.py X-Git-Tag: yosys-0.8~148 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d4e3a8ca62dd9484942d3adf107354468f9897d;p=yosys.git Improve handling of invalid check-sat result in smtio.py Signed-off-by: Clifford Wolf --- 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):