[graph] More assert

This commit is contained in:
Behdad Esfahbod 2023-08-01 14:18:03 -06:00
parent 3b386c3773
commit 7946984b96

View file

@ -280,8 +280,9 @@ struct graph_t
new_parents.alloc (parents.get_population ());
for (auto _ : parents)
{
assert (_.first < id_map.length);
new_parents.set (id_map[_.first], _.second);
assert (_.first < id_map.length);
assert (!new_parents.has (id_map[_.first]));
new_parents.set (id_map[_.first], _.second);
}
if (!new_parents.in_error ())