summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorGravatar Unknown <namin@idea>2013-07-05 15:40:18 -0700
committerGravatar Unknown <namin@idea>2013-07-05 15:40:18 -0700
commit96356a0a0393c3132c00bcea822940f3dcf39fe0 (patch)
tree26e1bf599365202cd6a7967d7e8feb81a1478fc8 /Source
parentb91fe75848478af71214e277ef036fe02f733fde (diff)
No need to remove lit on RHSs now that Boogie's AI knows about Lit.
Diffstat (limited to 'Source')
-rw-r--r--Source/Dafny/Translator.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Dafny/Translator.cs b/Source/Dafny/Translator.cs
index 4b4b6aa3..e0694fa3 100644
--- a/Source/Dafny/Translator.cs
+++ b/Source/Dafny/Translator.cs
@@ -7253,8 +7253,6 @@ namespace Microsoft.Dafny {
TrStmt_CheckWellformed(e.Expr, builder, locals, etran, true);
Bpl.Expr bRhs = etran.TrExpr(e.Expr);
- // TODO(namin): Once Boogie knows about Lit, this is not needed.
- bRhs = RemoveLit(bRhs);
CheckSubrange(tok, bRhs, checkSubrangeType, builder);
bRhs = etran.CondApplyBox(tok, bRhs, e.Expr.Type, lhsType);
@@ -8170,7 +8168,7 @@ namespace Microsoft.Dafny {
Bpl.Type typ;
var lit0 = translator.GetLit(e0);
var lit1 = translator.GetLit(e1);
- // TODO(namin): Once Boogie knows about Lit, we can keep the Lit when not lifting.
+ // TODO(namin): Since Boogie knows about Lit, can we keep the Lit when not lifting?
bool liftLit = lit0 != null && lit1 != null;
if (lit0 != null) {
e0 = lit0;