code wiki / _hdl_build / nx_teacher_consult_gate.nx

nx_teacher_consult_gate.nx

buildroot/runtime/_hdl_build/nx_teacher_consult_gate.nx

4022 B80 linesdepth 11pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_consult_gate.nx -- proves CONSULT: ask the capability store by topic, get the right insights. Hermetic /tmp store. Discriminating: T1 topic with 2 matches -> count 2 T2 a more specific topic -> count 1 T3 case-insensitive: an upper-case query matches lower-case rules T4[neg] an absent topic -> count 0 (no fabricated matches) GREEN iff all. Sovereign: imports nx_teacher_consult + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_teacher_consult.nx nx_syscalls.nx nx_teacher_consult_gate.nx

imports: nx_teacher_consult.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main cc_puts sys_write sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ cc_cat cc_catn sys_mmap ↻ cc_mkdir sys_mkdir cc_join cc_cat ↻ cc_seed ncfg_begin ss_begin ss_begin_cap sys_mmap ↻ cc_row sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ncfg_key ss_add ss_add2 ss_w32 ss_len ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻

structs

none

consts

none

functions

11func cc_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: cc_assertmain calls 1: sys_write
12func cc_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
21func cc_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != 0 as u8 { dst[off + i] = s[i]; i = i + 1 } return off + i }
called by 2: cc_joinmain
22func cc_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
30func cc_join(out: *u8, a: *u8, b: *u8) -> i64 { var o: i64 = cc_cat(out, 0, a); o = cc_cat(out, o, b); out[o] = 0 as u8; return o }
called by 1: main calls 1: cc_cat
31func cc_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) }
called by 1: main calls 1: sys_mkdir
32func cc_assert(label: *u8, cond: i64) -> i64
called by 1: main calls 1: cc_puts
36func cc_row(w: *i64, idx: i64, id: *u8, rule: *u8) -> i64
called by 1: cc_seed calls 2: sys_mmapncfg_add_row
43func cc_seed(cap: *u8) -> i64
52func main() -> i64