aboutsummaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-03-13 19:27:17 +0100
committerClifford Wolf <clifford@clifford.at>2019-03-14 22:04:42 +0100
commitbacca5753775bfabed955a9772a5d86d85007c58 (patch)
treeb2aab5e305ee81166bd39e044e0fef7858019b73 /backends
parent6ad5d036c58766b2bd0a705c7adfcbf9af4a7d16 (diff)
downloadyosys-bacca5753775bfabed955a9772a5d86d85007c58.tar.gz
yosys-bacca5753775bfabed955a9772a5d86d85007c58.tar.bz2
yosys-bacca5753775bfabed955a9772a5d86d85007c58.zip
Fix smtbmc.py handling of zero appended steps
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'backends')
-rw-r--r--backends/smt2/smtbmc.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py
index 94a5e2da0..445a42e0d 100644
--- a/backends/smt2/smtbmc.py
+++ b/backends/smt2/smtbmc.py
@@ -1484,11 +1484,11 @@ else: # not tempind, covermode
smt_assert_antecedent("(|%s_h| s%d)" % (topmod, i))
smt_assert_antecedent("(|%s_t| s%d s%d)" % (topmod, i-1, i))
smt_assert_consequent(get_constr_expr(constr_assumes, i))
- print_msg("Re-solving with appended steps..")
- if smt_check_sat() == "unsat":
- print("%s Cannot appended steps without violating assumptions!" % smt.timestamp())
- retstatus = False
- break
+ print_msg("Re-solving with appended steps..")
+ if smt_check_sat() == "unsat":
+ print("%s Cannot appended steps without violating assumptions!" % smt.timestamp())
+ retstatus = False
+ break
print_anyconsts(step)
for i in range(step, last_check_step+1):
print_failed_asserts(i)