Skip to content

Commit 09d8c40

Browse files
Add precondition ensuring mode is not empty
This ensures goto_convert does not create symbols with empty mode, which could create issues in the later steps of cbmc analysis.
1 parent 4e14139 commit 09d8c40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-programs/goto_convert.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2095,6 +2095,7 @@ symbolt &goto_convertt::new_tmp_symbol(
20952095
const source_locationt &source_location,
20962096
const irep_idt &mode)
20972097
{
2098+
PRECONDITION(!mode.empty());
20982099
symbolt &new_symbol = get_fresh_aux_symbol(
20992100
type,
21002101
tmp_symbol_prefix,

0 commit comments

Comments
 (0)