diff options
author | 2012-09-29 14:40:48 +0200 | |
---|---|---|
committer | 2012-09-29 14:40:48 +0200 | |
commit | 32c38cef482249f357a5c05c8d1d2f3fc2a75a90 (patch) | |
tree | 7e70e3ecea13886d051c86f7b461d7e591554485 | |
parent | 9ba34561f8510dc31485c2f31b2cd678edba594a (diff) |
Chalice: Extend the Boogie AST with real literals.
-rw-r--r-- | Chalice/src/main/scala/Boogie.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Chalice/src/main/scala/Boogie.scala b/Chalice/src/main/scala/Boogie.scala index 900ad6d1..f7666ec1 100644 --- a/Chalice/src/main/scala/Boogie.scala +++ b/Chalice/src/main/scala/Boogie.scala @@ -78,6 +78,7 @@ object Boogie { def store(e: Expr, f: Expr, rhs: Expr) = MapUpdate(this, e, Some(f), rhs)
}
case class IntLiteral(n: Int) extends Expr
+ case class RealLiteral(d: Double) extends Expr
case class BoolLiteral(b: Boolean) extends Expr
case class Null() extends Expr
case class VarExpr(id: String) extends Expr {
@@ -252,6 +253,7 @@ object Boogie { }
def PrintExpr(e: Expr, useParens: Boolean): String = e match {
case IntLiteral(n) => n.toString
+ case RealLiteral(d) => d.toString
case BoolLiteral(b) => b.toString
case Null() => "null"
case VarExpr(id) => id
|