| 3423 | } |
| 3424 | |
| 3425 | void 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 | |
| 3441 | void print_lowest_slot_in_context_stack(agent* thisAgent) |
| 3442 | { |
no test coverage detected