code wiki / _hdl_build / nx_teacher_consult_gate.nx

nx_teacher_consult_gate.nx

buildroot/runtime/_hdl_build/nx_teacher_consult_gate.nx

4483 B88 linesdepth 11pulls 13 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 3 imports · 0 importers

nx_teacher_consult.nx nx_syscalls.nx nx_gate_verdict.nx nx_teacher_consult_gate.nx

imports: nx_teacher_consult.nxnx_syscalls.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 cc_puts sys_write sys_now_realtime_sec sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ 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

structs

none

consts

none

functions

12func 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
13func cc_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
22func 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
23func cc_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
31func 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
32func cc_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) }
called by 1: main calls 1: sys_mkdir
33func cc_assert(label: *u8, cond: i64) -> i64
called by 1: main calls 1: cc_puts
37func cc_row(w: *i64, idx: i64, id: *u8, rule: *u8) -> i64
called by 1: cc_seed calls 2: sys_mmapncfg_add_row
44func cc_seed(cap: *u8) -> i64
53func main() -> i64