EXCEPT and its entry routines are recovered #661
Loading…
Reference in a new issue
No description provided.
Delete branch "rpg-l1-except-20261029"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
EXCEPT and its entry routines are recovered
A fixed-form cycle program writes an output record with
EXCEPT N. Thecompiler makes it a call through a control slot of the cycle:
33 P; 35 S; 18 E; 15 C(P the return point that names C). E is the entry of the EXCEPTname, placed after the end of the cycle:
15 E 2; 33 Q; 35 S71; 18 R, whichstores the return of the record routines into slot 71 and jumps to the
routine of the first output record named N; that routine returns through slot
71 to
27 S; 19, which returns to the caller. The EXCEPT statement stayedunresolved and the entries made the
SETON LRstatement partial ("unresolvedsuffix after a proved *INLR write").
rpg_output_spec.Proofrecords the entry label of each record routine (the15 L 2just before the record line) and its record (recordAtEntry).rpg_cycle_end.zigproves the entry as a cycle routine of roleexcept_entry(its label and jump; the store of the return point is astatic initialization item) when its jump names a record entry, and proves
the entry label of the first record routine at the end of the body. A jump
into an entry must be an EXCEPT call (
exceptCall).rpg_output_spec.Proof.exceptAtreads a statement that is exactly anEXCEPT call as
EXCEPT N; the emitter writesexcept N;(emit_except_v1).Public probes: r6e-num (
EXCEPT LINE), r6e-two-rec (EXCEPT HEAD,EXCEPT LINE), r6e-ind-fld, and r5x-cycle-print, whose LR statement is now recoveredwhole. The output specifications themselves are still written as failure
comments: the fixed-form emitter (track L) is the next change.
Gates