code wiki / _hdl_build / _diff_gen_gate_authored.nx
_diff_gen_gate_authored.nx
buildroot/runtime/_hdl_build/_diff_gen_gate_authored.nx
about
_diff_gen_gate_authored.nx -- gate for R1-T1-001 (the diff-corpus
generator). No mocks: runs the REAL organ elf and builds REAL corpus
programs through the REAL durable lane.
1. LIVE-200: organ on the real conf -> DIFFGEN n=200 wrote=200 GREEN
2. DET-SAME: same scratch conf twice (prefix _dga) -> hash files byte-eq
3. DET-DIFF: different seed (prefix _dgb) -> hash differs
4. SAMPLE-8: _dgp0.._dgp7 build+run through _offc/nx_sov_build_run.elf;
every rc must be in {0,1} (the corpus exit convention) -- 3/4 = lane
fail, >128 = crash, anything else = loud RED
Markers: DGG-*; final DGGATE row -> knowledge/status/diff_gen.log
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
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
structs
| none |
consts
| none |
functions
| 15 | func dgg_p(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func dgg_f(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 } |
| 17 | func dgg_n(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;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 } |
| 19 | func dgg_chk(label: *u8, ok: i64, bad: *i64) -> i64 |
| 27 | func dgg_spawn(elf: *u8, a1: *u8, a2: *u8, a3: *u8, outpath: *u8) -> i64 |
| 51 | func dgg_write(path: *u8, s: *u8) -> i64 |
| 59 | func dgg_has(path: *u8, pat: *u8) -> i64 |
| 82 | func dgg_fileeq(pa: *u8, pb: *u8) -> i64 |
| 102 | func main() -> i64 |