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

Method while_expr

python/highlevelil.py:3009–3021  ·  view source on GitHub ↗

``while_expr`` a 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 expression `

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

Source from the content-addressed store, hash-verified

3007 return self.expr(HighLevelILOperation.HLIL_IF, condition, true_expr, false_expr, source_location=loc)
3008
3009 def while_expr(
3010 self, condition: ExpressionIndex, loop_expr: ExpressionIndex, loc: Optional['ILSourceLocation'] = None
3011 ) -> ExpressionIndex:
3012 """
3013 ``while_expr`` a while-loop expression with a condition and loop body.
3014
3015 :param ExpressionIndex condition: expression for the loop condition
3016 :param ExpressionIndex loop_expr: expression for the loop body
3017 :param ILSourceLocation loc: location of returned expression
3018 :return: The expression ``while (condition) { loop_expr }``
3019 :rtype: ExpressionIndex
3020 """
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

Callers

nothing calls this directly

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected