Skip to content

Commit

Permalink
Make disjuncts in virtual method removal independent of class loading
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
peterschrammel committed Apr 16, 2018
1 parent fe4a642 commit 3afff86
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/goto-programs/remove_virtual_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ void remove_virtual_functionst::get_functions(
has_prefix(
id2string(b.symbol_expr.get_identifier()), "java::java.lang.Object"))
return true;
else if(a.symbol_expr.get_identifier() == b.symbol_expr.get_identifier())
return a.class_id < b.class_id;
else
return a.symbol_expr.get_identifier() < b.symbol_expr.get_identifier();
});
Expand Down

0 comments on commit 3afff86

Please sign in to comment.