|
Defines |
#define | MAX_VAR_SIZE 200 |
#define | freeing_stack_increment 1000 |
#define | push_node(node) |
#define | pop_node(node) |
#define | DELETE_TRIE_STACK_INIT 100 |
#define | MAX_DELETE_TRIE_STACK_SIZE 1000 |
#define | DT_NODE 0 |
#define | DT_DS 1 |
#define | DT_HT 2 |
#define | push_delete_trie_node(node, op) |
#define | push_delete_trie_hh(hh) |
#define | ADJUST_SIZE 100 |
#define | DELETED_SET 1 |
#define | is_trie_instruction(cp_inst) |
#define | check_insert_private_deltf_pred(tif) check_insert_global_deltf_pred(tif) |
#define | check_insert_private_deltf_subgoal(subgoal) check_insert_global_deltf_subgoal(subgoal) |
Functions |
xsbBool | has_unconditional_answers (VariantSF subg) |
VariantSF | get_variant_sf (CTXTdeclc Cell callTerm, TIFptr pTIF, Cell *retTerm) |
SubProdSF | get_subsumer_sf (CTXTdeclc Cell callTerm, TIFptr pTIF, Cell *retTerm) |
BTNptr | get_trie_root (BTNptr node) |
Cell | build_ret_term (CTXTdeclc int arity, Cell termVector[]) |
void | construct_answer_template (CTXTdeclc Cell callTerm, SubProdSF producer, Cell templ[]) |
VariantSF | get_call (CTXTdeclc Cell callTerm, Cell *retTerm) |
static void | free_trie_ht (CTXTdeclc BTHTptr ht) |
void | delete_variant_sf_and_answers (CTXTdeclc VariantSF pSF) |
static void | delete_variant_table (CTXTdeclc BTNptr x) |
void | delete_predicate_table (CTXTdeclc TIFptr tif) |
void | reclaim_deleted_subsumptive_table (CTXTdeclc DelTFptr) |
void | reclaim_deleted_predicate_table (CTXTdeclc DelTFptr deltf_ptr) |
static int | is_hash (BTNptr x) |
static void | set_parent_and_node_hook (BTNptr current, BTNptr *root_hook, BTNptr *parent, BTNptr **cur_hook) |
static BTNptr | get_prev_sibl (BTNptr node) |
void | delete_branch (CTXTdeclc BTNptr lowest_node_in_branch, BTNptr *hook) |
void | safe_delete_branch (BTNptr lowest_node_in_branch) |
void | undelete_branch (BTNptr lowest_node_in_branch) |
void | delete_trie (CTXTdeclc BTNptr iroot) |
void | delete_return (CTXTdeclc BTNptr l, VariantSF sg_frame) |
void | reclaim_del_ret_list (CTXTdeclc VariantSF sg_frame) |
void | breg_retskel (CTXTdecl) |
void | init_newtrie (CTXTdecl) |
Integer | newtrie (CTXTdecl) |
void | trie_intern (CTXTdecl) |
int | trie_interned (CTXTdecl) |
void | trie_dispose (CTXTdecl) |
void | delete_interned_trie (CTXTdeclc Integer tmpval) |
static IGRptr | newIGR (long root) |
static IGLptr | newIGL (BTNptr leafn) |
static IGRptr | getIGRnode (CTXTdeclc long rootn) |
static IGRptr | getAndRemoveIGRnode (CTXTdeclc long rootn) |
static void | insertLeaf (IGRptr r, BTNptr leafn) |
void | trie_dispose_nr (CTXTdecl) |
void | reclaim_uninterned_nr (CTXTdeclc long rootidx) |
void | trie_undispose (CTXTdeclc long rootIdx, BTNptr leafn) |
xsbBool | is_completed_table (TIFptr tif) |
Psc | get_psc_for_answer_trie_cp (CTXTdeclc BTNptr pLeaf) |
VariantSF | get_subgoal_frame_for_answer_trie_cp (CTXTdeclc BTNptr pLeaf) |
TIFptr | get_tif_for_answer_trie_cp (CTXTdeclc BTNptr pLeaf) |
void | check_insert_global_deltf_pred (CTXTdeclc TIFptr tif) |
void | check_insert_global_deltf_subgoal (CTXTdeclc VariantSF subgoal) |
int | fast_abolish_table_predicate (CTXTdeclc Psc psc) |
void | mark_cp_tables (CTXTdecl) |
void | unmark_cp_tables (CTXTdecl) |
int | abolish_table_call_cps_check (CTXTdeclc VariantSF subgoal) |
int | abolish_table_call (CTXTdeclc VariantSF subgoal) |
int | abolish_table_pred_cps_check (CTXTdeclc Psc psc) |
int | abolish_table_predicate (CTXTdeclc Psc psc) |
void | mark_tabled_preds (CTXTdecl) |
void | mark_private_tabled_preds (CTXTdecl) |
int | sweep_tabled_preds (CTXTdecl) |
int | gc_tabled_preds (CTXTdecl) |
int | abolish_usermod_tables (CTXTdecl) |
int | abolish_module_tables (CTXTdeclc const char *module_name) |
void | release_all_tabling_resources (CTXTdecl) |
void | abolish_all_tables_cps_check (CTXTdecl) |
void | abolish_table_info (CTXTdecl) |
Variables |
BTNptr * | Set_ArrayPtr |
Integer | first_free_set |
int | Set_ArraySz |
int | num_sets |
static IGRptr | IGRhead = NULL |
DelTFptr | deltf_chain_begin = (DelTFptr) NULL |