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

Disambiguate NDBranch types #961

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
project = 'pyk'
author = 'Runtime Verification, Inc'
copyright = '2024, Runtime Verification, Inc'
version = '0.1.692'
release = '0.1.692'
version = '0.1.693'
release = '0.1.693'

# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.692
0.1.693
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "pyk"
version = "0.1.692"
version = "0.1.693"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
8 changes: 5 additions & 3 deletions src/pyk/kcfg/kcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def replace_target(self, node: KCFG.Node) -> KCFG.NDBranch:
_edges: dict[int, Edge]
_covers: dict[int, Cover]
_splits: dict[int, Split]
_ndbranches: dict[int, NDBranch]
_ndbranches: dict[int, KCFG.NDBranch]
_vacuous: set[int]
_stuck: set[int]
_aliases: dict[str, int]
Expand Down Expand Up @@ -827,7 +827,9 @@ def create_split(self, source_id: NodeIdLike, splits: Iterable[tuple[NodeIdLike,
self.add_successor(split)
return split

def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None) -> list[NDBranch]:
def ndbranches(
self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLike | None = None
) -> list[KCFG.NDBranch]:
source_id = self._resolve(source_id) if source_id is not None else None
target_id = self._resolve(target_id) if target_id is not None else None
return [
Expand All @@ -836,7 +838,7 @@ def ndbranches(self, *, source_id: NodeIdLike | None = None, target_id: NodeIdLi
if (source_id is None or source_id == b.source.id) and (target_id is None or target_id in b.target_ids)
]

def contains_ndbranch(self, ndbranch: NDBranch) -> bool:
def contains_ndbranch(self, ndbranch: KCFG.NDBranch) -> bool:
return ndbranch in self._ndbranches

def create_ndbranch(
Expand Down