diff --git a/src/main/scala/leon/repair/Repairman.scala b/src/main/scala/leon/repair/Repairman.scala index 7278c3097093b10ef8b6abd4fcf5a119697e1e5d..818dbb9a788d0e5a25445f1b780a235165d05de2 100644 --- a/src/main/scala/leon/repair/Repairman.scala +++ b/src/main/scala/leon/repair/Repairman.scala @@ -114,8 +114,11 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout val body = fd.body.get; + val (newBody, replacedExpr) = focusRepair(program, fd, passingTests, failingTests) fd.body = Some(newBody) + reporter.info("Original body size: "+formulaSize(body)) + reporter.info("Focused expr size : "+formulaSize(replacedExpr)) val guide = Guide(replacedExpr) @@ -184,13 +187,13 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout val test2Tests : Map[FI, Set[FI]] = testEval.fullCallGraph - println("CALL GRAPH") - for { - ((fi, args), tos) <- test2Tests - (tofi, toArgs) <- tos - }{ - println(s"${fi.id}(${args mkString ", "}) ----> ${tofi.id}(${toArgs mkString ", "})") - } + //println("CALL GRAPH") + //for { + // ((fi, args), tos) <- test2Tests + // (tofi, toArgs) <- tos + //}{ + // println(s"${fi.id}(${args mkString ", "}) ----> ${tofi.id}(${toArgs mkString ", "})") + //} def isFailing(fi : FI) = !testEval.fiStatus(fi) && (fi._1 == fd) val failing = test2Tests filter { case (from, to) =>