A GOTO back to a TAG no longer reads as the end of a loop #709
Loading…
Reference in a new issue
No description provided.
Delete branch "l2d-label-in-value"
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?
A GOTO back to a TAG no longer reads as the end of a loop
isTag(rpg_fixed_branch.zig) refused a label whose defining statement is aplain jump to an earlier label, because the ENDDO of a DOU is
18 head; 15 exit. A GOTO back to a TAG has the same shape, so the TAG after it(
GOTO ALPHAbeforeZULU TAG) was never proven and the CABxx that takes it(
N CABGT 9 ZULU) keptblock_ownerand the label of its jump. The plainjump now counts as a loop end only when its destination is not itself a TAG.
A loop head fails
isTagon its own (the statement after it has code).Not done: a label inside a value. Cutting the guard
27 A; 27 B; 8; 16 L1; ...; 15 L2 1; 15 L1 1of %LEFT in h-bifs-char (S = %left(C: 3)) lets theevaluator read the copy as
S = C, which drops the length: an unsound text.The labels need a rule that carries the length first (a builtin of lane L1).
FLOW/lx-total statement 3 fuses the SETON LR with the total calculation of
the cycle; its labels belong to the cycle lane.
rpg_eval.zig
stepis unchanged; rpg_statements.zig is unchanged.Public twins (host build, Debug) against trunk
8f9f016a: 1 group turnsrecovered (hx-tags-order, the TAG statement), 0 regressions.
Gates