code wiki / (root) / nx_autofix_mut_inc_c2.nx

nx_autofix_mut_inc_c2.nx

buildroot/runtime/nx_autofix_mut_inc_c2.nx

1685 B45 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_mut_inc_c2.nx -- MUTATION-GENERATED FOREIGN BUG (class: constant-perturbation, +1 became +2 -- NEW class, untested). Target: inc. Sibling max2 must stay green (PASS_TO_PASS).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_autofix_mut_inc_c2.nx

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

main max2 inc fncase1 cw sys_write cn cw ↻ sys_mmap sys_write ↻ cw ↻ cn ↻

structs

none

consts

none

functions

5func cw(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 3: cnfncase1main calls 1: sys_write
6func cn(v: i64) -> i64
called by 2: fncase1main calls 3: cwsys_mmapsys_write
19func fncase1(fn: *u8, a: i64, want: i64, got: i64) -> i64
called by 1: main calls 2: cwcn
25func max2(a: i64, b: i64) -> i64 { if a > b { return a } return b }
called by 1: main
26func inc(x: i64) -> i64 { return x + 2 }
called by 2: mainmain
28func main() -> i64