1
0
forked from GitHub/gf-core

merge the states for reasoning and evaluation into a single structure

This commit is contained in:
krasimir
2015-07-03 11:53:52 +00:00
parent 1c2b6702d7
commit b3680b6025
14 changed files with 301 additions and 303 deletions

View File

@@ -1,10 +1,10 @@
#include "data.h"
#include "evaluator.h"
#include "reasoner.h"
#include "hopu.h"
void pgf_pattern_unify(PgfEvalState* state, PgfClosure* c1, PgfClosure* c2)
void pgf_pattern_unify(PgfReasoner* rs, PgfClosure* c1, PgfClosure* c2)
{
c1 = state->eval_gates->enter(state, c1);
c2 = state->eval_gates->enter(state, c2);
c1 = rs->eval_gates->enter(rs, c1);
c2 = rs->eval_gates->enter(rs, c2);
}