File tree Expand file tree Collapse file tree 2 files changed +20
-14
lines changed
Expand file tree Collapse file tree 2 files changed +20
-14
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,25 @@ void unified_difft::output(std::ostream &os) const
397397 }
398398}
399399
400+
401+ bool unified_difft::instructions_equal (
402+ const goto_programt::instructiont &ins1,
403+ const goto_programt::instructiont &ins2,
404+ bool recurse) const
405+ {
406+ return
407+ ins1.code ==ins2.code &&
408+ ins1.function ==ins2.function &&
409+ ins1.type ==ins2.type &&
410+ ins1.guard ==ins2.guard &&
411+ ins1.targets .size ()==ins2.targets .size () &&
412+ (ins1.targets .empty () ||
413+ instructions_equal (
414+ *ins1.get_target (),
415+ *ins2.get_target (),
416+ false ));
417+ }
418+
400419const unified_difft::differences_mapt &unified_difft::differences_map () const
401420{
402421 return differences_map_;
Original file line number Diff line number Diff line change @@ -88,20 +88,7 @@ class unified_difft
8888 bool instructions_equal (
8989 const goto_programt::instructiont &ins1,
9090 const goto_programt::instructiont &ins2,
91- bool recurse=true ) const
92- {
93- return
94- ins1.code ==ins2.code &&
95- ins1.function ==ins2.function &&
96- ins1.type ==ins2.type &&
97- ins1.guard ==ins2.guard &&
98- ins1.targets .size ()==ins2.targets .size () &&
99- (ins1.targets .empty () ||
100- instructions_equal (
101- *ins1.get_target (),
102- *ins2.get_target (),
103- false ));
104- }
91+ bool recurse=true ) const ;
10592
10693 const differences_mapt &differences_map () const ;
10794
You can’t perform that action at this time.
0 commit comments