nx_resource_gate.nx
buildroot/runtime/nx_resource_gate.nx
about
nx_resource_gate.nx -- proves MCP Resources parity on real seg_store + real files (test prefix): register two file
resources, LIST them (discovery), READ one back and verify its content. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_resource.nxnx_gate.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
| 6 | func g_contains(buf: *u8, n: i64, needle: *u8) -> i64 { var nl: i64=0; while needle[nl]!=(0 as u8){nl=nl+1} if nl==0 {return 1} var i: i64=0; while i+nl<=n { var m: i64=1; var j: i64=0; while j<nl { if buf[i+j]!=needle[j] {m=0;j=nl} else {j=j+1} } if m==1 {return 1} i=i+1 } return 0 } called by 1: main |
| 8 | func main() -> i64 |