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

Function explain_chunk

Core/SoarKernel/src/explain.cpp:521–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

519 **************************************************************************/
520
521void explain_chunk(agent* thisAgent, char* chunk_name, int cond_number)
522{
523
524 explain_chunk_str* chunk;
525 condition* ground;
526
527 chunk = find_chunk(thisAgent, thisAgent->explain_chunk_list, chunk_name);
528 /* AGR 564 In previous statement, current_agent(...) was added. 2-May-94 */
529
530 if (chunk == NULL)
531 {
532 return;
533 }
534
535 ground = find_ground(thisAgent, chunk, cond_number);
536 if (ground == NIL)
537 {
538 return;
539 }
540
541 explain_trace(thisAgent, chunk_name, chunk->backtrace, ground);
542}
543
544/***************************************************************************
545 * Function : explain_cond_list

Callers

nothing calls this directly

Calls 3

find_chunkFunction · 0.85
find_groundFunction · 0.85
explain_traceFunction · 0.85

Tested by

no test coverage detected