Skip to main contentModule cache_array_length
Source - LoopFacts ๐
- Loop body facts that make caching unsafe: variables written, array length mutations and
calls that may mutate state.
- CACHE_ARRAY_LENGTH
- call_may_mutate_state ๐
- Whether a call may write storage; array
push/pop count since they change the length. - collect_length_reads ๐
- Collects
<state dynamic array>.length reads compared against an identifier in expr. - is_array_like ๐
- state_dyn_array ๐
- The state variable
expr names, if it is a dynamic array.