Skip to content

Commit 1ec9b57

Browse files
Daniel KroeningPeter Schrammel
Daniel Kroening
authored and
Peter Schrammel
committed
re-activated outputs
1 parent 56952ea commit 1ec9b57

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/ansi-c/ansi_c_entry_point.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,6 @@ void record_function_outputs(
109109
code_blockt &init_code,
110110
symbol_tablet &symbol_table)
111111
{
112-
//const code_typet::parameterst &parameters=
113-
// to_code_type(function.type).parameters();
114-
115112
bool has_return_value=
116113
to_code_type(function.type).return_type()!=empty_typet();
117114

@@ -133,7 +130,9 @@ void record_function_outputs(
133130
init_code.move_to_operands(output);
134131
}
135132

136-
#if 0
133+
const code_typet::parameterst &parameters=
134+
to_code_type(function.type).parameters();
135+
137136
std::size_t i=0;
138137

139138
for(const auto & p : parameters)
@@ -159,7 +158,6 @@ void record_function_outputs(
159158

160159
i++;
161160
}
162-
#endif
163161
}
164162

165163
/*******************************************************************\
@@ -495,6 +493,7 @@ bool ansi_c_entry_point(
495493
init_code.move_to_operands(call_main);
496494

497495
// TODO: add read/modified (recursively in call graph) globals as INPUT/OUTPUT
496+
// TODO: add side effects and return values of functions without body
498497

499498
record_function_outputs(symbol, init_code, symbol_table);
500499

0 commit comments

Comments
 (0)