(0) Obligation:

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

gcd(x, 0) → x
gcd(0, y) → y
gcd(s(x), s(y)) → if(<(x, y), gcd(s(x), -(y, x)), gcd(-(x, y), s(y)))

Q is empty.