|
cprover
|
#include <unified_diff.h>
Collaboration diagram for unified_difft:Public Types | |
| enum | differencet { differencet::SAME, differencet::DELETED, differencet::NEW } |
| typedef std::list< std::pair< goto_programt::const_targett, differencet > > | goto_program_difft |
| typedef std::vector< differencet > | differencest |
| typedef std::map< irep_idt, differencest > | differences_mapt |
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 |
| 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 Public 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) |
Public Attributes | |
| const goto_functionst & | old_goto_functions |
| const namespacet | ns_old |
| const goto_functionst & | new_goto_functions |
| const namespacet | ns_new |
Private Attributes | |
| differences_mapt | differences_map_ |
Definition at line 30 of file unified_diff.h.
| typedef std::map<irep_idt, differencest> unified_difft::differences_mapt |
Definition at line 57 of file unified_diff.h.
| typedef std::vector<differencet> unified_difft::differencest |
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 47 of file unified_diff.h.
|
strong |
| Enumerator | |
|---|---|
| SAME | |
| DELETED | |
| NEW | |
Definition at line 39 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.
| const unified_difft::differences_mapt & unified_difft::differences_map | ( | ) | const |
Definition at line 400 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.
|
static |
Definition at line 54 of file unified_diff.cpp.
|
static |
Definition at line 391 of file unified_diff.cpp.
|
static |
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 367 of file unified_diff.cpp.
| void unified_difft::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 |
Definition at line 103 of file unified_diff.cpp.
| void unified_difft::unified_diff | ( | const irep_idt & | identifier, |
| const goto_programt & | old_goto_program, | ||
| const goto_programt & | new_goto_program | ||
| ) |
Definition at line 305 of file unified_diff.cpp.
|
private |
Definition at line 87 of file unified_diff.h.
| const goto_functionst& unified_difft::new_goto_functions |
Definition at line 53 of file unified_diff.h.
| const namespacet unified_difft::ns_new |
Definition at line 54 of file unified_diff.h.
| const namespacet unified_difft::ns_old |
Definition at line 52 of file unified_diff.h.
| const goto_functionst& unified_difft::old_goto_functions |
Definition at line 51 of file unified_diff.h.