def gen_code(inner_codegen_state): condition_exprs = [ constraint_to_cond_expr(cns) for cns in bounds_checks ] + [pred_chk for pred_chk in pred_checks] prev_result = prev_gen_code(inner_codegen_state) return [ wrap_in_if( inner_codegen_state, condition_exprs, merge_codegen_results(codegen_state, prev_result)) ]
def gen_code(inner_codegen_state): # noqa pylint:disable=function-redefined condition_exprs = [ constraint_to_cond_expr(cns) for cns in bounds_checks] + [ pred_chk for pred_chk in pred_checks] prev_result = prev_gen_code(inner_codegen_state) return [wrap_in_if( inner_codegen_state, condition_exprs, merge_codegen_results(codegen_state, prev_result))]