nx_term_order_test.nx
buildroot/runtime/nx_term_order_test.nx
about
nx_term_order_test.nx -- KBO smoke covering all four verdicts.
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.nxnx_term_order.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
| 12 | const SYM_A: nx_int = 100 // constant, weight 1, prec 10 |
| 13 | const SYM_B: nx_int = 101 // constant, weight 1, prec 11 |
| 14 | const SYM_C: nx_int = 102 // constant, weight 1, prec 12 |
| 15 | const SYM_F: nx_int = 200 // unary, weight 1, prec 20 |
| 16 | const SYM_G: nx_int = 201 // unary, weight 1, prec 21 |
| 17 | const SYM_H: nx_int = 250 // binary, weight 1, prec 30 |
| 20 | const VAR_X: nx_int = 0 |
| 21 | const VAR_Y: nx_int = 1 |
| 22 | const NX_MAX_VAR: nx_int = 4 |
functions
| 25 | func mk_unary(sym: nx_int, child: *Term) -> *Term |
| 34 | func mk_binary(sym: nx_int, c0: *Term, c1: *Term) -> *Term |
| 43 | func report(name: *u8, expected: nx_int, actual: nx_int) -> nx_int |
| 58 | func main() -> nx_exit |