MCPcopy Create free account
hub / github.com/SoarGroup/Soar / free_backtrace_list

Function free_backtrace_list

Core/SoarKernel/src/explain.cpp:81–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 **************************************************************************/
80
81void free_backtrace_list(agent* thisAgent, backtrace_str* prod)
82{
83
84 backtrace_str* next_prod;
85
86 while (prod != NULL)
87 {
88 next_prod = prod->next_backtrace;
89 deallocate_condition_list(thisAgent, prod->trace_cond);
90 deallocate_condition_list(thisAgent, prod->grounds);
91 deallocate_condition_list(thisAgent, prod->potentials);
92 deallocate_condition_list(thisAgent, prod->locals);
93 deallocate_condition_list(thisAgent, prod->negated);
94 free(prod);
95 prod = next_prod;
96 }
97}
98
99/***************************************************************************
100 * Function : reset_backtrace_list

Callers 2

reset_backtrace_listFunction · 0.85
free_explain_chunkFunction · 0.85

Calls 1

Tested by

no test coverage detected