next up previous contents
Next: Failure predicates Up: Predicates in rules Previous: Patterns

   
Equality tests


\begin{verbsyntax}\onerule{EqualityTest}{PatternVarEqualityTest \vert RTGNodeEqu...
...>' \vert '<=' \vert '>=' }
\onerule{EqualOp}{'==' \vert '!=' }
\end{verbsyntax}

On pattern variables or on rule test graph nodes equality tests may be performed. For pattern variables they lead to the generation of equality/inequality functions of the opaque types of the attributes. For rule test graph nodes, in AST-mode pointer equality is used. In CoSy-fSDL-mode DMCP_equal is used.


\begin{examplefoot}SpecialBlocks(b,b1) :-
BlockGraph(b,b1),
b != b1, // test...
... Number <= Number2 // compare attributes Number and Number2
;
\end{examplefoot}



Uwe Assmann
1998-12-22