diff options
author | kyessenov <unknown> | 2010-07-30 21:29:12 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-07-30 21:29:12 +0000 |
commit | 71d2692bc427232d71707d3b241ee90b6278b06b (patch) | |
tree | 82d88fa94f514d44c48058f426aac36c8db5e9bd /Chalice/src/Resolver.scala | |
parent | 62fdc7d6ae9b6edf8b4031ad0ed4068d23e82000 (diff) |
Chalice:
* add sequence axiom updates from Dafny
* fix a bug in pretty printer for functions and predicates
* add a command line option for not checking termination; refactor options code to update syntax help string
* relax resolver to allow ghost state in assume statements (we don't know how to compile them in general anyways; assume false is still a special case and is compiled into assert false)
Diffstat (limited to 'Chalice/src/Resolver.scala')
-rw-r--r-- | Chalice/src/Resolver.scala | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Chalice/src/Resolver.scala b/Chalice/src/Resolver.scala index 91bc1ede..c14b68c8 100644 --- a/Chalice/src/Resolver.scala +++ b/Chalice/src/Resolver.scala @@ -214,9 +214,8 @@ object Resolver { ResolveExpr(e, context, true, true)(false)
if (!e.typ.IsBool) context.Error(e.pos, "assert statement requires a boolean expression (found " + e.typ.FullName + ")")
case Assume(e) =>
- ResolveExpr(e, context, false, false)(false) // assume expressions remain at run-time, so OLD is not allowed
+ ResolveExpr(e, context, true, true)(false)
if (!e.typ.IsBool) context.Error(e.pos, "assume statement requires a boolean expression (found " + e.typ.FullName + ")")
- CheckNoGhost(e, context)
case BlockStmt(ss) =>
var ctx = context
for (s <- ss) s match {
|