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

Add sizes, hide callgraph

parent b88fa3bc
Branches
Tags
No related merge requests found
...@@ -114,8 +114,11 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout ...@@ -114,8 +114,11 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout
val body = fd.body.get; val body = fd.body.get;
val (newBody, replacedExpr) = focusRepair(program, fd, passingTests, failingTests) val (newBody, replacedExpr) = focusRepair(program, fd, passingTests, failingTests)
fd.body = Some(newBody) fd.body = Some(newBody)
reporter.info("Original body size: "+formulaSize(body))
reporter.info("Focused expr size : "+formulaSize(replacedExpr))
val guide = Guide(replacedExpr) val guide = Guide(replacedExpr)
...@@ -184,13 +187,13 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout ...@@ -184,13 +187,13 @@ class Repairman(ctx: LeonContext, initProgram: Program, fd: FunDef, verifTimeout
val test2Tests : Map[FI, Set[FI]] = testEval.fullCallGraph val test2Tests : Map[FI, Set[FI]] = testEval.fullCallGraph
println("CALL GRAPH") //println("CALL GRAPH")
for { //for {
((fi, args), tos) <- test2Tests // ((fi, args), tos) <- test2Tests
(tofi, toArgs) <- tos // (tofi, toArgs) <- tos
}{ //}{
println(s"${fi.id}(${args mkString ", "}) ----> ${tofi.id}(${toArgs mkString ", "})") // println(s"${fi.id}(${args mkString ", "}) ----> ${tofi.id}(${toArgs mkString ", "})")
} //}
def isFailing(fi : FI) = !testEval.fiStatus(fi) && (fi._1 == fd) def isFailing(fi : FI) = !testEval.fiStatus(fi) && (fi._1 == fd)
val failing = test2Tests filter { case (from, to) => val failing = test2Tests filter { case (from, to) =>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment