Skip to content

Commit 295cf1d

Browse files
authored
Merge pull request #4038 from tautschnig/output_functions
Pass a non-empty identifier to output functions
2 parents 2838566 + 7610238 commit 295cf1d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/goto-analyzer/unreachable_instructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static void add_to_json(
128128
++it)
129129
{
130130
std::ostringstream oss;
131-
goto_program.output_instruction(ns, "", oss, *it->second);
131+
goto_program.output_instruction(ns, function_identifier, oss, *it->second);
132132
std::string s=oss.str();
133133

134134
std::string::size_type n=s.find('\n');

src/goto-instrument/goto_instrument_parse_options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int goto_instrument_parse_optionst::doit()
246246

247247
forall_goto_program_instructions(i_it, goto_program)
248248
{
249-
goto_program.output_instruction(ns, "", std::cout, *i_it);
249+
goto_program.output_instruction(ns, f_it->first, std::cout, *i_it);
250250
std::cout << "Is threaded: " << (is_threaded(i_it)?"True":"False")
251251
<< "\n\n";
252252
}

src/goto-instrument/unwind.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void goto_unwindt::unwind(
278278
symbol_tablet st;
279279
namespacet ns(st);
280280
std::cout << "Instruction:\n";
281-
goto_program.output_instruction(ns, "", std::cout, *i_it);
281+
goto_program.output_instruction(ns, function_id, std::cout, *i_it);
282282
#endif
283283

284284
if(!i_it->is_backwards_goto())

src/goto-programs/goto_inline_class.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ void goto_inlinet::output_inline_map(
751751
bool transitive=call.second;
752752

753753
out << " Call:\n";
754-
goto_program.output_instruction(ns, "", out, *target);
754+
goto_program.output_instruction(ns, id, out, *target);
755755
out << " Transitive: " << transitive << "\n";
756756
}
757757
}

0 commit comments

Comments
 (0)