summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-03-21 19:31:45 -0400
committerGlenn Smith <glenn@vector35.com>2022-03-21 19:31:45 -0400
commit4bd9a3ca53cbd2ac25b47589ee54e8777bddd2de (patch)
tree91dcd5be80431f133ae5c3c93ae8dc73ebe956d0 /python/lowlevelil.py
parent3017f8ff7660e2cd7bd652cb590e6904f6f7035a (diff)
Fix LLIL_FCMP_O not being handled in a couple places
Fixes #3032
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index faba03fe..bf984b2d 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -4418,6 +4418,20 @@ class LowLevelILFunction:
"""
return self.expr(LowLevelILOperation.LLIL_FCMP_GT, a, b)
+ def float_compare_ordered(self, size: int, a: ExpressionIndex, b: ExpressionIndex) -> ExpressionIndex:
+ """
+ ``float_compare_ordered`` returns floating point comparison expression of size ``size`` checking if
+ expression ``a`` is ordered relative to expression ``b``
+
+ :param int size: the size of the operands in bytes
+ :param ExpressionIndex a: LHS expression
+ :param ExpressionIndex b: RHS expression
+ :param str flags: flags to set
+ :return: The expression ``is_ordered(a, b)``
+ :rtype: ExpressionIndex
+ """
+ return self.expr(LowLevelILOperation.LLIL_FCMP_O, a, b)
+
def float_compare_unordered(self, size: int, a: ExpressionIndex, b: ExpressionIndex) -> ExpressionIndex:
"""
``float_compare_unordered`` returns floating point comparison expression of size ``size`` checking if