nx_printer_waste_test.nx
buildroot/runtime/nx_printer_waste_test.nx
about
nx_printer_waste_test.nx -- offline gate for the supply/waste auditor (R4).
Unique exit codes per invariant:
1x Brother-like: BK level 0 / low 10 / high 100, duplex-capable but one-sided default
-> worst=EMPTY, count 1, min%=0, duplex=WASTE
2x healthy 80% + duplex default -> OK, 80%, duplex=OK
3x low 5% -> LOW, 5%
4x 4-color KCMY {90,5,50,0} -> worst=EMPTY, count 4, min%=0
5x level -1 (unknown) -> UNKNOWN, %=-1 (not a false 0%)
6x no markers / no sides -> count 0 UNKNOWN, duplex=UNKNOWN
7x one-sided-only printer -> duplex=UNSUPPORTED
expect_exit: 0 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_ipp_codec.nxnx_printer_waste.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
| 17 | 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 } |
| 19 | func base(buf: *u8) -> i64 |
| 28 | func add_sides(buf: *u8, off: i64, def_one: i64) -> i64 |
| 40 | func main() -> i64 |