Skip to content

Commit c39d5fc

Browse files
author
Lefan Zhang
committed
update abst: another assertion
1 parent a55db79 commit c39d5fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-instrument/abstraction_spect.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ abstraction_spect abstraction_spect::update_abst_spec(
126126
throw "The updated spect's shape should be the same as the original one";
127127
new_abst_spec.specs.push_back(new_spec);
128128
}
129+
if(specs.size() != new_abst_spec.specs.size())
130+
throw "The updated specs' size should remain the same";
129131
return new_abst_spec;
130132
}
131133

0 commit comments

Comments
 (0)