binaryninja-api
binaryninja-api copied to clipboard
Highlight Block does not propagate to HLIL
Binary Ninja Version
2.4.2921-dev
Describe the bug
No block-based highlights propagate to the HLIL view.
To Reproduce
Steps to reproduce the behavior:
- Highlight all the blocks in a function
- View the HLIL for the function
- None of the HLIL is highlighted in the function
Expected behavior
If I highlight blocks of instructions, I would expect these highlights to propagate to the HLIL. At least, in the same manner that individual instruction highlights currently propagate
Screenshots
This GIF demonstrates the issue:

Version and Platform (required):
- Binary Ninja: Dev 2.4.2921
- OS: Windows
- Version: Windows 8.1 (x64)
Additional context
N/A
Not sure if this is true but is this issue the reason why Lighthouse isn't working on HLIL?
Not sure if this is true but is this issue the reason why Lighthouse isn't working on HLIL?
Yes.
Lighthouse does block-based highlighting in Binja because it is significantly faster to highlight thousands of blocks rather than millions of individual instructions. That said, Lighthouse is still much slower in Binja than IDA.
While it would be nice for this issue to be fixed, the ideal solution for Lighthouse would be a rendering callback that plugins could use from Binary Ninja to decide whether or not an instruction should be highlighted as it comes into view.