code wiki / _hdl_build / nx_builder_authors_loop_synth.nx

nx_builder_authors_loop_synth.nx source

↩ module page · 17 lines · 1100 B

1// nx_builder_authors_loop_synth.nx -- the BUILDER authors the S4 FOLD-SCHEMA SYNTHESIZER (rung-2: 2// control flow via the sketch move -- fixed loop skeleton, searched scalar holes). Claude tutored 3// the schema architecture (knowledge/specs/2026-06-09-tutoring-code-synthesis-rung2-schemas.md); 4// the Builder authors; the Engineer gates; every solve banks an S5 corpus record. Gate = 4 held-out 5// fold cores (sum / max-byte / count-nonzero / hash31) derived from oracle queries, held-out 6// verified (400-run sweep), emitted as real modules that build+pass. license_tier: ORIGINAL 7import "nx_module_author.nx" 8import "nx_syscalls.nx" 9func _b(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 10func main() -> i64 { 11 _b("BUILDER authors the S4 fold-schema synthesizer (loop skeleton + searched holes)\n" as *u8) 12 let fd: i64 = sys_openat_wr("runtime/_hdl_build/_loop_synth_authored.nx" as *u8, 0x1a4) 13 ma_emit_loop_synth(fd) 14 sys_close(fd) 15 _b(" -> _loop_synth_authored.nx authored; Engineer verifies next\n" as *u8) 16 sys_exit(0); return 0 17}