Skip to content

Commit 52eb5c7

Browse files
Add precondition on call_stackt::pop
Guarantee that it is never called on an empty stack.
1 parent 1ab1fff commit 52eb5c7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-symex/call_stack.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class call_stackt : public std::vector<framet>
3434

3535
void pop()
3636
{
37+
PRECONDITION(!empty());
3738
pop_back();
3839
}
3940

0 commit comments

Comments
 (0)