Skip to content
Snippets Groups Projects
Commit 9ff61214 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

tant pis

parent 745671b8
No related branches found
No related tags found
No related merge requests found
...@@ -117,9 +117,6 @@ object Main { ...@@ -117,9 +117,6 @@ object Main {
LeonContext(settings = settings, reporter = reporter, files = files, options = leonOptions) LeonContext(settings = settings, reporter = reporter, files = files, options = leonOptions)
} }
// not sure we actually want this, but it is sexy
implicit def unitToNoopPhase[T](u: Unit): NoopPhase[T] = NoopPhase[T]()
def computePipeline(settings: Settings): Pipeline[List[String], Any] = { def computePipeline(settings: Settings): Pipeline[List[String], Any] = {
import purescala.Definitions.Program import purescala.Definitions.Program
...@@ -131,16 +128,22 @@ object Main { ...@@ -131,16 +128,22 @@ object Main {
EpsilonElimination andThen EpsilonElimination andThen
ImperativeCodeElimination andThen ImperativeCodeElimination andThen
FunctionClosure FunctionClosure
} else {
NoopPhase()
} }
val pipeSynthesis: Pipeline[Program, Program]= val pipeSynthesis: Pipeline[Program, Program]=
if (settings.synthesis) { if (settings.synthesis) {
synthesis.SynthesisPhase synthesis.SynthesisPhase
} else {
NoopPhase()
} }
val pipeVerify: Pipeline[Program, Any] = val pipeVerify: Pipeline[Program, Any] =
if (settings.verify) { if (settings.verify) {
verification.AnalysisPhase verification.AnalysisPhase
} else {
NoopPhase()
} }
pipeBegin andThen pipeBegin andThen
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment