Skip to content

Commit

Permalink
unfold on undecied if guard
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecsFerra committed Sep 25, 2024
1 parent 61150bb commit d521162
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/Language/Fixpoint/Solver/PLE.hs
Original file line number Diff line number Diff line change
Expand Up @@ -829,13 +829,10 @@ evalApp γ ctx e0 es et
if undecidedGuards
then do
modify $ \st ->
st {
evPendingUnfoldings = M.insert (eApps e0 es) e3' (evPendingUnfoldings st)
}
-- Don't unfold the expression if there is an if-then-else
-- guarding it, just to preserve the size of further
-- rewrites.
return (Nothing, noExpand)
st { evPendingUnfoldings = M.insert (eApps e0 es) e3' (evPendingUnfoldings st)
, evNewEqualities = S.insert (eApps e0 es, e3') (evNewEqualities st)
}
return (Just $ eApps e2' es2, fe)
else do
useFuel f
modify $ \st ->
Expand Down

0 comments on commit d521162

Please sign in to comment.