nx_indexed_subsume_test.nx
buildroot/runtime/nx_indexed_subsume_test.nx
about
nx_indexed_subsume_test.nx -- discrim-tree-backed forward subsumption.
Verifies the indexed lookup gives the same answer as the linear scan.
dependencies 10 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.nxnx_resolution.nxnx_subsumption.nxnx_tautology.nxnx_disctree.nxnx_saturation.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 15 | const SYM_A: nx_int = 100 |
| 16 | const SYM_B: nx_int = 101 |
| 17 | const SYM_P: nx_int = 200 |
| 18 | const SYM_Q: nx_int = 201 |
| 19 | const VAR_X: nx_int = 0 |
functions
| 21 | func mk_p(p_sym: nx_int, c_sym: nx_int) -> *Term |
| 27 | func mk_p_var(p_sym: nx_int, var_id: nx_int) -> *Term |
| 33 | func mk_unit(atom: *Term) -> *Clause |
| 40 | func push(s: *Saturation, c: *Clause) |
| 46 | func compare(name: *u8, s: *Saturation, q: *Clause, expected: nx_int) -> nx_int |
| 61 | func main() -> nx_exit |