Skip to content
Snippets Groups Projects
Commit bf159267 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by Etienne Kneuss
Browse files

Make terminating per phase optional

parent a330dede
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ abstract class Pipeline[-F, +T] {
def andThen[G](thenn: Pipeline[T, G]): Pipeline[F, G] = new Pipeline[F,G] {
def run(ctx : LeonContext)(v : F) : G = {
val s = self.run(ctx)(v)
ctx.reporter.terminateIfError()
if(ctx.settings.terminateAfterEachPhase) ctx.reporter.terminateIfError()
thenn.run(ctx)(s)
}
}
......
......@@ -6,6 +6,7 @@ import utils.DebugSection
case class Settings(
val strictCompilation: Boolean = true, // Terminates Leon in case an error occured during extraction
val terminateAfterEachPhase: Boolean = true, // Terminates Leon after each phase if an error occured
val debugSections: Set[DebugSection] = Set(), // Enables debug message for the following sections
val termination: Boolean = false,
val repair: Boolean = false,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment