Skip to content

Commit

Permalink
#512 fix to avoid dropping some hierarchical addresses from discard d…
Browse files Browse the repository at this point in the history
…uring update
  • Loading branch information
yifr committed Jun 21, 2024
1 parent 95c797f commit 659afba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dynamic/update.jl
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,11 @@ function add_unvisited_to_discard!(discard::DynamicChoiceMap,
set_submap!(discard, key, submap)
else
subdiscard = get_submap(discard, key)
subdiscard_recursive = isempty(subdiscard) ? choicemap() : subdiscard
add_unvisited_to_discard!(
isempty(subdiscard) ? choicemap() : subdiscard,
subdiscard_recursive,
subvisited, submap)
set_submap!(discard, key, subdiscard)
set_submap!(discard, key, subdiscard_recursive)
end
end
end
Expand Down

0 comments on commit 659afba

Please sign in to comment.