The rewrite relation of the following TRS is considered.
gcd(x,0) | → | x | (1) |
gcd(0,y) | → | y | (2) |
gcd(s(x),s(y)) | → | if(<(x,y),gcd(s(x),-(y,x)),gcd(-(x,y),s(y))) | (3) |
The TRS is overlay and locally confluent:
10Hence, it suffices to show innermost termination in the following.
gcd#(s(x),s(y)) | → | gcd#(s(x),-(y,x)) | (4) |
gcd#(s(x),s(y)) | → | gcd#(-(x,y),s(y)) | (5) |
The dependency pairs are split into 0 components.