MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / do_while_expr

Method do_while_expr

python/highlevelil.py:3023–3035  ·  view source on GitHub ↗

``do_while_expr`` a do-while-loop expression with a condition and loop body. :param ExpressionIndex condition: expression for the loop condition :param ExpressionIndex loop_expr: expression for the loop body :param ILSourceLocation loc: location of returned expression :return: The expres

(
		self, condition: ExpressionIndex, loop_expr: ExpressionIndex, loc: Optional['ILSourceLocation'] = None
	)

Source from the content-addressed store, hash-verified

3021 return self.expr(HighLevelILOperation.HLIL_WHILE, condition, loop_expr, source_location=loc)
3022
3023 def do_while_expr(
3024 self, condition: ExpressionIndex, loop_expr: ExpressionIndex, loc: Optional['ILSourceLocation'] = None
3025 ) -> ExpressionIndex:
3026 """
3027 ``do_while_expr`` a do-while-loop expression with a condition and loop body.
3028
3029 :param ExpressionIndex condition: expression for the loop condition
3030 :param ExpressionIndex loop_expr: expression for the loop body
3031 :param ILSourceLocation loc: location of returned expression
3032 :return: The expression ``do { loop_expr } while (condition)``
3033 :rtype: ExpressionIndex
3034 """
3035 return self.expr(HighLevelILOperation.HLIL_DO_WHILE, condition, loop_expr, source_location=loc)
3036
3037 def for_expr(
3038 self, init_expr: ExpressionIndex, condition: ExpressionIndex, update_expr: ExpressionIndex, loop_expr: ExpressionIndex,

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected