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

Use API better

parent e84df478
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ class ExamplesFinder(ctx0: LeonContext, program: Program) {
def isValidTest(e: Example): Boolean = {
e match {
case InOutExample(ins, outs) =>
evaluator.eval(Equals(outs.head, FunctionInvocation(fd.typed(fd.tparams.map(_.tp)), ins))) match {
evaluator.eval(Equals(outs.head, FunctionInvocation(fd.typed, ins))) match {
case EvaluationResults.Successful(BooleanLiteral(true)) => true
case _ => false
}
......
......@@ -596,7 +596,7 @@ abstract class CEGISLike[T <: Typed](name: String) extends Rule(name) {
def solveForTentativeProgram(): Option[Option[Set[Identifier]]] = {
val solverf = SolverFactory.getFromSettings(hctx, programCTree).withTimeout(exSolverTo)
val solver = solverf.getNewSolver()
val cnstr = FunctionInvocation(phiFd.typed, phiFd.params.map(_.id.toVariable))
val cnstr = phiFd.applied
//println("Program: ")
//println("-"*80)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment