diff options
author | mueller <unknown> | 2010-06-25 18:40:15 +0000 |
---|---|---|
committer | mueller <unknown> | 2010-06-25 18:40:15 +0000 |
commit | 4aa8fe117b03c0cd3781308d9b2c48d7ca9f4aff (patch) | |
tree | fb62dc0f895e05a65f25f8cd48de5ad9d50899af /Chalice | |
parent | 6da9d946cab8aeb7306de50a7470e3a14c7e2e9c (diff) |
Chalice: Applied patch #6192
Patches the translation of "assert" statements, so that the meaning of "old" is preserved when the temporary copy of the heap is made for the exhale.
Diffstat (limited to 'Chalice')
-rw-r--r-- | Chalice/src/Translator.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Chalice/src/Translator.scala b/Chalice/src/Translator.scala index 72dbf9e4..6b85ed8a 100644 --- a/Chalice/src/Translator.scala +++ b/Chalice/src/Translator.scala @@ -301,7 +301,7 @@ class Translator { val tmpHeap = Boogie.NewBVar(HeapName, theap, true);
val tmpMask = Boogie.NewBVar(MaskName, tmask, true);
val tmpCredits = Boogie.NewBVar(CreditsName, tcredits, true);
- val tmpTranslator = new ExpressionTranslator(List(tmpHeap._1.id, tmpMask._1.id, tmpCredits._1.id), currentClass);
+ val tmpTranslator = new ExpressionTranslator(List(tmpHeap._1.id, tmpMask._1.id, tmpCredits._1.id), List(etran.ChooseEtran(true).Heap, etran.ChooseEtran(true).Mask, etran.ChooseEtran(true).Credits), currentClass);
Comment("assert") ::
// exhale e in a copy of the heap/mask/credits
BLocal(tmpHeap._1) :: (tmpHeap._2 := VarExpr(HeapName)) ::
|