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

Commit 1abd06c

Browse files
committed
Drop next states from AbortedResult
1 parent 3d30128 commit 1abd06c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

src/pyk/kore/rpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,11 @@ def from_dict(cls: type[VacuousResult], dct: Mapping[str, Any]) -> VacuousResult
666666
@dataclass(frozen=True)
667667
class AbortedResult(ExecuteResult):
668668
reason = StopReason.ABORTED
669+
next_states = None
669670
rule = None
670671

671672
state: State
672673
depth: int
673-
next_states: tuple[State, ...]
674674
unknown_predicate: Pattern | None
675675
logs: tuple[LogEntry, ...]
676676

@@ -681,7 +681,6 @@ def from_dict(cls: type[AbortedResult], dct: Mapping[str, Any]) -> AbortedResult
681681
return AbortedResult(
682682
state=State.from_dict(dct['state']),
683683
depth=dct['depth'],
684-
next_states=tuple(State.from_dict(next_state) for next_state in dct['next-states']),
685684
unknown_predicate=kore_term(dct['unknown-predicate'], Pattern) if dct.get('unknown-predicate') else None, # type: ignore
686685
logs=logs,
687686
)

src/tests/unit/kore/test_client.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ def kore_client(mock: Mock, mock_class: Mock) -> Iterator[KoreClient]: # noqa:
118118
},
119119
AbortedResult(
120120
state=State(term=int_dv(1), substitution=int_dv(2), predicate=int_dv(3)),
121-
next_states=(),
122121
depth=4,
123122
unknown_predicate=int_dv(5),
124123
logs=(),

0 commit comments

Comments
 (0)