code wiki / _hdl_build / nx_ledger_min.nx

nx_ledger_min.nx

buildroot/runtime/_hdl_build/nx_ledger_min.nx

2587 B78 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic ledger
docsdependenciesstructsconstsfunctions

about

nx_ledger_min.nx -- lane gate: require >= min property-verified greens in an autofix ledger. argv: <ledger> <min> (min = lane config DATA, never a baked threshold -- rule 11) Counts "maker=GREEN" rows; prints NX-LEDGER-MIN green=<n> min=<m> verdict=GREEN|RED. exit 0 iff n >= m. Used as the gateelf of the S2 live autofix lane (nx_seat_drive). license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 3 imports · 0 importers

nx_deploy_lib.nx nx_itoa_lib.nx nx_syscalls.nx nx_ledger_min.nx

imports: nx_deploy_lib.nxnx_itoa_lib.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main lm_w sys_write sys_exit lm_atoi sys_mmap dp_read sys_openat_rd sys_read sys_close lm_count lm_wn nxi_out nxi_fd sys_mmap ↻ ccz_cat_num sys_write ↻ sys_munmap

structs

none

consts

10const LM_CAP: i64 = 1048576

functions

12func lm_w(s: *u8) -> i64
called by 1: main calls 1: sys_write
23func lm_wn(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
25func lm_atoi(s: *u8) -> i64
called by 1: main
37func lm_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
58func main(argc: i64, argv: *i64) -> i64