Skip to content

Commit bce2ea7

Browse files
ehildenbanvacaru
andauthored
Thread through option to add modules to prover context (#2654)
* 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>
1 parent ba39cb4 commit bce2ea7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kevm-pyk/src/kevm_pyk/utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from collections.abc import Callable, Collection, Iterable, Iterator
3131
from typing import Final, TypeVar
3232

33-
from pyk.kast.outer import KClaim, KDefinition
33+
from pyk.kast.outer import KClaim, KDefinition, KFlatModule
3434
from pyk.kcfg import KCFG
3535
from pyk.kcfg.semantics import KCFGSemantics
3636
from pyk.kore.rpc import FallbackReason
@@ -114,6 +114,7 @@ def run_prover(
114114
task_id: TaskID | None = None,
115115
maintenance_rate: int = 1,
116116
assume_defined: bool = False,
117+
extra_module: KFlatModule | None = None,
117118
) -> bool:
118119
prover: APRProver | ImpliesProver
119120
try:
@@ -129,6 +130,7 @@ def create_prover() -> APRProver:
129130
fast_check_subsumption=fast_check_subsumption,
130131
direct_subproof_rules=direct_subproof_rules,
131132
assume_defined=assume_defined,
133+
extra_module=extra_module,
132134
)
133135

134136
def update_status_bar(_proof: Proof) -> None:

0 commit comments

Comments
 (0)