exhaustively enumerating all inputs (and thus, outputs) to a program does, without infinite time or memory, turn it into an automaton.
you could then, since having gone over EVERY INPUT...conclude Yes or No, that it Does or Doesn't, HALT.
wtf am i missing