Change Constraints.check_possibility() to Constraints.is_possible

pull/897/head
Nikhil Parasaram 6 years ago
parent f9aafe8a9f
commit 4902794758
  1. 3
      mythril/laser/ethereum/state/constraints.py
  2. 4
      mythril/laser/ethereum/svm.py

@ -28,7 +28,8 @@ class Constraints(list):
self._default_timeout = 100
self._is_possible = is_possible
def check_possibility(self) -> bool:
@property
def is_possible(self) -> bool:
"""
:return: True/False based on the existence of solution of constraints
"""

@ -235,9 +235,7 @@ class LaserEVM:
continue
new_states = [
state
for state in new_states
if state.mstate.constraints.check_possibility()
state for state in new_states if state.mstate.constraints.is_possible
]
self.manage_cfg(op_code, new_states)

Loading…
Cancel
Save