; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech (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 [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1
@g_yes_1000ms_sample_data = external constant [0 x i16], align 2
@.str.6 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@g_no_1000ms_sample_data = external constant [0 x i16], align 2
@.str.9 = external hidden unnamed_addr constant [81 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 i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = 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) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  store ptr %6, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %18 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %19 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef @.str, ptr noundef @.str.1)
          to label %20 unwind label %37

20:                                               ; 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 %21

21:                                               ; preds = %344, %20
  %22 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %23 = trunc i8 %22 to i1
  %24 = xor i1 %23, true
  br i1 %24, label %25, label %358

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr %9, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store ptr null, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %26 = load ptr, ptr %10, align 8, !tbaa !9
  %27 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef %26, i32 noundef 0, i32 noundef 30, ptr noundef %11, ptr noundef %12)
          to label %28 unwind label %41

28:                                               ; preds = %25
  store i32 %27, ptr %13, align 4, !tbaa !15
  br label %29

29:                                               ; preds = %28
  %30 = load i32, ptr %13, align 4, !tbaa !15
  %31 = icmp ne i32 0, %30
  br i1 %31, label %32, label %45

32:                                               ; preds = %29
  %33 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %34 = load i32, ptr %13, align 4, !tbaa !15
  %35 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %33, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 39, i32 noundef 0, i32 noundef %34)
          to label %36 unwind label %41

36:                                               ; preds = %32
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %45

37:                                               ; preds = %372, %368, %358, %2
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %7, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %8, align 4
  br label %378

41:                                               ; preds = %290, %280, %269, %262, %221, %211, %200, %193, %140, %130, %119, %112, %61, %51, %32, %25
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %7, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %8, align 4
  br label %357

45:                                               ; preds = %36, %29
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = icmp sgt i32 %49, 512
  br i1 %50, label %51, label %55

51:                                               ; preds = %48
  %52 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %53 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 40)
          to label %54 unwind label %41

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

55:                                               ; preds = %54, %48
  br label %56

56:                                               ; preds = %55
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %12, align 8, !tbaa !9
  %60 = icmp eq ptr %59, null
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %63 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %62, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 41)
          to label %64 unwind label %41

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

65:                                               ; preds = %64, %58
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %68

68:                                               ; preds = %109, %67
  %69 = load i32, ptr %14, align 4, !tbaa !5
  %70 = load i32, ptr %11, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %73, label %72

72:                                               ; preds = %68
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %112

73:                                               ; preds = %68
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %14, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %76
  %78 = load i16, ptr %77, align 2, !tbaa !17
  %79 = sext i16 %78 to i32
  %80 = load ptr, ptr %12, align 8, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds i16, ptr %80, i64 %82
  %84 = load i16, ptr %83, align 2, !tbaa !17
  %85 = sext i16 %84 to i32
  %86 = icmp ne i32 %79, %85
  br i1 %86, label %87, label %106

87:                                               ; preds = %74
  %88 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %90
  %92 = load i16, ptr %91, align 2, !tbaa !17
  %93 = sext i16 %92 to i32
  %94 = load ptr, ptr %12, align 8, !tbaa !9
  %95 = load i32, ptr %14, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i16, ptr %94, i64 %96
  %98 = load i16, ptr %97, align 2, !tbaa !17
  %99 = sext i16 %98 to i32
  %100 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 43, i32 noundef %93, i32 noundef %99)
          to label %101 unwind label %102

101:                                              ; preds = %87
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %106

102:                                              ; preds = %87
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %7, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %357

106:                                              ; preds = %101, %74
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = load i32, ptr %14, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %14, align 4, !tbaa !5
  br label %68, !llvm.loop !19

112:                                              ; preds = %72
  %113 = load ptr, ptr %10, align 8, !tbaa !9
  %114 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef %113, i32 noundef 500, i32 noundef 30, ptr noundef %11, ptr noundef %12)
          to label %115 unwind label %41

115:                                              ; preds = %112
  store i32 %114, ptr %13, align 4, !tbaa !15
  br label %116

116:                                              ; preds = %115
  %117 = load i32, ptr %13, align 4, !tbaa !15
  %118 = icmp ne i32 0, %117
  br i1 %118, label %119, label %124

