diff options
author | kyessenov <unknown> | 2010-09-02 20:01:33 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-09-02 20:01:33 +0000 |
commit | 53809d5c20d63d869aed67e28d16d2206178cd0d (patch) | |
tree | 3e3f46b73a00499d365f432ab8c74c0839ee797d /Chalice/src/Resolver.scala | |
parent | 0bb41c59da2d5fdfa517fd2bff4a503fa6dda04b (diff) |
Chalice: fix in refinement loop target resolution; added "spec" as a keyword synonym to "var"
Diffstat (limited to 'Chalice/src/Resolver.scala')
-rw-r--r-- | Chalice/src/Resolver.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Chalice/src/Resolver.scala b/Chalice/src/Resolver.scala index 2729a0d5..7ccfe7e3 100644 --- a/Chalice/src/Resolver.scala +++ b/Chalice/src/Resolver.scala @@ -1109,6 +1109,7 @@ object Resolver { if (!inv.typ.IsBool) ctx.Error(inv.pos, "loop invariant must be boolean (found " + inv.typ.FullName + ")")
}
resolveBody(body.ss, ctx, locals)
+ w.LoopTargets = body.Targets.filter(ctx.IsVariablePresent).toList
case IfStmt(_, thn, None) =>
resolveBody(thn.ss, ctx, locals)
case IfStmt(_, thn, Some(els)) =>
|