Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
DongjieHe committed Nov 16, 2023
1 parent b3b8c59 commit a036376
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions qilin.core/src/qilin/core/pag/PAG.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
import qilin.parm.heapabst.HeapAbstractor;
import qilin.util.DataFactory;
import qilin.util.PTAUtils;
import qilin.util.Pair;
import soot.*;
import soot.jimple.*;
import soot.jimple.internal.JArrayRef;
import soot.jimple.internal.JAssignStmt;
import soot.jimple.internal.JCaughtExceptionRef;
import soot.jimple.internal.JimpleLocal;
import soot.jimple.spark.pag.SparkField;
import soot.util.ArrayNumberer;
Expand Down Expand Up @@ -345,6 +347,14 @@ public GlobalVarNode makeGlobalVarNode(Object value, Type type) {
* Finds or creates the LocalVarNode for the variable value, of type type.
*/
public LocalVarNode makeLocalVarNode(Object value, Type type, SootMethod method) {
if (value instanceof Parm || value instanceof Local || value instanceof Stmt || value instanceof Pair || value instanceof Expr
|| value instanceof JCaughtExceptionRef
) {

} else {
System.out.println(value + ";;" + value.getClass());
}
JCaughtExceptionRef x;
LocalVarNode ret = (LocalVarNode) valToValNode.get(value);
if (ret == null) {
valToValNode.put(value, ret = new LocalVarNode(value, type, method));
Expand Down Expand Up @@ -588,15 +598,6 @@ private void handleArrayCopy(SootMethod method) {
}
}

public LocalVarNode makeInvokeStmtThrowVarNode(Stmt invoke, SootMethod method) {
return makeLocalVarNode(invoke, RefType.v("java.lang.Throwable"), method);
}

public HeapAbstractor heapAbstractor() {
return pta.heapAbstractor();
}


public void resetPointsToSet() {
this.addedContexts.clear();
contextVarNodeMap.values().stream().flatMap(m -> m.values().stream()).forEach(ValNode::discardP2Set);
Expand Down

0 comments on commit a036376

Please sign in to comment.