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

If the test has outputs, use it to filter as well

parent 41a143ae
Branches
Tags
No related merge requests found
...@@ -408,9 +408,16 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) { ...@@ -408,9 +408,16 @@ abstract class CEGISLike[T <% Typed](name: String) extends Rule(name) {
// TODO: Test output value as well // TODO: Test output value as well
val envMap = bs.map(b => b -> BooleanLiteral(bValues(b))).toMap val envMap = bs.map(b => b -> BooleanLiteral(bValues(b))).toMap
val fi = FunctionInvocation(phiFd.typed, ex.ins) ex match {
case InExample(ins) =>
evaluator.eval(fi, envMap) val fi = FunctionInvocation(phiFd.typed, ins)
evaluator.eval(fi, envMap)
case InOutExample(ins, outs) =>
val fi = FunctionInvocation(cTreeFd.typed, ins)
val eq = equality(fi, tupleWrap(outs))
evaluator.eval(eq, envMap)
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment