diff options
author | kyessenov <unknown> | 2010-08-18 01:29:56 +0000 |
---|---|---|
committer | kyessenov <unknown> | 2010-08-18 01:29:56 +0000 |
commit | d18047dba3ca0d3c60c28e657aee6636bd659163 (patch) | |
tree | 478fbb4c37d6bd73b73eb4996a56fbebc810da9b /Chalice/src/Chalice.scala | |
parent | ce2156e0b37f2efdb2e17aa1998c1c6a71adf062 (diff) |
Chalice:
* print type checked program (use -print -noTypecheck if you want old behavior)
* refactored program context in Resolver ('errors' is kept as a ListBuffer and shared)
* added resolver for refinement blocks (no loops yet)
* pretty printer should work now for transforms
Diffstat (limited to 'Chalice/src/Chalice.scala')
-rw-r--r-- | Chalice/src/Chalice.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Chalice/src/Chalice.scala b/Chalice/src/Chalice.scala index 3f2a7e43..0ced872e 100644 --- a/Chalice/src/Chalice.scala +++ b/Chalice/src/Chalice.scala @@ -116,6 +116,10 @@ object Chalice { if (!vsMode) Console.err.println("The program did not typecheck.");
msgs foreach { msg => ReportError(msg._1, msg._2) }
case Resolver.Success() =>
+ if (printProgram) {
+ Console.out.println("Program after type checking: ");
+ PrintProgram.P(program)
+ }
if (doTranslate) {
// checking if Boogie.exe exists
val boogieFile = new File(boogiePath);
|