Check results of (check-sat) in yosys-smtbmc
authorClifford Wolf <clifford@clifford.at>
Wed, 7 Mar 2018 21:54:19 +0000 (22:54 +0100)
committerClifford Wolf <clifford@clifford.at>
Wed, 7 Mar 2018 21:54:19 +0000 (22:54 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
backends/smt2/smtio.py

index f61f3e77ed6335051e635631eda8aaa67bc10e2a..fed4524ce034fb632d13c60fa12d091ba63fbb06 100644 (file)
@@ -646,6 +646,8 @@ 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)