3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 10:20:24 +00:00

Added yosys-smtbmc

This commit is contained in:
Clifford Wolf 2015-10-14 00:37:41 +02:00
parent 7bcd2a4bb3
commit 821f1b8534
2 changed files with 20 additions and 1 deletions

View file

@ -13,13 +13,15 @@ so = smtopts()
def usage():
print("""
python3 smtbmc.py [options] <yosys_smt2_output>
yosys-smtbmc [options] <yosys_smt2_output>
-t <max_steps>
default: 20
-c <vcd_filename>
write counter-example to this VCD file
(hint: use 'write_smt2 -wires' for maximum
coverage of signals in generated VCD file)
-i <min_steps>
instead of BMC run temporal induction
@ -43,6 +45,8 @@ for o, a in opts:
elif o == "-i":
tempind = True
min_steps = int(a)
elif o == "-m":
topmod = a
elif so.handle(o, a):
pass
else:
@ -112,6 +116,7 @@ if tempind:
print("%s PASSED." % smt.timestamp())
break
else: # not tempind
for step in range(max_steps+1):
smt.write("(declare-fun s%d () %s_s)" % (step, topmod))