code wiki / (root) / sketch_hll4_test.nx

sketch_hll4_test.nx

buildroot/runtime/sketch_hll4_test.nx

3980 B111 linesdepth 7pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic sketch
docsdependenciesstructsconstsfunctions

about

sketch_hll4_test.nx -- HLL_4 + Heule exception table verification. Tests: 1. Memory: HLL_4-10 register array < HLL_8-10 by ~50% 2. Cardinality estimate within +-15% of N=5000 (no exceptions fire at this cardinality since max rho ~= log2(5000/1024) = 2.3) 3. Exception path: directly write rho=20 to a slot; verify read-back returns 20, slot's packed nibble holds sentinel 15, exception count incremented 4. Multiple exceptions: add three different (idx, value) entries, verify each reads back correctly without interference 5. Exception update: overwrite existing exception slot, count should NOT increment 6. Typed envelope: NX_ENV_REL_STDDEV / ReferenceImpl / Honest

dependencies 3 imports · 0 importers

syscalls.nx sketch_hll4.nx sketch_types.nx sketch_hll4_test.nx

imports: syscalls.nxsketch_hll4.nxsketch_types.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

20func write_i64_le(buf: *u8, value: i64) -> i64 {
27func main() -> i64 {