code wiki / _hdl_build / nx_probe_exhaust_live.nx
nx_probe_exhaust_live.nx
buildroot/runtime/_hdl_build/nx_probe_exhaust_live.nx
about
nx_probe_exhaust_live.nx -- PROBE (2026-08-05): does nx_cc check MATCH EXHAUSTIVENESS?
Three-variant enum, ALL arms present = the valid form. Elm/Rust/Swift refuse this; if this target
BUILDS, the check is absent and that is the next enforcement rung (climb v6 rung 1).
REPRO A (non-exhaustive): delete the Blue arm -> nx_parse: line N: non-exhaustive match on enum\n// ExhColor: 2 of 3 variants handled -- add an arm for: Blue\n// REPRO B (unreachable): duplicate the Red arm -> nx_parse: line N: unreachable match arm ExhColor::Red\n// -- already handled by an earlier arm of the match at line M\n// license_tier: ORIGINAL expect_exit: 0
dependencies 1 imports · 0 importers
imports: nx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 13 | func exh_code(c: i64) -> i64 called by 1: main |
| 22 | func main(argc: i64, argv: *i64) -> i64 |