code wiki / _hdl_build / nx_surface_census.nx
nx_surface_census.nx
buildroot/runtime/_hdl_build/nx_surface_census.nx
about
nx_surface_census.nx -- the PRODUCT-SURFACE report (operator: "where are we on
emitting our own browser/game/kernel/dev-platform?" -> the system ANSWERS every
beat, no tutor grep). Reads surfaces.tsv (surface, maturity, emits_via, gate log +
anchor + green) and grades each surface by its gate's LAST verdict -- the examiner
gene applied to PRODUCTS. Tallies maturity tiers so the climb is one readable line.
Durable: SURFACE rows + SURFACE-CENSUS -> knowledge/status/surface_census.log.
Exit 0 always (a census reports, never fails). argv[1]=surfaces.tsv override.
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
| 10 | const K_MAGIC_524288: i64 = 524288 |
| 11 | const K_MAGIC_524272: i64 = 524272 |
| 12 | const K_MAGIC_262144: i64 = 262144 |
| 13 | const K_MAGIC_262128: i64 = 262128 |
functions
| 14 | func _p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 15 | func _fp(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 16 | func _fn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)}; 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{bb[i]=t[k-1-i];i=i+1}; sys_write(fd,bb,k); return 0 } |
| 17 | func sc_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: sc_has |
| 18 | func sc_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 27 | func sc_has(hay: *u8, a: i64, b: i64, pat: *u8) -> i64 |
| 41 | func sc_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64 called by 1: main |
| 57 | func sc_cpy(q: *u8, a: i64, b: i64, out: *u8) -> i64 called by 1: main |
| 65 | func sc_grade(logp: *u8, anchor: *u8, green: *u8) -> i64 |
| 83 | func main(argc: i64, argv: *i64) -> i64 |