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
397
397
}
398
398
}
399
399
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
+
400
419
const unified_difft::differences_mapt &unified_difft::differences_map () const
401
420
{
402
421
return differences_map_;
Original file line number Diff line number Diff line change @@ -88,20 +88,7 @@ class unified_difft
88
88
bool instructions_equal (
89
89
const goto_programt::instructiont &ins1,
90
90
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 ;
105
92
106
93
const differences_mapt &differences_map () const ;
107
94
You can’t perform that action at this time.
0 commit comments