Skip to content

Commit fbed57e

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 2ef91e7 commit fbed57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-programs/goto_convert.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2105,6 +2105,7 @@ symbolt &goto_convertt::new_tmp_symbol(
21052105
const source_locationt &source_location,
21062106
const irep_idt &mode)
21072107
{
2108+
PRECONDITION(!mode.empty());
21082109
symbolt &new_symbol = get_fresh_aux_symbol(
21092110
type,
21102111
tmp_symbol_prefix,

0 commit comments

Comments
 (0)