code wiki / _hdl_build / nx_spec_layers_test.nx

nx_spec_layers_test.nx

buildroot/runtime/_hdl_build/nx_spec_layers_test.nx

5150 B77 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic spec
docsdependenciesstructsconstsfunctions

about

nx_spec_layers_test.nx -- the team SYNTHESIZES the S-class information-management spec from its OWN cataloged Library (the deep-research facts ingested 2026-06-05 into knowledge/library/infomgmt-*.txt). It runs the mechanized layered synthesis over the 5 layers and proves: (1) MEDIA (0 corroborated facts) is flagged a GAP/raised-hand, never spec'd from thin air; (2) the build order follows the charter ladder foundational-first (ingest->format->storage->search), not arbitrary; (3) every gap is surfaced (admissible); (4) the spec exceeds by unification (one stack = format+storage+search). Exit 0 iff the team's synthesis is correct + honest.

dependencies 2 imports · 0 importers

nx_spec_layers.nx nx_syscalls.nx nx_spec_layers_test.nx

imports: nx_spec_layers.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main tp sys_write sys_mmap ss_build_rank ss_order_build sys_mmap ↻ ss_status tn sys_mmap ↻ sys_write ↻ lname bench ss_count_gaps ss_status ↻ ss_exceed_by_unification ss_spec_admissible ss_count_gaps ↻ sys_exit

structs

none

consts

none

functions

10func tp(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
11func tn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func lname(i: i64) -> *u8
called by 1: main
20func bench(i: i64) -> *u8
called by 1: main
28func main() -> i64