Repository navigation
creastmt det mutants: 2 stated equivalent, 0 killed, SORTOUT OPEN finding (Part of #8885) - #9091
Merged
Merged
Conversation
…nding (Part of #8885) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
3 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 #8885. Survivor attack on the 78 open
carddemo-sort-creastmt(DFSORTST) det mutants from #9082: 2 statedequivalent, 0 killed, 1 port finding. L5 for the program moves from 59/137 (43%) with 78 open to 59/137 with 76 open.Checklist: partial [c:69f0e953] -- not worked here; the nightly proof item is untouched (TRANIDX stays refused by name).
What I did
survivor_attack.py facts: settles 7 of the 78 from the port's text (already stated on main or not new yield).trywith fault inputs (SORTIN OPEN 35 / READ 30, SORTOUT OPEN 37 / WRITE 34) aimed at the message-literal and open-name survivors (87ed862a65 fbaed07eed 5395bd522e 98c11bbc2f 605059d62c f477c39f80 f8018d5d8e): allport-differs, see Finding. None killed.trywith a dataset input (SORTINbased_on / set) aimed ata73c67716b(K2 key length 17, killed only by a pair with equal card + TRAN-ID and a different TRAN-TYPE-CD byte): the tool cannot build it, becauseinput_layoutreadsprogram_sourceas a corpus path and this case's source is@case/DFSORTST.cbl(FileNotFoundError). A hand-built case would also put equal keys into a case that avoids them by design (DFSORT with no EQUALS leaves their order undefined), so it stays open.trywith a PARM (the only input the tool can run here) on0208aac286 63ac1a8908 1853734acb 762fd54863: all survived, as expected for an unread PARM. Two are stated, by reading the port:0208aac286:MOVE W-REC(263:17)into the 16-byteW-OUT(1:16)truncates on the right; same receiver.63ac1a8908:W-OUT(1:17)only pads byte 17, which the next MOVE (W-REC(1:262)toW-OUT(17:262)) rewrites on the only path.The PARM attempt is on record only so
stateaccepts the entry; the verdicts rest on the reasons, not on it. Stated with attempts perdet_mutation.py state --attempts;survivor_attack.py lint,det_mutation.py checkandstale-check --vs origin/mainpass.Finding (port-differs, not fixed here)
Fault
SORTOUT OPEN status 37: COBOL RETURN-CODE 1 (runtime error), Java RETURN-CODE 0.DfsortstService.p1storesO_FILE.open("OUTPUT")inst2and never reads it (the WRITE has a Hole for a bad status, the OPEN has none). IBM abends an OPEN with no FILE STATUS / declarative; the port carries on. The SORTIN faults are refused by name (Sort$NotModelled), the SORTOUT WRITE fault byHole: the port refuses, GnuCOBOL does not abend the same way, so the fault runs differ by design.Still open (unstated; no reason written without an input)
Left unstated: the 76 others. Notes: IMAGE/
initialStatemutants (W-OUT is fully rewritten per record) and perform-stack scaffolding (performThru, depth) need a harness that compares working-storage, or a deeper nest than this program has;1853734acb(perform(1, 2)runs BUILD-OUT once more after the loop, writing nothing) changes only uncompared W-OUT state: a harness-gap candidate.Class / Sibling gaps
Class: survivors of the det-port mutation ledger on a DFSORT-lowered batch step (a case whose program source is
@case/...), whichsurvivor_attack.py trycannot aim dataset inputs at. Sibling gaps: every othercarddemo-sort-*/@case-source case has the sametrylimitation (strengthen.input_layoutresolvesprogram_sourceagainst the corpus only); the SORTOUT OPEN-status gap above is the same shape for any lowered file OPEN whose status the port discards. Not done here; no issues filed.Remaining slices
strengthen.input_layout: resolve@case/sources (1 file + test), then redo the dataset attacks (a73c67716b with a duplicate-key pair needs an owner ruling on EQUALS first).DfsortstServiceOPEN OUTPUT status check in the det translator (finding above) with a fault case.🤖 Generated with Claude Code