code wiki / (root) / nx_pre_sat_test.nx

nx_pre_sat_test.nx

buildroot/runtime/nx_pre_sat_test.nx

5350 B130 linesdepth 8pulls 9 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_pre_sat_test.nx -- pre-saturation simplification smoke.

dependencies 9 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_result.nx nx_unify.nx nx_resolution.nx nx_subsumption.nx nx_tautology.nx nx_pre_sat.nx nx_pre_sat_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.nxnx_resolution.nxnx_subsumption.nxnx_tautology.nxnx_pre_sat.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 ↻ place mk_unit_pos nx_clause_new sys_mmap ↻ nx_clause_add nx_result_err sys_mmap ↻ nx_clause_lit_at nx_result_ok sys_mmap ↻ nx_lit_make sys_mmap ↻ mk_p sys_mmap ↻ nx_term_app sys_mmap ↻ nx_clause_new ↻ nx_clause_add ↻ nx_lit_make ↻ nx_pre_sat_simplify nx_is_tautology nx_clause_lit_at ↻ nx_lit_is_reflexive_eq nx_term_arg nx_term_eq nx_term_eq ↻ nx_term_arg ↻ nx_term_eq ↻ nx_subsumes nx_subst_new sys_mmap ↻ nx_subsumes_from nx_clause_lit_at ↻ nx_match

structs

none

consts

13const SYM_A: nx_int = 100
14const SYM_P: nx_int = 200
15const SYM_Q: nx_int = 201
16const SYM_EQ: nx_int = 50
17const VAR_X: nx_int = 0

functions

19func mk_p(p_sym: nx_int, c_sym: nx_int) -> *Term
called by 1: main calls 2: sys_mmapnx_term_app
25func mk_p_var(p_sym: nx_int, var_id: nx_int) -> *Term
called by 1: main calls 2: sys_mmapnx_term_app
31func mk_unit_pos(atom: *Term) -> *Clause
37func place(arr: *Clause, i: nx_int, src: *Clause)
called by 1: main
43func main() -> nx_exit