code wiki / _hdl_build / nx_teacher_consult_gate.nx
nx_teacher_consult_gate.nx
buildroot/runtime/_hdl_build/nx_teacher_consult_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 12 | func cc_putn(v: i64) -> i64 |
| 21 | func 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 } |
| 22 | func cc_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 30 | func 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 } |
| 31 | func cc_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) } |
| 32 | func cc_assert(label: *u8, cond: i64) -> i64 |
| 36 | func cc_row(w: *i64, idx: i64, id: *u8, rule: *u8) -> i64 |
| 43 | func cc_seed(cap: *u8) -> i64 |
| 52 | func main() -> i64 |