Skip to content

Commit 5786288

Browse files
authored
Merge pull request #905 from argotorg/no-smt-on-concrete
Quick check on concrete Lit
2 parents 0d9e274 + 927c202 commit 5786288

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/EVM/Fetch.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,10 @@ oracle solvers preSess rpcInfo q = do
475475
PleaseAskSMT branchcondition pathconditions continue -> do
476476
let pathconds = foldl' PAnd (PBool True) pathconditions
477477
-- Is is possible to satisfy the condition?
478-
continue <$> checkBranch solvers (branchcondition ./= (Lit 0)) pathconds
478+
case branchcondition of
479+
Lit 0 -> pure $ continue (Case False)
480+
Lit _ -> pure $ continue (Case True)
481+
_ -> continue <$> checkBranch solvers (branchcondition ./= (Lit 0)) pathconds
479482

480483
PleaseGetSols symExpr numBytes pathconditions continue -> do
481484
let pathconds = foldl' PAnd (PBool True) pathconditions

0 commit comments

Comments
 (0)