Merge pull request #1016 from ConsenSys/features/disable_fp_filter

Disable effect check feature
pull/1022/head
JoranHonig 6 years ago committed by GitHub
commit e08ce7e785
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      mythril/analysis/modules/integer.py

@ -31,6 +31,8 @@ import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
DISABLE_EFFECT_CHECK = True
class OverUnderflowAnnotation: class OverUnderflowAnnotation:
""" Symbol Annotation used if a BitVector can overflow""" """ Symbol Annotation used if a BitVector can overflow"""
@ -287,9 +289,15 @@ class IntegerOverflowUnderflowModule(DetectionModule):
continue continue
try: try:
# This check can be disabled if the contraints are to difficult for z3 to solve
# within any reasonable time.
if DISABLE_EFFECT_CHECK:
constraints = ostate.mstate.constraints + [annotation.constraint]
else:
constraints = state.mstate.constraints + [annotation.constraint]
transaction_sequence = solver.get_transaction_sequence( transaction_sequence = solver.get_transaction_sequence(
state, state.mstate.constraints + [annotation.constraint] state, constraints
) )
except UnsatError: except UnsatError:
continue continue

Loading…
Cancel
Save