code wiki / (root) / nx_disctree_test.nx

nx_disctree_test.nx

buildroot/runtime/nx_disctree_test.nx

6567 B132 linesdepth 6pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_disctree_test.nx -- discrimination tree smoke.

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_result.nx nx_unify.nx nx_disctree.nx nx_disctree_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.nxnx_disctree.nx

imported by: nobody (leaf or entry point)

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

main println sys_write strlen sys_mmap sys_mmap ↻ nx_dt_new sys_mmap ↻ nx_dt_node_new sys_mmap ↻ nx_dt_find_generalizations sys_mmap ↻ nx_dt_linearize nx_dt_linearize ↻ nx_term_arg nx_dt_walk nx_dt_skip_subterm nx_dt_walk ↻ nx_term_const sys_mmap ↻ print sys_write ↻ strlen ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ nx_dt_insert sys_mmap ↻ nx_dt_linearize ↻ nx_dt_node_descend nx_dt_node_new ↻ sys_mmap ↻ mk_unary sys_mmap ↻ nx_term_app sys_mmap ↻ nx_term_var sys_mmap ↻

structs

none

consts

10const SYM_A: nx_int = 100
11const SYM_B: nx_int = 101
12const SYM_F: nx_int = 200
13const SYM_G: nx_int = 201
14const SYM_H: nx_int = 250
15const VAR_X: nx_int = 0

functions

17func mk_unary(sym: nx_int, child: *Term) -> *Term
called by 1: main calls 2: sys_mmapnx_term_app
24func mk_binary(sym: nx_int, c0: *Term, c1: *Term) -> *Term
called by 1: main calls 2: sys_mmapnx_term_app
33func main() -> nx_exit