Cyclic terms unification `X=f(f(X), X), Y=f(Y, f(Y)), X = Y. `

Did you mean this ?

?- icl_compare(C, X, 1).
%@ C = (<).