119:                                              ; preds = %116
  %120 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %121 = load i32, ptr %13, align 4, !tbaa !15
  %122 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 48, i32 noundef 0, i32 noundef %121)
          to label %123 unwind label %41

123:                                              ; preds = %119
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %124

124:                                              ; preds = %123, %116
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = load i32, ptr %11, align 4, !tbaa !5
  %129 = icmp sgt i32 %128, 512
  br i1 %129, label %130, label %134

130:                                              ; preds = %127
  %131 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %132 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %131, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 49)
          to label %133 unwind label %41

133:                                              ; preds = %130
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %134

134:                                              ; preds = %133, %127
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  %138 = load ptr, ptr %12, align 8, !tbaa !9
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %144

140:                                              ; preds = %137
  %141 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %142 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %141, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 50)
          to label %143 unwind label %41

143:                                              ; preds = %140
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %144

144:                                              ; preds = %143, %137
  br label %145

145:                                              ; preds = %144
  br label %146

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

147:                                              ; preds = %190, %146
  %148 = load i32, ptr %15, align 4, !tbaa !5
  %149 = load i32, ptr %11, align 4, !tbaa !5
  %150 = icmp slt i32 %148, %149
  br i1 %150, label %152, label %151

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

152:                                              ; preds = %147
  br label %153

153:                                              ; preds = %152
  %154 = load i32, ptr %15, align 4, !tbaa !5
  %155 = add nsw i32 %154, 8000
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %156
  %158 = load i16, ptr %157, align 2, !tbaa !17
  %159 = sext i16 %158 to i32
  %160 = load ptr, ptr %12, align 8, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds i16, ptr %160, i64 %162
  %164 = load i16, ptr %163, align 2, !tbaa !17
  %165 = sext i16 %164 to i32
  %166 = icmp ne i32 %159, %165
  br i1 %166, label %167, label %187

167:                                              ; preds = %153
  %168 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %169 = load i32, ptr %15, align 4, !tbaa !5
  %170 = add nsw i32 %169, 8000
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %171
  %173 = load i16, ptr %172, align 2, !tbaa !17
  %174 = sext i16 %173 to i32
  %175 = load ptr, ptr %12, align 8, !tbaa !9
  %176 = load i32, ptr %15, align 4, !tbaa !5
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds i16, ptr %175, i64 %177
  %179 = load i16, ptr %178, align 2, !tbaa !17
  %180 = sext i16 %179 to i32
  %181 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %168, ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 53, i32 noundef %174, i32 noundef %180)
          to label %182 unwind label %183

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

183:                                              ; preds = %167
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %7, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %357

187:                                              ; preds = %182, %153
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = load i32, ptr %15, align 4, !tbaa !5
  %192 = add nsw i32 %191, 1
  store i32 %192, ptr %15, align 4, !tbaa !5
  br label %147, !llvm.loop !21

193:                                              ; preds = %151
  %194 = load ptr, ptr %10, align 8, !tbaa !9
  %195 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef %194, i32 noundef 1500, i32 noundef 30, ptr noundef %11, ptr noundef %12)
          to label %196 unwind label %41

196:                                              ; preds = %193
  store i32 %195, ptr %13, align 4, !tbaa !15
  br label %197

197:                                              ; preds = %196
  %198 = load i32, ptr %13, align 4, !tbaa !15
  %199 = icmp ne i32 0, %198
  br i1 %199, label %200, label %205

200:                                              ; preds = %197
  %201 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %202 = load i32, ptr %13, align 4, !tbaa !15
  %203 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 58, i32 noundef 0, i32 noundef %202)
          to label %204 unwind label %41

204:                                              ; preds = %200
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %205

205:                                              ; preds = %204, %197
  br label %206

206:                                              ; preds = %205
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %11, align 4, !tbaa !5
  %210 = icmp sgt i32 %209, 512
  br i1 %210, label %211, label %215

211:                                              ; preds = %208
  %212 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %213 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %212, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 59)
          to label %214 unwind label %41

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

215:                                              ; preds = %214, %208
  br label %216

216:                                              ; preds = %215
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  %219 = load ptr, ptr %12, align 8, !tbaa !9
  %220 = icmp eq ptr %219, null
  br i1 %220, label %221, label %225

221:                                              ; preds = %218
  %222 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %223 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %222, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 60)
          to label %224 unwind label %41

