Skip to content

equivalence: state the CardDemo batch read-loop guard's false outcome as infeasible (Part of #5864) - #5915

Merged
squid-protocol merged 1 commit into
mainfrom
churn/5864-20261021T2046Z
Oct 21, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/5864-20261021T2046Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #5864. Checklist: done [c:bbd85fcc]

What

Seven CardDemo batch programs are one net branch short of L4. In each, the one outcome the committed proof leaves uncovered (evidence.json uncovered_branches) is the false arm of IF flag = 'N' inside PERFORM UNTIL flag = 'Y'. The flag has VALUE 'N' and is only ever set to 'Y', so it holds 'N' or 'Y' and the false arm is unreachable (family C). Each gets a reviewed entry in tests/equivalence/infeasible_outcomes.json:

case program line outcome
carddemo-readcard CBACT02C 75 IF false
carddemo-readxref CBACT03C 75 IF false
carddemo-readcust CBCUS01C 75 IF false
carddemo-intcalc CBACT04C 189 IF false
carddemo-dailyval CBTRN01C 165 IF false
carddemo-posttran CBTRN02C 203 IF false
carddemo-trnrpt CBTRN03C 171 IF false

Net branches become 22/22 for the three read programs, 85/85, 65/65, 95/95 and 81/81 (the stated outcome leaves the total).

The test test_carddemo_batch_read_loop_guard_is_the_only_outcome_the_proof_leaves checks each entry against the committed proof's uncovered list and the net total.

Plan change: CBTRN01C has the same shape as the other six (line 165), not a different mechanism as I first read it.

Class / siblings

Same-mechanism members are all seven checklist programs, all done here. No engine, golden or ledger change (the coverage ledger keeps raw counts). Other checklist lines (CBACT01C, COMEN01C, CBSA, GenApp) are separate items. The -generated sibling cases are not judged by the report and carry no entries.

Gates

pr_gates --fast 7/7, --ratchets 8/8, test_evidence.py and test_infeasible_outcomes.py pass. No det sweep re-run: no port or case input changed, and the entries rest on the proofs' recorded uncovered list; the next det sweep's infeasible_outcomes.py check will refute any that it reaches.

Review needed

These are assumptions of the proof, to be reviewed by the owner (#4602).

🤖 Generated with Claude Code

… as infeasible (Part of #5864)

CBACT02C/03C, CBCUS01C, CBACT04C, CBTRN01C/02C/03C each leave one outcome
uncovered: the false arm of `IF flag = 'N'` inside `PERFORM UNTIL flag = 'Y'`.
The flag holds only 'N' or 'Y', so no input reaches it (family C). Seven
reviewed entries plus a test tying each to its committed proof's uncovered list.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 21, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 21, 2026 20:58
@squid-protocol
squid-protocol enabled auto-merge (squash) October 21, 2026 21:07
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol merged commit 42f5e20 into main Oct 21, 2026
48 checks passed
@squid-protocol
squid-protocol deleted the churn/5864-20261021T2046Z branch October 21, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant