Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify kimp run #32

Merged
merged 6 commits into from
Nov 14, 2024
Merged
Changes from 1 commit
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
Next Next commit
Remove krun
tothtamas28 committed Nov 13, 2024
commit e08b9e4755c66abf0af0e710484f445a2a5748d3
2 changes: 1 addition & 1 deletion examples/specs/imp-sum-spec.k
Original file line number Diff line number Diff line change
@@ -42,4 +42,4 @@ module IMP-SUM-SPEC
requires N >=Int 0
andBool M >=Int 0

endmodule
endmodule
7 changes: 1 addition & 6 deletions kimp/src/kimp/kimp.py
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@
from pyk.kore.rpc import KoreClient, kore_server
from pyk.ktool.claim_loader import ClaimLoader
from pyk.ktool.kprove import KProve
from pyk.ktool.krun import KRun, KRunOutput, _krun
from pyk.ktool.krun import KRunOutput, _krun
from pyk.proof.reachability import APRProof, APRProver
from pyk.proof.show import APRProofShow
from pyk.proof.tui import APRProofViewer
@@ -122,11 +122,6 @@ def format(self) -> Formatter:
def kprove(self) -> KProve:
return KProve(definition_dir=self.haskell_dir, use_directory=self.proof_dir)

@cached_property
def krun(self) -> KRun:
krun = KRun(definition_dir=self.llvm_dir)
return krun

def run_program(
self,
program_file: str | Path,