binaryninja-api: Block has wrong return value if it is reused by cascading math beforehand

Version and Platform (required):

  • Binary Ninja Version: 4.3.6468-dev
  • OS: macOS
  • OS Version: 15.2 Beta (24C5089c)
  • CPU Architecture: M3

Bug Description: See below: Screenshot 2024-11-22 at 09 43 10 Screenshot 2024-11-22 at 09 43 25 Result: Screenshot 2024-11-22 at 09 43 31

Expected Behavior: Should be return 2

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (16 by maintainers)

Most upvoted comments

@xusheng6 All of them seem correct except two, the “2” one and this Screenshot 2024-11-26 at 14 59 45 that one should be return 0x10

Full function: Screenshot 2024-11-26 at 15 00 24

I understand what is happening, but do not know why it is happening. Will need someone else to look into it