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

Commit 390af0a

Browse files
rv-jenkinsrv-auditortothtamas28Petar Maksimovic
authored
Update dependency: deps/k_release (#634)
Co-authored-by: devops <[email protected]> Co-authored-by: Tamás Tóth <[email protected]> Co-authored-by: Petar Maksimovic <[email protected]>
1 parent e87862c commit 390af0a

File tree

6 files changed

+10
-5
lines changed

6 files changed

+10
-5
lines changed

deps/k_release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.69
1+
6.0.87

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.436
1+
0.1.437

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyk"
7-
version = "0.1.436"
7+
version = "0.1.437"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

src/pyk/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
from typing import Final
77

88

9-
K_VERSION: Final = '6.0.69'
9+
K_VERSION: Final = '6.0.87'

src/pyk/cterm.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ def _is_bottom(kast: KInner) -> bool:
110110
flat = flatten_label('#And', kast)
111111
if len(flat) == 1:
112112
return is_bottom(single(flat))
113-
return all(CTerm._is_bottom(term) for term in flat)
113+
return any(CTerm._is_bottom(term) for term in flat)
114+
115+
@property
116+
def is_bottom(self) -> bool:
117+
return CTerm._is_bottom(self.config) or any(CTerm._is_bottom(cterm) for cterm in self.constraints)
114118

115119
@staticmethod
116120
def _constraint_sort_key(term: KInner) -> tuple[int, str]:

src/pyk/kcfg/explore.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def cterm_execute(
9393
next_state = CTerm.from_kast(self.kprint.kore_to_kast(er.state.kore))
9494
_next_states = er.next_states if er.next_states is not None else []
9595
next_states = [CTerm.from_kast(self.kprint.kore_to_kast(ns.kore)) for ns in _next_states]
96+
next_states = [cterm for cterm in next_states if not cterm.is_bottom]
9697
if len(next_states) == 1 and len(next_states) < len(_next_states):
9798
return depth + 1, next_states[0], [], er.logs
9899
elif len(next_states) == 1:

0 commit comments

Comments
 (0)