nx_x86_basic_test.nx
buildroot/runtime/nx_x86_basic_test.nx
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
structs
| none |
consts
| none |
functions
| 11 | func _abs(x: i64) -> i64 called by 1: main |
| 16 | func _imul(a: i64, b: i64) -> i64 called by 1: main |
| 20 | func main() -> i64 |