code wiki / _hdl_build / nx_researcher_code_gate.nx

nx_researcher_code_gate.nx

buildroot/runtime/_hdl_build/nx_researcher_code_gate.nx

6380 B99 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind gate/prooftopic researcher
docsdependenciesstructsconstsfunctions

about

nx_researcher_code_gate.nx -- GATE: the researcher's INTERNAL arm over our PRIVATE SOURCE CODE (the deepest exceed). Deep-research can describe a concept in the abstract; OUR researcher retrieves the EXACT .nx organ that implements it -- real private source, read live from disk, cited WITH A SNIPPET of the actual code. The web can never see this. T1 a code query ("nrtl_synth") retrieves the exact source file that DEFINES it (real on-disk source signal). T2 SNIPPET IS REAL CODE: the cited snippet, read live, contains the query token (truly-private content, not described). T3 DETERMINISM: identical query -> identical ranking + snippet. T4 PRIVATE EXCEED: the retrieved source is our .nx implementation -- deep-research structurally cannot access it. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_researcher_code_gate.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main rw sys_write sys_mmap cps read_file sys_openat_rd sys_mmap ↻ sys_read sys_close tf_count rn sys_mmap ↻ sys_write ↻ find_first sys_write ↻ sys_exit

structs

none

consts

none

functions

11func rw(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 1: main calls 1: sys_write
12func rn(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{sys_write(1,"-" as *u8,1);m=0-m} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func cps(dst: *u8, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ dst[i]=s[i]; i=i+1 } dst[i]=0 as u8; return i }
called by 1: main
15func read_file(path: *u8, lenbox: *i64) -> i64
25func find_first(hay: *u8, hlen: i64, needle: *u8, nlen: i64) -> i64
called by 1: main
37func tf_count(hay: *u8, hlen: i64, needle: *u8, nlen: i64) -> i64
called by 1: main
48func main() -> i64