scyther/src/mgu.h

23 lines
607 B
C
Raw Normal View History

2004-04-23 11:58:43 +01:00
#ifndef MGU
#define MGU
#include "term.h"
#include "termlist.h"
#include "substitution.h"
2004-04-23 11:58:43 +01:00
2004-05-15 17:43:20 +01:00
//! A special constant do denote failure.
/**
* \c NULL already denotes equality, so an extra signal is needed to
* denote that a unification fails.
* \todo Find a portable solution for this \c MGUFAIL constant:
* maybe a pointer to some special constant.
*/
2004-04-23 11:58:43 +01:00
#define MGUFAIL (Termlist) -1
Termlist termMguTerm (Term t1, Term t2);
void termMguInTerm (Term t1, Term t2, void (*iterator) ());
void termMguSubTerm (Term t1, Term t2, void (*iterator) (),
const Termlist inverses, Termlist keylist);
2004-04-23 11:58:43 +01:00
#endif