angr.analyses.decompiler.peephole_optimizations.remove_redundant_shifts_around_comparators

class angr.analyses.decompiler.peephole_optimizations.remove_redundant_shifts_around_comparators.RemoveRedundantShiftsAroundComparators

Bases: PeepholeOptimizationExprBase

Remove redundant bitshifts for both operands around a comparison operator.

More cases can be added in the future as we encounter them.

NAME = 'Remove redundant bitshifts for operands around a comparator'
expr_classes = (<class 'angr.ailment.expression.BinaryOp'>,)
optimize(expr, stmt_idx=None, block=None, **kwargs)
Parameters: