code wiki / (root) / nx_cpp_calc_test.nx

nx_cpp_calc_test.nx

buildroot/runtime/nx_cpp_calc_test.nx

1959 B34 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_cpp_calc_test.nx -- gate for the cost-per-page calculator (nx_cpp_calc). Unique exit codes per invariant: 1-3 ISO CPP (price*1000/yield); bad yield -> -1 10-12 REAL CPP at our coverage: =ISO at 5%, doubles at 10%, =4400 mc/pg at the Brother's measured 5.28% 20-21 real pages from coverage (1200 @5%, 600 @10%) 30-31 genuine-vs-aftermarket savings: 3000 milli-cents/page, 75% cheaper expect_exit: 0 ; license_tier: ORIGINAL ; genealogy_id: project-printer-management-ipp-sclass-2026-06-20

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_cpp_calc.nx nx_cpp_calc_test.nx

imports: nx_syscalls.nxnx_cpp_calc.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_cpp_iso nx_cpp_real nx_cpp_real_pages nx_cpp_savings nx_cpp_iso ↻ nx_cpp_savings_pct nx_cpp_iso ↻ t_puts sys_write

structs

none

consts

none

functions

11func t_puts(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 1: main calls 1: sys_write
13func main() -> i64