code wiki / (root) / nx_budget_test.nx

nx_budget_test.nx

buildroot/runtime/nx_budget_test.nx

2441 B65 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic budget
docsdependenciesstructsconstsfunctions

about

nx_budget_test.nx -- smoke for nx_budget. Exercises: - construction with five resource ceilings - request within ceiling grants and decrements headroom - request beyond ceiling denies without state mutation - release returns headroom; underflow clamps to 0 - pressure_q10 reports correct ratio - bad kind returns BAD_KIND verdict

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_budget.nx nx_budget_test.nx

imports: nx_syscalls.nxnx_budget.nx

imported by: nobody (leaf or entry point)

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

main nx_budget_new sys_mmap nx_budget_request nx_res_kind_is_valid nx_budget_release nx_res_kind_is_valid ↻ nx_budget_pressure_q10 nx_budget_remaining

structs

none

consts

none

functions

14func main() -> i64