dpop/bpop silently returned '0'/'false' on stack underflow instead of throwing, so isValid() never returned false for underflowing programs. Make dpop and bpop throw an Error on underflow so the transpiler's existing try/catch in isValid() correctly classifies such programs as invalid. The output-extraction phase uses state.dStack.pop() directly (not dpop) and is unaffected. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| inject.sh | ||
| optimizer_seed.push3 | ||
| optimizer_v3.push3 | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||