• Re: DD emulated by HHH cannot possibly terminate normally --- x86 code

    From olcott@polcott333@gmail.com to comp.theory,comp.lang.c++,comp.lang.c on Sun Mar 2 08:30:08 2025
    From Newsgroup: comp.lang.c++

    On 3/2/2025 3:41 AM, Mikko wrote:
    On 2025-03-01 23:47:30 +0000, olcott said:

    On 3/1/2025 2:22 AM, Mikko wrote:
    On 2025-03-01 00:47:58 +0000, olcott said:

    _DD()
    [00002133] 55         push ebp      ; housekeeping
    [00002134] 8bec       mov ebp,esp   ; housekeeping
    [00002136] 51         push ecx      ; make space for local >>>> [00002137] 6833210000 push 00002133 ; push DD
    [0000213c] e882f4ffff call 000015c3 ; call HHH(DD)
    [00002141] 83c404     add esp,+04
    [00002144] 8945fc     mov [ebp-04],eax
    [00002147] 837dfc00   cmp dword [ebp-04],+00
    [0000214b] 7402       jz 0000214f
    [0000214d] ebfe       jmp 0000214d
    [0000214f] 8b45fc     mov eax,[ebp-04]
    [00002152] 8be5       mov esp,ebp
    [00002154] 5d         pop ebp
    [00002155] c3         ret
    Size in bytes:(0035) [00002155]

    When we hypothesize that the code at machine address
    0000213c is an x86 emulator then we know that DD
    remains stuck in recursive emulation and cannot possibly
    reach its own "ret" instruction and terminate normally.

    The emulator itself is stuck and cannot return normally but it doesn't
    know it cannot return normally. At some point it runs out of memory
    and terminates normally or abnormally.


    Yes you are correct about this sub-step of two steps.

    When we add the additional complexity that HHH also
    aborts this sequence at some point then every level
    of recursive emulation immediately stops. This does
    not enable any DD to ever reach its "ret" instruction.


    When we are answering the question that seems impossible for
    anyone here to pay attention to even when repeated hundreds of times:

    Can the above DD correctly emulated by HHH possibly
    reach its own "ret" instruction and terminate normally?

    Already answered.

    The answer is dead obviously "no" for everyone that is:
    (a) Technically competent
       and
    (b) Not deliberately deceptive.

    Only someone technically incompetent or deliberately deceptive believes that.
    If DD correctly emulated by HHH

    I challenged everyone here to provide the machine address
    by machine address (AKA line by line) execution trace
    of DD correctly emulated by HHH that reaches its own
    "ret" instruction.

    No one made any attempt to do this because they know that
    this would prove that they are stupidly wrong to say that
    my trace is incorrect.
    --
    Copyright 2025 Olcott "Talent hits a target no one else can hit; Genius
    hits a target no one else can see." Arthur Schopenhauer
    --- Synchronet 3.20c-Linux NewsLink 1.2