|
|
|
|
|
by edflsafoiewq
1465 days ago
|
|
> (not always) Doesn't this work: consider the call graph of all possible argument lists (with an edge A->B if f(A) calls f(B)). If the function terminates, there are no cycles, so this is a DAG, which puts a partial order on the set of argument lists which strictly decreases with each call. |
|
It's an easy to understand loop, which can be written as a recursive function of one argument.
Even though the possible arguments are just the natural numbers, nobody knows how to identify a suitable ordering relation which decreases with each call.