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

More thorough checks for exceeding resource limit #812

Merged
merged 3 commits into from
Nov 21, 2023

Conversation

atomb
Copy link
Collaborator

@atomb atomb commented Nov 20, 2023

Sometimes Z3 doesn't tell us that it exceeded its resource limit. So, if it returns "unknown", with an unknown reason, and the reported resource count exceeds the provided limit, report that it ran out of resources.

Fixes #803.

Addresses dafny-lang/dafny#4804

Sometimes Z3 doesn't tell us that it exceeded its resource limit. So, if
it returns "unknown", with an unknown reason, and the reported resource
count exceeds the provided limit, report that it ran out of resources.
@@ -0,0 +1,3567 @@
// RUN: %parallel-boogie /proverOpt:O:auto_config=false /proverOpt:O:type_check=true /proverOpt:O:smt.qi.eager_threshold=100 /proverOpt:O:smt.delay_units=true /rlimit:10000 /prune "%s" > "%t"
Copy link
Collaborator

Choose a reason for hiding this comment

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

This test is painfully large. Shouldn't it be simple to trigger an rlimit threshold breach?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Triggering an rlimit threshold breach is easy. Triggering one that Z3 reports as "unknown" instead of something like "resource limits reached" is harder. I'm sure there is a smaller example that would trigger the issue, but I don't know what it is.

@keyboardDrummer keyboardDrummer merged commit 7cf52a3 into boogie-org:master Nov 21, 2023
4 checks passed
@atomb atomb deleted the dafny-issue-4804 branch January 4, 2024 16:31
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.

Boogie fails to parse certain unknown responses
2 participants