code wiki / (root) / nx_math_games_test.nx

nx_math_games_test.nx

buildroot/runtime/nx_math_games_test.nx

5333 B117 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind gate/prooftopic math
docsdependenciesstructsconstsfunctions

about

nx_math_games_test.nx -- smoke for the pedagogy primitives. Refactored to use Result for fallible operations.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_result.nx nx_math_games.nx nx_math_games_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_math_games.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 nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ println sys_write ↻ strlen sys_mmap ↻ nx_assert_eq print sys_write ↻ strlen ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ println ↻ nx_game_guess_check nx_game_parity nx_assert_result_ok print ↻ nx_result_is_ok nx_err_name nx_result_err_code println ↻ nx_result_unwrap print_i64 ↻

structs

none

consts

none

functions

10func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int)
called by 1: main calls 3: printprint_i64println
21func nx_assert_result_ok(label: *u8, r: *NxResult, want: nx_int,
41func nx_assert_result_err(label: *u8, r: *NxResult, want_code: nx_int,
60func main() -> nx_exit