Skip to content

Commit

Permalink
updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilagichani14 committed Jan 7, 2025
1 parent 03e0faf commit 5722d82
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sootup.core/src/main/java/sootup/core/graph/StmtGraph.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
import java.util.stream.Collectors;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

import sootup.core.jimple.basic.Trap;
import sootup.core.jimple.common.ref.IdentityRef;
import sootup.core.jimple.common.ref.JCaughtExceptionRef;
import sootup.core.jimple.common.stmt.*;
Expand Down Expand Up @@ -356,7 +358,11 @@ public boolean equals(Object o) {
return false;
}

if (!briefStmtPrinter.buildTraps(this).equals(briefStmtPrinter.buildTraps(otherGraph))) {
briefStmtPrinter.buildTraps(this);
List<Trap> currTraps = briefStmtPrinter.getTraps();
briefStmtPrinter.buildTraps(otherGraph);
List<Trap> otherGraphTraps = briefStmtPrinter.getTraps();
if (!currTraps.equals(otherGraphTraps)) {
return false;
}

Expand Down

0 comments on commit 5722d82

Please sign in to comment.