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

Function ExplainListChunks

Core/CLI/src/cli_explainbacktraces.cpp:29–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27using namespace sml;
28
29void ExplainListChunks(agent* thisAgent)
30{
31 explain_chunk_str* chunk;
32
33 chunk = thisAgent->explain_chunk_list;
34
35 if (!chunk)
36 {
37 print(thisAgent, "No chunks/justifications built yet!\n");
38 }
39 else
40 {
41 print(thisAgent, "List of all explained chunks/justifications:\n");
42 while (chunk != NULL)
43 {
44 print(thisAgent, "Have explanation for %s\n", chunk->name);
45 chunk = chunk->next_chunk;
46 }
47 }
48}
49
50bool ExplainChunks(agent* thisAgent, const char* pProduction, int mode)
51{

Callers 1

DoExplainBacktracesMethod · 0.85

Calls 1

printFunction · 0.85

Tested by

no test coverage detected