Skip to content

Optimization of WHILE loop working with segmented transfer data #5

Description

@msftrncs

WHILE i < 7 DO
CANSDO_DATA[i + 1] := 0; (* clearing unused portion per specification *)
i := i + 1;
END_WHILE

The expression i := i + 1 can be moved before the indexed array operation to reduce the expression of the index to just i.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions