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

No cache #964

Merged
merged 3 commits into from
Oct 11, 2024
Merged

No cache #964

merged 3 commits into from
Oct 11, 2024

Conversation

keyboardDrummer
Copy link
Collaborator

@keyboardDrummer keyboardDrummer commented Oct 11, 2024

Changes

  • Enable not using a verification result cache, using the new class EmptyVerificationResultCache

Testing

  • Manually tried out using EmptyVerificationResultCache in Dafny, which reduces memory pressure

@keyboardDrummer keyboardDrummer requested review from fabiomadge and MikaelMayer and removed request for fabiomadge October 11, 2024 11:57
Copy link
Collaborator

@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.

I would like a justification on the removal of contracts, since I don't understand this part.

Source/Directory.Build.props Show resolved Hide resolved

public void Insert(Implementation impl, ImplementationRunResult result)
{
Contract.Requires(result != null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Contract.Requires(result != null);
Contract.Requires(impl != null);
Contract.Requires(result != null);

This contract was left out during refactoring. Or did you intend to remove both contracts?
The function Lookup, RemoveMatchingKeys and VerificationPriority below also had a contract removed.

Copy link
Collaborator Author

@keyboardDrummer keyboardDrummer Oct 11, 2024

Choose a reason for hiding this comment

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

The presence of the contract creates a warning slightly further down in this method, because it implies impl can be null and this file uses #nullable enable. I had to remove the check because the warning makes the build fail.

The end-state we want is that all files use #nullable enable and there are no more Contract based non-null assertions.

@keyboardDrummer keyboardDrummer enabled auto-merge (squash) October 11, 2024 15:48
@keyboardDrummer keyboardDrummer merged commit 398413d into boogie-org:master Oct 11, 2024
5 checks passed
@keyboardDrummer keyboardDrummer deleted the noCache branch October 12, 2024 13:56
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