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 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 ↻ nx_game_find_factor nx_result_err sys_mmap ↻ nx_result_ok sys_mmap ↻ nx_assert_result_err print ↻ nx_result_is_err println ↻ nx_result_err_code ↻ nx_err_name ↻ nx_game_pattern_next nx_game_pattern_kind nx_result_ok ↻

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