224:                                              ; preds = %221
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %225

225:                                              ; preds = %224, %218
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %228

228:                                              ; preds = %259, %227
  %229 = load i32, ptr %16, align 4, !tbaa !5
  %230 = load i32, ptr %11, align 4, !tbaa !5
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %233, label %232

232:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %262

233:                                              ; preds = %228
  br label %234

234:                                              ; preds = %233
  %235 = load ptr, ptr %12, align 8, !tbaa !9
  %236 = load i32, ptr %16, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds i16, ptr %235, i64 %237
  %239 = load i16, ptr %238, align 2, !tbaa !17
  %240 = sext i16 %239 to i32
  %241 = icmp ne i32 0, %240
  br i1 %241, label %242, label %256

242:                                              ; preds = %234
  %243 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %244 = load ptr, ptr %12, align 8, !tbaa !9
  %245 = load i32, ptr %16, align 4, !tbaa !5
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds i16, ptr %244, i64 %246
  %248 = load i16, ptr %247, align 2, !tbaa !17
  %249 = sext i16 %248 to i32
  %250 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef @.str.8, ptr noundef @.str.3, i32 noundef 62, i32 noundef 0, i32 noundef %249)
          to label %251 unwind label %252

251:                                              ; preds = %242
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %256

252:                                              ; preds = %242
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %7, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %357

256:                                              ; preds = %251, %234
  br label %257

257:                                              ; preds = %256
  br label %258

258:                                              ; preds = %257
  br label %259

259:                                              ; preds = %258
  %260 = load i32, ptr %16, align 4, !tbaa !5
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %16, align 4, !tbaa !5
  br label %228, !llvm.loop !22

262:                                              ; preds = %232
  %263 = load ptr, ptr %10, align 8, !tbaa !9
  %264 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef %263, i32 noundef 12250, i32 noundef 30, ptr noundef %11, ptr noundef %12)
          to label %265 unwind label %41

265:                                              ; preds = %262
  store i32 %264, ptr %13, align 4, !tbaa !15
  br label %266

266:                                              ; preds = %265
  %267 = load i32, ptr %13, align 4, !tbaa !15
  %268 = icmp ne i32 0, %267
  br i1 %268, label %269, label %274

269:                                              ; preds = %266
  %270 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %271 = load i32, ptr %13, align 4, !tbaa !15
  %272 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 67, i32 noundef 0, i32 noundef %271)
          to label %273 unwind label %41

273:                                              ; preds = %269
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %274

274:                                              ; preds = %273, %266
  br label %275

275:                                              ; preds = %274
  br label %276

276:                                              ; preds = %275
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %11, align 4, !tbaa !5
  %279 = icmp sgt i32 %278, 512
  br i1 %279, label %280, label %284

280:                                              ; preds = %277
  %281 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %282 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %281, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 68)
          to label %283 unwind label %41

283:                                              ; preds = %280
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %284

284:                                              ; preds = %283, %277
  br label %285

285:                                              ; preds = %284
  br label %286

286:                                              ; preds = %285
  br label %287

287:                                              ; preds = %286
  %288 = load ptr, ptr %12, align 8, !tbaa !9
  %289 = icmp eq ptr %288, null
  br i1 %289, label %290, label %294

290:                                              ; preds = %287
  %291 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %292 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %291, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 69)
          to label %293 unwind label %41

293:                                              ; preds = %290
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %294

294:                                              ; preds = %293, %287
  br label %295

295:                                              ; preds = %294
  br label %296

296:                                              ; preds = %295
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !5
  br label %297

297:                                              ; preds = %340, %296
  %298 = load i32, ptr %17, align 4, !tbaa !5
  %299 = load i32, ptr %11, align 4, !tbaa !5
  %300 = icmp slt i32 %298, %299
  br i1 %300, label %302, label %301

301:                                              ; preds = %297
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %343

302:                                              ; preds = %297
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %17, align 4, !tbaa !5
  %305 = add nsw i32 %304, 4000
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [0 x i16], ptr @g_no_1000ms_sample_data, i64 0, i64 %306
  %308 = load i16, ptr %307, align 2, !tbaa !17
  %309 = sext i16 %308 to i32
  %310 = load ptr, ptr %12, align 8, !tbaa !9
  %311 = load i32, ptr %17, align 4, !tbaa !5
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds i16, ptr %310, i64 %312
  %314 = load i16, ptr %313, align 2, !tbaa !17
  %315 = sext i16 %314 to i32
  %316 = icmp ne i32 %309, %315
  br i1 %316, label %317, label %337

