Maroc-OS/decompiler

View on GitHub
src/filters/simplify_expressions.py

Summary

Maintainability
F
1 wk
Test Coverage

Cyclomatic complexity is too high in function equalities. (31)
Open

@simplifier
def equalities(expr):
  """ equalities """

  # a == b || a > b becomes a >= b
Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Cyclomatic complexity is too high in function negate. (28)
Open

@simplifier
def negate(expr):
  """ transform negations into simpler, more readable forms

  !(a && b) becomes !a || !b
Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Cyclomatic complexity is too high in function flags. (19)
Open

@simplifier
def flags(expr):
  """ transform flags operations into simpler expressions such as lower-than
      or greater-than.

Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Cyclomatic complexity is too high in function add_sub. (18)
Open

@simplifier
def add_sub(expr):
  """ Simplify nested math expressions when the second operand of
      each expression is a number literal.

Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Function once has a Cognitive Complexity of 22 (exceeds 5 allowed). Consider refactoring.
Open

def once(expr, deep=False):
  """ run all filters and return the first available simplification """

  for filter in __all__:
    newexpr = filter(expr)
Severity: Minor
Found in src/filters/simplify_expressions.py - About 3 hrs to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Cyclomatic complexity is too high in function once. (10)
Open

def once(expr, deep=False):
  """ run all filters and return the first available simplification """

  for filter in __all__:
    newexpr = filter(expr)
Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Cyclomatic complexity is too high in function correct_signs. (7)
Open

@simplifier
def correct_signs(expr):
  """ substitute addition or substraction by its inverse depending on the operand sign

  x + -y becomes x - y
Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Cyclomatic complexity is too high in function equality_with_literals. (6)
Open

@simplifier
def equality_with_literals(expr):
  """ Applies commutativity of equality (==) sign

  (<1> - n1) == n2 becomes <1> == n3 where n3 = n1 + n2
Severity: Minor
Found in src/filters/simplify_expressions.py by radon

Cyclomatic Complexity

Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number) is equal to the number of linearly independent paths through the code. This number can be used as a guide when testing conditional logic in blocks.

Radon analyzes the AST tree of a Python program to compute Cyclomatic Complexity. Statements have the following effects on Cyclomatic Complexity:

Construct Effect on CC Reasoning
if +1 An if statement is a single decision.
elif +1 The elif statement adds another decision.
else +0 The else statement does not cause a new decision. The decision is at the if.
for +1 There is a decision at the start of the loop.
while +1 There is a decision at the while statement.
except +1 Each except branch adds a new conditional path of execution.
finally +0 The finally block is unconditionally executed.
with +1 The with statement roughly corresponds to a try/except block (see PEP 343 for details).
assert +1 The assert statement internally roughly equals a conditional statement.
Comprehension +1 A list/set/dict comprehension of generator expression is equivalent to a for loop.
Boolean Operator +1 Every boolean operator (and, or) adds a decision point.

Source: http://radon.readthedocs.org/en/latest/intro.html

Function negate has a Cognitive Complexity of 13 (exceeds 5 allowed). Consider refactoring.
Open

def negate(expr):
  """ transform negations into simpler, more readable forms

  !(a && b) becomes !a || !b
  !(a || b) becomes !a && !b
Severity: Minor
Found in src/filters/simplify_expressions.py - About 1 hr to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

Avoid deeply nested control flow statements.
Open

          if isinstance(op, assignable_t):
            op.unlink()
        expr.replace(newexpr)
