Skip to content
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

Booster: Only check SMT prelude in initSolver #4040

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

geo2a
Copy link
Collaborator

@geo2a geo2a commented Aug 19, 2024

Fixes #4036

@geo2a geo2a marked this pull request as ready for review August 19, 2024 09:29
Comment on lines 170 to 173
mapM_ runCmd ctxt.prelude
-- optionally check the prelude for consistency
when (coerce doCheck) $ do
check <- mapM_ runCmd ctxt.prelude >> runCmd CheckSat
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are running mapM_ runCmd ctxt.prelude twice when doCheck is true.

Suggested change
mapM_ runCmd ctxt.prelude
-- optionally check the prelude for consistency
when (coerce doCheck) $ do
check <- mapM_ runCmd ctxt.prelude >> runCmd CheckSat
mapM_ runCmd ctxt.prelude
-- optionally check the prelude for consistency
when (coerce doCheck) $ do
check <- runCmd CheckSat

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, good catch!

@geo2a geo2a removed the automerge label Aug 19, 2024
@rv-jenkins rv-jenkins merged commit aa22475 into master Aug 19, 2024
6 checks passed
@rv-jenkins rv-jenkins deleted the georgy/no-smt-prelude-check branch August 19, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Booster: only check the SMT prelude once, on server start
3 participants