Soar Kernel
9.3.2 08-06-12
|
Go to the source code of this file.
Data Structures | |
struct | backtrace_struct |
Macros | |
#define | BUFFER_PROD_NAME_SIZE 256 |
Typedefs | |
typedef struct agent_struct | agent |
typedef struct backtrace_struct | backtrace_str |
typedef char | Bool |
typedef struct condition_struct | condition |
typedef signed short | goal_stack_level |
typedef struct instantiation_struct | instantiation |
Functions | |
void | backtrace_through_instantiation (agent *thisAgent, instantiation *inst, goal_stack_level grounds_level, condition *trace_cond, bool *reliable, int indent) |
void | report_local_negation (agent *thisAgent, condition *c) |
void | trace_grounded_potentials (agent *thisAgent) |
void | trace_locals (agent *thisAgent, goal_stack_level grounds_level, bool *reliable) |
Bool | trace_ungrounded_potentials (agent *thisAgent, goal_stack_level grounds_level, bool *reliable) |
#define BUFFER_PROD_NAME_SIZE 256 |
Definition at line 34 of file backtrace.h.
Referenced by backtrace_through_instantiation(), and explain_add_temp_to_backtrace_list().
typedef struct agent_struct agent |
Definition at line 32 of file backtrace.h.
typedef struct backtrace_struct backtrace_str |
typedef char Bool |
Definition at line 28 of file backtrace.h.
typedef struct condition_struct condition |
Definition at line 29 of file backtrace.h.
typedef signed short goal_stack_level |
Definition at line 31 of file backtrace.h.
typedef struct instantiation_struct instantiation |
Definition at line 30 of file backtrace.h.
void backtrace_through_instantiation | ( | agent * | thisAgent, |
instantiation * | inst, | ||
goal_stack_level | grounds_level, | ||
condition * | trace_cond, | ||
bool * | reliable, | ||
int | indent | ||
) |
Definition at line 176 of file backtrace.cpp.
References add_to_chunk_cond_set(), add_to_grounds(), add_to_locals(), add_to_potentials(), instantiation_struct::backtrace_number, agent_struct::backtrace_number, condition_struct::bt, BUFFER_PROD_NAME_SIZE, condition_struct::data, explain_add_temp_to_backtrace_list(), EXPLAIN_SYSPARAM, FALSE, free_list(), get_new_tc_number(), backtrace_struct::grounds, symbol_union::id, three_field_tests_struct::id_test, IDENTIFIER_SYMBOL_TYPE, agent_struct::instantiations_with_nots, identifier_struct::isa_goal, bt_info_struct::level, backtrace_struct::locals, make_chunk_cond_for_condition(), production_struct::name, sym_constant_struct::name, backtrace_struct::negated, agent_struct::negated_set, not_struct::next, condition_struct::next, backtrace_struct::next_backtrace, NIL, instantiation_struct::nots, POSITIVE_CONDITION, backtrace_struct::potentials, print(), print_consed_list_of_condition_wmes(), print_consed_list_of_conditions(), print_spaces(), print_string(), print_with_symbols(), instantiation_struct::prod, backtrace_struct::prod_name, push(), referent_of_equality_test(), instantiation_struct::reliable, backtrace_struct::result, not_struct::s1, not_struct::s2, symbol_union::sc, agent_struct::sysparams, identifier_struct::tc_num, condition_struct::condition_main_data_union::tests, instantiation_struct::top_of_instantiated_conditions, TRACE_BACKTRACING_SYSPARAM, backtrace_struct::trace_cond, TRUE, condition_struct::type, three_field_tests_struct::value_test, xml_att_val(), xml_begin_tag(), and xml_end_tag().
Referenced by chunk_instantiation(), trace_locals(), and trace_ungrounded_potentials().
Definition at line 693 of file backtrace.cpp.
References free_list(), NIL, print_consed_list_of_conditions(), print_string(), push(), agent_struct::sysparams, TRACE_CHUNK_NAMES_SYSPARAM, xml_begin_tag(), and xml_end_tag().
Referenced by build_chunk_conds_for_grounds_and_add_negateds().
void trace_grounded_potentials | ( | agent * | thisAgent | ) |
Definition at line 550 of file backtrace.cpp.
References add_cond_to_tc(), condition_struct::bt, cond_is_in_tc(), FALSE, cons_struct::first, free_cons(), get_new_tc_number(), agent_struct::grounds, wme_struct::grounds_tc, agent_struct::grounds_tc, NIL, agent_struct::positive_potentials, print_string(), print_wme(), cons_struct::rest, agent_struct::sysparams, TRACE_BACKTRACING_SYSPARAM, TRUE, bt_info_struct::wme_, xml_begin_tag(), and xml_end_tag().
Referenced by chunk_instantiation().
void trace_locals | ( | agent * | thisAgent, |
goal_stack_level | grounds_level, | ||
bool * | reliable | ||
) |
Definition at line 444 of file backtrace.cpp.
References add_to_potentials(), three_field_tests_struct::attr_test, backtrace_through_instantiation(), condition_struct::bt, condition_struct::data, find_clone_for_level(), cons_struct::first, free_cons(), symbol_union::id, three_field_tests_struct::id_test, preference_struct::inst, identifier_struct::isa_goal, agent_struct::locals, NIL, print_preference(), print_string(), print_wme(), bt_info_struct::prohibits, agent_struct::quiescence_symbol, referent_of_equality_test(), cons_struct::rest, agent_struct::sysparams, agent_struct::t_symbol, condition_struct::test_for_acceptable_preference, condition_struct::condition_main_data_union::tests, bt_info_struct::trace, TRACE_BACKTRACING_SYSPARAM, three_field_tests_struct::value_test, bt_info_struct::wme_, xml_begin_tag(), and xml_end_tag().
Referenced by chunk_instantiation().
Bool trace_ungrounded_potentials | ( | agent * | thisAgent, |
goal_stack_level | grounds_level, | ||
bool * | reliable | ||
) |
Definition at line 610 of file backtrace.cpp.
References backtrace_through_instantiation(), condition_struct::bt, FALSE, find_clone_for_level(), cons_struct::first, free_cons(), preference_struct::inst, NIL, agent_struct::positive_potentials, print_preference(), print_string(), print_wme(), bt_info_struct::prohibits, cons_struct::rest, agent_struct::sysparams, bt_info_struct::trace, TRACE_BACKTRACING_SYSPARAM, TRUE, bt_info_struct::wme_, xml_begin_tag(), and xml_end_tag().
Referenced by chunk_instantiation().