-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Visit let-expression components consistently
Previously, the Rhss and Body are a let expression where visited in different orders in different parts of Boogie. They are now visited consistently, always Rhss before Body. Fixes #192
- Loading branch information
1 parent
124d1ce
commit fd500e1
Showing
5 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// RUN: %boogie "%s" > "%t" | ||
// RUN: %diff "%s.expect" "%t" | ||
|
||
type AAA; | ||
type BBB; | ||
type CCC; | ||
|
||
function Apple(AAA, BBB): CCC; | ||
function Banana(int): BBB; | ||
|
||
procedure Proc() | ||
{ | ||
var m: [AAA]CCC; | ||
m := | ||
// Once upon a time, the lambda lifting for the following body switched | ||
// the roles of 15 and Banana(700), by traversing the components of let | ||
// expressions in a different order when figuring out holes from when | ||
// replacing the holes with new bound variables of the lambda lifting. | ||
(lambda aaa: AAA :: | ||
(var g := 15; | ||
Apple(aaa, Banana(700)) | ||
) | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Boogie program verifier finished with 1 verified, 0 errors |