code wiki / _hdl_build / nx_analyst_store_gate.nx

nx_analyst_store_gate.nx

buildroot/runtime/_hdl_build/nx_analyst_store_gate.nx

5984 B124 linesdepth 10pulls 20 transitivereach 0 importersview sourcekind gate/prooftopic analyst
docsdependenciesstructsconstsfunctions

about

nx_analyst_store_gate.nx -- GATE proving the analytics run on REAL STORED DATA (round-trip through the sovereign seg_store). Writes a known dataset (rows "size<TAB>age<TAB>price", price=5*size-2*age+noise) into a FRESH per-run store, reads it back via ss_scan, extracts columns, and analyzes them -- the report must (a) profile every stored column, (b) name size as the strongest ASSOCIATION with price. Also asserts field-parse correctness + row-count round-trip. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_analyst_store.nx nx_analyst_store_gate.nx

imports: nx_syscalls.nxnx_analyst_store.nx

imported by: nobody (leaf or entry point)

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

main sp sys_write asr_field_i64 sys_mmap sys_now_us sys_mmap ↻ sys_clock_gettime_mono scatn sys_mmap ↻ ss_begin ss_begin_cap sys_mmap ↻ lcg ss_add ss_add2 ss_w32 ss_len ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻ ss_write_seg ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn ↻ sys_write ↻ ss_segname ss_cat ↻ ss_catn ↻ ss_writefile sys_openat_wr sys_write ↻ sys_close sys_fsync sys_renameat

structs

none

consts

none

functions

9func sp(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 2: snnmain calls 1: sys_write
10func snn(v: i64) -> i64 { var m: i64=v; if m<0{sp("-" 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} let o:*u8=sys_mmap(24); var i:i64=0; while i<k{o[i]=t[k-1-i];i=i+1} sys_write(1,o,k); return 0 }
called by 1: main calls 3: spsys_mmapsys_write
11func shas(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
18func lcg(s: i64) -> i64 { return (s * 1103515245 + 12345) & 0x7fffffff }
called by 1: main
20func scatn(buf: *u8, o: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
33func main() -> i64