code wiki / (root) / nx_tstp_emit_test.nx

nx_tstp_emit_test.nx

buildroot/runtime/nx_tstp_emit_test.nx

3832 B99 linesdepth 8pulls 12 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_tstp_emit_test.nx -- TSTP proof serializer smoke.

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_emit.nx nx_proof_log.nx nx_tstp_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_emit.nxnx_proof_log.nxnx_tstp_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 nx_tptp_symtab_new sys_mmap ↻ 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_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_unary sys_mmap ↻ nx_term_app sys_mmap ↻ sys_mmap ↻ place nx_proof_log_new sys_mmap ↻ nx_proof_log_add nx_tstp_emit_proof nx_tstp_emit_clause nx_emit_str nx_emit_byte sys_mmap ↻ nx_int_to_decimal nx_proof_log_get nx_emit_clause_body

structs

none

consts

15const SYM_EQ: nx_int = 50

functions

17func mk_unary(p_sym: nx_int, c_sym: nx_int) -> *Term
called by 1: main calls 2: sys_mmapnx_term_app
23func place(arr: *Clause, i: nx_int, src: *Clause)
called by 1: main
29func main() -> nx_exit