317:                                              ; preds = %303
  %318 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %319 = load i32, ptr %17, align 4, !tbaa !5
  %320 = add nsw i32 %319, 4000
  %321 = sext i32 %320 to i64
  %322 = getelementptr inbounds [0 x i16], ptr @g_no_1000ms_sample_data, i64 0, i64 %321
  %323 = load i16, ptr %322, align 2, !tbaa !17
  %324 = sext i16 %323 to i32
  %325 = load ptr, ptr %12, align 8, !tbaa !9
  %326 = load i32, ptr %17, align 4, !tbaa !5
  %327 = sext i32 %326 to i64
  %328 = getelementptr inbounds i16, ptr %325, i64 %327
  %329 = load i16, ptr %328, align 2, !tbaa !17
  %330 = sext i16 %329 to i32
  %331 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %318, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 72, i32 noundef %324, i32 noundef %330)
          to label %332 unwind label %333

332:                                              ; preds = %317
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %337

333:                                              ; preds = %317
  %334 = landingpad { ptr, i32 }
          cleanup
  %335 = extractvalue { ptr, i32 } %334, 0
  store ptr %335, ptr %7, align 8
  %336 = extractvalue { ptr, i32 } %334, 1
  store i32 %336, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %357

337:                                              ; preds = %332, %303
  br label %338

338:                                              ; preds = %337
  br label %339

339:                                              ; preds = %338
  br label %340

340:                                              ; preds = %339
  %341 = load i32, ptr %17, align 4, !tbaa !5
  %342 = add nsw i32 %341, 1
  store i32 %342, ptr %17, align 4, !tbaa !5
  br label %297, !llvm.loop !23

343:                                              ; preds = %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %344

344:                                              ; preds = %343
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %345 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %346 = trunc i8 %345 to i1
  %347 = zext i1 %346 to i64
  %348 = select i1 %346, i32 0, i32 1
  %349 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %350 = add nsw i32 %349, %348
  store i32 %350, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %351 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %352 = trunc i8 %351 to i1
  %353 = zext i1 %352 to i64
  %354 = select i1 %352, i32 1, i32 0
  %355 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %356 = add nsw i32 %355, %354
  store i32 %356, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %21, !llvm.loop !24

357:                                              ; preds = %333, %252, %183, %102, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %378

358:                                              ; preds = %21
  %359 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %360 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %361 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %362 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %363 = add nsw i32 %361, %362
  %364 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %359, ptr noundef @.str.10, i32 noundef %360, i32 noundef %363)
          to label %365 unwind label %37

365:                                              ; preds = %358
  %366 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %367 = icmp eq i32 %366, 0
  br i1 %367, label %368, label %372

368:                                              ; preds = %365
  %369 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %370 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef @.str.11)
          to label %371 unwind label %37

371:                                              ; preds = %368
  br label %376

372:                                              ; preds = %365
  %373 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %374 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %373, ptr noundef @.str.12)
          to label %375 unwind label %37

375:                                              ; preds = %372
  br label %376

376:                                              ; preds = %375, %371
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %377 = load i32, ptr %3, align 4
  ret i32 %377

378:                                              ; preds = %357, %37
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %379

379:                                              ; preds = %378
  %380 = load ptr, ptr %7, align 8
  %381 = load i32, ptr %8, align 4
  %382 = insertvalue { ptr, i32 } poison, ptr %380, 0
  %383 = insertvalue { ptr, i32 } %382, i32 %381, 1
  resume { ptr, i32 } %383
}

; 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 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(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 #4 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 = { 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 #5 = { 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 = !{!18, !18, i64 0}
!18 = !{!"short", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


; 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 [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [136 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [41 x i8], align 1
@g_yes_1000ms_sample_data = external local_unnamed_addr constant [0 x i16], align 2
@.str.6 = external hidden unnamed_addr constant [75 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@g_no_1000ms_sample_data = external local_unnamed_addr constant [0 x i16], align 2
@.str.9 = external hidden unnamed_addr constant [81 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 i32, align 4
  %6 = alloca ptr, 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) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  store ptr %3, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %7 = 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 %.lr.ph76 unwind label %14

.lr.ph76:                                         ; 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
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  store ptr null, ptr %6, align 8, !tbaa !9
  %8 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef nonnull %4, i32 noundef 0, i32 noundef 30, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %9 unwind label %16

9:                                                ; preds = %.lr.ph76
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %18, label %10

10:                                               ; preds = %9
  %11 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %12 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 39, i32 noundef 0, i32 noundef %8)
          to label %13 unwind label %16

13:                                               ; preds = %10
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %18

14:                                               ; preds = %.invoke, %._crit_edge77, %2
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %191

16:                                               ; preds = %149, %142, %135, %._crit_edge70, %111, %104, %97, %._crit_edge66, %69, %62, %55, %._crit_edge, %28, %21, %10, %.lr.ph76
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %175

18:                                               ; preds = %9, %13
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = icmp sgt i32 %19, 512
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %23 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 40)
          to label %24 unwind label %16

24:                                               ; preds = %21
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %25

25:                                               ; preds = %18, %24
  %26 = load ptr, ptr %6, align 8, !tbaa !9
  %27 = icmp eq ptr %26, null
  br i1 %27, label %28, label %32

28:                                               ; preds = %25
  %29 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %30 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 41)
          to label %31 unwind label %16

31:                                               ; preds = %28
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %32

32:                                               ; preds = %31, %25
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %50, %32
  %35 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef nonnull %4, i32 noundef 500, i32 noundef 30, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %54 unwind label %16

.lr.ph:                                           ; preds = %32, %50
  %36 = phi i32 [ %51, %50 ], [ %33, %32 ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %32 ]
  %37 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %indvars.iv
  %38 = load i16, ptr %37, align 2, !tbaa !13
  %39 = load ptr, ptr %6, align 8, !tbaa !9
  %40 = getelementptr inbounds i16, ptr %39, i64 %indvars.iv
  %41 = load i16, ptr %40, align 2, !tbaa !13
  %.not59 = icmp eq i16 %38, %41
  br i1 %.not59, label %50, label %42

42:                                               ; preds = %.lr.ph
  %43 = sext i16 %41 to i32
  %44 = sext i16 %38 to i32
  %45 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %46 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.3, i32 noundef 43, i32 noundef %44, i32 noundef %43)
          to label %47 unwind label %48

47:                                               ; preds = %42
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %50

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %175

50:                                               ; preds = %.lr.ph, %47
  %51 = phi i32 [ %36, %.lr.ph ], [ %.pre, %47 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next, %52
  br i1 %53, label %.lr.ph, label %._crit_edge, !llvm.loop !15

54:                                               ; preds = %._crit_edge
  %.not53 = icmp eq i32 %35, 0
  br i1 %.not53, label %59, label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %57 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 48, i32 noundef 0, i32 noundef %35)
          to label %58 unwind label %16

58:                                               ; preds = %55
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %59

59:                                               ; preds = %54, %58
  %60 = load i32, ptr %5, align 4, !tbaa !5
  %61 = icmp sgt i32 %60, 512
  br i1 %61, label %62, label %66

62:                                               ; preds = %59
  %63 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %64 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 49)
          to label %65 unwind label %16

65:                                               ; preds = %62
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %66

66:                                               ; preds = %59, %65
  %67 = load ptr, ptr %6, align 8, !tbaa !9
  %68 = icmp eq ptr %67, null
  br i1 %68, label %69, label %73

69:                                               ; preds = %66
  %70 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %71 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %70, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 50)
          to label %72 unwind label %16

72:                                               ; preds = %69
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %73

73:                                               ; preds = %72, %66
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = icmp sgt i32 %74, 0
  br i1 %75, label %.lr.ph65, label %._crit_edge66

._crit_edge66:                                    ; preds = %92, %73
  %76 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef nonnull %4, i32 noundef 1500, i32 noundef 30, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %96 unwind label %16

.lr.ph65:                                         ; preds = %73, %92
  %77 = phi i32 [ %93, %92 ], [ %74, %73 ]
  %indvars.iv79 = phi i64 [ %indvars.iv.next80, %92 ], [ 0, %73 ]
  %78 = add nuw nsw i64 %indvars.iv79, 8000
  %79 = getelementptr inbounds [0 x i16], ptr @g_yes_1000ms_sample_data, i64 0, i64 %78
  %80 = load i16, ptr %79, align 2, !tbaa !13
  %81 = load ptr, ptr %6, align 8, !tbaa !9
  %82 = getelementptr inbounds i16, ptr %81, i64 %indvars.iv79
  %83 = load i16, ptr %82, align 2, !tbaa !13
  %.not58 = icmp eq i16 %80, %83
  br i1 %.not58, label %92, label %84

84:                                               ; preds = %.lr.ph65
  %85 = sext i16 %83 to i32
  %86 = sext i16 %80 to i32
  %87 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %88 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 53, i32 noundef %86, i32 noundef %85)
          to label %89 unwind label %90

89:                                               ; preds = %84
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre88 = load i32, ptr %5, align 4, !tbaa !5
  br label %92

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

92:                                               ; preds = %.lr.ph65, %89
  %93 = phi i32 [ %77, %.lr.ph65 ], [ %.pre88, %89 ]
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %94 = sext i32 %93 to i64
  %95 = icmp slt i64 %indvars.iv.next80, %94
  br i1 %95, label %.lr.ph65, label %._crit_edge66, !llvm.loop !17

96:                                               ; preds = %._crit_edge66
  %.not54 = icmp eq i32 %76, 0
  br i1 %.not54, label %101, label %97

97:                                               ; preds = %96
  %98 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %99 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 58, i32 noundef 0, i32 noundef %76)
          to label %100 unwind label %16

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

101:                                              ; preds = %96, %100
  %102 = load i32, ptr %5, align 4, !tbaa !5
  %103 = icmp sgt i32 %102, 512
  br i1 %103, label %104, label %108

104:                                              ; preds = %101
  %105 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %106 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 59)
          to label %107 unwind label %16

107:                                              ; preds = %104
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %108

108:                                              ; preds = %101, %107
  %109 = load ptr, ptr %6, align 8, !tbaa !9
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %115

111:                                              ; preds = %108
  %112 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %113 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 60)
          to label %114 unwind label %16

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

115:                                              ; preds = %114, %108
  %116 = load i32, ptr %5, align 4, !tbaa !5
  %117 = icmp sgt i32 %116, 0
  br i1 %117, label %.lr.ph69, label %._crit_edge70

._crit_edge70:                                    ; preds = %130, %115
  %118 = invoke noundef i32 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(ptr noundef nonnull %4, i32 noundef 12250, i32 noundef 30, ptr noundef nonnull %5, ptr noundef nonnull %6)
          to label %134 unwind label %16

.lr.ph69:                                         ; preds = %115, %130
  %119 = phi i32 [ %131, %130 ], [ %116, %115 ]
  %indvars.iv82 = phi i64 [ %indvars.iv.next83, %130 ], [ 0, %115 ]
  %120 = load ptr, ptr %6, align 8, !tbaa !9
  %121 = getelementptr inbounds i16, ptr %120, i64 %indvars.iv82
  %122 = load i16, ptr %121, align 2, !tbaa !13
  %.not57 = icmp eq i16 %122, 0
  br i1 %.not57, label %130, label %123

123:                                              ; preds = %.lr.ph69
  %124 = sext i16 %122 to i32
  %125 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %126 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.3, i32 noundef 62, i32 noundef 0, i32 noundef %124)
          to label %127 unwind label %128

127:                                              ; preds = %123
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre89 = load i32, ptr %5, align 4, !tbaa !5
  br label %130

128:                                              ; preds = %123
  %129 = landingpad { ptr, i32 }
          cleanup
  br label %175

130:                                              ; preds = %.lr.ph69, %127
  %131 = phi i32 [ %119, %.lr.ph69 ], [ %.pre89, %127 ]
  %indvars.iv.next83 = add nuw nsw i64 %indvars.iv82, 1
  %132 = sext i32 %131 to i64
  %133 = icmp slt i64 %indvars.iv.next83, %132
  br i1 %133, label %.lr.ph69, label %._crit_edge70, !llvm.loop !18

134:                                              ; preds = %._crit_edge70
  %.not55 = icmp eq i32 %118, 0
  br i1 %.not55, label %139, label %135

135:                                              ; preds = %134
  %136 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %137 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %136, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 67, i32 noundef 0, i32 noundef %118)
          to label %138 unwind label %16

138:                                              ; preds = %135
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %139

139:                                              ; preds = %134, %138
  %140 = load i32, ptr %5, align 4, !tbaa !5
  %141 = icmp sgt i32 %140, 512
  br i1 %141, label %142, label %146

142:                                              ; preds = %139
  %143 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %144 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 68)
          to label %145 unwind label %16

145:                                              ; preds = %142
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %146

146:                                              ; preds = %139, %145
  %147 = load ptr, ptr %6, align 8, !tbaa !9
  %148 = icmp eq ptr %147, null
  br i1 %148, label %149, label %153

149:                                              ; preds = %146
  %150 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %151 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 69)
          to label %152 unwind label %16

152:                                              ; preds = %149
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %153

153:                                              ; preds = %152, %146
  %154 = load i32, ptr %5, align 4, !tbaa !5
  %155 = icmp sgt i32 %154, 0
  br i1 %155, label %.lr.ph73, label %._crit_edge77

.lr.ph73:                                         ; preds = %153, %171
  %156 = phi i32 [ %172, %171 ], [ %154, %153 ]
  %indvars.iv85 = phi i64 [ %indvars.iv.next86, %171 ], [ 0, %153 ]
  %157 = add nuw nsw i64 %indvars.iv85, 4000
  %158 = getelementptr inbounds [0 x i16], ptr @g_no_1000ms_sample_data, i64 0, i64 %157
  %159 = load i16, ptr %158, align 2, !tbaa !13
  %160 = load ptr, ptr %6, align 8, !tbaa !9
  %161 = getelementptr inbounds i16, ptr %160, i64 %indvars.iv85
  %162 = load i16, ptr %161, align 2, !tbaa !13
  %.not56 = icmp eq i16 %159, %162
  br i1 %.not56, label %171, label %163

163:                                              ; preds = %.lr.ph73
  %164 = sext i16 %162 to i32
  %165 = sext i16 %159 to i32
  %166 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %167 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %166, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 72, i32 noundef %165, i32 noundef %164)
          to label %168 unwind label %169

168:                                              ; preds = %163
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre90 = load i32, ptr %5, align 4, !tbaa !5
  br label %171

169:                                              ; preds = %163
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %175

171:                                              ; preds = %.lr.ph73, %168
  %172 = phi i32 [ %156, %.lr.ph73 ], [ %.pre90, %168 ]
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %173 = sext i32 %172 to i64
  %174 = icmp slt i64 %indvars.iv.next86, %173
  br i1 %174, label %.lr.ph73, label %._crit_edge77, !llvm.loop !19

175:                                              ; preds = %169, %128, %90, %48, %16
  %.pn = phi { ptr, i32 } [ %49, %48 ], [ %91, %90 ], [ %129, %128 ], [ %170, %169 ], [ %17, %16 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  br label %191

._crit_edge77:                                    ; preds = %171, %153
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %176 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !20, !noundef !21
  %177 = xor i8 %176, 1
  %not. = zext nneg i8 %177 to i32
  %178 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %179 = add nsw i32 %178, %not.
  store i32 %179, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %180 = zext nneg i8 %176 to i32
  %181 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %182 = add nsw i32 %181, %180
  store i32 %182, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %183 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %184 = add nsw i32 %182, %179
  %185 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %183, ptr noundef nonnull @.str.10, i32 noundef %179, i32 noundef %184)
          to label %.invoke unwind label %14

.invoke:                                          ; preds = %._crit_edge77
  %186 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %187 = icmp eq i32 %186, 0
  %188 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.11..str.12 = select i1 %187, ptr @.str.11, ptr @.str.12
  %189 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull %.str.11..str.12)
          to label %190 unwind label %14

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

191:                                              ; preds = %175, %14
  %.pn.pn = phi { ptr, i32 } [ %.pn, %175 ], [ %15, %14 ]
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  resume { ptr, i32 } %.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 @_Z15GetAudioSamplesPN6tflite13ErrorReporterEiiPiPPs(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 #4 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 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 #5 = { 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 = !{!14, !14, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{i8 0, i8 2}
!21 = !{}


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