nx_autofix_candidate.nx
buildroot/runtime/nx_autofix_candidate.nx
about
nx_autofix_candidate.nx -- a REAL buildable "code under repair" for the autonomous fix loop (nx_autofix_gate).
It SELF-GRADES against objective cases and emits CGR=<pass> (byte-built, no string literals so the fixer can
patch it by targeted line-replace without quote-escaping). SEEDED BUG: max2 returns the first arg always
(the same shape as a bug Claude fixed by hand this session) -> pass=1/3. The fixer flips it to the correct
body -> pass=3/3. license_tier: ORIGINAL No hw writes (Rule 26).
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
| 7 | func max2(a: i64, b: i64) -> i64 { return a } called by 1: main |
| 8 | func main() -> i64 |