code wiki / _hdl_build / nx_unitconv_gate.nx

nx_unitconv_gate.nx

buildroot/runtime/_hdl_build/nx_unitconv_gate.nx

9078 B171 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_unitconv_gate.nx -- benchmark the measurement-systems organ against the INTERNATIONAL DEFINITIONS and the historic unit-disaster cases. Teeth are exact integers from the 1959 yard&pound agreement + UK Weights and Measures. Includes: exact round-trips across systems, the twin fx256 grid, UK-vs-US gallon divergence, the US-survey-foot 2ppm trap, the MARS CLIMATE ORBITER lbf-s/N-s factor, the GIMLI GLIDER lb/kg fuel case, LOUD dimension-mismatch refusal (neg-control), and the exactness-remainder honesty machinery. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_unitconv.nx nx_unitconv_gate.nx

imports: nx_unitconv.nx

imported by: nobody (leaf or entry point)

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

main ug_puts ur_init sys_mmap ur_std ur_add ur_gcd ug_putn ug_puts ↻ ur_find ur_streq ug_tooth ug_puts ↻ ur_conv ur_gcd ↻ ur_mdiv ur_add ↻

structs

none

consts

none

functions

9func ug_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 3: ug_putnug_toothmain
10func ug_putn(v: i64) -> i64
called by 1: main calls 1: ug_puts
23func ug_tooth(name: *u8, pass: i64, fails: *i64) -> i64
called by 1: main calls 1: ug_puts
31func main() -> i64