Skip to content
Snippets Groups Projects
Commit 85dd5531 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Add toString to Trees using LeonContext that prints full names

parent 849de6aa
No related branches found
No related tags found
No related merge requests found
...@@ -33,4 +33,10 @@ object LeonContext { ...@@ -33,4 +33,10 @@ object LeonContext {
val reporter = new DefaultReporter(Set()) val reporter = new DefaultReporter(Set())
LeonContext(reporter, new InterruptManager(reporter)) LeonContext(reporter, new InterruptManager(reporter))
} }
def printNames = {
empty.copy(options =
Seq(LeonOption[Set[DebugSection]](SharedOptions.optDebug)(Set(DebugSectionTrees)))
)
}
} }
...@@ -26,6 +26,8 @@ object Common { ...@@ -26,6 +26,8 @@ object Common {
def asString(pgm: Program)(implicit ctx: LeonContext): String = { def asString(pgm: Program)(implicit ctx: LeonContext): String = {
ScalaPrinter(this, ctx, pgm) ScalaPrinter(this, ctx, pgm)
} }
override def toString = asString(LeonContext.printNames)
} }
/** Represents a unique symbol in Leon. /** Represents a unique symbol in Leon.
......
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