HLIL dose not show nested structures
Version and Platform (required):
- Binary Ninja Version: latest
Bug Description: nested types are not used in the HLIL

or mybe the problem is with arrays inside nested structures
How would that be represented?
well as close as possible to the provided C code , the main issue is that binja dose no show the usage of element l2 and l3 in the structures Level1 and Level2 even though they are defied in the types
Here is a repro with original source, executable and bndb repro.zip
The problem is that the compiler optimized two array lookups into a single multiply, because the index is the same for both. Because the multiplication factor doesn't match the size of any of the structures, it doesn't resolve the array access. We would need to account for this optimization.