code wiki / (root) / nx_crashresume_census_gate.nx

nx_crashresume_census_gate.nx

buildroot/runtime/nx_crashresume_census_gate.nx

5702 B130 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_crashresume_census_gate.nx -- liar-killed GATE for the crash-resume census core (CR-R0). Proves the cells DISCRIMINATE and never fabricate: fresh evidence -> GREEN, stale -> RED, missing -> UNKNOWN (not GREEN, not RED-from-nothing), garbage tolerated, thresholds are PARAMETERS (neg-control: same stale fixture flips GREEN under a huge window -- no hardcoded verdicts), mtime cells driven by forged deterministic mtimes (sys_utimensat), dir walk honors the extension filter. Fixtures live under /tmp (ext4, wiped-safe: everything recreated per run). Exit 0 only on 9/9. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_crashresume_census_core.nx nx_crashresume_census_gate.nx

imports: nx_syscalls.nxnx_crashresume_census_core.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real sys_mkdir ccz_cat_str ccz_cat_num g_write sys_openat_wr sys_write ccz_slen sys_close ccz_read sys_openat_rd sys_read sys_close ↻ ccz_max_epoch sys_mmap ↻ ccz_num_at sys_munmap g_check g_puts sys_write ↻ g_putn sys_mmap ↻ ccz_cat_num ↻ sys_write ↻ ccz_stale_verdict g_touch sys_mmap ↻ sys_utimensat ccz_mtime sys_mmap ↻ sys_fstatat sys_munmap ↻ ccz_lag_verdict ccz_newest_mtime_ext sys_openat_rd ↻ sys_mmap ↻

structs

none

consts

none

functions

11func g_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: g_checkmain calls 1: sys_write
13func g_putn(v: i64) -> i64
20func g_write(path: *u8, s: *u8) -> i64
29func g_touch(path: *u8, e: i64) -> i64
called by 1: main calls 2: sys_mmapsys_utimensat
38func g_check(name: *u8, got: i64, want: i64, passp: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
49func main(argc: i64, argv: *i64) -> i64