Skip to content

Commit

Permalink
strength an assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Sep 29, 2024
1 parent b8ae0d1 commit df469c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/venom/analysis/equivalent_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ def analyze(self):

source = inst.operands[0]

assert var not in equivalence_set # invariant
if source in equivalence_set:
equivalence_set[var] = equivalence_set[source]
continue
else:
assert var not in equivalence_set
equivalence_set[var] = bag
equivalence_set[source] = bag

Expand Down

0 comments on commit df469c6

Please sign in to comment.