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

Commit 0e181c6

Browse files
committed
Reorder attributes
1 parent d632366 commit 0e181c6

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/pyk/kcfg/explore.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848

4949

5050
class CTermExecute(NamedTuple):
51-
vacuous: bool
52-
depth: int
5351
state: CTerm
5452
next_states: tuple[CTerm, ...]
53+
depth: int
54+
vacuous: bool
5555
logs: tuple[LogEntry, ...]
5656

5757

@@ -112,10 +112,10 @@ def cterm_execute(
112112
assert len(next_states) != 1 or response.reason is StopReason.CUT_POINT_RULE
113113

114114
return CTermExecute(
115-
vacuous=response.reason is StopReason.VACUOUS,
116-
depth=response.depth,
117115
state=state,
118116
next_states=next_states,
117+
depth=response.depth,
118+
vacuous=response.reason is StopReason.VACUOUS,
119119
logs=response.logs,
120120
)
121121

@@ -411,7 +411,7 @@ def extend_cterm(
411411
if len(branches) > 1:
412412
return Branch(branches, heuristic=True)
413413

414-
_is_vacuous, depth, cterm, next_cterms, next_node_logs = self.cterm_execute(
414+
cterm, next_cterms, depth, vacuous, next_node_logs = self.cterm_execute(
415415
_cterm,
416416
depth=execute_depth,
417417
cut_point_rules=cut_point_rules,
@@ -425,7 +425,7 @@ def extend_cterm(
425425

426426
# Stuck or vacuous
427427
if not next_cterms:
428-
if _is_vacuous:
428+
if vacuous:
429429
return Vacuous()
430430
return Stuck()
431431

0 commit comments

Comments
 (0)