mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2054 from boqwxp/fix-smtbmc
smtbmc: Fix return status handling.
This commit is contained in:
commit
7c4e580f8f
|
@ -1511,7 +1511,7 @@ else: # not tempind, covermode
|
||||||
smt_assert_consequent(get_constr_expr(constr_assumes, i))
|
smt_assert_consequent(get_constr_expr(constr_assumes, i))
|
||||||
print_msg("Re-solving with appended steps..")
|
print_msg("Re-solving with appended steps..")
|
||||||
if smt_check_sat() == "unsat":
|
if smt_check_sat() == "unsat":
|
||||||
print("%s Cannot appended steps without violating assumptions!" % smt.timestamp())
|
print("%s Cannot append steps without violating assumptions!" % smt.timestamp())
|
||||||
retstatus = "FAILED"
|
retstatus = "FAILED"
|
||||||
break
|
break
|
||||||
print_anyconsts(step)
|
print_anyconsts(step)
|
||||||
|
@ -1548,7 +1548,7 @@ else: # not tempind, covermode
|
||||||
break
|
break
|
||||||
|
|
||||||
smt_pop()
|
smt_pop()
|
||||||
if not retstatus:
|
if retstatus == "FAILED" or retstatus == "PREUNSAT":
|
||||||
break
|
break
|
||||||
|
|
||||||
else: # gentrace
|
else: # gentrace
|
||||||
|
@ -1568,7 +1568,7 @@ else: # not tempind, covermode
|
||||||
|
|
||||||
step += step_size
|
step += step_size
|
||||||
|
|
||||||
if gentrace and retstatus:
|
if gentrace and retstatus == "PASSED":
|
||||||
print_anyconsts(0)
|
print_anyconsts(0)
|
||||||
write_trace(0, num_steps, '%')
|
write_trace(0, num_steps, '%')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue