code wiki / (root) / nx_toner_meter_test.nx

nx_toner_meter_test.nx

buildroot/runtime/nx_toner_meter_test.nx

1550 B45 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic toner
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_toner_meter.nx nx_toner_meter_test.nx

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

main sys_mmap nx_toner_coverage_ppm nx_toner_std_pages_milli t_puts sys_write

structs

none

consts

none

functions

12func 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
14func main() -> i64