code wiki / (root) / nx_icecream_bench_gate.nx

nx_icecream_bench_gate.nx

buildroot/runtime/nx_icecream_bench_gate.nx

11333 B255 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_icecream_bench_gate.nx -- gate for the frozen-dessert RULER. T0 Ben & Jerry's Vanilla density off the verified label = 0.906 g/mL T1 composition off the panel: 146 permil fat, 399 permil total solids T2 total milk solids 259 permil (MSNF inferred from protein) T3 unaerated mix density 1.090 g/mL (Guelph specific-volume model) T4 derived overrun 203 permil = 20.3% T5 AIR FRACTION IS NOT OVERRUN: 168 vs 203 permil, and they never agree T6 the two legal floors: weight 539, solids 480 at this TS => WEIGHT binds T7 the floors cross at 356 permil total solids -- computed, not typed T8 above the crossover the shipped one-floor law is right BY LUCK: err 0 T9 ★below it the shipped law OVER-PERMITS by 200 permil of air T10 the reference passes all FOUR clauses of 21 CFR 135.110 T11 ★ISOLATING NEGATIVE CONTROL: a mix that passes milkfat, milk solids AND the 4.5 lb/gal weight floor and is still NOT ice cream -- failure bitmask is exactly 8, so the fourth clause is load-bearing, not dead T12 assumption-free: the reference is 117 permil denser than Haagen-Dazs T13 meltdown: a mono/di + PS80 system holds shape 2.2x longer than yolk T14 provenance flags all report honestly (derived / inferred / unmeasured) T15 refusals: impossible composition and impossible overrun both REFUSE license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_icecream_bench.nx nx_icecream.nx nx_icecream_bench_gate.nx

imports: nx_syscalls.nxnx_icecream_bench.nxnx_icecream.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 gw sys_write gck gw ↻ t0 bench_ref_benjerry bench_product_new sys_mmap ↻ bench_density_q3 t1 bench_ref_benjerry ↻ bench_fat_permil bench_total_solids_permil bench_water_permil bench_total_solids_permil ↻ t2 bench_ref_benjerry ↻ bench_msnf_permil bench_total_milk_solids_pe bench_fat_permil ↻ bench_msnf_permil ↻ t3 bench_ref_benjerry ↻ bench_mix_density_of bench_fat_permil ↻ bench_total_solids_permil ↻ bench_mix_density_q3 t4 bench_ref_benjerry ↻ bench_overrun_of bench_mix_density_of ↻ bench_density_q3 ↻ bench_overrun_permil t5 bench_ref_benjerry ↻ bench_overrun_of ↻ bench_air_permil_from_over bench_air_equals_overrun

structs

none

consts

39const GT_LOW_FAT_PERMIL: i64 = 100
40const GT_LOW_TS_PERMIL: i64 = 320

functions

27func gw(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 2: gckmain calls 1: sys_write
28func gn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
33func gck(pass: i64, name: *u8, fails: *i64) -> i64
called by 1: main calls 1: gw
43func gt_solids_only_failure() -> *BenchProduct
called by 1: t11 calls 1: bench_product_new
53func t0() -> i64
59func t1() -> i64
67func t2() -> i64
74func t3() -> i64
80func t4() -> i64
88func t5() -> i64
99func t6() -> i64
107func t7() -> i64
114func t8() -> i64
127func t9() -> i64
138func t10() -> i64
152func t11() -> i64
165func t12() -> i64
173func t13() -> i64
183func t14() -> i64
194func t15() -> i64
212func t16() -> i64
227func main() -> i64
calls 22: sys_mmapgwgckt0t1t2+16