(0) Obligation:

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

f(g(i(a, b, b'), c), d) → if(e, f(.(b, c), d'), f(.(b', c), d'))
f(g(h(a, b), c), d) → if(e, f(.(b, g(h(a, b), c)), d), f(c, d'))

Q is empty.