code wiki / _hdl_build / nx_surface_census.nx

nx_surface_census.nx

buildroot/runtime/_hdl_build/nx_surface_census.nx

5978 B135 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic surface
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_surface_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 _p sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sc_read sys_openat_rd sys_read sys_close sys_exit ↻ sys_openat_append sc_cols sc_cpy sc_grade sys_mmap ↻ sc_read ↻ sc_has sc_len _fp sys_write ↻ sys_write ↻ sc_has ↻ _fn sys_mmap ↻ sys_write ↻ sys_now_realtime_sec sys_mmap ↻

structs

none

consts

10const K_MAGIC_524288: i64 = 524288
11const K_MAGIC_524272: i64 = 524272
12const K_MAGIC_262144: i64 = 262144
13const K_MAGIC_262128: i64 = 262128

functions

14func _p(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
15func _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 }
called by 1: main calls 1: sys_write
16func _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 }
called by 1: main calls 2: sys_mmapsys_write
17func 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
18func sc_read(path: *u8, buf: *u8, cap: i64) -> i64
27func sc_has(hay: *u8, a: i64, b: i64, pat: *u8) -> i64
called by 2: sc_grademain calls 1: sc_len
41func sc_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
called by 1: main
57func sc_cpy(q: *u8, a: i64, b: i64, out: *u8) -> i64
called by 1: main
65func sc_grade(logp: *u8, anchor: *u8, green: *u8) -> i64
called by 1: main calls 3: sys_mmapsc_readsc_has
83func main(argc: i64, argv: *i64) -> i64