nomem_opt = False
syn_opt = False
stbv_opt = False
+ dumpsmt2 = False
- opts, args = getopt.getopt(engine[1:], "", ["nomem", "syn", "stbv", "presat", "unroll"])
+ opts, args = getopt.getopt(engine[1:], "", ["nomem", "syn", "stbv", "presat", "unroll", "dumpsmt2"])
for o, a in opts:
if o == "--nomem":
smtbmc_opts += ["--presat"]
elif o == "--unroll":
smtbmc_opts += ["--unroll"]
+ elif o == "--dumpsmt2":
+ dumpsmt2 = True
else:
assert False
smtbmc_opts.append("-c")
trace_prefix += "%"
+ if dumpsmt2:
+ smtbmc_opts += ["--dump-smt2", trace_prefix + ".smt2"]
+
task = SbyTask(job, taskname, job.model(model_name),
"cd %s; %s --noprogress %s -t %d --append %d --dump-vcd %s.vcd --dump-vlogtb %s_tb.v --dump-smtc %s.smtc model/design_%s.smt2" %
(job.workdir, job.exe_paths["smtbmc"], " ".join(smtbmc_opts), job.opt_depth, job.opt_append, trace_prefix, trace_prefix, trace_prefix, model_name),