code wiki / _hdl_build / nx_xxhash_kat.nx

nx_xxhash_kat.nx

buildroot/runtime/_hdl_build/nx_xxhash_kat.nx

3165 B61 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_xxhash_kat.nx -- KAT for nx_xxhash (XXH64). HONESTY [W] weak point (reach untested). Anchors correctness to the CANONICAL reference vector XXH64("", seed=0) = 0xEF46DB3751D8E999, then proves the hash properties: determinism, seed-sensitivity, input-sensitivity, length-sensitivity, and no-stuck-value over many inputs. license_tier: ORIGINAL expect_exit:0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_xxhash.nx nx_xxhash_kat.nx

imports: nx_syscalls.nxnx_xxhash.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_xxh64 nx_xxh_round nx_xxh_rotl nx_xxh_read_u64 nx_xxh_rotl ↻ nx_xxh_merge nx_xxh_round ↻ nx_xxh_read_u32 xw sys_write xh sys_mmap ↻ sys_write ↻ sys_write ↻

structs

none

consts

none

functions

8func xw(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 1: main calls 1: sys_write
9func xh(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 }
called by 1: main calls 2: sys_mmapsys_write
11func main() -> i64