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

Add :reproducible_resource_limit attribute #796

Merged
merged 5 commits into from
Oct 18, 2023

Conversation

atomb
Copy link
Collaborator

@atomb atomb commented Oct 13, 2023

This doesn't multiply by 1000, unlike :rlimit. The corresponding CLI flag is /reproducibleResourceLimit.

I'm a little unsure about the name. It's a bit of a mouthful. Maybe leaving out "reproducible" would be better.

Fixes #795.

This doesn't multiply by 1000. The corresponding CLI flag is
/reproducibleResourceLimit.
@atomb atomb requested a review from robin-aws October 13, 2023 22:41
@atomb atomb self-assigned this Oct 13, 2023
ps.GetUnsignedNumericArgument(x => ResourceLimit = Util.BoundedMultiply(x, 1000), null);
return true;

case "reproducibleResourceLimit":
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we use a word that captures "reproducible resource that correlates with time", like tick or cycle ?

@@ -1978,7 +1982,10 @@ similar effects.
Limit the number of seconds spent trying to verify
each procedure
/rlimit:<num>
Copy link
Collaborator

@keyboardDrummer keyboardDrummer Oct 16, 2023

Choose a reason for hiding this comment

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

Please update the documentation to say that this option is deprecated and will be removed. I would even prefer already removing it by returning an error when it is used.

@atomb
Copy link
Collaborator Author

atomb commented Oct 17, 2023

I simplified things by removing the backward-compatibility layer. We'll want one in Dafny, but it's not necessarily needed in Boogie, given the very few users of the feature.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) October 18, 2023 12:18
@keyboardDrummer keyboardDrummer merged commit 1fb27ea into boogie-org:master Oct 18, 2023
4 checks passed
@atomb atomb deleted the reproducible-resource-limit branch January 4, 2024 16:32
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.

:rlimit value multiplied by 1000 when passed to prover
2 participants