Fix forking state from memory (#407)

* import ForkState before use

* Fix ForkState behavior
This commit is contained in:
JP Smith
2017-07-20 16:02:13 -04:00
committed by GitHub
parent 7f54a4342c
commit d9c226b89d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -954,7 +954,8 @@ class SMemory(Memory):
condition = False
for base in e.solutions:
condition = Operators.OR(address == base, condition )
raise ForkState(condition)
from .state import ForkState
raise ForkState("Forking state on incomplete result", condition)
#So here we have all potential solutions to address
assert len(solutions) > 0
+1 -1
View File
@@ -3,7 +3,7 @@ import copy
import logging
from collections import OrderedDict
from .smtlib import solver
from .smtlib import solver, Bool
from ..utils.helpers import issymbolic
from ..utils.event import Signal, forward_signals