Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangt2333 committed May 29, 2024
1 parent a99ba1a commit 943c4ec
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ private void initialize() {
// trigger the creation of taint objects
CallGraph<CSCallSite, CSMethod> cg = solver.getCallGraph();
if (cg != null) {
boolean handleStmt = context.config().callSiteMode()
|| context.config().sources().stream().anyMatch(FieldSource.class::isInstance);
cg.reachableMethods().forEach(csMethod -> {
JMethod method = csMethod.getMethod();
Context ctxt = csMethod.getContext();
IR ir = csMethod.getMethod().getIR();
if (context.config().callSiteMode() ||
context.config().sources().stream().anyMatch(FieldSource.class::isInstance)) {
if (handleStmt) {
ir.forEach(stmt -> onNewStmt(stmt, method));
}
this.onNewCSMethod(csMethod);
Expand Down

0 comments on commit 943c4ec

Please sign in to comment.