sketch_hll_test.nx
buildroot/runtime/sketch_hll_test.nx
about
sketch_hll_test.nx -- end-to-end test for the NishiLang HLL port.
Streams N distinct keys through nx_hll_add and verifies the
estimate is within 3-sigma of the true cardinality, where sigma
is 1.04 / sqrt(m). Caller invokes via nxc2 -> qemu-riscv64-static
(analogous to bench/fp64_smoke.sh).
Per the lossless-language discipline (nishi-engine doc 20):
the test ALSO verifies the typed envelope is correct -- the
returned ApproxI64 declares NX_ENV_REL_STDDEV with the right
stddev_rel_ppb and NX_MATURITY_REFERENCE_IMPL.
dependencies 3 imports · 0 importers
imports: syscalls.nxsketch_hll.nxsketch_types.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
| 20 | func write_i64_le(buf: *u8, value: i64) -> i64 {
called by 1: main |
| 32 | func iabs(x: i64) -> i64 { |
| 37 | func main() -> i64 { |