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: Missing related position in failing precondition #2658

Merged
merged 9 commits into from
Sep 1, 2022

Conversation

MikaelMayer
Copy link
Member

Fixes #2657 by adding a token in a generated boogie expression.

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

Fixes #2657 by adding a token in a generated boogie expression.
@MikaelMayer MikaelMayer enabled auto-merge (squash) August 30, 2022 19:02
Comment on lines -1885 to +1887
return Boogie.Expr.Gt(Boogie.Expr.SelectTok(tok, TrExpr(s), elmtBox), Boogie.Expr.Literal(0));
var result = Boogie.Expr.Gt(Boogie.Expr.SelectTok(tok, TrExpr(s), elmtBox), Boogie.Expr.Literal(0));
result.tok = tok;
return result;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems like it may be wrong for all calls into Boogie.Expr..... A possibility would be to fix all of them by changing line 172 of $Boogie/Source/Core/AbsyExpr.cs to replace Token.NoToken with e0.tok.

RustanLeino
RustanLeino previously approved these changes Aug 31, 2022
RustanLeino
RustanLeino previously approved these changes Sep 1, 2022
@MikaelMayer MikaelMayer merged commit e9c1507 into master Sep 1, 2022
@MikaelMayer MikaelMayer deleted the fix-2657-missing-position branch September 1, 2022 17:35
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.

Crash when "in multiset" in failing precondition
3 participants