GrammaTech / ddisasm

A fast and accurate disassembler
https://grammatech.github.io/ddisasm/
GNU Affero General Public License v3.0
645 stars 60 forks source link

Ambiguity in the result of `symbolic_operand` #48

Open 5c4lar opened 2 years ago

5c4lar commented 2 years ago

Some symbolic_operand will be marked as both code and data. This can be observed in almost every test case. Is there any reason for this ambiguity?

adamjseitz commented 2 years ago

This seems like a bug to me.

Really, I'm not sure why we track Type as part of the symbolic_operand relation at all. Most consumers of symbolic_operand ignore it, and those that do use it should be able to trivially check code(Dest) or !code(Dest).