_probe_mulpow2_soundness.nx
buildroot/runtime/_probe_mulpow2_soundness.nx
about
Adversarial probe #2: is the LIVE rule's union actually SOUND for every k it
admits? The live rule computes k by halving a positive const and fires if
is_pow2 && k<64. We verify: for EVERY k the live guard admits (i.e. every
positive power-of-two const), does (x * 2^k) == (x << k) hold in REAL 64-bit
2's-complement arithmetic (native i64, which IS mod-2^64)? And we confirm the
k>=W path is genuinely unreachable from a positive const.
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
| 10 | const NX_EQSAT_W: i64 = 64 |
functions
| 12 | func _emit_num(v: i64) -> i64 |
| 21 | func _nl() -> i64 { let z: *u8 = sys_mmap(2); z[0] = 10; sys_write(1, z, 1); return 0 } |
| 24 | func live_k(cval: i64) -> i64 called by 1: main |
| 31 | func main() -> i64 |