Skip to content
Snippets Groups Projects
Commit be0b137e authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Move more tests to smt-z3

parent 40147b8f
No related branches found
No related tags found
No related merge requests found
......@@ -2,12 +2,10 @@
package leon.regression.repair
import leon._
import leon.test._
import leon.utils._
import leon.frontends.scalac.ExtractionPhase
import leon.repair._
import leon.verification.VerificationPhase
class RepairSuite extends LeonRegressionSuite {
val pipeline = ExtractionPhase andThen
......@@ -31,23 +29,12 @@ class RepairSuite extends LeonRegressionSuite {
val path = file.getAbsoluteFile.toString
val name = file.getName
val reporter = new TestSilentReporter
//val reporter = new DefaultReporter(Set(utils.DebugSectionRepair))
val ctx = new LeonContext(
reporter = reporter,
interruptManager = new InterruptManager(reporter),
options = Seq(
LeonOption(GlobalOptions.optFunctions)(Seq(fileToFun(name))),
LeonOption(VerificationPhase.optParallelVCs)(true),
LeonOption(GlobalOptions.optTimeout)(180L)
)
)
val ctx = createLeonContext("--parallel", "--timeout=180", "--solvers=smt-z3")
test(name) {
pipeline.run(ctx, List(path))
if(reporter.errorCount > 0) {
fail("Errors during repair:\n"+reporter.lastErrors.mkString("\n"))
if(ctx.reporter.errorCount > 0) {
fail("Errors during repair:\n"+ctx.reporter.asInstanceOf[TestSilentReporter].lastErrors.mkString("\n"))
}
}
}
......
......@@ -20,7 +20,7 @@ class SynthesisRegressionSuite extends LeonRegressionSuite {
}
private def testSynthesis(cat: String, f: File, bound: Int) {
val ctx = createLeonContext("--synthesis")
val ctx = createLeonContext("--synthesis", "--solvers=smt-z3")
val pipeline = leon.frontends.scalac.ExtractionPhase andThen new leon.utils.PreprocessingPhase
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment