- Added some useful macros to term.h to address subparts (e.g.

TermOp1(t)). Renamed all uses.
This commit is contained in:
ccremers
2004-11-16 12:06:36 +00:00
parent 343314896b
commit a38925c9c2
15 changed files with 235 additions and 225 deletions

View File

@@ -177,7 +177,7 @@ goal_graph_create ()
Term t;
t = tl->term;
if (t->type == VARIABLE && t->right.runid == run
if (t->type == VARIABLE && TermRunid(t) == run
&& t->subst != NULL)
{
// t is a variable of run
@@ -190,7 +190,7 @@ goal_graph_create ()
t2 = tl2->term;
if (realTermLeaf (t2) && t2->type != VARIABLE
&& t2->right.runid == run2)
&& TermRunid(t2) == run2)
{
// t2 is a constant of run2
if (isTermEqual (t, t2))