Skip to content

Commit

Permalink
Add test for multiple let bindings
Browse files Browse the repository at this point in the history
Also bump version of lean and lean-auto
  • Loading branch information
atomb committed Nov 13, 2024
1 parent c8cf4e0 commit 8629183
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Test/lean-auto/lakefile.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package «test» {
}

require auto from git
"https://github.com/leanprover-community/lean-auto"@"0831a6eff8cbb456e90c616bd2f4db51aefea3d0"
"https://github.com/leanprover-community/lean-auto"@"60e546ca7a9d40d508e58847a9d0630406835178"

@[default_target]
lean_lib «ToBuild» {
Expand Down
2 changes: 1 addition & 1 deletion Test/lean-auto/lean-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
leanprover/lean4:v4.9.0
leanprover/lean4:v4.11.0
9 changes: 9 additions & 0 deletions Test/lean-auto/multi-let.bpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
procedure P(x: int, y: int) {
var z: int;
var w: int;

z := (var a, b := x+1, y+1; a);
w := (var a, b := x+1, y+1; b);
assert (z - 1) == x;
assert (w - 1) == y;
}

0 comments on commit 8629183

Please sign in to comment.