code wiki / (root) / nx_ir_closure_gate_t206.nx

nx_ir_closure_gate_t206.nx

buildroot/runtime/nx_ir_closure_gate_t206.nx

1729 B18 linesdepth 8pulls 12 transitivereach 0 importersview sourcekind tooltopic ir
docsdependenciesstructsconstsfunctions

dependencies 1 imports · 0 importers

nx_fs_create_lib.nx nx_ir_closure_gate_t206.nx

imports: nx_fs_create_lib.nx

imported by: nobody (leaf or entry point)

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

main ic_find ic_at ic_end ic_at ↻

structs

none

consts

none

functions

2func ic_at(b:*u8,n:i64,p:i64,s:*u8,k:i64)->i64{if p<0||p>n-k{return 0};var j:i64=0;while j<k{if b[p+j]!=s[j]{return 0};j=j+1};return 1}
called by 2: ic_findmain
3func ic_find(b:*u8,n:i64,s:*u8,k:i64)->i64{var i:i64=0;while i<=n-k{if ic_at(b,n,i,s,k)==1{return i};i=i+1};return -1}
called by 1: main calls 1: ic_at
4func ic_end(b:*u8,n:i64,start:i64)->i64{var i:i64=start;var depth:i64=0;var opened:i64=0;while i<n{if b[i]==(123 as u8){depth=depth+1;opened=1};if b[i]==(125 as u8){depth=depth-1;if opened==1&&depth==0{return i+1}};i=i+1};return -1}
called by 1: main
5func main(argc:i64,argv:*i64)->i64