code wiki / _hdl_build / nx_mediaimport_census.nx
nx_mediaimport_census.nx
buildroot/runtime/_hdl_build/nx_mediaimport_census.nx
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
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
structs
| none |
consts
| 8 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 10 | func cw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 11 | func 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 } |
| 12 | func ax_have(path: *u8) -> i64 { let fd: i64=sys_openat_rd(path); if fd<0 { return 0 } sys_close(fd); return 1 } |
| 14 | func raw_has(path: *u8, needle: *u8) -> i64 |
| 31 | func row(label: *u8, ours: *u8, verdict: i64, grounded: i64, tot: *i64) -> i64 |
| 41 | func main() -> i64 |