Sujet : Re: How do simulating termination analyzers work?
De : mikko.levanto (at) *nospam* iki.fi (Mikko)
Groupes : comp.theoryDate : 19. Jun 2025, 07:50:17
Autres entêtes
Organisation : -
Message-ID : <1030bv9$3o07f$1@dont-email.me>
References : 1
User-Agent : Unison/2.2
On 2025-06-17 20:34:11 +0000, olcott said:
void Infinite_Recursion()
{
Infinite_Recursion();
return;
}
void Infinite_Loop()
{
HERE: goto HERE;
return;
}
void DDD()
{
HHH(DDD);
return;
}
Considering the scope of termination analysis the above examples are
extremely simple. The first two are easily seen as non-terminating.
The third example is incomplete as HHH is not given. Most C
implementations don't even start its execution.
Much of both usefulness and difficulty of termination analysis follows
from termination analyzers ignorance of the input to the program to
be analyzed. The above exmples take no input, except perhaps the last
one where HHH might read some, which significantly simplifies their
analysis.
-- Mikko