nx_toner_meter_test.nx
buildroot/runtime/nx_toner_meter_test.nx
about
nx_toner_meter_test.nx -- gate for the real-coverage toner meter. Unique exit codes per invariant:
1x blank (all white) -> 0 ppm
2x solid black -> 1,000,000 ppm
3x mid gray 0x80 -> 498039 ppm (127/255)
4x 5% page (5 of 100 px black) -> 50,000 ppm = exactly one ISO standard page
5x std-pages conversion: 50,000 ppm -> 1000 milli-std-pages
expect_exit: 0 license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_toner_meter.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
| 12 | 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 } |
| 14 | func main() -> i64 |