Soar Kernel
9.3.2 08-06-12
|
#include <portability.h>
#include <stdlib.h>
#include "backtrace.h"
#include "mem.h"
#include "kernel.h"
#include "print.h"
#include "wmem.h"
#include "gdatastructs.h"
#include "agent.h"
#include "instantiations.h"
#include "production.h"
#include "symtab.h"
#include "explain.h"
#include "recmem.h"
#include "xml.h"
#include "soar_TraceNames.h"
Go to the source code of this file.
Functions | |
void | add_to_grounds (agent *thisAgent, condition *cond) |
void | add_to_locals (agent *thisAgent, condition *cond) |
void | add_to_potentials (agent *thisAgent, condition *cond) |
void | backtrace_through_instantiation (agent *thisAgent, instantiation *inst, goal_stack_level grounds_level, condition *trace_cond, bool *reliable, int indent) |
void | print_consed_list_of_condition_wmes (agent *thisAgent, list *c, int indent) |
void | print_consed_list_of_conditions (agent *thisAgent, list *c, 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) |
Definition at line 106 of file backtrace.cpp.
References agent_struct::grounds, agent_struct::grounds_tc, and push().
Referenced by backtrace_through_instantiation().
Definition at line 123 of file backtrace.cpp.
References agent_struct::locals, agent_struct::locals_tc, and push().
Referenced by backtrace_through_instantiation().
Definition at line 113 of file backtrace.cpp.
References agent_struct::positive_potentials, agent_struct::potentials_tc, and push().
Referenced by backtrace_through_instantiation(), and trace_locals().
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 161 of file backtrace.cpp.
References COLUMNS_PER_LINE, cons_struct::first, get_printer_output_column(), NIL, print(), print_spaces(), print_wme(), and cons_struct::rest.
Referenced by backtrace_through_instantiation().
Definition at line 150 of file backtrace.cpp.
References COLUMNS_PER_LINE, cons_struct::first, get_printer_output_column(), NIL, print(), print_condition(), print_spaces(), and cons_struct::rest.
Referenced by backtrace_through_instantiation(), and report_local_negation().
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().