Skip to content

Commit

Permalink
Don't push/pop disabled SVS subgoal states
Browse files Browse the repository at this point in the history
When SVS is disabled for subgoals, don't push or pop the state stack as new
subgoals are created.
  • Loading branch information
garfieldnate committed Jun 26, 2024
1 parent d40d773 commit 153c9a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Core/SVS/src/svs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,11 @@ void svs::state_creation_callback(Symbol* state)
std::string type, msg;
svs_state* s;

if (!(state->is_top_state() || is_enabled_in_substates()))
{
return;
}

if (state_stack.empty())
{
if (scn_cache)
Expand All @@ -404,6 +409,12 @@ void svs::state_creation_callback(Symbol* state)
void svs::state_deletion_callback(Symbol* state)
{
svs_state* s;

if (!(state->is_top_state() || is_enabled_in_substates()))
{
return;
}

s = state_stack.back();
assert(state == s->get_state());
if (state_stack.size() == 1)
Expand Down

0 comments on commit 153c9a2

Please sign in to comment.