We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa847df commit 63ff927Copy full SHA for 63ff927
pyk/src/pyk/kcfg/kcfg.py
@@ -541,7 +541,7 @@ def path_length(_path: Iterable[KCFG.Successor]) -> int:
541
elif type(_path[0]) is KCFG.Edge:
542
return _path[0].depth + KCFG.path_length(_path[1:])
543
elif type(_path[0]) is KCFG.MergedEdge:
544
- return sum(edge.depth for edge in _path[0].edges) + KCFG.path_length(_path[1:]) # todo: check this
+ return min(edge.depth for edge in _path[0].edges) + KCFG.path_length(_path[1:]) # todo: check this
545
raise ValueError(f'Cannot handle Successor type: {type(_path[0])}')
546
547
def extend(
0 commit comments