Skip to content

remove SMT solver from RewriteStepState, use solver from arg. to evaluate #4002

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions booster/library/Booster/Pattern/Rewrite.hs
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,7 @@ performRewrite doTracing def mLlvmLibrary mSolver mbMaxDepth cutLabels terminalL
simplifyP p = withContext CtxSimplify $ do
st <- get
let cache = st.simplifierCache
smt = st.smtSolver
evaluatePattern def mLlvmLibrary smt cache p >>= \(res, newCache) -> do
evaluatePattern def mLlvmLibrary mSolver cache p >>= \(res, newCache) -> do
updateCache newCache
case res of
Right newPattern -> do
Expand Down Expand Up @@ -922,7 +921,6 @@ data RewriteStepsState = RewriteStepsState
{ counter :: !Natural
, traces :: !(Seq (RewriteTrace ()))
, simplifierCache :: SimplifierCache
, smtSolver :: Maybe SMT.SMTContext
}

rewriteStart :: RewriteStepsState
Expand All @@ -931,5 +929,4 @@ rewriteStart =
{ counter = 0
, traces = mempty
, simplifierCache = mempty
, smtSolver = Nothing
}
Loading