code wiki / _hdl_build / nx_probe_exhaust_live.nx

nx_probe_exhaust_live.nx

buildroot/runtime/_hdl_build/nx_probe_exhaust_live.nx

1032 B26 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind probetopic probe
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_probe_exhaust_live.nx

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

main exh_code sys_exit

structs

none

consts

none

functions

13func exh_code(c: i64) -> i64
called by 1: main
22func main(argc: i64, argv: *i64) -> i64