Skip to content

Revert "Make more member function static in unified_difft" #1556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
4 changes: 2 additions & 2 deletions src/goto-diff/unified_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ unified_difft::get_diff(const irep_idt &function) const
unified_difft::goto_program_difft unified_difft::get_diff(
const goto_programt &old_goto_program,
const goto_programt &new_goto_program,
const differencest &differences)
const differencest &differences) const
{
goto_programt::instructionst::const_iterator old_it =
old_goto_program.instructions.begin();
Expand Down Expand Up @@ -148,7 +148,7 @@ void unified_difft::lcss(
const irep_idt &identifier,
const goto_programt &old_goto_program,
const goto_programt &new_goto_program,
differencest &differences)
differencest &differences) const
{
std::size_t old_count = old_goto_program.instructions.size();
std::size_t new_count = new_goto_program.instructions.size();
Expand Down
8 changes: 4 additions & 4 deletions src/goto-diff/unified_diff.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,16 @@ class unified_difft
const goto_programt &old_goto_program,
const goto_programt &new_goto_program);

static void lcss(
void lcss(
const irep_idt &identifier,
const goto_programt &old_goto_program,
const goto_programt &new_goto_program,
differencest &differences);
differencest &differences) const;

static goto_program_difft get_diff(
goto_program_difft get_diff(
const goto_programt &old_goto_program,
const goto_programt &new_goto_program,
const differencest &differences);
const differencest &differences) const;

void output_diff(
const irep_idt &identifier,
Expand Down