code wiki / _hdl_build / nx_tsv_migrate_gate.nx

nx_tsv_migrate_gate.nx

buildroot/runtime/_hdl_build/nx_tsv_migrate_gate.nx

5963 B103 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic tsv
docsdependenciesstructsconstsfunctions

about

nx_tsv_migrate_gate.nx -- gates the TSV->native-plane migrator on the property that actually matters: the plane must REPRODUCE every data row, and the tool must refuse loudly when it cannot. T1 data-lossless round-trip (all tab rows back through the real reader; the '#' row asserted ABSENT so the native rows-only convention is pinned by a test rather than assumed); T2 source file UNTOUCHED after migration (non-destructive by construction); T3 missing source = RED exit 1, nothing committed; T4 empty/blank-only source = RED exit 1 (an empty plane is a defect, never a valid migration). Runs the REAL /tmp/nx_tsv_migrate.sov.elf child inside a seeded arena. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_tsv_migrate_gate.nx

imports: nx_store_seed_lib.nxnx_seg_store.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 tg_puts sys_write sys_mkdir tg_wfile sys_openat_wr sys_write ↻ tg_slen sys_close tg_run sys_fork sys_chdir sys_mmap sys_mmap ↻ sys_execve sys_exit sys_wait4 sys_mmap ↻ sys_fork ↻ sys_chdir ↻ sys_exit ↻ sys_wait4 ↻ sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2

structs

none

consts

none

functions

13func tg_puts(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
14func tg_pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 }
called by 1: main calls 2: sys_mmapsys_write
15func tg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 2: tg_wfiletg_has
16func tg_wfile(path: *u8, content: *u8) -> i64
23func tg_has(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: tg_slen
36func tg_run(dir: *u8, a1: *u8, a2: *u8) -> i64
53func main() -> i64