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

By block refactoring #5789

Merged
merged 9 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Source/DafnyCore/AST/AstVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ protected virtual void VisitStatement(Statement stmt, VisitorContext context) {
VisitUserProvidedType(local.SyntacticType, context);
}

} else if (stmt is AssignStmt assignStmt) {
} else if (stmt is SingleAssignStmt assignStmt) {
if (assignStmt.Rhs is TypeRhs typeRhs) {
if (typeRhs.EType != null) {
VisitUserProvidedType(typeRhs.EType, context);
Expand Down
2 changes: 1 addition & 1 deletion Source/DafnyCore/AST/Expressions/StmtExpr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Expression GetSConclusion() {
return s.Result;
} else if (S is HideRevealStmt) {
return CreateBoolLiteral(tok, true); // one could use the definition axiom or the referenced labeled assertions, but "true" is conservative and much simpler :)
} else if (S is UpdateStmt) {
} else if (S is AssignStatement) {
return CreateBoolLiteral(tok, true); // one could use the postcondition of the method, suitably instantiated, but "true" is conservative and much simpler :)
} else {
Contract.Assert(false); throw new cce.UnreachableException(); // unexpected statement
Expand Down
Loading