code wiki / (root) / riscv_test.nx

riscv_test.nx

buildroot/runtime/riscv_test.nx

800 B31 linesdepth 6pulls 11 transitivereach 0 importersview sourcekind gate/prooftopic riscv
docsdependenciesstructsconstsfunctions

about

riscv_test.nx -- self-test for riscv.nx.

dependencies 4 imports · 0 importers

syscalls.nx types.nx ir.nx riscv.nx riscv_test.nx

imports: syscalls.nxtypes.nxir.nxriscv.nx

imported by: nobody (leaf or entry point)

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

main ir_function_new sys_mmap ir_type_i64 alloc_type sys_mmap ↻ ir_block_new nx_assert_ptr sys_write nx_puts_err sys_write ↻ nx_assert sys_write ↻ nx_puts_err ↻ nx_assert_lt sys_write ↻ nx_puti_err sys_mmap ↻ sys_write ↻ nx_puts_err ↻ ir_const_i64 nx_assert_ptr ↻ nx_assert ↻ alloc_value nx_assert_ptr ↻ nx_assert ↻ nx_assert_lt ↻ ir_type_i64 ↻ emit_return_instr alloc_instr nx_assert_ptr ↻ nx_assert ↻ nx_assert_lt ↻ ir_type_i64 ↻ append_instr out_new sys_mmap ↻ emit_function sys_mmap ↻ loc_at

structs

none

consts

none

functions

8func main() -> i64 {