diff options
author | kyessenov <unknown> | 2010-08-18 22:51:43 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-08-18 22:51:43 +0000 |
commit | 6c7015a3d60d2530c5425e6866dfdf9c0dff3a2f (patch) | |
tree | 6c6c0302361d93c797307de1bc0d8a80216558e4 /Chalice/src/PrettyPrinter.scala | |
parent | edce137539765639c3cc914e4e2c5dcf5d6b19d1 (diff) |
Chalice:
* transforms are now callable
* resolve transform specs
* implement translation for refinement blocks (correct for manipulating locals, not globals)
Diffstat (limited to 'Chalice/src/PrettyPrinter.scala')
-rw-r--r-- | Chalice/src/PrettyPrinter.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Chalice/src/PrettyPrinter.scala b/Chalice/src/PrettyPrinter.scala index 631f0963..5c955d01 100644 --- a/Chalice/src/PrettyPrinter.scala +++ b/Chalice/src/PrettyPrinter.scala @@ -26,7 +26,7 @@ object PrintProgram { print("("); VarList(m.ins); print(")")
if (m.outs != Nil) print(" returns ("); VarList(m.outs); print(")")
println
- PrintSpec(m.spec)
+ PrintSpec(m.Spec)
println(" {")
for (s <- m.body) {Spaces(4); Stmt(s, 4)}
println(" }")
@@ -52,7 +52,7 @@ object PrintProgram { print("("); VarList(m.ins); print(")")
if (m.outs != Nil) print(" returns ("); VarList(m.outs); print(")")
println;
- PrintSpec(m.spec);
+ if (m.refines != null) PrintSpec(m.Spec);
println(" {");
if (m.body == null)
println(" // body is not resolved")
|