``for-expr`` a for-loop expression with an initializer, condition, updater, and loop body. :param ExpressionIndex init_expr: expression for the loop initializer :param ExpressionIndex condition: expression for the loop condition :param ExpressionIndex update_expr: expression for the loop u
( self, init_expr: ExpressionIndex, condition: ExpressionIndex, update_expr: ExpressionIndex, loop_expr: ExpressionIndex, loc: Optional['ILSourceLocation'] = None )
| 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, |
| 3039 | loc: Optional['ILSourceLocation'] = None |
| 3040 | ) -> ExpressionIndex: |
| 3041 | """ |
| 3042 | ``for-expr`` a for-loop expression with an initializer, condition, updater, and loop body. |
| 3043 | |
| 3044 | :param ExpressionIndex init_expr: expression for the loop initializer |
| 3045 | :param ExpressionIndex condition: expression for the loop condition |
| 3046 | :param ExpressionIndex update_expr: expression for the loop updater |
| 3047 | :param ExpressionIndex loop_expr: expression for the loop body |
| 3048 | :param ILSourceLocation loc: location of returned expression |
| 3049 | :return: The expression ``for (init_expr ; condition ; update_expr) { loop_expr }`` |
| 3050 | :rtype: ExpressionIndex |
| 3051 | """ |
| 3052 | return self.expr(HighLevelILOperation.HLIL_FOR, init_expr, condition, update_expr, loop_expr, source_location=loc) |
| 3053 | |
| 3054 | def switch( |
| 3055 | self, condition: ExpressionIndex, default_expr: ExpressionIndex, cases: List[ExpressionIndex], |