smtbmc: Fix return status handling.
authorAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 14 May 2020 17:07:59 +0000 (17:07 +0000)
committerAlberto Gonzalez <boqwxp@airmail.cc>
Thu, 14 May 2020 17:07:59 +0000 (17:07 +0000)
backends/smt2/smtbmc.py

index d3015b0669da48b3302dfefd0c8eb5ad149b1f8f..f1f55be1cad928a7bec397cf24700c7a703a0bca 100644 (file)
@@ -1548,7 +1548,7 @@ else:  # not tempind, covermode
                         break
 
                     smt_pop()
-                if not retstatus:
+                if retstatus == "FAILED" or retstatus == "PREUNSAT":
                     break
 
         else:  # gentrace
@@ -1568,7 +1568,7 @@ else:  # not tempind, covermode
 
         step += step_size
 
-    if gentrace and retstatus:
+    if gentrace and retstatus == "PASSED":
         print_anyconsts(0)
         write_trace(0, num_steps, '%')