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

Commit

Permalink
Add cterm module for cterm.py (#912)
Browse files Browse the repository at this point in the history
We've had `cterm.py` at the top-level of the pyk library. This moves it
into a submodule in preparation for refactors to `KCFGExplore` to factor
out basic cterm manipulation commands from more complicated KCFG
manipulation commands.

- `cterm.py` is moved to `cterm/cterm.py`. Imports are adjusted.
- `cterm/__init__.py` is added, and setup so that almost no imports
elsewhere need to change.

---------

Co-authored-by: devops <devops@runtimeverification.com>
  • Loading branch information
ehildenb and devops committed Feb 24, 2024
1 parent b970e0c commit e1b9407
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Expand Up @@ -9,8 +9,8 @@
project = 'pyk'
author = 'Runtime Verification, Inc'
copyright = '2024, Runtime Verification, Inc'
version = '0.1.650'
release = '0.1.650'
version = '0.1.651'
release = '0.1.651'

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

[tool.poetry]
name = "pyk"
version = "0.1.650"
version = "0.1.651"
description = ""
authors = [
"Runtime Verification, Inc. <contact@runtimeverification.com>",
Expand Down
1 change: 1 addition & 0 deletions src/pyk/cterm/__init__.py
@@ -0,0 +1 @@
from .cterm import CSubst, CTerm, build_claim, build_rule
18 changes: 9 additions & 9 deletions src/pyk/cterm.py → src/pyk/cterm/cterm.py
Expand Up @@ -5,9 +5,9 @@
from itertools import chain
from typing import TYPE_CHECKING

from .kast import Atts, KAtt, KInner
from .kast.inner import KApply, KRewrite, KToken, KVariable, Subst, bottom_up
from .kast.manip import (
from ..kast import Atts, KAtt, KInner
from ..kast.inner import KApply, KRewrite, KToken, KVariable, Subst, bottom_up
from ..kast.manip import (
abstract_term_safely,
apply_existential_substitutions,
count_vars,
Expand All @@ -19,17 +19,17 @@
split_config_and_constraints,
split_config_from,
)
from .kast.outer import KClaim, KRule
from .prelude.k import GENERATED_TOP_CELL
from .prelude.kbool import andBool, orBool
from .prelude.ml import is_bottom, is_top, mlAnd, mlBottom, mlEqualsTrue, mlImplies, mlTop
from .utils import single, unique
from ..kast.outer import KClaim, KRule
from ..prelude.k import GENERATED_TOP_CELL
from ..prelude.kbool import andBool, orBool
from ..prelude.ml import is_bottom, is_top, mlAnd, mlBottom, mlEqualsTrue, mlImplies, mlTop
from ..utils import single, unique

if TYPE_CHECKING:
from collections.abc import Iterable, Iterator
from typing import Any

from .kast.outer import KDefinition
from ..kast.outer import KDefinition


@dataclass(frozen=True, order=True)
Expand Down

0 comments on commit e1b9407

Please sign in to comment.