Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit faf3d1a

Browse files
committed
proof/reachability: for admitted proofs with no progress, fallback to using the overall summary
1 parent fad2f4e commit faf3d1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/pyk/proof/reachability.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,8 @@ def _inject_module(module_name: str, import_name: str, sentences: list[KRule]) -
663663
dependencies_as_rules: list[KRuleLike] = []
664664
for apr_subproof in apr_subproofs:
665665
dependencies_as_rules.extend(apr_subproof.kcfg.to_rules(priority=20))
666+
if apr_subproof.admitted and len(apr_subproof.kcfg.predecessors(apr_subproof.target)) == 0:
667+
dependencies_as_rules.append(apr_subproof.as_rule(priority=20))
666668
circularity_rule = proof.as_rule(priority=20)
667669

668670
module_name = re.sub(r'[%().:,]+', '-', self.proof.id.upper())

0 commit comments

Comments
 (0)