code wiki / _hdl_build / nx_ctrl_same.nx

nx_ctrl_same.nx

buildroot/runtime/_hdl_build/nx_ctrl_same.nx

6742 B120 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_procchurn_gate.nx -- proves the four pure predicates of nx_procchurn_lib, BOTH POLARITIES. Non-vacuity discipline (seq395 / the quality ruler): every policy cell is a gv_bite -- it must FIRE on the crafted-bad input AND stay SILENT on the crafted-good one. A cell that is green before the defect exists proves nothing. The value cells are pinned to the ACTUAL 2026-07-30 field measurement so the gate would have caught the live fork-storm, not merely compiled. license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_procchurn_lib.nx nx_gate_verdict.nx nx_ctrl_same.nx

imports: nx_procchurn_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 pc_rate gv_bite gv_puts ↻ pc_ratio_permil pc_verdict pg_cpy pc_line_ints rm_slen pc_frame pc_cat pc_catn sys_munmap pc_catn ↻ 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

structs

none

consts

11const PG_BUF: i64 = 2048
12const PG_OUT_BYTES: i64 = 256
14const PG_FIELD_FORKS: i64 = 9164
15const PG_FIELD_MS: i64 = 117000
16const PG_FIELD_FORKS_PS: i64 = 78
17const PG_FIELD_SYS_J: i64 = 21639
18const PG_FIELD_USR_J: i64 = 9163
19const PG_FIELD_RATIO: i64 = 2361
20const PG_FIELD_CTXSW_PS: i64 = 91718
22const PG_F_AMBER: i64 = 20
23const PG_F_RED: i64 = 50
24const PG_R_AMBER: i64 = 1000
25const PG_R_RED: i64 = 1500
26const PG_C_AMBER: i64 = 20000
27const PG_C_RED: i64 = 50000

functions

29func pg_cpy(d: *u8, s: *u8) -> i64
called by 1: main
35func pg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
37func main() -> i64