Commit 3eb45fa
committed
coinage-layer Phase 6 (part 11): coin/entry count_for_handle exec aggregators
Adds two exec aggregators tied to the spec-level count_*_locks_in_vec
functions:
coin_count_for_handle(handle) -> usize
entry_count_for_handle(handle) -> usize
Each scans the Vec and returns the number of locks currently
referencing `handle`. Sharp postcondition: the returned count exactly
equals count_*_locks_in_vec(_, handle, len).
Useful for:
- Diagnostics ("how many reservations does this in-flight op hold?")
- Host-side bulk-sweep termination ("loop releasing until count==0")
- Tests that walk an op lifecycle without re-counting in caller code
157 verified, 0 errors.1 parent 2c254f3 commit 3eb45fa
1 file changed
Lines changed: 65 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4484 | 4484 | | |
4485 | 4485 | | |
4486 | 4486 | | |
| 4487 | + | |
| 4488 | + | |
| 4489 | + | |
| 4490 | + | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + | |
| 4519 | + | |
| 4520 | + | |
| 4521 | + | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
| 4527 | + | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
4487 | 4552 | | |
4488 | 4553 | | |
4489 | 4554 | | |
| |||
0 commit comments