This repository was archived by the owner on Apr 25, 2024. It is now read-only.
Commit 6ed3f28
Integrate the APR and APRBMC proof/prover classes into one (#870)
Currently we have a completely separate class hierarchy for `APRProof`
and `APRBMCProof` classes, which requires duplicates in the `*Prover`
classes and in the `*NodePrinter` classes and in the `*Show` classes.
This unifies the classes by making the `bmc_depth` an optional parameter
of `APRProof` and tracking the `_bounded` nodes directly in `APRProof`.
- `bmc_depth: int | None` is added as a field to `APRProof`, as is the
`_bounded: set[int]` set. The various utilities for manipulating the
class are updated to account for this.
- The `APRProver` class is updated to check if the `bmc_depth` field is
present, and if alters its `advance_pending_node` logic to check for
loops and take that into account.
- The various display classes like `APRNodePrinter` and `APRSummary` are
updated.
---------
Co-authored-by: devops <[email protected]>1 parent 170aa33 commit 6ed3f28
File tree
10 files changed
+128
-416
lines changed- docs
- package
- src
- pyk/proof
- tests
- integration/proof
- unit
10 files changed
+128
-416
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
0 commit comments