Check for *_INVALID uniqueids in isValid

This commit is contained in:
angie 2022-11-30 10:20:09 -03:00
parent 7115c8cfaa
commit a6e5e6d53f

View File

@ -849,6 +849,10 @@ uint32_t RabbitizerInstruction_getValidBits(const RabbitizerInstruction *self) {
bool RabbitizerInstruction_isValid(const RabbitizerInstruction *self) {
uint32_t validbits;
if (!RabbitizerInstruction_isImplemented(self)) {
return false;
}
validbits = RabbitizerInstruction_getValidBits(self);
return ((~validbits) & self->word) == 0;