``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 )
| 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, |