code wiki / _hdl_build / composedry_probe_gate.nx

composedry_probe_gate.nx

buildroot/runtime/_hdl_build/composedry_probe_gate.nx

1706 B31 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

AUTHORED BY nx_compose_builder (X-AUTH-EXT-001 composition shape) from a DATA spec. Fail-fast pipeline sequencer: run stages in order; 0 if all exit 0, else 1-based index of the first failure (the abort/rollback point). KAT computed from the step count. DRY (2026-07-25, D001 / law L009+L010): verdict emission INHERITS nx_gate_verdict. This generator used to stamp its own _p/_pn print helpers and a hand-rolled verdict line into every organ it authored, so each generated gate landed as a FRESH L009 custom-verdict breach AND a fresh L010 helperdup breach -- which is why both laws were RISING while hand-migration ate the backlog. Generated gates are now base-class adopters BY CONSTRUCTION; the generator cannot emit a non-DRY gate.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_gate_verdict.nx composedry_probe_gate.nx

imports: nx_syscalls.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_mmap ↻ composedry_probe_gate_run gv_check gv_puts ↻ gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real gv_cat sys_write ↻ sys_close sys_munmap ↻ sys_exit

structs

none

consts

none

functions

12func composedry_probe_gate_run(codes: *i64, n: i64) -> i64 { var i: i64 = 0; while i < n { if codes[i] != 0 { return i + 1 } i = i + 1 } return 0 }
called by 1: main
13func main() -> i64