use separate variable for type purposes

pull/902/head
Joran Honig 6 years ago
parent 3ca11d9262
commit 02abfa1d68
  1. 12
      mythril/laser/smt/independence_solver.py

@ -103,16 +103,20 @@ class IndependenceSolver:
:param constraints: constraints to add
"""
constraints = [c.raw for c in cast(Tuple[Bool], constraints)]
self.constraints.extend(constraints)
raw_constraints = [
c.raw for c in cast(Tuple[Bool], constraints)
] # type: List[z3.BoolRef]
self.constraints.extend(raw_constraints)
def append(self, *constraints: Tuple[Bool]) -> None:
"""Adds the constraints to this solver.
:param constraints: constraints to add
"""
constraints = [c.raw for c in cast(Tuple[Bool], constraints)]
self.constraints.extend(constraints)
raw_constraints = [
c.raw for c in cast(Tuple[Bool], constraints)
] # type: List[z3.BoolRef]
self.constraints.extend(raw_constraints)
def check(self) -> z3.CheckSatResult:
"""Returns z3 smt check result. """

Loading…
Cancel
Save