Skip to content

Commit

Permalink
Thread through option to add modules to prover context (#2654)
Browse files Browse the repository at this point in the history
* kevm-pyk/utils: thread through option `extra_module` to run_prover

* kevm-pyk/utils: add import of KFlatModule

---------

Co-authored-by: Andrei Văcaru <16517508+anvacaru@users.noreply.github.com>
  • Loading branch information
ehildenb and anvacaru authored Nov 26, 2024
1 parent ba39cb4 commit bce2ea7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kevm-pyk/src/kevm_pyk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from collections.abc import Callable, Collection, Iterable, Iterator
from typing import Final, TypeVar

from pyk.kast.outer import KClaim, KDefinition
from pyk.kast.outer import KClaim, KDefinition, KFlatModule
from pyk.kcfg import KCFG
from pyk.kcfg.semantics import KCFGSemantics
from pyk.kore.rpc import FallbackReason
Expand Down Expand Up @@ -114,6 +114,7 @@ def run_prover(
task_id: TaskID | None = None,
maintenance_rate: int = 1,
assume_defined: bool = False,
extra_module: KFlatModule | None = None,
) -> bool:
prover: APRProver | ImpliesProver
try:
Expand All @@ -129,6 +130,7 @@ def create_prover() -> APRProver:
fast_check_subsumption=fast_check_subsumption,
direct_subproof_rules=direct_subproof_rules,
assume_defined=assume_defined,
extra_module=extra_module,
)

def update_status_bar(_proof: Proof) -> None:
Expand Down

0 comments on commit bce2ea7

Please sign in to comment.