code wiki / (root) / nx_autofix_mut_absdiff_cf.nx

nx_autofix_mut_absdiff_cf.nx

buildroot/runtime/nx_autofix_mut_absdiff_cf.nx

1852 B46 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic autofix
docsdependenciesstructsconstsfunctions

about

nx_autofix_mut_absdiff_cf.nx -- MUTATION-GENERATED FOREIGN BUG (class: comparison-flip on a two-branch binding -- the operand-binding family, PREDICTED MISS per the measured boundary). Target: absdiff. Sibling max2 must stay green (PASS_TO_PASS).

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_autofix_mut_absdiff_cf.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 absdiff fncase2 cw sys_write cn cw ↻ sys_mmap sys_write ↻ cw ↻ cn ↻

structs

none

consts

none

functions

6func 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: cnfncase2main calls 1: sys_write
7func cn(v: i64) -> i64
called by 2: fncase2main calls 3: cwsys_mmapsys_write
20func fncase2(fn: *u8, a: i64, b: i64, want: i64, got: i64) -> i64
called by 1: main calls 2: cwcn
26func max2(a: i64, b: i64) -> i64 { if a > b { return a } return b }
called by 1: main
27func absdiff(a: i64, b: i64) -> i64 { if a > b { return b - a } return a - b }
called by 1: main
29func main() -> i64