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 9f54013 commit 4c44997Copy full SHA for 4c44997
pyk/src/pyk/kcfg/kcfg.py
@@ -542,7 +542,7 @@ def path_length(_path: Iterable[KCFG.Successor]) -> int:
542
elif type(_path[0]) is KCFG.Edge:
543
return _path[0].depth + KCFG.path_length(_path[1:])
544
elif type(_path[0]) is KCFG.MergedEdge:
545
- 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
546
raise ValueError(f'Cannot handle Successor type: {type(_path[0])}')
547
548
def extend(
0 commit comments