code wiki / (root) / nx_survey_gate.nx

nx_survey_gate.nx

buildroot/runtime/nx_survey_gate.nx

4725 B95 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic survey
docsdependenciesstructsconstsfunctions

about

nx_survey_gate.nx -- R0 GATE: proves the survey engine captures a response as a content-addressed record, round-trips numeric + flag answers, and derives a data-driven TRIAGE score + band that distinguishes a CRISIS profile from a STABLE one (so the system routes the person to the right help). Hermetic /tmp prefix. Exits 0 iff ALL pass. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_survey.nx nx_survey_gate.nx

imports: nx_syscalls.nxnx_survey.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_us sys_mmap ↻ sys_clock_gettime_mono seti chk g_puts sys_write g_putn sys_write ↻ sys_mmap ↻ sv_record sys_mmap ↻ sv_itoa sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap cid_of sys_mmap ↻ sha256_digest sys_mmap ↻ sha256_init sys_mmap ↻ sha256_k sha256_update sha256_compress_ni_blocks blk_set_byte sha256_compress sha256_compress_ni blk_word sha256_final blk_set_byte ↻ sha256_compress ↻ cid_from_digest sys_munmap ↻

structs

none

consts

none

functions

8func 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: chkmain calls 1: sys_write
9func g_putn(v: i64) -> i64
called by 2: chkmain calls 2: sys_writesys_mmap
18func chk(name: *u8, got: i64, want: i64, st: *i64) -> i64
called by 1: main calls 2: g_putsg_putn
23func seti(a: *i64, i: i64, v: i64) -> i64 { a[i] = v; return 0 }
called by 1: main
25func main() -> i64