Skip to content

Commit

Permalink
* Readded print knowledge functionality. To make this go as quickly a…
Browse files Browse the repository at this point in the history
…s possible in the common case (not printing KB), we're not adding records to the KB (removing the mutex cost) and loading it again later, basically, with load_context
  • Loading branch information
jredmondson committed Sep 30, 2018
1 parent 1999b2d commit ea0d7d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/stk_inspect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,7 @@ int main (int argc, char ** argv)

if (print_knowledge)
{
kb.load_context (load_checkpoint_settings);
std::cout << "Printing final KB:\n";
kb.print ();
}
Expand All @@ -601,7 +602,7 @@ int main (int argc, char ** argv)
else
{
std::cout << "Result: FAIL\n";

return 1;
}
}

0 comments on commit ea0d7d2

Please sign in to comment.