Reformat files with black

pull/897/head
Nikhil Parasaram 6 years ago
parent 5334f72b4b
commit f6dbd95cb5
  1. 2
      mythril/laser/ethereum/state/constraints.py
  2. 6
      mythril/laser/ethereum/svm.py

@ -17,7 +17,7 @@ class Constraints(list):
def check_possibility(self): def check_possibility(self):
if self.__possibility is None: if self.__possibility is None:
self.__possibility = (self.solver.check() != unsat) self.__possibility = self.solver.check() != unsat
if self.__possibility is False: if self.__possibility is False:
self.solver = None self.solver = None
return self.__possibility return self.__possibility

@ -190,7 +190,11 @@ class LaserEVM:
logging.debug("Encountered unimplemented instruction") logging.debug("Encountered unimplemented instruction")
continue continue
new_states = [state for state in new_states if state.mstate.constraints.check_possibility()] new_states = [
state
for state in new_states
if state.mstate.constraints.check_possibility()
]
self.manage_cfg(op_code, new_states) self.manage_cfg(op_code, new_states)

Loading…
Cancel
Save