nx_ice_distribution_test.nx
buildroot/runtime/nx_ice_distribution_test.nx
about
nx_ice_distribution_test.nx -- gate for the derived geometric coupling.
THE CLAIM UNDER TEST is that nx_ice_recrystal's asserted coupling was not
merely unproven but WRONG IN A KNOWN DIRECTION, and that the right value
falls out of a size distribution as exact arithmetic.
T4 is the measurement that matters: the number fraction of crystals lost
is far larger than the mass fraction melted, so a coupling of 1.0 -- which
is the claim that they are equal -- under-states how fast the mean size
grows. T5 puts a number on how wrong, and T6 states the direction as a
verdict rather than leaving a reader to work it out.
T2 is the conservation law that keeps the rest honest: melting and
redepositing must not change total mass, and if it did, every growth
figure here would be an artefact of losing or inventing ice.
expect_exit: 0 license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_ice_distribution.nxnx_ice_recrystal.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
| 21 | func tw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 22 | func tn(v: i64) -> i64 { let b: *u8 = sys_mmap(24); var m: i64 = v; if m < 0 { sys_write(1, "-" as *u8, 1); m = 0 - m } let t: *u8 = sys_mmap(24); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { b[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, b, k); return 0 } |
| 23 | func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 25 | func main() -> i64 |