-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring changes: 1. for merged objects, we provide a MergedNewExp…
…r for each type. 2. MethodPAG directly include a Jimple body of the method. 3. add add a BasePTA between CorePTA and the concrete PTAs. 4. we move test from qilin.microben to qilin.pta and provide a build.xml to build microben using JDK 8-
- Loading branch information
Dongjie
committed
Feb 3, 2022
1 parent
e426f3a
commit bcf008e
Showing
54 changed files
with
377 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package qilin.core.pag; | ||
|
||
import soot.RefType; | ||
import soot.jimple.internal.JNewExpr; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class MergedNewExpr extends JNewExpr { | ||
private static final Map<RefType, MergedNewExpr> map = new HashMap<>(); | ||
|
||
private MergedNewExpr(RefType type) { | ||
super(type); | ||
} | ||
|
||
public static MergedNewExpr v(RefType type) { | ||
return map.computeIfAbsent(type, k -> new MergedNewExpr(type)); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.