code wiki / (root) / nx_unify_test.nx

nx_unify_test.nx

buildroot/runtime/nx_unify_test.nx

4229 B94 linesdepth 5pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_unify_test.nx -- Robinson unification smoke.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_result.nx nx_unify.nx nx_unify_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.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 nx_term_var sys_mmap ↻ nx_term_const sys_mmap ↻ nx_subst_new sys_mmap ↻ nx_unify nx_subst_apply nx_subst_lookup nx_subst_apply ↻ sys_mmap ↻ nx_term_arg nx_term_app sys_mmap ↻ nx_term_eq nx_term_eq ↻ nx_term_arg ↻ nx_result_ok sys_mmap ↻ nx_term_contains_var nx_term_contains_var ↻ nx_term_arg ↻ nx_result_err sys_mmap ↻ nx_subst_add nx_result_err ↻ nx_result_ok ↻ nx_unify ↻ nx_term_arg ↻ nx_result_is_err nx_result_is_err ↻ nx_subst_lookup ↻ sys_mmap ↻ nx_term_app ↻ nx_result_err_code

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
16const VAR_X: nx_int = 1
17const VAR_Y: nx_int = 2
18const VAR_Z: nx_int = 3

functions

20func main() -> nx_exit