Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/pointer-analysis/value_set_analysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Author: Daniel Kroening, kroening@kroening.com
#include <langapi/language_util.h>

void value_sets_to_xml(
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
const std::function<const value_sett &(goto_programt::const_targett)>
&get_value_set,
const goto_programt &goto_program,
xmlt &dest)
{
Expand Down
11 changes: 9 additions & 2 deletions src/pointer-analysis/value_set_analysis.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Author: Daniel Kroening, kroening@kroening.com
class xmlt;

void value_sets_to_xml(
std::function<const value_sett &(goto_programt::const_targett)> get_value_set,
const std::function<const value_sett &(goto_programt::const_targett)>
&get_value_set,
const goto_programt &goto_program,
xmlt &dest);

Expand All @@ -39,12 +40,18 @@ class value_set_analysis_templatet:
{
}

const value_sett &get_value_set(goto_programt::const_targett t)
{
return (*this)[t].value_set;
}

void convert(
const goto_programt &goto_program,
xmlt &dest) const
{
using std::placeholders::_1;
value_sets_to_xml(
[this](locationt l) { return (*this)[l].value_set; },
std::bind(&value_set_analysis_templatet::get_value_set, *this, _1),
goto_program,
dest);
}
Expand Down