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

Commit 5dda1cc

Browse files
committed
tests/integration/proof/test_goto: migrate to unified BMC prover
1 parent b8baa48 commit 5dda1cc

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/tests/integration/proof/test_goto.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
from pyk.kcfg.show import KCFGShow
1212
from pyk.prelude.ml import mlEqualsTrue
1313
from pyk.prelude.utils import token
14-
from pyk.proof import APRBMCProof, APRBMCProver, ProofStatus
15-
from pyk.proof.show import APRBMCProofNodePrinter
14+
from pyk.proof import APRProof, APRProver, ProofStatus
15+
from pyk.proof.show import APRProofNodePrinter
1616
from pyk.testing import KCFGExploreTest, KProveTest
1717
from pyk.utils import single
1818

@@ -27,7 +27,6 @@
2727
from pyk.kast.outer import KDefinition
2828
from pyk.kcfg import KCFGExplore
2929
from pyk.ktool.kprove import KProve
30-
from pyk.proof import APRProof
3130

3231
_LOGGER: Final = logging.getLogger(__name__)
3332

@@ -115,12 +114,9 @@ def test_all_path_bmc_reachability_prove(
115114
kprove.get_claims(Path(spec_file), spec_module_name=spec_module, claim_labels=[f'{spec_module}.{claim_id}'])
116115
)
117116

118-
proof = APRBMCProof.from_claim_with_bmc_depth(kprove.definition, claim, bmc_depth)
117+
proof = APRProof.from_claim(kprove.definition, claim, logs={}, bmc_depth=bmc_depth)
119118
kcfg_explore.simplify(proof.kcfg, {})
120-
prover = APRBMCProver(
121-
proof,
122-
kcfg_explore=kcfg_explore,
123-
)
119+
prover = APRProver(proof, kcfg_explore=kcfg_explore)
124120
prover.advance_proof(
125121
max_iterations=max_iterations,
126122
execute_depth=max_depth,
@@ -129,7 +125,7 @@ def test_all_path_bmc_reachability_prove(
129125
)
130126

131127
kcfg_show = KCFGShow(
132-
kcfg_explore.kprint, node_printer=APRBMCProofNodePrinter(proof, kcfg_explore.kprint, full_printer=True)
128+
kcfg_explore.kprint, node_printer=APRProofNodePrinter(proof, kcfg_explore.kprint, full_printer=True)
133129
)
134130
cfg_lines = kcfg_show.show(proof.kcfg)
135131
_LOGGER.info('\n'.join(cfg_lines))

0 commit comments

Comments
 (0)