Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Jan 21, 2025
1 parent 1e7d00f commit ebbebb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions tests/unit/compiler/venom/test_algebraic_binopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ def hevm_check(code):
print(compiler.generate_evm(no_optimize=True))
print(bytecode2)

subprocess.check_output(
["hevm", "equivalence", "--code-a", bytecode1, "--code-b", bytecode2]
)
subprocess.check_output(["hevm", "equivalence", "--code-a", bytecode1, "--code-b", bytecode2])


def test_sccp_algebraic_opt_sub_xor():
Expand Down
2 changes: 1 addition & 1 deletion vyper/venom/passes/algebraic_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ def _optimize_comparator_instruction(self, inst, prefer_iszero):
# correct optimization:
self.updater._update(inst, "eq", [operands[1], IRLiteral(never)])
# canary:
#self.updater._update(inst, "eq", [operands[1], IRLiteral(lo)])
# self.updater._update(inst, "eq", [operands[1], IRLiteral(lo)])
return

# rewrites. in positions where iszero is preferred, (gt x 5) => (ge x 6)
Expand Down

0 comments on commit ebbebb1

Please sign in to comment.