CBMC
|
#include <unified_diff.h>
Public Types | |
enum class | differencet { SAME , DELETED , NEW } |
typedef std::list< std::pair< goto_programt::const_targett, differencet > > | goto_program_difft |
Public Member Functions | |
unified_difft (const goto_modelt &model_old, const goto_modelt &model_new) | |
bool | operator() () |
void | output (std::ostream &os) const |
goto_program_difft | get_diff (const irep_idt &function) const |
Private Types | |
typedef std::vector< differencet > | differencest |
typedef std::map< irep_idt, differencest > | differences_mapt |
Private Member Functions | |
void | unified_diff (const irep_idt &identifier, const goto_programt &old_goto_program, const goto_programt &new_goto_program) |
void | output_diff (const irep_idt &identifier, const goto_programt &old_goto_program, const goto_programt &new_goto_program, const differencest &differences, std::ostream &os) const |
const differences_mapt & | differences_map () const |
Static Private Member Functions | |
static differencest | lcss (const goto_programt &old_goto_program, const goto_programt &new_goto_program) |
static goto_program_difft | get_diff (const goto_programt &old_goto_program, const goto_programt &new_goto_program, const differencest &differences) |
static bool | instructions_equal (const goto_programt::instructiont &ins1, const goto_programt::instructiont &ins2) |
Private Attributes | |
const goto_functionst & | old_goto_functions |
const namespacet | ns_old |
const goto_functionst & | new_goto_functions |
const namespacet | ns_new |
differences_mapt | differences_map_ |
Definition at line 29 of file unified_diff.h.
|
private |
Definition at line 57 of file unified_diff.h.
|
private |
Definition at line 56 of file unified_diff.h.
typedef std::list<std::pair<goto_programt::const_targett, differencet> > unified_difft::goto_program_difft |
Definition at line 46 of file unified_diff.h.
|
strong |
Enumerator | |
---|---|
SAME | |
DELETED | |
NEW |
Definition at line 38 of file unified_diff.h.
unified_difft::unified_difft | ( | const goto_modelt & | model_old, |
const goto_modelt & | model_new | ||
) |
Definition at line 20 of file unified_diff.cpp.
|
private |
Definition at line 408 of file unified_diff.cpp.
|
staticprivate |
Definition at line 54 of file unified_diff.cpp.
unified_difft::goto_program_difft unified_difft::get_diff | ( | const irep_idt & | function | ) | const |
Definition at line 31 of file unified_diff.cpp.
|
staticprivate |
Definition at line 399 of file unified_diff.cpp.
|
staticprivate |
Definition at line 147 of file unified_diff.cpp.
bool unified_difft::operator() | ( | void | ) |
Definition at line 328 of file unified_diff.cpp.
void unified_difft::output | ( | std::ostream & | os | ) | const |
Definition at line 375 of file unified_diff.cpp.
|
private |
Definition at line 103 of file unified_diff.cpp.
|
private |
Definition at line 305 of file unified_diff.cpp.
|
private |
Definition at line 86 of file unified_diff.h.
|
private |
Definition at line 53 of file unified_diff.h.
|
private |
Definition at line 54 of file unified_diff.h.
|
private |
Definition at line 52 of file unified_diff.h.
|
private |
Definition at line 51 of file unified_diff.h.