mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-07 13:51:25 +00:00
Use smtbmc args for solver options
This commit is contained in:
parent
221018b19d
commit
afeab48894
2 changed files with 8 additions and 7 deletions
|
@ -25,18 +25,18 @@ def run(mode, job, engine_idx, engine):
|
|||
syn_opt = False
|
||||
|
||||
opts, args = getopt.getopt(engine[1:], "s:", ["nomem", "syn"])
|
||||
assert len(args) == 0
|
||||
|
||||
for o, a in opts:
|
||||
if o == "-s":
|
||||
smtbmc_opts += ["-s", a]
|
||||
elif o == "--nomem":
|
||||
if o == "--nomem":
|
||||
nomem_opt = True
|
||||
elif o == "--syn":
|
||||
syn_opt = True
|
||||
else:
|
||||
assert False
|
||||
|
||||
for i, a in enumerate(args):
|
||||
smtbmc_opts += ["-s" if i == 0 else "-S", a]
|
||||
|
||||
model_name = "smt2"
|
||||
if syn_opt: model_name += "_syn"
|
||||
if nomem_opt: model_name += "_nomem"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue