no message

This commit is contained in:
2025-04-13 17:19:10 +03:00
parent 7efe852bc1
commit 46e1bd17f1
9 changed files with 32 additions and 32 deletions

View File

@@ -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,