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

Function clear_goal_stack

Core/SoarKernel/src/decide.cpp:3425–3439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3423}
3424
3425void clear_goal_stack(agent* thisAgent)
3426{
3427 if (!thisAgent->top_goal)
3428 {
3429 return;
3430 }
3431
3432 remove_existing_context_and_descendents(thisAgent, thisAgent->top_goal);
3433 thisAgent->highest_goal_whose_context_changed = NIL; /* nothing changed yet */
3434 do_buffered_wm_and_ownership_changes(thisAgent);
3435 thisAgent->top_state = NIL;
3436 thisAgent->active_goal = NIL;
3437 do_input_cycle(thisAgent); /* tell input functions that the top state is gone */
3438 do_output_cycle(thisAgent); /* tell output functions that output commands are gone */
3439}
3440
3441void print_lowest_slot_in_context_stack(agent* thisAgent)
3442{

Callers 2

reinitialize_soarFunction · 0.85
~AgentSMLMethod · 0.85

Calls 4

do_input_cycleFunction · 0.85
do_output_cycleFunction · 0.85

Tested by

no test coverage detected