Compares two terms using the standard order of terms and returns -1, 0
or 1. See also compare/3.
If the terms are cyclic terms that have no order (see section
4.6.1) and the Prolog flag
incomparable is error,
it raises an exception and returns -2. -2 is also returned if the
comparison raises a resource error. Code that tests the result using < 0
must first test for -2.