From 81144819e595af85f2270ded78fffe7634f9307d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Mon, 27 Feb 2017 22:28:31 +0100 Subject: [PATCH] Add smtc option --- sbysrc/sby_core.py | 6 ++++++ sbysrc/sby_engine_smtbmc.py | 3 +++ 2 files changed, 9 insertions(+) diff --git a/sbysrc/sby_core.py b/sbysrc/sby_core.py index 594f6d7..015f172 100644 --- a/sbysrc/sby_core.py +++ b/sbysrc/sby_core.py @@ -435,6 +435,12 @@ class SbyJob: self.handle_bool_option("wait", False) self.handle_int_option("timeout", None) + self.handle_str_option("smtc", None) + + if self.opt_smtc is not None: + for engine in self.engines: + assert engine[0] == "smtbmc" + self.copy_src() if self.opt_mode == "bmc": diff --git a/sbysrc/sby_engine_smtbmc.py b/sbysrc/sby_engine_smtbmc.py index 392fbea..dce23e4 100644 --- a/sbysrc/sby_engine_smtbmc.py +++ b/sbysrc/sby_engine_smtbmc.py @@ -40,6 +40,9 @@ def run(mode, job, engine_idx, engine): for i, a in enumerate(args): smtbmc_opts += ["-s" if i == 0 else "-S", a] + if job.opt_smtc is not None: + smtbmc_opts += ["--smtc", "src/%s" % job.opt_smtc] + model_name = "smt2" if syn_opt: model_name += "_syn" if nomem_opt: model_name += "_nomem" -- 2.30.2