use of suite.instructionexecutor.InstructionExecutor in project suite by stupidsing.
the class CompiledProverBuilder method build.
@Override
public Fun<Node, Finder> build(RuleSet ruleSet) {
Node rules = Suite.getRules(ruleSet);
return goal -> {
Node code = compile(Suite.substitute(".0 >> .1", rules, goal));
return (source, sink) -> {
ProverConfig proverConfig1 = new ProverConfig(ruleSet, proverConfig);
proverConfig1.setSource(source);
proverConfig1.setSink(sink);
try (InstructionExecutor executor = new LogicInstructionExecutor(code, proverConfig1)) {
executor.execute();
}
};
};
}
Aggregations