nx_cpp_calc_test.nx
buildroot/runtime/nx_cpp_calc_test.nx
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
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
structs
| none |
consts
| none |
functions
| 11 | func 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 } |
| 13 | func main() -> i64 |