Skip to content

Commit

Permalink
[issue1133] style check
Browse files Browse the repository at this point in the history
  • Loading branch information
roeger committed Jan 20, 2024
1 parent 79af53e commit 849f4b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/translate/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def inequality_disjunction_ok(ineq_disj, representative):
# inequality disjunction there is an inequality where the two terms
# are in different equivalence classes.
representative = combined.get_representative()
if any(representative.get(s,s)[0] != "?" for s in self.not_constant):
if any(representative.get(s, s)[0] != "?"
for s in self.not_constant):
continue
for ineq_disjunction in self.ineq_disjunctions:
if not inequality_disjunction_ok(ineq_disjunction,
Expand Down
2 changes: 1 addition & 1 deletion src/translate/invariant_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def useful_groups(invariants, initial_facts):
inv_vars = [f"?@v{i}" for i in range(invariant.arity())]
parameters_tuple = tuple((var, parameters[var])
for var in inv_vars)

parameters_tuple = tuple(sorted(x for x in parameters.items()))
group_key = (invariant, parameters_tuple)
if group_key not in nonempty_groups:
Expand Down

0 comments on commit 849f4b8

Please sign in to comment.