code wiki / (root) / nx_x86_basic_test.nx

nx_x86_basic_test.nx

buildroot/runtime/nx_x86_basic_test.nx

1763 B70 linesdepth 0pulls 0 transitivereach 0 importersview sourcekind gate/prooftopic x86
docsdependenciesstructsconstsfunctions

about

nx_x86_basic_test.nx -- minimal syscall-free smoke for x86_64. Tests basic i64 arithmetic + control flow + the codegen patterns our AI primitives rely on (loops, bitwise ops, comparisons). No sys_mmap, no sys_write, no syscalls -- so it runs identically on any target the x86_64 / RV64 / etc. backend supports. PASS criterion: main() returns 0. Any non-zero return = assertion failure encoded in the return code.

dependencies 0 imports · 0 importers

imports: none

imported by: nobody (leaf or entry point)

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

main _abs _imul

structs

none

consts

none

functions

11func _abs(x: i64) -> i64
called by 1: main
16func _imul(a: i64, b: i64) -> i64
called by 1: main
20func main() -> i64
calls 2: _abs_imul