Skip to content
Snippets Groups Projects
Commit 0b38dce4 authored by Emmanouil (Manos) Koukoutos's avatar Emmanouil (Manos) Koukoutos Committed by Etienne Kneuss
Browse files

Remove traces of old "passes"

parent 4694b353
No related branches found
No related tags found
No related merge requests found
...@@ -33,18 +33,6 @@ case object TEGIS extends Rule("TEGIS") { ...@@ -33,18 +33,6 @@ case object TEGIS extends Rule("TEGIS") {
def instantiateOn(sctx: SynthesisContext, p: Problem): Traversable[RuleInstantiation] = { def instantiateOn(sctx: SynthesisContext, p: Problem): Traversable[RuleInstantiation] = {
// check if the formula contains passes:
if (!sctx.program.library.passes.isDefined) {
return Nil;
}
val passes = sctx.program.library.passes.get
val mayHaveTests = exists({
case FunctionInvocation(TypedFunDef(`passes`, _), _) => true
case _ => false
})(p.phi)
List(new RuleInstantiation(p, this, SolutionBuilder.none, this.name, this.priority) { List(new RuleInstantiation(p, this, SolutionBuilder.none, this.name, this.priority) {
def apply(sctx: SynthesisContext): RuleApplication = { def apply(sctx: SynthesisContext): RuleApplication = {
......
...@@ -17,10 +17,6 @@ case class Library(pgm: Program) { ...@@ -17,10 +17,6 @@ case class Library(pgm: Program) {
case fd: FunDef => fd case fd: FunDef => fd
} }
lazy val passes = lookup("leon.lang.passes").collect {
case fd: FunDef => fd
}
lazy val guide = lookup("leon.lang.synthesis.guide") collect { lazy val guide = lookup("leon.lang.synthesis.guide") collect {
case (fd: FunDef) => fd case (fd: FunDef) => fd
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment