; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/micro (main)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.tflite::MicroErrorReporter" = type { %"class.tflite::ErrorReporter" }
%"class.tflite::ErrorReporter" = type { ptr }

@_ZN10micro_test12tests_passedE = external dso_local global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local global i8, align 1
@_ZN10micro_test8reporterE = external dso_local global ptr, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [156 x i8], align 1
@__const.main.yes_estimate_presets = external hidden unnamed_addr constant [40 x i32], align 16
@g_yes_30ms_sample_data = external constant [0 x i16], align 2
@g_yes_30ms_sample_data_size = external constant i32, align 4
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@g_yes_feature_data_slice = external constant [0 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.main.no_estimate_presets = external hidden unnamed_addr constant [40 x i32], align 16
@g_no_30ms_sample_data = external constant [0 x i16], align 2
@g_no_30ms_sample_data_size = external constant i32, align 4
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@g_no_feature_data_slice = external constant [0 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.tflite::MicroErrorReporter", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.tflite::MicroErrorReporter", align 8
  %10 = alloca ptr, align 8
  %11 = alloca [40 x i32], align 16
  %12 = alloca [40 x i8], align 16
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.tflite::MicroErrorReporter", align 8
  %17 = alloca ptr, align 8
  %18 = alloca [40 x i32], align 16
  %19 = alloca [40 x i8], align 16
  %20 = alloca i64, align 8
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  store ptr %6, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %23 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %24 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef @.str, ptr noundef @.str.1)
          to label %25 unwind label %43

25:                                               ; preds = %2
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %26

26:                                               ; preds = %148, %25
  %27 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %28 = trunc i8 %27 to i1
  %29 = xor i1 %28, true
  br i1 %29, label %30, label %164

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr %9, ptr %10, align 8, !tbaa !9
  br label %31

31:                                               ; preds = %30
  %32 = load ptr, ptr %10, align 8, !tbaa !9
  %33 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef %32)
          to label %34 unwind label %47

34:                                               ; preds = %31
  %35 = icmp ne i32 0, %33
  br i1 %35, label %36, label %51

36:                                               ; preds = %34
  %37 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %38 = load ptr, ptr %10, align 8, !tbaa !9
  %39 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef %38)
          to label %40 unwind label %47

40:                                               ; preds = %36
  %41 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 34, i32 noundef 0, i32 noundef %39)
          to label %42 unwind label %47

42:                                               ; preds = %40
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %51

43:                                               ; preds = %316, %312, %302, %164, %2
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %7, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %8, align 4
  br label %322

47:                                               ; preds = %40, %36, %31
  %48 = landingpad { ptr, i32 }
          cleanup
  %49 = extractvalue { ptr, i32 } %48, 0
  store ptr %49, ptr %7, align 8
  %50 = extractvalue { ptr, i32 } %48, 1
  store i32 %50, ptr %8, align 4
  br label %163

51:                                               ; preds = %42, %34
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 160, ptr %11) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %11, ptr align 16 @__const.main.yes_estimate_presets, i64 160, i1 false)
  %54 = getelementptr inbounds [40 x i32], ptr %11, i64 0, i64 0
  invoke void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef %54)
          to label %55 unwind label %69

55:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %56 = load ptr, ptr %10, align 8, !tbaa !9
  %57 = load i32, ptr @g_yes_30ms_sample_data_size, align 4, !tbaa !5
  %58 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 0
  %59 = invoke noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef %56, ptr noundef @g_yes_30ms_sample_data, i32 noundef %57, i32 noundef 40, ptr noundef %58, ptr noundef %13)
          to label %60 unwind label %73

60:                                               ; preds = %55
  store i32 %59, ptr %14, align 4, !tbaa !15
  br label %61

61:                                               ; preds = %60
  %62 = load i32, ptr %14, align 4, !tbaa !15
  %63 = icmp ne i32 0, %62
  br i1 %63, label %64, label %77

64:                                               ; preds = %61
  %65 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %66 = load i32, ptr %14, align 4, !tbaa !15
  %67 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 55, i32 noundef 0, i32 noundef %66)
          to label %68 unwind label %73

68:                                               ; preds = %64
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %77

69:                                               ; preds = %53
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %162

73:                                               ; preds = %64, %55
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  br label %161

77:                                               ; preds = %68, %61
  br label %78

78:                                               ; preds = %77
  br label %79

79:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %144, %79
  %81 = load i32, ptr %15, align 4, !tbaa !5
  %82 = icmp slt i32 %81, 40
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %147

84:                                               ; preds = %80
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %15, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [0 x i8], ptr @g_yes_feature_data_slice, i64 0, i64 %87
  %89 = load i8, ptr %88, align 1, !tbaa !17
  %90 = zext i8 %89 to i32
  %91 = load i32, ptr %15, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !17
  %95 = zext i8 %94 to i32
  %96 = icmp ne i32 %90, %95
  br i1 %96, label %97, label %115

97:                                               ; preds = %85
  %98 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %99 = load i32, ptr %15, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [0 x i8], ptr @g_yes_feature_data_slice, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !17
  %103 = zext i8 %102 to i32
  %104 = load i32, ptr %15, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 %105
  %107 = load i8, ptr %106, align 1, !tbaa !17
  %108 = zext i8 %107 to i32
  %109 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 59, i32 noundef %103, i32 noundef %108)
          to label %110 unwind label %111

110:                                              ; preds = %97
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %115

111:                                              ; preds = %129, %97
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %7, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %161

115:                                              ; preds = %110, %85
  br label %116

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %15, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [0 x i8], ptr @g_yes_feature_data_slice, i64 0, i64 %119
  %121 = load i8, ptr %120, align 1, !tbaa !17
  %122 = zext i8 %121 to i32
  %123 = load i32, ptr %15, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 %124
  %126 = load i8, ptr %125, align 1, !tbaa !17
  %127 = zext i8 %126 to i32
  %128 = icmp ne i32 %122, %127
  br i1 %128, label %129, label %143

129:                                              ; preds = %117
  %130 = load ptr, ptr %10, align 8, !tbaa !9
  %131 = load i32, ptr %15, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [0 x i8], ptr @g_yes_feature_data_slice, i64 0, i64 %132
  %134 = load i8, ptr %133, align 1, !tbaa !17
  %135 = zext i8 %134 to i32
  %136 = load i32, ptr %15, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds [40 x i8], ptr %12, i64 0, i64 %137
  %139 = load i8, ptr %138, align 1, !tbaa !17
  %140 = zext i8 %139 to i32
  %141 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %130, ptr noundef @.str.6, i32 noundef %135, i32 noundef %140)
          to label %142 unwind label %111

142:                                              ; preds = %129
  br label %143

143:                                              ; preds = %142, %117
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %15, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %15, align 4, !tbaa !5
  br label %80, !llvm.loop !18

147:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %148

148:                                              ; preds = %147
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %149 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %150 = trunc i8 %149 to i1
  %151 = zext i1 %150 to i64
  %152 = select i1 %150, i32 0, i32 1
  %153 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %154 = add nsw i32 %153, %152
  store i32 %154, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %155 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %156 = trunc i8 %155 to i1
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, i32 1, i32 0
  %159 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %160 = add nsw i32 %159, %158
  store i32 %160, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %26, !llvm.loop !20

161:                                              ; preds = %111, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %12) #6
  br label %162

162:                                              ; preds = %161, %69
  call void @llvm.lifetime.end.p0(i64 160, ptr %11) #6
  br label %163

163:                                              ; preds = %162, %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %322

164:                                              ; preds = %26
  %165 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %166 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %165, ptr noundef @.str, ptr noundef @.str.7)
          to label %167 unwind label %43

167:                                              ; preds = %164
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %168

168:                                              ; preds = %286, %167
  %169 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %170 = trunc i8 %169 to i1
  %171 = xor i1 %170, true
  br i1 %171, label %172, label %302

172:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr %16, ptr %17, align 8, !tbaa !9
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %17, align 8, !tbaa !9
  %175 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef %174)
          to label %176 unwind label %185

176:                                              ; preds = %173
  %177 = icmp ne i32 0, %175
  br i1 %177, label %178, label %189

178:                                              ; preds = %176
  %179 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %180 = load ptr, ptr %17, align 8, !tbaa !9
  %181 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef %180)
          to label %182 unwind label %185

182:                                              ; preds = %178
  %183 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 72, i32 noundef 0, i32 noundef %181)
          to label %184 unwind label %185

184:                                              ; preds = %182
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %189

185:                                              ; preds = %182, %178, %173
  %186 = landingpad { ptr, i32 }
          cleanup
  %187 = extractvalue { ptr, i32 } %186, 0
  store ptr %187, ptr %7, align 8
  %188 = extractvalue { ptr, i32 } %186, 1
  store i32 %188, ptr %8, align 4
  br label %301

