Decidability & Computability


Answer & solution
Answer: If the simulation halts, output 1 and halt; otherwise continue simulating forever. (no official key was published)
After the simulation of M′ on x terminates, discard its result, output 1, and halt. The branch is triggered by any halting outcome of M′, not only acceptance or output 1. If M′ fails to halt, M never reaches this branch on any input w.