Skip to content
Snippets Groups Projects
Commit 32bdcd0a authored by Regis Blanc's avatar Regis Blanc
Browse files

Print program after xlang transformation in debug

parent dd789a3f
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ package xlang
import leon.purescala.Definitions._
import leon.verification._
import leon.utils._
object XLangAnalysisPhase extends LeonPhase[Program, VerificationReport] {
val name = "xlang analysis"
......@@ -23,6 +25,11 @@ object XLangAnalysisPhase extends LeonPhase[Program, VerificationReport] {
val (pgm1, wasLoop) = ImperativeCodeElimination.run(ctx)(pgm)
val pgm2 = purescala.FunctionClosure.run(ctx)(pgm1)
if (ctx.reporter.isDebugEnabled(DebugSectionTrees)) {
PrintTreePhase("Program after xlang transformations").run(ctx)(pgm2)
}
def functionWasLoop(fd: FunDef): Boolean = fd.orig match {
case Some(nested) => // could have been a LetDef originally
wasLoop.contains(nested)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment