Skip to content

Commit

Permalink
Load claims using ClaimLoader (#2532)
Browse files Browse the repository at this point in the history
* Replace calls to `KProve.get_claims` by `ClaimLoader.load_claims`

* Set Version: 1.0.649

* Set Version: 1.0.650

* Set Version: 1.0.652

* Set Version: 1.0.655

* Set Version: 1.0.659

* Set Version: 1.0.660

* Set Version: 1.0.661

---------

Co-authored-by: devops <[email protected]>
Co-authored-by: Andrei Văcaru <[email protected]>
Co-authored-by: Everett Hildenbrandt <[email protected]>
  • Loading branch information
4 people authored Jul 31, 2024
1 parent c325c55 commit d7f2081
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion kevm-pyk/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 = "kevm-pyk"
version = "1.0.660"
version = "1.0.661"
description = ""
authors = [
"Runtime Verification, Inc. <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion kevm-pyk/src/kevm_pyk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
if TYPE_CHECKING:
from typing import Final

VERSION: Final = '1.0.660'
VERSION: Final = '1.0.661'
7 changes: 4 additions & 3 deletions kevm-pyk/src/kevm_pyk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from pyk.kdist import kdist
from pyk.kore.rpc import KoreClient
from pyk.kore.tools import kore_print
from pyk.ktool.claim_loader import ClaimLoader
from pyk.ktool.kompile import LLVMKompileType
from pyk.proof import APRProof
from pyk.proof.implies import EqualityProof
Expand Down Expand Up @@ -250,7 +251,7 @@ def is_functional(claim: KClaim) -> bool:
llvm_definition_dir = definition_dir / 'llvm-library' if (options.use_booster or options.use_booster_dev) else None

_LOGGER.info(f'Extracting claims from file: {options.spec_file}')
all_claims = kevm.get_claims(
all_claims = ClaimLoader(kevm).load_claims(
options.spec_file,
spec_module_name=options.spec_module,
include_dirs=include_dirs,
Expand Down Expand Up @@ -411,7 +412,7 @@ def exec_prune(options: PruneOptions) -> None:

_LOGGER.info(f'Extracting claims from file: {options.spec_file}')
claim = single(
kevm.get_claims(
ClaimLoader(kevm).load_claims(
options.spec_file,
spec_module_name=options.spec_module,
include_dirs=include_dirs,
Expand Down Expand Up @@ -459,7 +460,7 @@ def exec_section_edge(options: SectionEdgeOptions) -> None:
include_dirs += config.INCLUDE_DIRS

claim = single(
kevm.get_claims(
ClaimLoader(kevm).load_claims(
options.spec_file,
spec_module_name=options.spec_module,
include_dirs=include_dirs,
Expand Down
3 changes: 2 additions & 1 deletion kevm-pyk/src/kevm_pyk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from pyk.kcfg import KCFGExplore
from pyk.kore.rpc import KoreClient, KoreExecLogFormat, TransportType, kore_server
from pyk.ktool import TypeInferenceMode
from pyk.ktool.claim_loader import ClaimLoader
from pyk.prelude.ml import is_bottom, is_top
from pyk.proof import APRProof, APRProver
from pyk.proof.implies import EqualityProof, ImpliesProver
Expand Down Expand Up @@ -80,7 +81,7 @@ def get_apr_proof_for_spec(

_LOGGER.info(f'Extracting claim from file: {spec_file}')
claim = single(
kprove.get_claims(
ClaimLoader(kprove).load_claims(
spec_file,
spec_module_name=spec_module_name,
include_dirs=include_dirs,
Expand Down
2 changes: 1 addition & 1 deletion package/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.660
1.0.661

0 comments on commit d7f2081

Please sign in to comment.