code wiki / _hdl_build / nx_mediaimport_census.nx

nx_mediaimport_census.nx

buildroot/runtime/_hdl_build/nx_mediaimport_census.nx

8767 B132 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mediaimport_census.nx -- MEASURED benchmark: our polite media importer vs the SOTA image-acquisition tools, grounded on the REAL docs banked by nx_mediaimport_research_fetch (knowledge/fetched/miport_*.raw) + the REAL presence of our organs (ax_have opens the .nx). Grades each capability AHEAD/PARITY/BEHIND. Liar-kill: a pos control (our importer exists) + neg control (bogus organ absent) + corpus-grounded (a raw opened). No wishful greens: a "BEHIND" is grounded by a keyword found in THEIR doc; an "AHEAD" by our organ present + their doc showing the dependency we avoid. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_mediaimport_census.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 sys_mmap cw sys_write raw_has sys_openat_rd sys_mmap ↻ sys_read sys_close sys_munmap row cw ↻ ax_have sys_openat_rd ↻ sys_close ↻ cn sys_mmap ↻ cw ↻ sys_write ↻ sys_exit

structs

none

consts

8const K_MAGIC_4194304: i64 = 4194304

functions

10func cw(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 3: cnrowmain calls 1: sys_write
11func cn(v: i64) -> i64 { let b: *u8=sys_mmap(24); var m: i64=v; if m<0{cw("-" as *u8);m=0-m} let t: *u8=sys_mmap(24); 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 3: sys_mmapcwsys_write
12func ax_have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 }
called by 1: main calls 2: sys_openat_rdsys_close
14func raw_has(path: *u8, needle: *u8) -> i64
31func row(label: *u8, ours: *u8, verdict: i64, grounded: i64, tot: *i64) -> i64
called by 1: main calls 1: cw
41func main() -> i64