@@ -35,15 +35,15 @@ void ai_baset::output(
3535 out << " ////\n " ;
3636 out << " \n " ;
3737
38- output (ns, f_it->second . body , f_it->first , out);
38+ output (ns, f_it->first , f_it->second . body , out);
3939 }
4040 }
4141}
4242
4343void ai_baset::output (
4444 const namespacet &ns,
45+ const irep_idt &function_identifier,
4546 const goto_programt &goto_program,
46- const irep_idt &identifier,
4747 std::ostream &out) const
4848{
4949 forall_goto_program_instructions (i_it, goto_program)
@@ -54,7 +54,7 @@ void ai_baset::output(
5454 abstract_state_before (i_it)->output (out, *this , ns);
5555 out << " \n " ;
5656 #if 1
57- goto_program.output_instruction (ns, identifier , out, *i_it);
57+ goto_program.output_instruction (ns, function_identifier , out, *i_it);
5858 out << " \n " ;
5959 #endif
6060 }
@@ -74,7 +74,7 @@ jsont ai_baset::output_json(
7474 if (f_it->second .body_available ())
7575 {
7676 result[id2string (f_it->first )]=
77- output_json (ns, f_it->second . body , f_it->first );
77+ output_json (ns, f_it->first , f_it->second . body );
7878 }
7979 else
8080 {
@@ -90,8 +90,8 @@ jsont ai_baset::output_json(
9090// / \return The JSON object
9191jsont ai_baset::output_json (
9292 const namespacet &ns,
93- const goto_programt &goto_program ,
94- const irep_idt &identifier ) const
93+ const irep_idt &function ,
94+ const goto_programt &goto_program ) const
9595{
9696 json_arrayt contents;
9797
@@ -107,7 +107,7 @@ jsont ai_baset::output_json(
107107
108108 // Ideally we need output_instruction_json
109109 std::ostringstream out;
110- goto_program.output_instruction (ns, identifier , out, *i_it);
110+ goto_program.output_instruction (ns, function , out, *i_it);
111111 location[" instruction" ]=json_stringt (out.str ());
112112
113113 contents.push_back (location);
@@ -135,7 +135,7 @@ xmlt ai_baset::output_xml(
135135
136136 if (f_it->second .body_available ())
137137 {
138- function.new_element (output_xml (ns, f_it->second . body , f_it->first ));
138+ function.new_element (output_xml (ns, f_it->first , f_it->second . body ));
139139 }
140140
141141 program.new_element (function);
@@ -149,8 +149,8 @@ xmlt ai_baset::output_xml(
149149// / \return The XML object
150150xmlt ai_baset::output_xml (
151151 const namespacet &ns,
152- const goto_programt &goto_program ,
153- const irep_idt &identifier ) const
152+ const irep_idt &function ,
153+ const goto_programt &goto_program ) const
154154{
155155 xmlt function_body;
156156
@@ -168,7 +168,7 @@ xmlt ai_baset::output_xml(
168168
169169 // Ideally we need output_instruction_xml
170170 std::ostringstream out;
171- goto_program.output_instruction (ns, identifier , out, *i_it);
171+ goto_program.output_instruction (ns, function , out, *i_it);
172172 location.set_attribute (" instruction" , out.str ());
173173
174174 function_body.new_element (location);
0 commit comments