code wiki / _hdl_build / nx_hash_kat.nx
nx_hash_kat.nx
buildroot/runtime/_hdl_build/nx_hash_kat.nx
about
nx_hash_kat.nx -- KAT for nx_hash (FNV-1a-64 + open-addressing table). HONESTY [W] weak point (reach=101,
5 children, ZERO tests): the shared hash under many organs was unproven. FNV-1a KAT'd vs the CANONICAL
published vectors (a wrong constant/loop-order fails); table proven by put/get roundtrip, absent-key,
collision-probe correctness, and update-in-place. license_tier: ORIGINAL expect_exit:0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_hash.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
| none |
functions
| 8 | func hw(s: *u8) -> i64 { var n:i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 9 | func hx(v: i64) -> i64 { let d: *u8="0123456789abcdef" as *u8; let o: *u8=sys_mmap(20); o[0]=48 as u8; o[1]=120 as u8; var i: i64=0; while i<16 { o[2+i]=d[(v>>((15-i)*4))&15]; i=i+1 } sys_write(1,o,18); return 0 } |
| 11 | func main() -> i64 |