beckhoff TE1200 — 8 Constant propagation

Constant propagation In addition, the following applies to the code after this loop: i = 6 . The range [0..6] is determined in the loop and this is combined with the condition i > 5 , which results in the exact value 6. TE1200 129 Version: 2.11.1 Run i x y 1 0 [0..1] 0 i was initialized with 0, y always gets the same values as i 2 [0..1] [0..2] [0..1] 6 [0..5] [0..6] [0..5] First, the range [0..6] is actually calculated for i. However, it is known that i 7 [0..5] [0..7] [0..5] 10 [0..5] [0..10] [0..5] x is always incremented. From 10, however, the value is "rounded up" to MAXDINT.

11 [0..5] [0..MAXDINT] [0..5] MAXDINT + 1 results in MAXDINT from 11 From the 11th run, the values in the loop will no longer change. The propagation is finished.