def code
import ezx@1.11.0.0/src/ez/start.bend as Startimport Base
92# the status `ez run` exits with, given the status of the program it started
93# (EZ-OUT-1): 1 for a refusal, which started none, and the program's own
94# status otherwise, as `cargo run` exits. `ez check` and `ez build` end on
95# what bend printed instead (`ez/ends.bend`).
96def code(start: Start, program: U32) -> U32:
97 match start:
98 case Refused{_why}:
99 1
100 case Starts{_line}:
101 program