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

Function reset_explain

Core/SoarKernel/src/explain.cpp:249–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247 **************************************************************************/
248
249void reset_explain(agent* thisAgent)
250{
251
252 explain_chunk_str* top, *chunk;
253
254 top = thisAgent->explain_chunk_list;
255 /* AGR 564 In previous statement, current_agent(...) was added. 2-May-94 */
256
257 while (top != NULL)
258 {
259 chunk = top;
260 top = top->next_chunk;
261 free_explain_chunk(thisAgent, chunk);
262 }
263
264 thisAgent->explain_chunk_list = NULL;
265 /* AGR 564 In previous statement, current_agent(...) was added. 2-May-94 */
266
267 reset_backtrace_list(thisAgent);
268}
269
270
271/***************************************************************************

Callers 1

reinitialize_soarFunction · 0.85

Calls 2

free_explain_chunkFunction · 0.85
reset_backtrace_listFunction · 0.85

Tested by

no test coverage detected