Skip to content

Commit

Permalink
Display number of terminal nodes in one_line_summary for APRProof (
Browse files Browse the repository at this point in the history
…#4566)

Adds the number of terminal nodes to `one_line_summary` for `APRProof`.
Also changes the display to use `|` as dividers instead of `/`.
  • Loading branch information
nwatson22 authored and PetarMax committed Aug 6, 2024
1 parent 1c43e2e commit dad78b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyk/src/pyk/proof/reachability.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,11 +509,12 @@ def one_line_summary(self) -> str:
failing = len(self.failing)
branches = len(self.kcfg.ndbranches()) + len(self.kcfg.splits())
vacuous = len(self.kcfg.vacuous)
terminal = len(self.terminal)
stuck = len(self.kcfg.stuck)
passed = len([cover for cover in self.kcfg.covers() if cover.target.id == self.target])
return (
super().one_line_summary
+ f'/{nodes} nodes/{pending} pending/{passed} passed/{failing} failing/{branches} branches/{vacuous} vacuous/{stuck} stuck'
+ f'|{nodes} nodes|{pending} pending|{passed} passed|{failing} failing|{branches} branches|{vacuous} vacuous|{terminal} terminal|{stuck} stuck'
)

def get_refutation_id(self, node_id: int) -> str:
Expand Down

0 comments on commit dad78b1

Please sign in to comment.