}
//DEBUG
- if (true) {
+ if (false) {
int debugindex=0;
for(Map.Entry<BBlock, Graph> e:bbgraphMap.entrySet()) {
Graph g=e.getValue();
if (delta.getInit()) {
removeInitTaints(null, delta, graph);
for (TempDescriptor tmp:sese.getInVarSet()) {
- Taint taint=Taint.factory(sese, null, tmp, AllocFactory.dummySite, sese, ReachGraph.predsEmpty);
+ Taint taint=Taint.factory(sese, null, tmp, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
MySet<Edge> edges=GraphManip.getEdges(graph, delta, tmp);
for(Edge e:edges) {
Edge newe=e.addTaint(taint);
} else {
removeDiffTaints(null, delta);
for (TempDescriptor tmp:sese.getInVarSet()) {
- Taint taint=Taint.factory(sese, null, tmp, AllocFactory.dummySite, sese, ReachGraph.predsEmpty);
+ Taint taint=Taint.factory(sese, null, tmp, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
MySet<Edge> edges=GraphManip.getDiffEdges(delta, tmp);
for(Edge e:edges) {
Edge newe=e.addTaint(taint);
MySet<Edge> dstEdges=GraphManip.getEdges(graph, delta, dst);
if (OoOJava&&!accessible.isAccessible(node, dst)) {
- Taint dstStallTaint=Taint.factory(node, dst, AllocFactory.dummySite, node, ReachGraph.predsEmpty);
+ Taint dstStallTaint=Taint.factory(node, dst, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
dstEdges=Edge.taintAll(dstEdges, dstStallTaint);
updateVarDelta(graph, delta, dst, dstEdges, null);
}
MySet<Edge> srcEdges=GraphManip.getEdges(graph, delta, src);
if (OoOJava&&!accessible.isAccessible(node, src)) {
- Taint srcStallTaint=Taint.factory(node, src, AllocFactory.dummySite, node, ReachGraph.predsEmpty);
+ Taint srcStallTaint=Taint.factory(node, src, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
srcEdges=Edge.taintAll(srcEdges, srcStallTaint);
updateVarDelta(graph, delta, src, srcEdges, null);
}
MySet<Edge> newDstEdges=GraphManip.getDiffEdges(delta, dst);
if (OoOJava&&!accessible.isAccessible(node, dst)) {
- Taint dstStallTaint=Taint.factory(node, dst, AllocFactory.dummySite, node, ReachGraph.predsEmpty);
+ Taint dstStallTaint=Taint.factory(node, dst, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
newDstEdges=Edge.taintAll(newDstEdges, dstStallTaint);
updateVarDelta(graph, delta, dst, newDstEdges, null);
}
HashSet<AllocNode> dstNodes=GraphManip.getNodes(graph, delta, dst);
if (OoOJava&&!accessible.isAccessible(node, src)) {
- Taint srcStallTaint=Taint.factory(node, src, AllocFactory.dummySite, node, ReachGraph.predsEmpty);
+ Taint srcStallTaint=Taint.factory(node, src, AllocFactory.dummySite, null, ReachGraph.predsEmpty);
newSrcEdges=Edge.taintAll(newSrcEdges, srcStallTaint);
updateVarDelta(graph, delta, src, newSrcEdges, null);
}
dst=ffn.getDst();
}
if (OoOJava&&!accessible.isAccessible(node, src)) {
- taint=TaintSet.factory(Taint.factory(node, src, AllocFactory.dummySite, node, ReachGraph.predsEmpty));
+ taint=TaintSet.factory(Taint.factory(node, src, AllocFactory.dummySite, null, ReachGraph.predsEmpty));
}
//Do nothing for non pointers