HLIL simplifies array access incorrectly
Describe the bug HLIL simplifies array access incorrectly.
To Reproduce Steps to reproduce the behavior:
- Open attached the binary
commandfrom the ctf chall: stolen_backdoor_0e0064acfb07b8c644c57e07c4c7d6c711fda3186c77d20b96e30b9a71b8f4e1.tar.gz - Go to
main - View HLIL
Expected behavior
The data array for input should be accessed at var_70-1
Screenshots
Before simplification:
After:

HLIL:

Disassembly:

Desktop (please complete the following information):
- OS: Windows
- Version 10
- Binary Ninja version: 2.3.2796-dev
Additional context
hexrays can handle this. Maybe just some compiler heuristics.
ghidra also makes the same mistake

I know this is rather old but do you happen to have the binary associated with this? The provided tar.gz doesn't look to have the binary in question.
Closing this because we still don't have a reproducible binary. Please feel free to reopen if anyone has one.