Skip to content

Commit

Permalink
Merge pull request #91 from symbiont-io/det-ldfi
Browse files Browse the repository at this point in the history
feat(ldfi): try to be deterministic by setting random_seed
  • Loading branch information
symbiont-stevan-andjelkovic authored Feb 2, 2021
2 parents fdc96b7 + c2d6915 commit b29f991
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ldfi/ldfi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def create_sat_formula(config, previous_faults, potential_faults):
def sat_solve(formula):
solver = z3.Solver()
solver.add(formula)
z3.set_option('smt.random_seed', 0)
result = solver.check()
if result == z3.sat:
model = solver.model()
Expand Down

0 comments on commit b29f991

Please sign in to comment.