Skip to content

Commit

Permalink
fix non_reach encoding in mutant context
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed Oct 18, 2023
1 parent 249a793 commit 317643a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bonesis/asp_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ def encode_nonreach(self, cfg1, cfg2, mutant=None, bounded="auto"):
else:
rules += [f"reach_steps({Z},{bounded})"]
if mutant is not None:
rules += [f"clamped(({Z},1..K),N,V) :- mutant({mutant},N,V)"]
rules += [f"clamped(({Z},1..K),N,V) :- mutant({mutant},N,V), reach_steps({Z},K)"]
return rules

def encode_final_nonreach(self, cfg1, cfg2, mutant=None):
Expand Down

0 comments on commit 317643a

Please sign in to comment.