summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2021-03-01 09:11:52 +0100
committerDaniel Friesel <daniel.friesel@uos.de>2021-03-01 09:11:52 +0100
commit33cc2bd477e9f850e16f0340d303ea3f9c37a5fb (patch)
treecd1a32955653d3f525229ed81d27c2bcb9fbb321 /bin
parent32bcad3482781e7e2e42c5de10d938c1567b8390 (diff)
analyze-archive: handle dtree split on function arguments
Diffstat (limited to 'bin')
-rwxr-xr-xbin/analyze-archive.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py
index ee23a75..872025e 100755
--- a/bin/analyze-archive.py
+++ b/bin/analyze-archive.py
@@ -374,9 +374,11 @@ def print_analyticinfo(prefix, info):
def print_splitinfo(param_names, info, prefix=""):
if type(info) is SplitInfo:
for k, v in info.child.items():
- print_splitinfo(
- param_names, v, f"{prefix} {param_names[info.param_index]}={k}"
- )
+ if info.param_index < len(param_names):
+ param_name = param_names[info.param_index]
+ else:
+ param_name = f"arg{info.param_index - len(param_names)}"
+ print_splitinfo(param_names, v, f"{prefix} {param_name}={k}")
elif type(info) is AnalyticInfo:
print(f"{prefix} = analytic")
else: