Skip to content

Suggest cvc5 when solver not found#394

Open
vivekr123 wants to merge 1 commit intostrata-org:mainfrom
vivekr123:enable-solver-choice-cvc5
Open

Suggest cvc5 when solver not found#394
vivekr123 wants to merge 1 commit intostrata-org:mainfrom
vivekr123:enable-solver-choice-cvc5

Conversation

@vivekr123
Copy link

Suggest cvc5 when solver not found

@vivekr123 vivekr123 requested a review from a team as a code owner February 6, 2026 20:52
@vivekr123 vivekr123 force-pushed the enable-solver-choice-cvc5 branch 3 times, most recently from a8af244 to 66aa8ea Compare February 6, 2026 21:20
MikaelMayer
MikaelMayer previously approved these changes Feb 6, 2026
Copy link
Contributor

@MikaelMayer MikaelMayer left a comment

Choose a reason for hiding this comment

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

Excellent addition

@MikaelMayer MikaelMayer enabled auto-merge February 6, 2026 22:23
Copy link
Contributor

@shigoel shigoel left a comment

Choose a reason for hiding this comment

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

Thanks, @vivekr123! Left a couple of comments.

solverTimeout := 10,
outputSarif := false
outputSarif := false,
solver := "z3"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd rather have the default be cvc5.

Copy link
Author

Choose a reason for hiding this comment

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

Done!

}
return ⟨IO.FS.Stream.ofHandle proc.stdin, IO.FS.Stream.ofHandle proc.stdout⟩
catch e =>
let suggestion := if path.endsWith "z3" || path == "z3" then " Try running with '--solver cvc5' to use cvc5 instead (ensure cvc5 is on your PATH)." else ""
Copy link
Contributor

@shigoel shigoel Feb 6, 2026

Choose a reason for hiding this comment

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

Let's remove the z3-specific check, and mention only cvc5 in the suggestion.

Copy link
Author

Choose a reason for hiding this comment

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

Is the new suggestion closer to what we're looking for?

@shigoel
Copy link
Contributor

shigoel commented Feb 6, 2026

CC: @abdoo8080 @ChengZ3

auto-merge was automatically disabled February 6, 2026 23:16

Head branch was pushed to by a user without write access

@vivekr123 vivekr123 force-pushed the enable-solver-choice-cvc5 branch 2 times, most recently from 29ed41a to d24c15d Compare February 6, 2026 23:21
@vivekr123 vivekr123 force-pushed the enable-solver-choice-cvc5 branch from d24c15d to 3255141 Compare February 6, 2026 23:27
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.

3 participants