code wiki / _hdl_build / _r1bench_kern.nx

_r1bench_kern.nx

buildroot/runtime/_hdl_build/_r1bench_kern.nx

916 B23 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind bench
docsdependenciesstructsconstsfunctions

about

_r1bench_kern.nx -- R1 toolchain exceed-panel shared kernel (NishiLang side). Identical modular-arithmetic loop to /tmp/kern.c so nx_cc vs gcc is apples-to-apples: no integer overflow (i*i<=1e16, %1e9+7 keeps s bounded), result data-dependent so neither compiler can dead-code-eliminate or constant-fold the loop. Prints the result for cross-check.

dependencies 1 imports · 0 importers

nx_syscalls.nx _r1bench_kern.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main pn sys_mmap sys_write sys_exit

structs

none

consts

none

functions

6func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
13func main() -> i64
calls 2: pnsys_exit