code wiki / (root) / nx_emu_probe_gate.nx

nx_emu_probe_gate.nx

buildroot/runtime/nx_emu_probe_gate.nx

2747 B63 linesdepth 2pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic emu
docsdependenciesstructsconstsfunctions

about

nx_emu_probe_gate.nx -- NATIVE correctness KAT for nx_emu_probe (R0.0). Proves the emulator-shaped kernel computes correctly when run on a real mmap'd base, with every assertion cross-checked against an independent native recomputation (no hand-typed magic numbers). The SAME kernel then compiles to wasm; native PASS + clean wasm compile = the foundation rung.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_emu_probe.nx nx_emu_probe_gate.nx

imports: nx_syscalls.nxnx_emu_probe.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 p_seed p_memget_byte g_puts sys_write p_sum g_putn sys_write ↻ sys_mmap ↻ p_memset_byte p_step p_reg_get p_fb_set p_fb_get p_probe p_seed ↻ p_sum ↻ p_memset_byte ↻ p_step ↻ p_reg_get ↻ p_fb_set ↻ p_fb_get ↻ sys_exit

structs

none

consts

none

functions

8func g_puts(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 g_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
23func main() -> i64