code wiki / _hdl_build / nx_tsv_migrate_gate.nx
nx_tsv_migrate_gate.nx
buildroot/runtime/_hdl_build/nx_tsv_migrate_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 13 | func 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 } |
| 14 | func 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 } |
| 15 | func tg_slen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 16 | func tg_wfile(path: *u8, content: *u8) -> i64 |
| 23 | func tg_has(buf: *u8, n: i64, needle: *u8) -> i64 |
| 36 | func tg_run(dir: *u8, a1: *u8, a2: *u8) -> i64 |
| 53 | func main() -> i64 |