nx_fx_f64_const.nx
buildroot/runtime/nx_fx_f64_const.nx
about
nx_fx_f64_const.nx -- LN39 fixture: `const NAME: f64 = EXPR` folds at compile time to the SAME bits the
program computes at run time with the hardware ops on the same literals. Exit 0 iff every check holds,
else a bitmask (bit k = check k). license_tier: ORIGINAL
dependencies 0 imports · 0 importers
imports: none
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 4 | const PI: f64 = 3.141592653589793 |
| 5 | const HALF_PI: f64 = PI / 2.0 |
| 6 | const TWO_PI: f64 = 2.0 * PI |
| 7 | const NEG_1P5: f64 = -1.5 |
| 8 | const K: i64 = 3 |
| 9 | const KF: f64 = K * 2.0 |
| 10 | const E9: f64 = 1e9 |
| 11 | const MIX: f64 = (PI - 1.0) / (K + 1) |
functions
| 12 | func fx_id(x: f64) -> f64 { return x } called by 1: main |
| 13 | func main() -> i64 calls 1: fx_id |