Skip to content

Commit b6df483

Browse files
committed
Update btor options
Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
1 parent 66fbd41 commit b6df483

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vsc/model/randomizer.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def randomize(self, ri : RandInfo, bound_m : Dict[FieldModel,VariableBoundModel]
141141
while rs_i < len(ri.randsets()):
142142
btor = Boolector()
143143
self.btor = btor
144-
btor.Set_opt(pyboolector.BTOR_OPT_INCREMENTAL, True)
145-
btor.Set_opt(pyboolector.BTOR_OPT_MODEL_GEN, True)
144+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_INCREMENTAL, True)
145+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_MODEL_GEN, True)
146146

147147
start_rs_i = rs_i
148148

@@ -306,8 +306,8 @@ def create_diagnostics_1(self, active_randsets) -> str:
306306
ret = ""
307307

308308
btor = Boolector()
309-
btor.Set_opt(pyboolector.BTOR_OPT_INCREMENTAL, True)
310-
btor.Set_opt(pyboolector.BTOR_OPT_MODEL_GEN, True)
309+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_INCREMENTAL, True)
310+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_MODEL_GEN, True)
311311
model_valid = False
312312

313313
diagnostic_constraint_l = []
@@ -383,8 +383,8 @@ def create_diagnostics_1(self, active_randsets) -> str:
383383
def create_diagnostics(self, active_randsets) -> str:
384384

385385
btor = Boolector()
386-
btor.Set_opt(pyboolector.BTOR_OPT_INCREMENTAL, True)
387-
btor.Set_opt(pyboolector.BTOR_OPT_MODEL_GEN, True)
386+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_INCREMENTAL, True)
387+
btor.Set_opt(pyboolector.BtorOption.BTOR_OPT_MODEL_GEN, True)
388388
model_valid = False
389389

390390
diagnostic_constraint_l = []

0 commit comments

Comments
 (0)