Liste des Groupes | Revenir à theory |
On 7/13/2024 12:25 PM, Richard Damon wrote:So, you think its behavior IS affected by th e inputs it doesn't take?On 7/13/24 12:48 PM, olcott wrote:Stupidly false. Its behavior is not affectedWhat is the correct halt status for an input to>
a simulating termination analyzer that calls its
own termination analyzer?
>
typedef void (*ptr)();
int HHH(ptr P);
>
void DDD()
{
HHH(DDD);
}
>
int main()
{
HHH(DDD);
}
>
Halting.
>
Since HHH defined to be a termination analyzer, by that definition it must return to its caller.
>
Since DDD has no inputs, its behavior isn't affected by any inputs, and thus DDD will halt for ALL input conditions,
by inputs because it has not inputs is the not
stupid way to say it.
Les messages affichés proviennent d'usenet.