_probe_mulpow2_guard.nx
buildroot/runtime/_probe_mulpow2_guard.nx
about
Adversarial probe: reproduce the EXACT log2-by-halving + k<W guard logic from
nx_eqsat_apply_rule_mul_pow2 (lines 447-471) on hostile constants, to test
whether the guard has a hole. We do NOT import nx_eqsat (that would drag the
gsim); we transcribe the guard arithmetic 1:1.
dependencies 1 imports · 0 importers
imports: nx_syscalls.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
| 8 | const NX_EQSAT_W: i64 = 64 |
functions
| 10 | func _emit_num(v: i64) -> i64 |
| 19 | func _nl() -> i64 { let z: *u8 = sys_mmap(2); z[0] = 10; sys_write(1, z, 1); return 0 } |
| 23 | func guard_decision(cval: i64, out_k: *i64, out_pow2: *i64) -> i64 called by 1: main |
| 45 | func main() -> i64 |