no message
This commit is contained in:
@@ -83,12 +83,12 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
|
||||
res.add(name);
|
||||
if (depth > 0) {
|
||||
if (out) {
|
||||
for (FuncCall call : target.allFunctions.get(name).calls)
|
||||
for (FuncCall call : target.allFunctions.get(name).callsFrom)
|
||||
getNeighbors_r(res, call.funcName, depth - 1, in, true);
|
||||
}
|
||||
if (in) {
|
||||
for (FuncInfo parent : target.allFunctions.values()) {
|
||||
for (FuncCall call : parent.calls) {
|
||||
for (FuncCall call : parent.callsFrom) {
|
||||
if (call.funcName.equals(name)) {
|
||||
getNeighbors_r(res, parent.funcName, depth - 1, true, out);
|
||||
}
|
||||
@@ -102,12 +102,12 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
|
||||
if (!res.contains(name)) {
|
||||
res.add(name);
|
||||
if (out) {
|
||||
for (FuncCall call : target.allFunctions.get(name).calls)
|
||||
for (FuncCall call : target.allFunctions.get(name).callsFrom)
|
||||
getNeighborsNoDepth_r(res, call.funcName, in, true);
|
||||
}
|
||||
if (in) {
|
||||
for (FuncInfo parent : target.allFunctions.values()) {
|
||||
for (FuncCall call : parent.calls) {
|
||||
for (FuncCall call : parent.callsFrom) {
|
||||
if (call.funcName.equals(name)) {
|
||||
getNeighborsNoDepth_r(res, parent.funcName, true, out);
|
||||
}
|
||||
@@ -237,7 +237,7 @@ public class SPF_GetGraphFunctionPositions extends SilentSapforPass {
|
||||
//теперь добавить ребер.
|
||||
for (String funcName : target.functionsGraph.vertexMap.keySet()) {
|
||||
FuncInfo fi = target.allFunctions.get(funcName);
|
||||
for (FuncCall fc : fi.calls) {
|
||||
for (FuncCall fc : fi.callsFrom) {
|
||||
if (target.functionsGraph.vertexMap.containsKey(fc.funcName))
|
||||
target.functionsGraph.addEdge(
|
||||
funcName,
|
||||
|
||||
Reference in New Issue
Block a user