Repository navigation
LE conditions: GnuCOBOL frame source, one identity per activation, handler cob_call_params 4 (Part of #8062) - #8748
Merged
Conversation
…cursion refused, handler call sets cob_call_params 4 (Part of #8062) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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 #8062, slice 2 (after #8714): the GnuCOBOL frame source for the LE condition model. Everything stays assumed (IBM-documented), never proven (mainframe evidence policy rule 8). Still linked into no program, so no proof moves.
What
tests/equivalence/le_conditions/ggframes.c(new): libcob keeps onecob_moduleper program, the same address for every activation, so the address is no identity. The file interposescob_module_global_enter/cob_module_leave(asfaults/ggfault.cdoes for file I/O) and gives every activation a serial that is never reused. The frames the model sees are libcob's own chain, named by those serials.ceecond.c: a hook (gg_le_set_handler_hook) is called with 4 before each handler. ggframes.c storescob_call_params = 4, because a handler is a COBOL entry reached by function pointer, not by CALL.tests/cobol_mainframe/test_le_frames_8062.py(3 tests, ~1.5 s, skipped without docker and the oracle image), on GnuCOBOL 3.1.2:NUMBER-OF-CALL-PARAMETERS4, while the CEESGL CALL carried 3;docs/language_status/register/L8.md: the frame source is recorded and the remaining slices are trimmed.Remaining slices
tests/equivalence/le/, or everyoracle:lerecord goes stale).cobolrt/le/Ceecond.java.le-condition-handlingindet/dyncall.py) plusSET ... TO ENTRY.Class / Sibling gaps
The class is the runtime facts the LE condition model needs from GnuCOBOL: which frames are live, a distinct identity per activation, and the handler's argument count. All three are handled here (frames and identity in ggframes.c, the argument count by the hook). Recursion is refused, not modelled: IBM's per-frame order across a recursion is not stated in what L8 cites. Sibling gaps outside this slice: the harness link line, the Java twin's frame source, and the det port's frames (all under Remaining slices). A handler that is not a COBOL entry (a C routine) needs no argument count and is covered by the existing 28-case C driver. No non-burned program was read.
Verification
test_le_frames_8062.pyandtest_le_condition_oracle_8062.py: 31 passed.test_zos_probes.py,test_source_reads.py: pass.audit_check.py: all clear.ruff format(pinned 0.17.1) on the new test: clean.🤖 Generated with Claude Code