Skip to content

Commit 21e148e

Browse files
committed
some updates
1 parent a3bd591 commit 21e148e

File tree

2 files changed

+190
-190
lines changed

2 files changed

+190
-190
lines changed

Imp.dfy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Arithmetic and Boolean Expressions
44

55
// Syntax
6-
datatype aexp = ANum(int) | APlus(aexp, aexp) | AMinus(aexp, aexp) | AMult(aexp, aexp);
6+
datatype aexp = ANum(int) | APlus(aexp, aexp) | AMinus(aexp, aexp) | AMult(aexp, aexp)
77

8-
datatype bexp = BTrue | BFalse | BEq(aexp, aexp) | BLe(aexp, aexp) | BNot(bexp) | BAnd(bexp, bexp);
8+
datatype bexp = BTrue | BFalse | BEq(aexp, aexp) | BLe(aexp, aexp) | BNot(bexp) | BAnd(bexp, bexp)
99

1010
// Evaluation
1111
function aeval(e: aexp): int
@@ -30,7 +30,7 @@ function beval(e: bexp): bool
3030

3131
// Optimization
3232
function optimize_0plus(e: aexp): aexp
33-
ensures aeval(optimize_0plus(e)) == aeval(e);
33+
ensures aeval(optimize_0plus(e)) == aeval(e)
3434
{
3535
match e
3636
case ANum(n) => ANum(n)

0 commit comments

Comments
 (0)