Skip to content

#1037 PLCgen: Handle CIF and/or short-circuit semantics

Albert Hofkamp requested to merge 1037-handle-short-circuit-assumptions-2 into develop
  • Patch starts with adding locations to one of the tests, since test output changes didn't make sense and it was difficult to find the related CIF edge.
  • The patch adds distinction between normal and short-circuit evaluation of and/or conditions.
  • For the targets that have a short-circuit function for them, that path gets eventually enabled (S7 and TwinCAT targets).
  • For the targets that don't have a short-circuit function for them, code is generated instead.

End-user visible changes:

  • PLCgen now generates code correctly ensures short-circuit evaluation semantics of the =>, and and or binary operators, for non-S7 targets.

Closes #1037 (closed)

Edited by Dennis Hendriks

Merge request reports

Loading