code wiki / _hdl_build / nx_poolwidth_gate.nx

nx_poolwidth_gate.nx

buildroot/runtime/_hdl_build/nx_poolwidth_gate.nx

6041 B93 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_poolwidth_gate.nx -- proves the width governor on the REAL measured numbers (seq1402). T2 is the whole point: it quantifies the live defect. Today's policy gives every instance MAXP=32, and nx_procchurn measured ~9 concurrent instances => an aggregate of 288 concurrent slots against a 32-slot budget, and pw_within_budget says 0. The governed policy yields 3 each = 27, within budget. license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_poolwidth_lib.nx nx_gate_verdict.nx nx_poolwidth_gate.nx

imports: nx_poolwidth_lib.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 gv_check gv_puts ↻ pg_eq pw_width pw_aggregate gv_bite gv_puts ↻ pw_within_budget pw_aggregate ↻ nx_hw_cpu_count sys_mmap ↻ sys_munmap cg_ge pw_budget_from_hw nx_hw_cpu_count ↻ 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 ↻

structs

none

consts

11const PG_BUDGET: i64 = 32
12const PG_INSTANCES: i64 = 9
13const PG_TODAY_MAXP: i64 = 32
14const PG_TODAY_AGG: i64 = 288
15const PG_LOAD_QUIET: i64 = 400
16const PG_LOAD_MEASURED: i64 = 1172
17const PG_LOAD_2X: i64 = 1600
18const PG_CEILING: i64 = 800
19const PG_WMIN: i64 = 2
20const PG_WMAX: i64 = 32

functions

22func pg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
23func cg_ge(a: i64, b: i64) -> i64 { if a >= b { return 1 } return 0 }
called by 1: main
25func main() -> i64