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

feat: add custom solver options #197

Merged
merged 2 commits into from
Sep 25, 2023
Merged

feat: add custom solver options #197

merged 2 commits into from
Sep 25, 2023

Conversation

daejunpark
Copy link
Collaborator

Add more solver options:

  • --dump-smt-queries: generate smt queries for checking assertion violations, in the directory /tmp/<test-name>.<uuid>
  • --solver-subprocess-command: run the given command for the external process solver. default: z3 -model.

The --solver-subprocess-command option can be used for running different solvers, e.g., running cvc5 with int-blasting enabled:

--solver-subprocess-command "cvc5 --solve-bv-as-int=iand --dump-models"

For example, the SolverTest can be completed much more quickly using the following command:

halmos --root tests --contract SolverTest --solver-subprocess --solver-subprocess-command "cvc5 --solve-bv-as-int=iand --dump-models"

@daejunpark daejunpark merged commit 5926a9d into main Sep 25, 2023
108 checks passed
@daejunpark daejunpark deleted the feat/smt-options branch September 25, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants