aboutsummaryrefslogtreecommitdiffstats
path: root/backends/smt2/smtbmc.py
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2016-07-30 12:50:39 +0200
committerClifford Wolf <clifford@clifford.at>2016-07-30 12:50:39 +0200
commit21e1bac0846e01fb58ae1fd42215b92f245ae18d (patch)
tree43c1c9fff3a78d7221c6e5dfbfebe820b311afa1 /backends/smt2/smtbmc.py
parent5fe13a16eaaee4ac53523b5325cb9d92b5a1150d (diff)
parentda56a5bbc60e58c305227105b68654264738c241 (diff)
downloadyosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.tar.gz
yosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.tar.bz2
yosys-21e1bac0846e01fb58ae1fd42215b92f245ae18d.zip
Merge branch 'master' of github.com:cliffordwolf/yosys
Diffstat (limited to 'backends/smt2/smtbmc.py')
-rw-r--r--backends/smt2/smtbmc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/smt2/smtbmc.py b/backends/smt2/smtbmc.py
index f74908f87..0e94a1675 100644
--- a/backends/smt2/smtbmc.py
+++ b/backends/smt2/smtbmc.py
@@ -130,6 +130,7 @@ if tempind:
smt.write("(declare-fun s%d () %s_s)" % (step, topmod))
smt.write("(assert (%s_u s%d))" % (topmod, step))
smt.write("(assert (%s_h s%d))" % (topmod, step))
+ smt.write("(assert (not (%s_is s%d)))" % (topmod, step))
if step == num_steps:
smt.write("(assert (not (%s_a s%d)))" % (topmod, step))
@@ -172,9 +173,11 @@ else: # not tempind
if step == 0:
smt.write("(assert (%s_i s0))" % (topmod))
+ smt.write("(assert (%s_is s0))" % (topmod))
else:
smt.write("(assert (%s_t s%d s%d))" % (topmod, step-1, step))
+ smt.write("(assert (not (%s_is s%d)))" % (topmod, step))
if step < skip_steps:
if assume_skipped is not None and step >= assume_skipped: