Skip to content

Commit e82701a

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#1456 from diffblue/preserve-hidden
preserve hidden flag for functions
2 parents 3ff8448 + 7e42fd2 commit e82701a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/goto-programs/goto_convert_functions.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,14 @@ void goto_convert_functionst::convert_function(const irep_idt &identifier)
140140
const symbolt &symbol=ns.lookup(identifier);
141141
goto_functionst::goto_functiont &f=functions.function_map[identifier];
142142

143+
if(f.body_available())
144+
return; // already converted
145+
143146
// make tmp variables local to function
144147
tmp_symbol_prefix=id2string(symbol.name)+"::$tmp::";
145148
temporary_counter=0;
146149

147150
f.type=to_code_type(symbol.type);
148-
if(f.body_available())
149-
return; // already converted
150151

151152
if(symbol.value.is_nil() ||
152153
symbol.value.id()=="compiled") /* goto_inline may have removed the body */

0 commit comments

Comments
 (0)