Severity: Major
Found in src/filters/simplify_expressions.py - About 45 mins to fix

    Function flags has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Open

    def flags(expr):
      """ transform flags operations into simpler expressions such as lower-than
          or greater-than.
    
      unsigned stuff:
    Severity: Minor
    Found in src/filters/simplify_expressions.py - About 45 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Function add_sub has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    def add_sub(expr):
      """ Simplify nested math expressions when the second operand of
          each expression is a number literal.
    
      (a +/- n1) +/- n2 => (a +/- n3) with n3 = n1 +/- n2
    Severity: Minor
    Found in src/filters/simplify_expressions.py - About 35 mins to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Avoid too many return statements within this function.
    Open

        return aeq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
    Severity: Major
    Found in src/filters/simplify_expressions.py - About 30 mins to fix

      Avoid too many return statements within this function.
      Open

          return lower_t(expr.op1.op1.pluck(), expr.op1.op2.pluck())
      Severity: Major
      Found in src/filters/simplify_expressions.py - About 30 mins to fix

        Avoid too many return statements within this function.
        Open

            return cls(expr.op1.op1.pluck(), expr.op1.op2.pluck())
        Severity: Major
        Found in src/filters/simplify_expressions.py - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

            return
          Severity: Major
          Found in src/filters/simplify_expressions.py - About 30 mins to fix

            Avoid too many return statements within this function.
            Open

                return above_t(expr.op.op1.pluck(), expr.op.op2.pluck())
            Severity: Major
            Found in src/filters/simplify_expressions.py - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                  return leq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
              Severity: Major
              Found in src/filters/simplify_expressions.py - About 30 mins to fix

                Avoid too many return statements within this function.
                Open

                    return expr.op.op.pluck()
                Severity: Major
                Found in src/filters/simplify_expressions.py - About 30 mins to fix

                  Avoid too many return statements within this function.
                  Open

                      return cls(expr.op1.op1.pluck(), expr.op1.op2.pluck())
                  Severity: Major
                  Found in src/filters/simplify_expressions.py - About 30 mins to fix

                    Avoid too many return statements within this function.
                    Open

                        return _expr
                    Severity: Major
                    Found in src/filters/simplify_expressions.py - About 30 mins to fix

                      Avoid too many return statements within this function.
                      Open

                        return
                      Severity: Major
                      Found in src/filters/simplify_expressions.py - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                            return eq_t(expr.op.op1.pluck(), neg_t(expr.op.op2.pluck()))
                        Severity: Major
                        Found in src/filters/simplify_expressions.py - About 30 mins to fix

                          Avoid too many return statements within this function.
                          Open

                            return
                          Severity: Major
                          Found in src/filters/simplify_expressions.py - About 30 mins to fix

                            Avoid too many return statements within this function.
                            Open

                                return b_not_t(expr.op1.pluck())
                            Severity: Major
                            Found in src/filters/simplify_expressions.py - About 30 mins to fix

                              Avoid too many return statements within this function.
                              Open

                                  return lower_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                              Severity: Major
                              Found in src/filters/simplify_expressions.py - About 30 mins to fix

                                Avoid too many return statements within this function.
                                Open

                                    return eq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                Severity: Major
                                Found in src/filters/simplify_expressions.py - About 30 mins to fix

                                  Function equalities has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                  Open

                                  def equalities(expr):
                                    """ equalities """
                                  
                                    # a == b || a > b becomes a >= b
                                    # a == b || a < b becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py - About 25 mins to fix

                                  Cognitive Complexity

                                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                  A method's cognitive complexity is based on a few simple rules:

                                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                  • Code is considered more complex for each "break in the linear flow of the code"
                                  • Code is considered more complex when "flow breaking structures are nested"

                                  Further reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == add_t and type(expr.op1) in (add_t, sub_t) \
                                          and type(expr.op1.op2) == value_t and type(expr.op2) == value_t:
                                      _expr = expr.op1.pluck()
                                      _expr.add(expr.op2)
                                      return _expr
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 5 hrs to fix
                                  src/filters/simplify_expressions.py on lines 93..97

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 87.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == sub_t and type(expr.op1) in (add_t, sub_t) \
                                          and type(expr.op1.op2) == value_t and type(expr.op2) == value_t:
                                      _expr = expr.op1.pluck()
                                      _expr.sub(expr.op2)
                                      return _expr
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 5 hrs to fix
                                  src/filters/simplify_expressions.py on lines 87..91

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 87.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_or_t and \
                                        type(expr.op1) == eq_t and type(expr.op2) in (leq_t, aeq_t) and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 4 hrs to fix
                                  src/filters/simplify_expressions.py on lines 233..235

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 74.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_or_t and \
                                        type(expr.op1) in (leq_t, aeq_t) and type(expr.op2) == eq_t and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 4 hrs to fix
                                  src/filters/simplify_expressions.py on lines 241..243

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 74.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_or_t and \
                                        type(expr.op1) in (lower_t, above_t) and type(expr.op2) == eq_t and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 4 hrs to fix
                                  src/filters/simplify_expressions.py on lines 256..258

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 74.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_or_t and \
                                        type(expr.op1) == eq_t and type(expr.op2) in (lower_t, above_t) and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 4 hrs to fix
                                  src/filters/simplify_expressions.py on lines 249..251

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 74.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == sub_t and type(expr.op2) == value_t and expr.op2.value < 0:
                                      return add_t(expr.op1.pluck(), value_t(abs(expr.op2.value), expr.op2.size))
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 291..292

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 73.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == add_t and type(expr.op2) == value_t and expr.op2.value < 0:
                                      return sub_t(expr.op1.pluck(), value_t(abs(expr.op2.value), expr.op2.size))
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 294..295

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 73.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    is_greater = lambda expr: type(expr) == eq_t and \
                                          type(expr.op1) == sign_t and type(expr.op2) == overflow_t and \
                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 34..36

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 66.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    is_less = lambda expr: type(expr) == neq_t and \
                                          type(expr.op1) == sign_t and type(expr.op2) == overflow_t and \
                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 37..39

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 66.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_and_t:
                                      return b_or_t(b_not_t(expr.op.op1.pluck()), b_not_t(expr.op.op2.pluck()))
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 177..178

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 63.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_or_t:
                                      return b_and_t(b_not_t(expr.op.op1.pluck()), b_not_t(expr.op.op2.pluck()))
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 3 hrs to fix
                                  src/filters/simplify_expressions.py on lines 173..174

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 63.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == eq_t:
                                      return neq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 209..210
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == above_t:
                                      return leq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 209..210
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == leq_t:
                                      return above_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == neq_t:
                                      return eq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 209..210
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == aeq_t:
                                      return lower_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 209..210
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == lower_t:
                                      return aeq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 209..210
                                  src/filters/simplify_expressions.py on lines 213..214

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 7 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == sub_t:
                                      return eq_t(expr.op.op1.pluck(), expr.op.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 6 other locations - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 181..182
                                  src/filters/simplify_expressions.py on lines 185..186
                                  src/filters/simplify_expressions.py on lines 197..198
                                  src/filters/simplify_expressions.py on lines 201..202
                                  src/filters/simplify_expressions.py on lines 205..206
                                  src/filters/simplify_expressions.py on lines 209..210

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 55.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_and_t and \
                                        type(expr.op1) in (leq_t, aeq_t, above_t, lower_t) and type(expr.op2) == neq_t and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op1)]
                                      return cls(expr.op1.op1.pluck(), expr.op1.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 265..269

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 52.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_and_t and \
                                        type(expr.op1) == neq_t and type(expr.op2) in (leq_t, aeq_t, above_t, lower_t) and \
                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op2)]
                                      return cls(expr.op1.op1.pluck(), expr.op1.op2.pluck())
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 2 hrs to fix
                                  src/filters/simplify_expressions.py on lines 275..279

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 52.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                    if type(expr) == address_t and type(expr.op) == deref_t:
                                      return expr.op.op.pluck()
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 2 other locations - About 1 hr to fix
                                  src/filters/simplify_expressions.py on lines 126..127
                                  src/filters/simplify_expressions.py on lines 189..190

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 42.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_not_t:
                                      return expr.op.op.pluck()
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 2 other locations - About 1 hr to fix
                                  src/filters/simplify_expressions.py on lines 123..124
                                  src/filters/simplify_expressions.py on lines 126..127

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 42.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 3 locations. Consider refactoring.
                                  Open

                                    if type(expr) == deref_t and type(expr.op) == address_t:
                                      return expr.op.op.pluck()
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 2 other locations - About 1 hr to fix
                                  src/filters/simplify_expressions.py on lines 123..124
                                  src/filters/simplify_expressions.py on lines 189..190

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 42.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == sub_t and type(expr.op1) == value_t \
                                          and type(expr.op2) == value_t:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 1 hr to fix
                                  src/filters/simplify_expressions.py on lines 103..104

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 41.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Similar blocks of code found in 2 locations. Consider refactoring.
                                  Open

                                    if type(expr) == add_t and type(expr.op1) == value_t \
                                          and type(expr.op2) == value_t:
                                  Severity: Major
                                  Found in src/filters/simplify_expressions.py and 1 other location - About 1 hr to fix
                                  src/filters/simplify_expressions.py on lines 108..109

                                  Duplicated Code

                                  Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

                                  Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

                                  When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

                                  Tuning

                                  This issue has a mass of 41.

                                  We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

                                  The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

                                  If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

                                  See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

                                  Refactorings

                                  Further Reading

                                  Indentation is not a multiple of 4
                                  Open

                                    elif is_greater(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    elif is_lower(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) in (sub_t, add_t):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a - b) becomes a == b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Multiple spaces after operator
                                  Open

                                      cls =  {lower_t: leq_t, above_t: aeq_t}[type(expr.op1)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Avoid extraneous whitespace around an operator.

                                  Okay: a = 12 + 3
                                  E221: a = 4  + 5
                                  E222: a = 4 +  5
                                  E223: a = 4\t+ 5
                                  E224: a = 4 +\t5

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a >= b || a == b becomes a >= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ run all filters and return the first available simplification """
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4
                                  Open

                                    for filter in __all__:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        return newexpr
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Inline comment should start with '# '
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  Indentation is not a multiple of 4
                                  Open

                                    is_greater = lambda expr: type(expr) == eq_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Inline comment should start with '# '
                                  Open

                                    is_lower = lambda expr: type(expr) == carry_t #and type(expr.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # signed less-than
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        _value = value_t(expr.op2.value - expr.op1.op2.value, max(expr.op2.size, expr.op1.op2.size))
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a != b && a < b becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (90 > 79 characters)
                                  Open

                                        type(expr.op1) == neq_t and type(expr.op2) in (leq_t, aeq_t, above_t, lower_t) and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  def once(expr, deep=False):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4
                                  Open

                                        if expr.parent:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        newexpr = once(op, deep)
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    is_leq = lambda expr: type(expr) == b_or_t and type(expr.op1) == b_not_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    elif is_above(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        return expr.op1.pluck()
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                          and type(expr.op2) == value_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Continuation line over-indented for visual indent
                                  Open

                                          and type(expr.op2) == value_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == address_t and type(expr.op) == deref_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                      type(expr.op1) in (sub_t, add_t) and type(expr.op1.op2) == value_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == eq_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(!(expr)) becomes expr
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a > b) becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a >= b) becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == aeq_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a + b) becomes a == -b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    #  a - b > 0 becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a == b || a >= b becomes a >= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_and_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a > b && a != b becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                            if isinstance(op, assignable_t):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  def simplifier(func):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_less = lambda expr: type(expr) == neq_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Indentation is not a multiple of 4
                                  Open

                                    is_less = lambda expr: type(expr) == neq_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    is_aeq = lambda expr: type(expr) == b_and_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ Applies commutativity of equality (==) sign
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        _value = value_t(expr.op2.value + expr.op1.op2.value, max(expr.op2.size, expr.op1.op2.size))
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == neq_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == above_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                          type(expr.op1) == sign_t and type(expr.op2) == overflow_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a <= b) becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (80 > 79 characters)
                                  Open

                                    is_leq = lambda expr: type(expr) == b_or_t and type(expr.op1) == b_not_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a < b && a != b becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                          and type(expr.op1.op2) == value_t and type(expr.op2) == value_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Multiple spaces after operator
                                  Open

                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op1)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Avoid extraneous whitespace around an operator.

                                  Okay: a = 12 + 3
                                  E221: a = 4  + 5
                                  E222: a = 4 +  5
                                  E223: a = 4\t+ 5
                                  E224: a = 4 +\t5

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_or_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Multiple spaces after operator
                                  Open

                                      cls =  {lower_t: leq_t, above_t: aeq_t}[type(expr.op2)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Avoid extraneous whitespace around an operator.

                                  Okay: a = 12 + 3
                                  E221: a = 4  + 5
                                  E222: a = 4 +  5
                                  E223: a = 4\t+ 5
                                  E224: a = 4 +\t5

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a != b && a >= b becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == xor_t and expr.op1 == expr.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        if newexpr:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  def run(expr, deep=False):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4
                                  Open

                                    """ combine expressions until they cannot be combined any more.
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_greater = lambda expr: type(expr) == eq_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Continuation line over-indented for visual indent
                                  Open

                                          type(expr.op1) == sign_t and type(expr.op2) == overflow_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  At least two spaces before inline comment
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  Continuation line over-indented for visual indent
                                  Open

                                          and type(expr.op1.op2) == value_t and type(expr.op2) == value_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) in (lower_t, above_t) and type(expr.op1) == sub_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a <= b && a != b becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == add_t and type(expr.op2) == value_t and expr.op2.value < 0:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    __all__.append(func)
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    elif is_aeq(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == and_t and expr.op1 == expr.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == add_t and type(expr.op1) == value_t \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (98 > 79 characters)
                                  Open

                                        _value = value_t(expr.op2.value + expr.op1.op2.value, max(expr.op2.size, expr.op1.op2.size))
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Line too long (98 > 79 characters)
                                  Open

                                        _value = value_t(expr.op2.value - expr.op1.op2.value, max(expr.op2.size, expr.op1.op2.size))
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a != b) becomes a == b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    return expr
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    is_lower = lambda expr: type(expr) == carry_t #and type(expr.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                                type(expr.op2) in (above_t, aeq_t) and expr.op1 == expr.op2.op1
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    if is_less(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    else:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ transform negations into simpler, more readable forms
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a && b) becomes !a || !b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == leq_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a == b || a < b becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Multiple spaces after operator
                                  Open

                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op2)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Avoid extraneous whitespace around an operator.

                                  Okay: a = 12 + 3
                                  E221: a = 4  + 5
                                  E222: a = 4 +  5
                                  E223: a = 4\t+ 5
                                  E224: a = 4 +\t5

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_and_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ transform the and (&) operator into a simpler form in the special case
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_lower = lambda expr: type(expr) == carry_t #and type(expr.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_aeq = lambda expr: type(expr) == b_and_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == eq_t and type(expr.op2) == value_t and expr.op2.value == 0:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == sub_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ equalities """
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_or_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (90 > 79 characters)
                                  Open

                                        type(expr.op1) in (leq_t, aeq_t, above_t, lower_t) and type(expr.op2) == neq_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_above = lambda expr: type(expr) == b_not_t and is_lower(expr.op)
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Indentation is not a multiple of 4
                                  Open

                                    elif is_leq(expr):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == add_t and type(expr.op1) in (add_t, sub_t) \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ remove nested deref_t and address_t that cancel each other
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a == b) becomes a != b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a == b || a > b becomes a >= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (95 > 79 characters)
                                  Open

                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op2)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4
                                  Open

                                    while True:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                        break
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ transform flags operations into simpler expressions such as lower-than
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  At least two spaces before inline comment
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  Indentation is not a multiple of 4
                                  Open

                                    """ Simplify nested math expressions when the second operand of
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == sub_t and type(expr.op1) == value_t \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == deref_t and type(expr.op) == address_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a > b || a == b becomes a >= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_or_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (95 > 79 characters)
                                  Open

                                      cls =  {leq_t: lower_t, aeq_t: above_t, above_t: above_t, lower_t: lower_t}[type(expr.op1)]
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == sub_t and type(expr.op1) in (add_t, sub_t) \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    #  a - b < 0 becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a < b || a == b becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a <= b || a == b becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a != b && a > b becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ substitute addition or substraction by its inverse depending on the operand sign
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == sub_t and type(expr.op2) == value_t and expr.op2.value < 0:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # signed greater-than
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # above-or-equal
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_and_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a < b) becomes a >= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Continuation line over-indented for visual indent
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # unsigned lower-than
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Line too long (100 > 79 characters)
                                  Open

                                    if type(expr) in (eq_t, neq_t, above_t, lower_t, aeq_t, leq_t) and type(expr.op2) == value_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) in (eq_t, neq_t, above_t, lower_t, aeq_t, leq_t) and type(expr.op2) == value_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a == 0 becomes !a
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == add_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_or_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a == b || a <= b becomes a <= b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_or_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if deep and isinstance(expr, expr_t):
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Inline comment should start with '# '
                                  Open

                                          expr.op1.op == expr.op2.op #and type(expr.op1.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  At least two spaces before inline comment
                                  Open

                                    is_lower = lambda expr: type(expr) == carry_t #and type(expr.op) == sub_t
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate inline comments by at least two spaces.

                                  An inline comment is a comment on the same line as a statement.
                                  Inline comments should be separated by at least two spaces from the
                                  statement. They should start with a # and a single space.
                                  
                                  Each line of a block comment starts with a # and a single space
                                  (unless it is indented text inside the comment).
                                  
                                  Okay: x = x + 1  # Increment x
                                  Okay: x = x + 1    # Increment x
                                  Okay: # Block comment
                                  E261: x = x + 1 # Increment x
                                  E262: x = x + 1  #Increment x
                                  E262: x = x + 1  #  Increment x
                                  E265: #Block comment
                                  E266: ### Block comment

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # unsigned above-than
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # less-or-equal
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Continuation line with same indent as next logical line
                                  Open

                                        expr.op1.op1 == expr.op2.op1 and expr.op1.op2 == expr.op2.op2:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a >= b && a != b becomes a > b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    """ transform xor_t into a literal 0 if both operands to the xor are the same
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    is_above = lambda expr: type(expr) == b_not_t and is_lower(expr.op)
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Do not assign a lambda expression, use a def
                                  Open

                                    is_leq = lambda expr: type(expr) == b_or_t and type(expr.op1) == b_not_t and \
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Compound statements (on the same line) are generally discouraged.

                                  While sometimes it's okay to put an if/for/while with a small body
                                  on the same line, never do this for multi-clause statements.
                                  Also avoid folding such long lines!
                                  
                                  Always use a def statement instead of an assignment statement that
                                  binds a lambda expression directly to a name.
                                  
                                  Okay: if foo == 'blah':\n    do_blah_thing()
                                  Okay: do_one()
                                  Okay: do_two()
                                  Okay: do_three()
                                  
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: for x in lst: total += x
                                  E701: while t < 10: t = delay()
                                  E701: if foo == 'blah': do_blah_thing()
                                  E701: else: do_non_blah_thing()
                                  E701: try: something()
                                  E701: finally: cleanup()
                                  E701: if foo == 'blah': one(); two(); three()
                                  E702: do_one(); do_two(); do_three()
                                  E703: do_four();  # useless semicolon
                                  E704: def f(x): return 2*x
                                  E731: f = lambda x: 2*x

                                  Continuation line over-indented for visual indent
                                  Open

                                                type(expr.op2) == lower_t and expr.op1.op == expr.op2
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Continuation lines indentation.

                                  Continuation lines should align wrapped elements either vertically
                                  using Python's implicit line joining inside parentheses, brackets
                                  and braces, or using a hanging indent.
                                  
                                  When using a hanging indent these considerations should be applied:
                                  - there should be no arguments on the first line, and
                                  - further indentation should be used to clearly distinguish itself
                                    as a continuation line.
                                  
                                  Okay: a = (\n)
                                  E123: a = (\n    )
                                  
                                  Okay: a = (\n    42)
                                  E121: a = (\n   42)
                                  E122: a = (\n42)
                                  E123: a = (\n    42\n    )
                                  E124: a = (24,\n     42\n)
                                  E125: if (\n    b):\n    pass
                                  E126: a = (\n        42)
                                  E127: a = (24,\n      42)
                                  E128: a = (24,\n    42)
                                  E129: if (a or\n    b):\n    pass
                                  E131: a = (\n    42\n 24)

                                  Indentation is not a multiple of 4
                                  Open

                                    return lower_t(op.pluck(), value_t(0, op.size))
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # !(a || b) becomes !a && !b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == b_not_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    if type(expr) == b_not_t and type(expr.op) == lower_t:
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Indentation is not a multiple of 4 (comment)
                                  Open

                                    # a != b && a <= b becomes a < b
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Indentation is not a multiple of 4
                                  Open

                                    return
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Use indent_size (PEP8 says 4) spaces per indentation level.

                                  For really old code that you don't want to mess up, you can continue
                                  to use 8-space tabs.
                                  
                                  Okay: a = 1
                                  Okay: if a == 0:\n    a = 1
                                  E111:   a = 1
                                  E114:   # a = 1
                                  
                                  Okay: for item in items:\n    pass
                                  E112: for item in items:\npass
                                  E115: for item in items:\n# Hi\n    pass
                                  
                                  Okay: a = 1\nb = 2
                                  E113: a = 1\n    b = 2
                                  E116: a = 1\n    # b = 2

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  Line too long (86 > 79 characters)
                                  Open

                                    """ substitute addition or substraction by its inverse depending on the operand sign
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Limit all lines to a maximum of 79 characters.

                                  There are still many devices around that are limited to 80 character
                                  lines; plus, limiting windows to 80 characters makes it possible to
                                  have several windows side-by-side.  The default wrapping on such
                                  devices looks ugly.  Therefore, please limit all lines to a maximum
                                  of 79 characters. For flowing long blocks of text (docstrings or
                                  comments), limiting the length to 72 characters is recommended.
                                  
                                  Reports error E501.

                                  Expected 2 blank lines, found 1
                                  Open

                                  @simplifier
                                  Severity: Minor
                                  Found in src/filters/simplify_expressions.py by pep8

                                  Separate top-level function and class definitions with two blank lines.

                                  Method definitions inside a class are separated by a single blank
                                  line.
                                  
                                  Extra blank lines may be used (sparingly) to separate groups of
                                  related functions.  Blank lines may be omitted between a bunch of
                                  related one-liners (e.g. a set of dummy implementations).
                                  
                                  Use blank lines in functions, sparingly, to indicate logical
                                  sections.
                                  
                                  Okay: def a():\n    pass\n\n\ndef b():\n    pass
                                  Okay: def a():\n    pass\n\n\nasync def b():\n    pass
                                  Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
                                  Okay: default = 1\nfoo = 1
                                  Okay: classify = 1\nfoo = 1
                                  
                                  E301: class Foo:\n    b = 0\n    def bar():\n        pass
                                  E302: def a():\n    pass\n\ndef b(n):\n    pass
                                  E302: def a():\n    pass\n\nasync def b(n):\n    pass
                                  E303: def a():\n    pass\n\n\n\ndef b(n):\n    pass
                                  E303: def a():\n\n\n\n    pass
                                  E304: @decorator\n\ndef a():\n    pass
                                  E305: def a():\n    pass\na()
                                  E306: def a():\n    def b():\n        pass\n    def c():\n        pass

                                  There are no issues that match your filters.

                                  Category
                                  Status