code wiki / _hdl_build / nx_janitor_retire_gate.nx
nx_janitor_retire_gate.nx
buildroot/runtime/_hdl_build/nx_janitor_retire_gate.nx
dependencies 4 imports · 0 importers
imports: nx_gate_gn.nxnx_gate_base.nxnx_janitor_retire.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
| 18 | const JT_DIR: *u8 = "knowledge/_jantest" |
| 19 | const JT_FILE: *u8 = "knowledge/_jantest/probe.tsv" |
| 20 | const JT_RET: *u8 = "knowledge/_jantest/_retired/probe.tsv" |
| 21 | const JT_STORE: *u8 = "knowledge/store/jt-probe" |
functions
| 14 | func grow(name: *u8, ok: i64) -> i64 { if ok==1 { gw(" PASS " as *u8) } else { gw(" FAIL " as *u8) } gw(name); gw(" calls 1: gw |
| 16 | func g_has(hay: *u8, needle: *u8) -> i64 { var hn: i64=0; while hay[hn]!=(0 as u8){hn=hn+1} var nl: i64=0; while needle[nl]!=(0 as u8){nl=nl+1} var i: i64=0; while i+nl<=hn { var k: i64=0; var hit: i64=1; while k<nl { if hay[i+k]!=needle[k] {hit=0;k=nl} else {k=k+1} } if hit==1 {return 1} i=i+1 } return 0 } |
| 23 | func main() -> i64 |