Skip to content

Commit 6dcf77a

Browse files
martinmartin-cs
authored andcommitted
Make per-function XML and JSON outputs of ai_baset public
The corresponding text function has been public for a long time and there is not reason why the JSON and XML ones can't be as they are const and are called from other public methods.
1 parent 92581d1 commit 6dcf77a

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

src/analyses/ai.h

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,28 @@ class ai_baset
280280
const goto_programt &goto_program,
281281
std::ostream &out) const;
282282

283+
/// Output the abstract states for a single function as JSON
284+
/// \param ns: The namespace
285+
/// \param goto_program: The goto program
286+
/// \param function_id: The identifier used to find a symbol to
287+
/// identify the source language
288+
/// \return The JSON object
289+
virtual jsont output_json(
290+
const namespacet &ns,
291+
const irep_idt &function_id,
292+
const goto_programt &goto_program) const;
293+
294+
/// Output the abstract states for a single function as XML
295+
/// \param ns: The namespace
296+
/// \param goto_program: The goto program
297+
/// \param function_id: The identifier used to find a symbol to
298+
/// identify the source language
299+
/// \return The XML object
300+
virtual xmlt output_xml(
301+
const namespacet &ns,
302+
const irep_idt &function_id,
303+
const goto_programt &goto_program) const;
304+
283305
/// Output the abstract states for a whole program
284306
virtual void output(
285307
const namespacet &ns,
@@ -389,28 +411,6 @@ class ai_baset
389411
/// entry state required by the analysis
390412
trace_ptrt entry_state(const goto_functionst &goto_functions);
391413

392-
/// Output the abstract states for a single function as JSON
393-
/// \param ns: The namespace
394-
/// \param goto_program: The goto program
395-
/// \param function_id: The identifier used to find a symbol to
396-
/// identify the source language
397-
/// \return The JSON object
398-
virtual jsont output_json(
399-
const namespacet &ns,
400-
const irep_idt &function_id,
401-
const goto_programt &goto_program) const;
402-
403-
/// Output the abstract states for a single function as XML
404-
/// \param ns: The namespace
405-
/// \param goto_program: The goto program
406-
/// \param function_id: The identifier used to find a symbol to
407-
/// identify the source language
408-
/// \return The XML object
409-
virtual xmlt output_xml(
410-
const namespacet &ns,
411-
const irep_idt &function_id,
412-
const goto_programt &goto_program) const;
413-
414414
/// The work queue, sorted using the history's ordering operator
415415
typedef trace_sett working_sett;
416416

0 commit comments

Comments
 (0)