code wiki / (root) / nx_stability_rh_test.nx

nx_stability_rh_test.nx

buildroot/runtime/nx_stability_rh_test.nx

11111 B188 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic stability
docsdependenciesstructsconstsfunctions

about

nx_stability_rh_test.nx -- gate for the moisture axis and the separation. THE LIAR-KILL IS THE ROUND TRIP (T3/T4): pick a true activation energy and a true moisture sensitivity, GENERATE three lifetimes from them, then hand only those lifetimes to the solver and see whether it recovers the two numbers it was never told. A solver that could not actually separate the axes would come back with something else, or with a pair that merely reproduces the data it was fitted to. THE SECOND CLAIM IS THE REFUSAL (T5/T6): ICH's own design has two conditions, which is one contrast, which cannot resolve two axes. The solver must REFUSE that rather than emit a confident number -- and it must refuse for the structural reason (a singular system), not because someone typed a special case for it. expect_exit: 0 license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_pow10.nx nx_stability.nx nx_stability_rh.nx nx_stability_rh_test.nx

imports: nx_syscalls.nxnx_pow10.nxnx_stability.nxnx_stability_rh.nx

imported by: nobody (leaf or entry point)

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

main srh_inv_t_e7 stab_c_to_centi_kelvin t_puts sys_write t_putn sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ srh_lifetime_months srh_log10_rate_ratio_milli srh_inv_t_e7 ↻ ipow10_q3 ipow10_mantissa_q3 iabs sys_mmap ↻ srh_separate srh_inv_t_e7 ↻ ilog10_milli ipow10_mantissa_q3 ↻ srh_ea_from_e10 stab_e10_milli_kelvin srh_ich_pair_alone_is_sepa srh_conditions_required srh_is_separable srh_determinant srh_inv_t_e7 ↻

structs

none

consts

29const TRUE_E10: i64 = 2340000 // milli-Kelvin -> about 44.8 kJ/mol
30const TRUE_B10: i64 = 15 // milli-decades per %RH

functions

22func 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
23func t_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); 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 { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
24func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 1: main
32func main() -> i64