@@ -124,6 +124,18 @@ class ai_baset
124
124
{
125
125
}
126
126
127
+ // / Output the abstract states for a single function
128
+ // / \param ns: The namespace
129
+ // / \param identifier: The identifier used to find a symbol to identify the
130
+ // / \param goto_program: The goto program
131
+ // / source language
132
+ // / \param out: The ostream to direct output to
133
+ virtual void output (
134
+ const namespacet &ns,
135
+ const irep_idt &identifier,
136
+ const goto_programt &goto_program,
137
+ std::ostream &out) const ;
138
+
127
139
// / Output the abstract states for a whole program
128
140
virtual void output (
129
141
const namespacet &ns,
@@ -139,22 +151,13 @@ class ai_baset
139
151
output (ns, goto_model.goto_functions , out);
140
152
}
141
153
142
- // / Output the abstract states for a function
143
- void output (
144
- const namespacet &ns,
145
- const goto_programt &goto_program,
146
- std::ostream &out) const
147
- {
148
- output (ns, goto_program, " " , out);
149
- }
150
-
151
154
// / Output the abstract states for a function
152
155
void output (
153
156
const namespacet &ns,
154
157
const goto_functionst::goto_functiont &goto_function,
155
158
std::ostream &out) const
156
159
{
157
- output (ns, goto_function.body , " " , out);
160
+ output (ns, " " , goto_function.body , out);
158
161
}
159
162
160
163
// / Output the abstract states for the whole program as JSON
@@ -175,15 +178,15 @@ class ai_baset
175
178
const namespacet &ns,
176
179
const goto_programt &goto_program) const
177
180
{
178
- return output_json (ns, goto_program, " " );
181
+ return output_json (ns, " " , goto_program );
179
182
}
180
183
181
184
// / Output the abstract states for a single function as JSON
182
185
jsont output_json (
183
186
const namespacet &ns,
184
187
const goto_functionst::goto_functiont &goto_function) const
185
188
{
186
- return output_json (ns, goto_function.body , " " );
189
+ return output_json (ns, " " , goto_function.body );
187
190
}
188
191
189
192
// / Output the abstract states for the whole program as XML
@@ -204,15 +207,15 @@ class ai_baset
204
207
const namespacet &ns,
205
208
const goto_programt &goto_program) const
206
209
{
207
- return output_xml (ns, goto_program, " " );
210
+ return output_xml (ns, " " , goto_program );
208
211
}
209
212
210
213
// / Output the abstract states for a single function as XML
211
214
xmlt output_xml (
212
215
const namespacet &ns,
213
216
const goto_functionst::goto_functiont &goto_function) const
214
217
{
215
- return output_xml (ns, goto_function.body , " " );
218
+ return output_xml (ns, " " , goto_function.body );
216
219
}
217
220
218
221
protected:
@@ -239,18 +242,6 @@ class ai_baset
239
242
// / entry state required by the analysis
240
243
void entry_state (const goto_functionst &goto_functions);
241
244
242
- // / Output the abstract states for a single function
243
- // / \param ns: The namespace
244
- // / \param goto_program: The goto program
245
- // / \param identifier: The identifier used to find a symbol to identify the
246
- // / source language
247
- // / \param out: The ostream to direct output to
248
- virtual void output (
249
- const namespacet &ns,
250
- const goto_programt &goto_program,
251
- const irep_idt &identifier,
252
- std::ostream &out) const ;
253
-
254
245
// / Output the abstract states for a single function as JSON
255
246
// / \param ns: The namespace
256
247
// / \param goto_program: The goto program
@@ -259,8 +250,8 @@ class ai_baset
259
250
// / \return The JSON object
260
251
virtual jsont output_json (
261
252
const namespacet &ns,
262
- const goto_programt &goto_program ,
263
- const irep_idt &identifier ) const ;
253
+ const irep_idt &function ,
254
+ const goto_programt &goto_program ) const ;
264
255
265
256
// / Output the abstract states for a single function as XML
266
257
// / \param ns: The namespace
@@ -270,8 +261,8 @@ class ai_baset
270
261
// / \return The XML object
271
262
virtual xmlt output_xml (
272
263
const namespacet &ns,
273
- const goto_programt &goto_program ,
274
- const irep_idt &identifier ) const ;
264
+ const irep_idt &function ,
265
+ const goto_programt &goto_program ) const ;
275
266
276
267
// / The work queue, sorted by location number
277
268
typedef std::map<unsigned , locationt> working_sett;
0 commit comments