Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

explain.c File Reference

Go to the source code of this file.

Functions

void init_explain (void)
void free_backtrace_list (backtrace_str *prod)
void reset_backtrace_list (void)
conditioncopy_cond_list (condition *top_list)
conditioncopy_conds_from_list (cons *top_list)
void explain_add_temp_to_backtrace_list (backtrace_str *temp, cons *grounds, cons *pots, cons *locals, cons *negateds)
void explain_add_temp_to_chunk_list (explain_chunk_str *temp)
void free_explain_chunk (explain_chunk_str *chunk)
void reset_explain (void)
explain_chunk_strfind_chunk (explain_chunk_str *chunk, char *name)
conditionfind_ground (explain_chunk_str *chunk, int number)
void explain_trace_chunk (explain_chunk_str *chunk)
conditionexplain_find_cond (condition *target, condition *cond_list)
void explain_trace (char *chunk_name, backtrace_str *prod_list, condition *ground)
void explain_list_chunks (void)
void explain_full_trace (void)


Function Documentation

condition* copy_cond_list condition top_list  ) 
 

Definition at line 137 of file explain.c.

References condition, and copy_condition_list().

Referenced by explain_add_temp_to_chunk_list().

condition* copy_conds_from_list cons top_list  ) 
 

Definition at line 150 of file explain.c.

References condition, cons, copy_condition(), cons_struct::first, condition_struct::next, condition_struct::prev, and cons_struct::rest.

Referenced by explain_add_temp_to_backtrace_list().

void explain_add_temp_to_backtrace_list backtrace_str temp,
cons grounds,
cons pots,
cons locals,
cons negateds
 

Definition at line 178 of file explain.c.

References backtrace_str, cons, copy_condition(), copy_conds_from_list(), backtrace_struct::grounds, backtrace_struct::locals, backtrace_struct::negated, condition_struct::next, backtrace_struct::next_backtrace, backtrace_struct::potentials, backtrace_struct::prod_name, backtrace_struct::result, and backtrace_struct::trace_cond.

Referenced by backtrace_through_instantiation().

void explain_add_temp_to_chunk_list explain_chunk_str temp  ) 
 

Definition at line 212 of file explain.c.

References explain_chunk_struct::actions, explain_chunk_struct::all_grounds, explain_chunk_struct::backtrace, explain_chunk_struct::conds, copy_cond_list(), explain_chunk_str, explain_chunk_struct::name, and explain_chunk_struct::next_chunk.

Referenced by chunk_instantiation().

condition* explain_find_cond condition target,
condition cond_list
 

Definition at line 362 of file explain.c.

References condition, conditions_are_equal(), and condition_struct::next.

Referenced by explain_trace().

void explain_full_trace void   ) 
 

Definition at line 493 of file explain.c.

References explain_chunk_str, explain_trace_chunk(), and explain_chunk_struct::next_chunk.

void explain_list_chunks void   ) 
 

Definition at line 470 of file explain.c.

References explain_chunk_str, explain_chunk_struct::name, explain_chunk_struct::next_chunk, and print().

Referenced by soar_ExplainBacktraces().

void explain_trace char *  chunk_name,
backtrace_str prod_list,
condition ground
 

Definition at line 381 of file explain.c.

References backtrace_str, condition, explain_find_cond(), backtrace_struct::grounds, backtrace_struct::locals, backtrace_struct::negated, backtrace_struct::next_backtrace, backtrace_struct::potentials, print(), print_condition(), backtrace_struct::prod_name, backtrace_struct::result, soar_ecExplainChunkTrace(), and backtrace_struct::trace_cond.

Referenced by soar_ecExplainChunkCondition().

void explain_trace_chunk explain_chunk_str chunk  ) 
 

Definition at line 329 of file explain.c.

References explain_chunk_struct::backtrace, backtrace_str, explain_chunk_str, backtrace_struct::grounds, backtrace_struct::locals, explain_chunk_struct::name, backtrace_struct::negated, backtrace_struct::next_backtrace, backtrace_struct::potentials, print(), print_condition(), print_list_of_conditions(), print_string(), backtrace_struct::prod_name, backtrace_struct::result, and backtrace_struct::trace_cond.

Referenced by explain_full_trace(), and soar_ecExplainChunkTrace().

explain_chunk_str* find_chunk explain_chunk_str chunk,
char *  name
 

Definition at line 286 of file explain.c.

References explain_chunk_str, explain_chunk_struct::name, explain_chunk_struct::next_chunk, and print().

Referenced by soar_ecExplainChunkCondition(), soar_ecExplainChunkConditionList(), and soar_ecExplainChunkTrace().

condition* find_ground explain_chunk_str chunk,
int  number
 

Definition at line 307 of file explain.c.

References explain_chunk_struct::all_grounds, condition, explain_chunk_str, condition_struct::next, and print().

Referenced by soar_ecExplainChunkCondition().

void free_backtrace_list backtrace_str prod  ) 
 

Definition at line 103 of file explain.c.

References backtrace_str, deallocate_condition_list(), backtrace_struct::grounds, backtrace_struct::locals, backtrace_struct::negated, backtrace_struct::next_backtrace, backtrace_struct::potentials, and backtrace_struct::trace_cond.

Referenced by free_explain_chunk(), and reset_backtrace_list().

void free_explain_chunk explain_chunk_str chunk  ) 
 

Definition at line 242 of file explain.c.

References explain_chunk_struct::actions, explain_chunk_struct::all_grounds, explain_chunk_struct::backtrace, explain_chunk_struct::conds, deallocate_action_list(), deallocate_condition_list(), explain_chunk_str, and free_backtrace_list().

Referenced by reset_explain().

void init_explain void   ) 
 

Definition at line 75 of file explain.c.

References set_sysparam().

Referenced by init_soar_agent().

void reset_backtrace_list void   ) 
 

Definition at line 124 of file explain.c.

References free_backtrace_list().

Referenced by chunk_instantiation(), and reset_explain().

void reset_explain void   ) 
 

Definition at line 260 of file explain.c.

References explain_chunk_str, free_explain_chunk(), explain_chunk_struct::next_chunk, and reset_backtrace_list().

Referenced by soar_cReInitSoar().


Generated on Thu Dec 11 13:00:26 2003 for Soar Kernel by doxygen 1.3.5