Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
Herman Venter edited this page Jul 12, 2017 · 1 revision

for of loops over unknown collections are not yet supported

The collection value that the for of loop is iterating over is an unknown value. In general, analyzing the loop body to determine the effects the loop has on the heap is very complicated and makes the rest of the analysis lose precision. Therefore this is not yet supported.

To work around this limitation, consider changing the environment model so that the collection value expression is known to Prepack. Alternatively, the entire loop can be placed inside a __residual section (but only if the loop has no effect on the heap visible to Prepack).