``test_bit`` returns an expression of size ``size`` that tells whether expression ``a`` has its bit with an index of the expression ``b`` is set :param int size: size in bytes :param ExpressionIndex a: an expression to be tested :param ExpressionIndex b: an expression for the index of th
(self, size: int, a: ExpressionIndex, b: ExpressionIndex, loc: Optional['ILSourceLocation'] = None)
| 4756 | return self.expr(MediumLevelILOperation.MLIL_CMP_UGT, a, b, size=size, source_location=loc) |
| 4757 | |
| 4758 | def test_bit(self, size: int, a: ExpressionIndex, b: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex: |
| 4759 | """ |
| 4760 | ``test_bit`` returns an expression of size ``size`` that tells whether expression ``a`` has its bit with an |
| 4761 | index of the expression ``b`` is set |
| 4762 | |
| 4763 | :param int size: size in bytes |
| 4764 | :param ExpressionIndex a: an expression to be tested |
| 4765 | :param ExpressionIndex b: an expression for the index of the big |
| 4766 | :param ILSourceLocation loc: location of returned expression |
| 4767 | :return: the result expression. |
| 4768 | :rtype: ExpressionIndex |
| 4769 | """ |
| 4770 | return self.expr(MediumLevelILOperation.MLIL_TEST_BIT, a, b, size=size, source_location=loc) |
| 4771 | |
| 4772 | def bool_to_int(self, size: int, a: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex: |
| 4773 | """ |