189:                                              ; preds = %184, %176
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 160, ptr %18) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 @__const.main.no_estimate_presets, i64 160, i1 false)
  %192 = getelementptr inbounds [40 x i32], ptr %18, i64 0, i64 0
  invoke void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef %192)
          to label %193 unwind label %207

193:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 40, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %194 = load ptr, ptr %17, align 8, !tbaa !9
  %195 = load i32, ptr @g_no_30ms_sample_data_size, align 4, !tbaa !5
  %196 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 0
  %197 = invoke noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef %194, ptr noundef @g_no_30ms_sample_data, i32 noundef %195, i32 noundef 40, ptr noundef %196, ptr noundef %20)
          to label %198 unwind label %211

198:                                              ; preds = %193
  store i32 %197, ptr %21, align 4, !tbaa !15
  br label %199

199:                                              ; preds = %198
  %200 = load i32, ptr %21, align 4, !tbaa !15
  %201 = icmp ne i32 0, %200
  br i1 %201, label %202, label %215

202:                                              ; preds = %199
  %203 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %204 = load i32, ptr %21, align 4, !tbaa !15
  %205 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %203, ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 89, i32 noundef 0, i32 noundef %204)
          to label %206 unwind label %211

206:                                              ; preds = %202
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %215

207:                                              ; preds = %191
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %7, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %8, align 4
  br label %300

211:                                              ; preds = %202, %193
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %7, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %8, align 4
  br label %299

215:                                              ; preds = %206, %199
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  store i32 0, ptr %22, align 4, !tbaa !5
  br label %218

218:                                              ; preds = %282, %217
  %219 = load i32, ptr %22, align 4, !tbaa !5
  %220 = icmp slt i32 %219, 40
  br i1 %220, label %222, label %221

221:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %285

222:                                              ; preds = %218
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %22, align 4, !tbaa !5
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [0 x i8], ptr @g_no_feature_data_slice, i64 0, i64 %225
  %227 = load i8, ptr %226, align 1, !tbaa !17
  %228 = zext i8 %227 to i32
  %229 = load i32, ptr %22, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 %230
  %232 = load i8, ptr %231, align 1, !tbaa !17
  %233 = zext i8 %232 to i32
  %234 = icmp ne i32 %228, %233
  br i1 %234, label %235, label %253

235:                                              ; preds = %223
  %236 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %237 = load i32, ptr %22, align 4, !tbaa !5
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds [0 x i8], ptr @g_no_feature_data_slice, i64 0, i64 %238
  %240 = load i8, ptr %239, align 1, !tbaa !17
  %241 = zext i8 %240 to i32
  %242 = load i32, ptr %22, align 4, !tbaa !5
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 %243
  %245 = load i8, ptr %244, align 1, !tbaa !17
  %246 = zext i8 %245 to i32
  %247 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %236, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 92, i32 noundef %241, i32 noundef %246)
          to label %248 unwind label %249

248:                                              ; preds = %235
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %253

249:                                              ; preds = %267, %235
  %250 = landingpad { ptr, i32 }
          cleanup
  %251 = extractvalue { ptr, i32 } %250, 0
  store ptr %251, ptr %7, align 8
  %252 = extractvalue { ptr, i32 } %250, 1
  store i32 %252, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %299

253:                                              ; preds = %248, %223
  br label %254

254:                                              ; preds = %253
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %22, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds [0 x i8], ptr @g_no_feature_data_slice, i64 0, i64 %257
  %259 = load i8, ptr %258, align 1, !tbaa !17
  %260 = zext i8 %259 to i32
  %261 = load i32, ptr %22, align 4, !tbaa !5
  %262 = sext i32 %261 to i64
  %263 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 %262
  %264 = load i8, ptr %263, align 1, !tbaa !17
  %265 = zext i8 %264 to i32
  %266 = icmp ne i32 %260, %265
  br i1 %266, label %267, label %281

267:                                              ; preds = %255
  %268 = load ptr, ptr %17, align 8, !tbaa !9
  %269 = load i32, ptr %22, align 4, !tbaa !5
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds [0 x i8], ptr @g_no_feature_data_slice, i64 0, i64 %270
  %272 = load i8, ptr %271, align 1, !tbaa !17
  %273 = zext i8 %272 to i32
  %274 = load i32, ptr %22, align 4, !tbaa !5
  %275 = sext i32 %274 to i64
  %276 = getelementptr inbounds [40 x i8], ptr %19, i64 0, i64 %275
  %277 = load i8, ptr %276, align 1, !tbaa !17
  %278 = zext i8 %277 to i32
  %279 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %268, ptr noundef @.str.6, i32 noundef %273, i32 noundef %278)
          to label %280 unwind label %249

280:                                              ; preds = %267
  br label %281

281:                                              ; preds = %280, %255
  br label %282

282:                                              ; preds = %281
  %283 = load i32, ptr %22, align 4, !tbaa !5
  %284 = add nsw i32 %283, 1
  store i32 %284, ptr %22, align 4, !tbaa !5
  br label %218, !llvm.loop !21

285:                                              ; preds = %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %286

286:                                              ; preds = %285
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %287 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %288 = trunc i8 %287 to i1
  %289 = zext i1 %288 to i64
  %290 = select i1 %288, i32 0, i32 1
  %291 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %292 = add nsw i32 %291, %290
  store i32 %292, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %293 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %294 = trunc i8 %293 to i1
  %295 = zext i1 %294 to i64
  %296 = select i1 %294, i32 1, i32 0
  %297 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %298 = add nsw i32 %297, %296
  store i32 %298, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %168, !llvm.loop !22

299:                                              ; preds = %249, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr %19) #6
  br label %300

300:                                              ; preds = %299, %207
  call void @llvm.lifetime.end.p0(i64 160, ptr %18) #6
  br label %301

301:                                              ; preds = %300, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %322

302:                                              ; preds = %168
  %303 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %304 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %305 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %306 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %307 = add nsw i32 %305, %306
  %308 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %303, ptr noundef @.str.10, i32 noundef %304, i32 noundef %307)
          to label %309 unwind label %43

309:                                              ; preds = %302
  %310 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %311 = icmp eq i32 %310, 0
  br i1 %311, label %312, label %316

312:                                              ; preds = %309
  %313 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %314 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %313, ptr noundef @.str.11)
          to label %315 unwind label %43

315:                                              ; preds = %312
  br label %320

316:                                              ; preds = %309
  %317 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %318 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %317, ptr noundef @.str.12)
          to label %319 unwind label %43

319:                                              ; preds = %316
  br label %320

320:                                              ; preds = %319, %315
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %321 = load i32, ptr %3, align 4
  ret i32 %321

322:                                              ; preds = %301, %163, %43
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  br label %323

323:                                              ; preds = %322
  %324 = load ptr, ptr %7, align 8
  %325 = load i32, ptr %8, align 4
  %326 = insertvalue { ptr, i32 } poison, ptr %324, 0
  %327 = insertvalue { ptr, i32 } %326, i32 %325, 1
  resume { ptr, i32 } %327
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) #3

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef) #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef) #3

declare noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS12TfLiteStatus", !7, i64 0}
!17 = !{!7, !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.tflite::MicroErrorReporter" = type { %"class.tflite::ErrorReporter" }
%"class.tflite::ErrorReporter" = type { ptr }

@_ZN10micro_test12tests_passedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local local_unnamed_addr global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local local_unnamed_addr global i8, align 1
@_ZN10micro_test8reporterE = external dso_local local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [11 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [156 x i8], align 1
@__const.main.yes_estimate_presets = external hidden unnamed_addr constant [40 x i32], align 16
@g_yes_30ms_sample_data = external constant [0 x i16], align 2
@g_yes_30ms_sample_data_size = external local_unnamed_addr constant i32, align 4
@.str.4 = external hidden unnamed_addr constant [51 x i8], align 1
@g_yes_feature_data_slice = external local_unnamed_addr constant [0 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [29 x i8], align 1
@__const.main.no_estimate_presets = external hidden unnamed_addr constant [40 x i32], align 16
@g_no_30ms_sample_data = external constant [0 x i16], align 2
@g_no_30ms_sample_data_size = external local_unnamed_addr constant i32, align 4
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@g_no_feature_data_slice = external local_unnamed_addr constant [0 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.tflite::MicroErrorReporter", align 8
  %4 = alloca %"class.tflite::MicroErrorReporter", align 8
  %5 = alloca [40 x i32], align 16
  %6 = alloca [40 x i8], align 16
  %7 = alloca i64, align 8
  %8 = alloca %"class.tflite::MicroErrorReporter", align 8
  %9 = alloca [40 x i32], align 16
  %10 = alloca [40 x i8], align 16
  %11 = alloca i64, align 8
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  store ptr %3, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %12 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
          to label %13 unwind label %23

13:                                               ; preds = %2
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %14 = load i32, ptr @g_yes_30ms_sample_data_size, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  %15 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef nonnull %4)
          to label %16 unwind label %25

16:                                               ; preds = %13
  %.not59 = icmp eq i32 %15, 0
  br i1 %.not59, label %27, label %17

17:                                               ; preds = %16
  %18 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %19 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef nonnull %4)
          to label %20 unwind label %25

20:                                               ; preds = %17
  %21 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 34, i32 noundef 0, i32 noundef %19)
          to label %22 unwind label %25

22:                                               ; preds = %20
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %27

23:                                               ; preds = %.invoke, %._crit_edge73, %._crit_edge, %2
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %127

25:                                               ; preds = %20, %17, %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %58

27:                                               ; preds = %22, %16
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %5, ptr noundef nonnull align 16 dereferenceable(160) @__const.main.yes_estimate_presets, i64 160, i1 false)
  invoke void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef nonnull %5)
          to label %28 unwind label %35

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %29 = invoke noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef nonnull %4, ptr noundef nonnull @g_yes_30ms_sample_data, i32 noundef %14, i32 noundef 40, ptr noundef nonnull %6, ptr noundef nonnull %7)
          to label %30 unwind label %37

30:                                               ; preds = %28
  %.not60 = icmp eq i32 %29, 0
  br i1 %.not60, label %.preheader87, label %31

.preheader87:                                     ; preds = %34, %30
  br label %39

31:                                               ; preds = %30
  %32 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %33 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 55, i32 noundef 0, i32 noundef %29)
          to label %34 unwind label %37

34:                                               ; preds = %31
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %.preheader87

35:                                               ; preds = %27
  %36 = landingpad { ptr, i32 }
          cleanup
  br label %57

37:                                               ; preds = %31, %28
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %56

39:                                               ; preds = %.preheader87, %.thread
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread ], [ 0, %.preheader87 ]
  %40 = getelementptr inbounds [0 x i8], ptr @g_yes_feature_data_slice, i64 0, i64 %indvars.iv
  %41 = load i8, ptr %40, align 1, !tbaa !13
  %42 = getelementptr inbounds [40 x i8], ptr %6, i64 0, i64 %indvars.iv
  %43 = load i8, ptr %42, align 1, !tbaa !13
  %.not62 = icmp eq i8 %41, %43
  br i1 %.not62, label %.thread, label %44

44:                                               ; preds = %39
  %45 = zext i8 %43 to i32
  %46 = zext i8 %41 to i32
  %47 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %48 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 59, i32 noundef %46, i32 noundef %45)
          to label %51 unwind label %49

49:                                               ; preds = %52, %44
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %56

51:                                               ; preds = %44
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre = load i8, ptr %42, align 1, !tbaa !13
  %.not63 = icmp eq i8 %41, %.pre
  br i1 %.not63, label %.thread, label %52

52:                                               ; preds = %51
  %53 = zext i8 %.pre to i32
  %54 = zext i8 %41 to i32
  %55 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.6, i32 noundef %54, i32 noundef %53)
          to label %.thread unwind label %49

.thread:                                          ; preds = %39, %51, %52
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 40
  br i1 %exitcond.not, label %._crit_edge, label %39, !llvm.loop !14

56:                                               ; preds = %49, %37
  %.pn64 = phi { ptr, i32 } [ %50, %49 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  br label %57

57:                                               ; preds = %56, %35
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %56 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #6
  br label %58

58:                                               ; preds = %57, %25
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %57 ], [ %26, %25 ]
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %127

._crit_edge:                                      ; preds = %.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %5) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %59 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !16, !noundef !17
  %60 = xor i8 %59, 1
  %not.61 = zext nneg i8 %60 to i32
  %61 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %62 = add nsw i32 %61, %not.61
  store i32 %62, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %63 = zext nneg i8 %59 to i32
  %64 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %66 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %67 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %66, ptr noundef nonnull @.str, ptr noundef nonnull @.str.7)
          to label %68 unwind label %23

68:                                               ; preds = %._crit_edge
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %69 = load i32, ptr @g_no_30ms_sample_data_size, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  %70 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef nonnull %8)
          to label %71 unwind label %78

71:                                               ; preds = %68
  %.not = icmp eq i32 %70, 0
  br i1 %.not, label %80, label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %74 = invoke noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef nonnull %8)
          to label %75 unwind label %78

75:                                               ; preds = %72
  %76 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 72, i32 noundef 0, i32 noundef %74)
          to label %77 unwind label %78

77:                                               ; preds = %75
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %80

78:                                               ; preds = %75, %72, %68
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %111

80:                                               ; preds = %77, %71
  call void @llvm.lifetime.start.p0(i64 160, ptr nonnull %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(160) %9, ptr noundef nonnull align 16 dereferenceable(160) @__const.main.no_estimate_presets, i64 160, i1 false)
  invoke void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef nonnull %9)
          to label %81 unwind label %88

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %82 = invoke noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef nonnull %8, ptr noundef nonnull @g_no_30ms_sample_data, i32 noundef %69, i32 noundef 40, ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %83 unwind label %90

83:                                               ; preds = %81
  %.not53 = icmp eq i32 %82, 0
  br i1 %.not53, label %.preheader, label %84

.preheader:                                       ; preds = %87, %83
  br label %92

84:                                               ; preds = %83
  %85 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %86 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %85, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 89, i32 noundef 0, i32 noundef %82)
          to label %87 unwind label %90

87:                                               ; preds = %84
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %.preheader

88:                                               ; preds = %80
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %110

90:                                               ; preds = %84, %81
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %109

92:                                               ; preds = %.preheader, %.thread85
  %indvars.iv75 = phi i64 [ %indvars.iv.next76, %.thread85 ], [ 0, %.preheader ]
  %93 = getelementptr inbounds [0 x i8], ptr @g_no_feature_data_slice, i64 0, i64 %indvars.iv75
  %94 = load i8, ptr %93, align 1, !tbaa !13
  %95 = getelementptr inbounds [40 x i8], ptr %10, i64 0, i64 %indvars.iv75
  %96 = load i8, ptr %95, align 1, !tbaa !13
  %.not54 = icmp eq i8 %94, %96
  br i1 %.not54, label %.thread85, label %97

97:                                               ; preds = %92
  %98 = zext i8 %96 to i32
  %99 = zext i8 %94 to i32
  %100 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %101 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 92, i32 noundef %99, i32 noundef %98)
          to label %104 unwind label %102

102:                                              ; preds = %105, %97
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %109

104:                                              ; preds = %97
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre80 = load i8, ptr %95, align 1, !tbaa !13
  %.not55 = icmp eq i8 %94, %.pre80
  br i1 %.not55, label %.thread85, label %105

105:                                              ; preds = %104
  %106 = zext i8 %.pre80 to i32
  %107 = zext i8 %94 to i32
  %108 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull @.str.6, i32 noundef %107, i32 noundef %106)
          to label %.thread85 unwind label %102

.thread85:                                        ; preds = %92, %104, %105
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next76, 40
  br i1 %exitcond78.not, label %._crit_edge73, label %92, !llvm.loop !18

109:                                              ; preds = %102, %90
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  br label %110

110:                                              ; preds = %109, %88
  %.pn.pn = phi { ptr, i32 } [ %.pn, %109 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #6
  br label %111

111:                                              ; preds = %110, %78
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %110 ], [ %79, %78 ]
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %127

._crit_edge73:                                    ; preds = %.thread85
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 160, ptr nonnull %9) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %112 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !16, !noundef !17
  %113 = xor i8 %112, 1
  %not. = zext nneg i8 %113 to i32
  %114 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %115 = add nsw i32 %114, %not.
  store i32 %115, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %116 = zext nneg i8 %112 to i32
  %117 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %118 = add nsw i32 %117, %116
  store i32 %118, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %119 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %120 = add nsw i32 %118, %115
  %121 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull @.str.10, i32 noundef %115, i32 noundef %120)
          to label %.invoke unwind label %23

.invoke:                                          ; preds = %._crit_edge73
  %122 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %123 = icmp eq i32 %122, 0
  %124 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.11..str.12 = select i1 %123, ptr @.str.11, ptr @.str.12
  %125 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull %.str.11..str.12)
          to label %126 unwind label %23

126:                                              ; preds = %.invoke
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 0

127:                                              ; preds = %111, %58, %23
  %.pn64.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn, %58 ], [ %.pn.pn.pn, %111 ], [ %24, %23 ]
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn64.pn.pn.pn
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_Z23InitializeMicroFeaturesPN6tflite13ErrorReporterE(ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare void @_Z30SetMicroFeaturesNoiseEstimatesPKj(ptr noundef) local_unnamed_addr #3

declare noundef i32 @_Z21GenerateMicroFeaturesPN6tflite13ErrorReporterEPKsiiPhPm(ptr noundef, ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 align 2

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !15}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass