-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: --solver-command lets user replace z3 invocations
This removes: - `--solver-subprocess` - `--solver-subprocess-command` - `--solver-fresh` (was unused AFAICT) This adds: - `--solver-command` with no default (meaning we run z3 in-process) - some prints about where SMT files are generated - auto-dumping of SMT files when invoking an external solver - a very crude way to determine if the external solver generated a valid model (instead of assuming it is valid, so that we still benefit from refinement) Before: ```sh $ halmos --root examples/simple --contract VaultTest --function check_mint -vvv --statistics [...] [FAIL] check_mint(uint256) (paths: 8, time: 282.15s (paths: 0.45s, models: 281.70s), bounds: []) ``` After: ```sh $ halmos --root examples/simple --contract VaultTest --function check_mint -vvv --statistics --solver-command="bitwuzla -m" [...] [FAIL] check_mint(uint256) (paths: 8, time: 19.69s (paths: 0.46s, models: 19.22s), bounds: []) ```
- Loading branch information
1 parent
f868681
commit 38baf35
Showing
2 changed files
with
55 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters