diff options
author | rustanleino <unknown> | 2009-08-06 00:46:39 +0000 |
---|---|---|
committer | rustanleino <unknown> | 2009-08-06 00:46:39 +0000 |
commit | 6b92a6945ec518a17865847d0ff6a6c251c72ee9 (patch) | |
tree | dff08f4d273f625982dac9ce7b7a7b4181adc3ea | |
parent | 8f67e20fa593350ad2f46edc64b43d26b0979f0e (diff) |
Fixed bug that used != instead of == in one translation of fresh.
-rw-r--r-- | Source/Dafny/Translator.ssc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Dafny/Translator.ssc b/Source/Dafny/Translator.ssc index c5f85130..0b56372d 100644 --- a/Source/Dafny/Translator.ssc +++ b/Source/Dafny/Translator.ssc @@ -1673,9 +1673,9 @@ namespace Microsoft.Dafny { return new Bpl.ForallExpr(expr.tok, new Bpl.VariableSeq(iVar), body);
} else {
// generate: x == null || !old($Heap)[x]
- Bpl.Expr oNotNull = Bpl.Expr.Neq(TrExpr(e.E), predef.Null);
+ Bpl.Expr oNull = Bpl.Expr.Eq(TrExpr(e.E), predef.Null);
Bpl.Expr oIsFresh = Bpl.Expr.Not(IsAlloced(expr.tok, TrExpr(e.E), oldHeap));
- return Bpl.Expr.Or(oNotNull, oIsFresh);
+ return Bpl.Expr.Or(oNull, oIsFresh);
}
} else if (expr is UnaryExpr) {
|