(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

f(f(X)) → c
cd
h(X) → c

Q is empty.

(1) DirectTerminationProof (EQUIVALENT transformation)

We use [DIRECT_TERMINATION] with the following order to prove termination.

Knuth-Bendix order [KBO] with precedence:
h1 > f1 > c > d

and weight map:

c=3
d=3
f_1=1
h_1=2

The variable weight is 1

(2) TRUE