code wiki / _hdl_build / nx_uigen_census.nx
nx_uigen_census.nx
buildroot/runtime/_hdl_build/nx_uigen_census.nx
about
nx_uigen_census.nx -- census of AUTONOMOUS UI GENERATION capability vs SOTA (operator: benchmark the real
thing + review Claude's optimism + real roadmap). Reads knowledge/registry/uigen_features.conf. LIAR-KILL:
every HAVE/PARTIAL/EXCEED opens runtime/<organ> (missing -> UNGROUNDED). ★THE ADVERSARIAL MOVE: it computes
a GENERATION sub-score SEPARATE from a CRAFT sub-score, so "the kit scores 941 therefore we're good" is
REFUTED by construction (craft-high, generation-low). Then emits the graded roadmap L0->L4 (no cliff).
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_262144: i64 = 262144 |
| 9 | const K_MAGIC_1024: i64 = 1024 |
functions
| 11 | func cp(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 12 | func cn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } 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; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 } |
| 13 | func cseq(buf: *u8, off: i64, len: i64, lit: *u8) -> i64 { var i: i64=0; while i<len { if lit[i]==(0 as u8) { return 0 } if buf[off+i]!=lit[i] { return 0 } i=i+1 } if lit[len]!=(0 as u8) { return 0 } return 1 } called by 1: main |
| 14 | func cwrite(buf: *u8, off: i64, len: i64) -> i64 { sys_write(1, (((buf as i64)+off) as *u8), len); return 0 } |
| 16 | func cscore(have: i64, part: i64, exc: i64, tot: i64) -> i64 { if tot==0 { return 0 } return (have*2 + exc*2 + part)*1000/(tot*2) } called by 1: main |
| 18 | func main() -> i64 |