Repository navigation
equivalence: billpay pays a balance above one million and one of ten integer digits (Part of #5401) - #6017
Merged
Conversation
…integer digits (Part of #5401) COTRN02C-style truncation on COBIL00C: no account reached a wide amount or the tenth integer digit TRAN-AMT drops. Two synthetic accounts (appended) and two scenarios; GnuCOBOL and the port agree. The two survivors named in the issue were judged on the pre-#5844 port and are equivalent on the current one. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… COBIL00C L5 (Part of #5401) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 14:41
squid-protocol
enabled auto-merge (squash)
October 22, 2026 14:45
9 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #5401.
Checklist: partial [c:9c764f86] -- report
d2fca7d77a(fractional date part: GnuCOBOL truncates, IBM rounds a float-mode store, register C6; needs an owner ruling)What
billpay (COBIL00C) pays the whole balance: MOVE
ACCT-CURR-BALS9(10)V99 ->TRAN-AMTS9(9)V99, then REWRITE balance minus amount. Every CardDemo account is below 1,000,000.00, so no scenario showed a wide amount or the tenth integer digit the MOVE drops. Two synthetic accounts are appended to the case's own datasets (acctdata-5401.txt,cardxref-5401.txt, the acctviewappendpattern) with two scenarios:pay-balance-over-one-million(1,234,567.89) andpay-balance-ten-integer-digits(1,234,567,890.12, TRAN-AMT keeps 234,567,890.12).Class table (wide / fractional amounts that a PIC target truncates)
35957e9be4,77da652333868815f4c6,29f0e18174store()counted total digits); ids gone. Their current-port equivalents (84cb7729f6,95f2f0cf57, scale 3) change only the scale of a value the setter writes at scale 2: equivalent, not case gapsd5264128d1(store(bal,10,2))--only, seed 0)2f50a14acd(store(..,11,2))d2fca7d77aEvidence
equivalence.py run carddemo-billpay --record: proven on 35 scenarios, 16/16 paragraphs, 46/48 branches; GnuCOBOL and the port agree on both new scenarios.det_port.py run carddemo-billpay190/190 translated, PROVED;det_coverage_ledger.py update.det_mutation.py run carddemo-billpay, 150 mutants, seed 0): 96 killed, 51 survivors all accounted, L5 yes.pr_gates.py --fast7/7,--ratchets9/9;test_evidence.py, tree-wide guards, new test pass (plainpytestfrom /tmp).mutation_scores.jsonnot edited and the scores are not re-run; the doc paragraph says so.Mutation-judging note for reviewers: the two survivors in
mutation_scores.jsonare stale ids; the doc paragraph records the re-judgement.Lessons for agents
mutation.py run --only DIRneedsDIR/mutation.jsonwhose results carry bothidandverdict; mutant ids change when the port changes, so re-list (mutation.py list) before judging an id frommutation_scores.json.git stashis in the shared stack: a stray one in a worktree stashes tracked edits only; restore withgit stash apply <sha>and drop by sha.🤖 Generated with Claude Code