Skip to content

Commit

Permalink
add node merging heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevengre committed Jul 22, 2024
1 parent 5d3da50 commit 4e9a409
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyk/src/pyk/kcfg/semantics.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def same_loop(self, c1: CTerm, c2: CTerm) -> bool: ...
@abstractmethod
def custom_step(self, c: CTerm) -> KCFGExtendResult | None: ...

@abstractmethod
def is_mergeable(self, c1: CTerm, c2: CTerm) -> bool: ...


class DefaultSemantics(KCFGSemantics):
def is_terminal(self, c: CTerm) -> bool:
Expand All @@ -34,3 +37,6 @@ def same_loop(self, c1: CTerm, c2: CTerm) -> bool:

def custom_step(self, c: CTerm) -> KCFGExtendResult | None:
return None

def is_mergeable(self, c1: CTerm, c2: CTerm) -> bool:
return False

0 comments on commit 4e9a409

Please sign in to comment.