RIMT_TYPE_MASK
if (RIMT_TYPE_MASK(node->type) & type_mask) {
if (!(RIMT_TYPE_MASK(parent->type) & type_mask))