code wiki / (root) / nx_tptp_emit_test.nx

nx_tptp_emit_test.nx

buildroot/runtime/nx_tptp_emit_test.nx

6224 B157 linesdepth 7pulls 12 transitivereach 0 importersview sourcekind gate/prooftopic tptp
docsdependenciesstructsconstsfunctions

about

nx_tptp_emit_test.nx -- emitter smoke + parser round-trip.

dependencies 11 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_str.nx nx_result.nx nx_unify.nx nx_resolution.nx nx_tptp_symtab.nx nx_tptp_term.nx nx_tptp_formula.nx nx_tptp_emit_test.nx

diagram shows first 10 each side; +1 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_str.nxnx_result.nxnx_unify.nxnx_resolution.nxnx_tptp_symtab.nxnx_tptp_term.nxnx_tptp_formula.nxnx_tptp_emit.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 roundtrip nx_tptp_symtab_new sys_mmap ↻ mk_input nx_str_len sys_mmap ↻ nx_str_len ↻ sys_mmap ↻ nx_tptp_symtab_reset_vars nx_tptp_parse_cnf_clause nx_tptp_term_skip_ws nx_clause_new sys_mmap ↻ nx_tptp_parse_literal nx_tptp_term_skip_ws ↻ nx_tptp_parse_term nx_tptp_term_skip_ws ↻ sys_mmap ↻ nx_tptp_term_read_ident nx_tptp_is_variable_name nx_tptp_symtab_intern nx_tptp_is_variable_name ↻ nx_tptp_var_name_at nx_str_eq nx_str_cpy nx_tptp_sym_name_at nx_term_var sys_mmap ↻ nx_term_const sys_mmap ↻ nx_tptp_parse_term ↻ nx_term_app sys_mmap ↻ nx_lit_make sys_mmap ↻

structs

none

consts

15const SYM_EQ: nx_int = 50

functions

18func mk_input(s: *u8) -> *u8
28func roundtrip(input: *u8) -> *u8
50func roundtrip_lit_count(input: *u8, expected_n: nx_int) -> nx_int
78func main() -> nx_exit