code wiki / _hdl_build / nx_ctxtop_gate.nx

nx_ctxtop_gate.nx

buildroot/runtime/_hdl_build/nx_ctxtop_gate.nx

5902 B112 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_ctxtop_gate.nx -- the gate nx_ctxtop and nx_memvel SHIPPED WITHOUT. Closing my own gap. Both organs went live on the strength of 'it compiled and printed plausible numbers' -- which is exactly the vacuous-green class this ecosystem bans. Their shared core (top-k, pid join, share, and the new admission check) is pure and was never proven. T5/T6 are the load-bearing cells: a top-k that evicts the WRONG entry silently truncates the biggest producer, and that is the silent-truncation defect (L011) hiding inside a tool built to FIND producers. license_tier: ORIGINAL expect_exit: 0 No hw writes (Rule 26).

dependencies 2 imports · 0 importers

nx_ctxtop_lib.nx nx_gate_verdict.nx nx_ctxtop_gate.nx

imports: nx_ctxtop_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 ↻ cg_eq ct_find gv_bite gv_puts ↻ ct_topk_insert ct_share_permil cg_cpy ct_load_centi ct_admit 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

12const CG_ARR: i64 = 256
13const CG_BUF: i64 = 128
14const CG_K: i64 = 3
15const CG_MAXLOAD: i64 = 800

functions

17func cg_eq(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 }
called by 1: main
18func cg_cpy(d: *u8, s: *u8) -> i64
called by 1: main
25func main() -> i64