Skip to content

Commit 3afff86

Browse files
Make disjuncts in virtual method removal independent of class loading
The disjuncts created by virtual method removal depended on the class loading order, causing goto-diff to think that there was a change in the classes.
1 parent fe4a642 commit 3afff86

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/remove_virtual_functions.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,8 @@ void remove_virtual_functionst::get_functions(
445445
has_prefix(
446446
id2string(b.symbol_expr.get_identifier()), "java::java.lang.Object"))
447447
return true;
448+
else if(a.symbol_expr.get_identifier() == b.symbol_expr.get_identifier())
449+
return a.class_id < b.class_id;
448450
else
449451
return a.symbol_expr.get_identifier() < b.symbol_expr.get_identifier();
450452
});

0 commit comments

Comments
 (0)