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

fix: Substitute for heap labels in TrSplitExpr #2300

Merged
merged 7 commits into from
Jun 28, 2022

Conversation

RustanLeino
Copy link
Collaborator

This PR fixes two things related to heap labels. One gave rise to unsound verification, and the other to malformed Boogie code.

Fixes #2299

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.


public static readonly Substituter EMPTY = new Substituter(null, new Dictionary<IVariable, Expression>(), new Dictionary<TypeParameter, Type>());

public Substituter(Expression receiverReplacement, Dictionary<IVariable, Expression/*!*/>/*!*/ substMap, Dictionary<TypeParameter, Type> typeMap) {
public Substituter(Expression receiverReplacement, Dictionary<IVariable, Expression> substMap, Dictionary<TypeParameter, Type> typeMap, Label oldLabel = null) {
Copy link
Member

Choose a reason for hiding this comment

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

Consider renaming oldLabel to oldHeapLabel

# Conflicts:
#	RELEASE_NOTES.md
@RustanLeino RustanLeino enabled auto-merge (squash) June 28, 2022 00:32
@RustanLeino RustanLeino merged commit 448433a into dafny-lang:master Jun 28, 2022
@RustanLeino RustanLeino deleted the issue-2299 branch June 28, 2022 23:08
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.

Two-state predicate checked incorrectly
2 participants