YES
The TRS could be proven terminating. The proof took 58 ms.
Problem 1 was processed with processor DependencyGraph (3ms).
gcd#(s(x), s(y)) | → | gcd#(s(x), -(y, x)) | gcd#(s(x), s(y)) | → | gcd#(-(x, y), s(y)) |
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))) |
Termination of terms over the following signature is verified: 0, s, if, gcd, <, -