From afeab488947d4e8af38861e35c660356832eea80 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 19 Feb 2017 22:52:27 +0100 Subject: [PATCH] Use smtbmc args for solver options --- sbysrc/demo.sby | 7 ++++--- sbysrc/sby_engine_smtbmc.py | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/sbysrc/demo.sby b/sbysrc/demo.sby index c0fefc8..cfd67cc 100644 --- a/sbysrc/demo.sby +++ b/sbysrc/demo.sby @@ -2,11 +2,12 @@ [options] mode bmc depth 10 +wait on [engines] -smtbmc -s yices -smtbmc -s boolector -smtbmc -s z3 --nomem +smtbmc yices +smtbmc boolector -ack +smtbmc --nomem z3 abc bmc3 [script] diff --git a/sbysrc/sby_engine_smtbmc.py b/sbysrc/sby_engine_smtbmc.py index 15bcbd2..3977f2c 100644 --- a/sbysrc/sby_engine_smtbmc.py +++ b/sbysrc/sby_engine_smtbmc.py @@ -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" -- 2.30.2