; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/microfrontend/lib (frontend_test)

; 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 }
%"class.(anonymous namespace)::FrontendTestConfig" = type { %struct.FrontendConfig }
%struct.FrontendConfig = type { %struct.WindowConfig, %struct.FilterbankConfig, %struct.NoiseReductionConfig, %struct.PcanGainControlConfig, %struct.LogScaleConfig }
%struct.WindowConfig = type { i64, i64 }
%struct.FilterbankConfig = type { i32, float, float, i32 }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.PcanGainControlConfig = type { i32, float, float, i32 }
%struct.LogScaleConfig = type { i32, i32 }
%struct.FrontendState = type { %struct.WindowState, %struct.FftState, %struct.FilterbankState, %struct.NoiseReductionState, %struct.PcanGainControlState, %struct.LogScaleState }
%struct.WindowState = type { i64, ptr, i64, ptr, i64, ptr, i16 }
%struct.FftState = type { ptr, ptr, i64, i64, ptr, i64 }
%struct.FilterbankState = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }
%struct.PcanGainControlState = type { i32, ptr, i32, ptr, i32 }
%struct.LogScaleState = type { i32, i32 }
%struct.FrontendOutput = type { ptr, i64 }

@_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 [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [115 x i8], align 1
@_ZN12_GLOBAL__N_114kFakeAudioDataE = external hidden constant [36 x i16], align 16
@__const.main.expected = external hidden unnamed_addr constant [2 x i16], align 2
@.str.4 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@__const.main.expected.7 = external hidden unnamed_addr constant [2 x i16], align 2
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = 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.(anonymous namespace)::FrontendTestConfig", align 8
  %10 = alloca %struct.FrontendState, align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.FrontendOutput, align 8
  %13 = alloca [2 x i16], align 2
  %14 = alloca i32, align 4
  %15 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %16 = alloca %struct.FrontendState, align 8
  %17 = alloca i64, align 8
  %18 = alloca %struct.FrontendOutput, align 8
  %19 = alloca %struct.FrontendOutput, align 8
  %20 = alloca [2 x i16], align 2
  %21 = alloca i32, align 4
  %22 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %23 = alloca %struct.FrontendState, align 8
  %24 = alloca i64, align 8
  %25 = alloca %struct.FrontendOutput, align 8
  %26 = alloca %struct.FrontendOutput, align 8
  %27 = alloca %struct.FrontendOutput, align 8
  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
  %28 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %29 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef @.str, ptr noundef @.str.1)
          to label %30 unwind label %46

30:                                               ; 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 %31

31:                                               ; preds = %137, %30
  %32 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %33 = trunc i8 %32 to i1
  %34 = xor i1 %33, true
  br i1 %34, label %35, label %154

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9)
          to label %36 unwind label %50

36:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 240, ptr %10) #6
  br label %37

37:                                               ; preds = %36
  %38 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %9, i32 0, i32 0
  %39 = invoke i32 @FrontendPopulateState(ptr noundef %38, ptr noundef %10, i32 noundef 1000)
          to label %40 unwind label %54

40:                                               ; preds = %37
  %41 = icmp ne i32 %39, 0
  br i1 %41, label %58, label %42

42:                                               ; preds = %40
  %43 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %44 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 63)
          to label %45 unwind label %54

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

46:                                               ; preds = %401, %397, %387, %288, %154, %2
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %7, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %8, align 4
  br label %407

50:                                               ; preds = %35
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %7, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %8, align 4
  br label %153

54:                                               ; preds = %42, %37
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  br label %152

58:                                               ; preds = %45, %40
  br label %59

59:                                               ; preds = %58
  br label %60

60:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %61 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %10, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %11)
          to label %62 unwind label %77

62:                                               ; preds = %60
  %63 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 0
  %64 = extractvalue { ptr, i64 } %61, 0
  store ptr %64, ptr %63, align 8
  %65 = getelementptr inbounds { ptr, i64 }, ptr %12, i32 0, i32 1
  %66 = extractvalue { ptr, i64 } %61, 1
  store i64 %66, ptr %65, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %13, ptr align 2 @__const.main.expected, i64 4, i1 false)
  br label %67

67:                                               ; preds = %62
  %68 = getelementptr inbounds %struct.FrontendOutput, ptr %12, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !15
  %70 = icmp ne i64 %69, 2
  br i1 %70, label %71, label %85

71:                                               ; preds = %67
  %72 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %73 = getelementptr inbounds %struct.FrontendOutput, ptr %12, i32 0, i32 1
  %74 = load i64, ptr %73, align 8, !tbaa !15
  %75 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %72, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 71, i64 noundef %74, i64 noundef 2)
          to label %76 unwind label %81

76:                                               ; preds = %71
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %85

77:                                               ; preds = %60
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %7, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %8, align 4
  br label %151

81:                                               ; preds = %71
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %7, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %8, align 4
  br label %150

85:                                               ; preds = %76, %67
  br label %86

86:                                               ; preds = %85
  br label %87

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

88:                                               ; preds = %132, %87
  %89 = load i32, ptr %14, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds %struct.FrontendOutput, ptr %12, i32 0, i32 1
  %92 = load i64, ptr %91, align 8, !tbaa !15
  %93 = icmp ult i64 %90, %92
  br i1 %93, label %94, label %135

94:                                               ; preds = %88
  br label %95

95:                                               ; preds = %94
  %96 = getelementptr inbounds %struct.FrontendOutput, ptr %12, i32 0, i32 0
  %97 = load ptr, ptr %96, align 8, !tbaa !18
  %98 = load i32, ptr %14, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i16, ptr %97, i64 %99
  %101 = load i16, ptr %100, align 2, !tbaa !19
  %102 = zext i16 %101 to i32
  %103 = load i32, ptr %14, align 4, !tbaa !5
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [2 x i16], ptr %13, i64 0, i64 %104
  %106 = load i16, ptr %105, align 2, !tbaa !19
  %107 = zext i16 %106 to i32
  %108 = icmp ne i32 %102, %107
  br i1 %108, label %109, label %129

109:                                              ; preds = %95
  %110 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %111 = getelementptr inbounds %struct.FrontendOutput, ptr %12, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !18
  %113 = load i32, ptr %14, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i16, ptr %112, i64 %114
  %116 = load i16, ptr %115, align 2, !tbaa !19
  %117 = zext i16 %116 to i32
  %118 = load i32, ptr %14, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [2 x i16], ptr %13, i64 0, i64 %119
  %121 = load i16, ptr %120, align 2, !tbaa !19
  %122 = zext i16 %121 to i32
  %123 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 74, i32 noundef %117, i32 noundef %122)
          to label %124 unwind label %125

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

125:                                              ; preds = %135, %109
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %7, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %150

129:                                              ; preds = %124, %95
  br label %130

130:                                              ; preds = %129
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %14, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %14, align 4, !tbaa !5
  br label %88, !llvm.loop !21

135:                                              ; preds = %88
  invoke void @FrontendFreeStateContents(ptr noundef %10)
          to label %136 unwind label %125

136:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 240, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  br label %137

137:                                              ; preds = %136
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %138 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %139 = trunc i8 %138 to i1
  %140 = zext i1 %139 to i64
  %141 = select i1 %139, i32 0, i32 1
  %142 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %144 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc i8 %144 to i1
  %146 = zext i1 %145 to i64
  %147 = select i1 %145, i32 1, i32 0
  %148 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %149 = add nsw i32 %148, %147
  store i32 %149, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %31, !llvm.loop !23

150:                                              ; preds = %125, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %151

151:                                              ; preds = %150, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %152

152:                                              ; preds = %151, %54
  call void @llvm.lifetime.end.p0(i64 240, ptr %10) #6
  br label %153

153:                                              ; preds = %152, %50
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #6
  br label %407

154:                                              ; preds = %31
  %155 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %156 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str, ptr noundef @.str.6)
          to label %157 unwind label %46

157:                                              ; preds = %154
  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 %158

158:                                              ; preds = %270, %157
  %159 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %160 = trunc i8 %159 to i1
  %161 = xor i1 %160, true
  br i1 %161, label %162, label %288

162:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %15)
          to label %163 unwind label %173

163:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 240, ptr %16) #6
  br label %164

164:                                              ; preds = %163
  %165 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %15, i32 0, i32 0
  %166 = invoke i32 @FrontendPopulateState(ptr noundef %165, ptr noundef %16, i32 noundef 1000)
          to label %167 unwind label %177

167:                                              ; preds = %164
  %168 = icmp ne i32 %166, 0
  br i1 %168, label %181, label %169

169:                                              ; preds = %167
  %170 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %171 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %170, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 84)
          to label %172 unwind label %177

172:                                              ; preds = %169
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %181

173:                                              ; preds = %162
  %174 = landingpad { ptr, i32 }
          cleanup
  %175 = extractvalue { ptr, i32 } %174, 0
  store ptr %175, ptr %7, align 8
  %176 = extractvalue { ptr, i32 } %174, 1
  store i32 %176, ptr %8, align 4
  br label %287

177:                                              ; preds = %169, %164
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %7, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %8, align 4
  br label %286

181:                                              ; preds = %172, %167
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %184 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %16, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %17)
          to label %185 unwind label %206

185:                                              ; preds = %183
  %186 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 0
  %187 = extractvalue { ptr, i64 } %184, 0
  store ptr %187, ptr %186, align 8
  %188 = getelementptr inbounds { ptr, i64 }, ptr %18, i32 0, i32 1
  %189 = extractvalue { ptr, i64 } %184, 1
  store i64 %189, ptr %188, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  %190 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %16, ptr noundef getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 noundef 11, ptr noundef %17)
          to label %191 unwind label %210

191:                                              ; preds = %185
  %192 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 0
  %193 = extractvalue { ptr, i64 } %190, 0
  store ptr %193, ptr %192, align 8
  %194 = getelementptr inbounds { ptr, i64 }, ptr %19, i32 0, i32 1
  %195 = extractvalue { ptr, i64 } %190, 1
  store i64 %195, ptr %194, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %20, ptr align 2 @__const.main.expected.7, i64 4, i1 false)
  br label %196

196:                                              ; preds = %191
  %197 = getelementptr inbounds %struct.FrontendOutput, ptr %19, i32 0, i32 1
  %198 = load i64, ptr %197, align 8, !tbaa !15
  %199 = icmp ne i64 %198, 2
  br i1 %199, label %200, label %218

200:                                              ; preds = %196
  %201 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %202 = getelementptr inbounds %struct.FrontendOutput, ptr %19, i32 0, i32 1
  %203 = load i64, ptr %202, align 8, !tbaa !15
  %204 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %201, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 96, i64 noundef %203, i64 noundef 2)
          to label %205 unwind label %214

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

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

210:                                              ; preds = %185
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %7, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %8, align 4
  br label %284

214:                                              ; preds = %200
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %7, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %8, align 4
  br label %283

218:                                              ; preds = %205, %196
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %265, %220
  %222 = load i32, ptr %21, align 4, !tbaa !5
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds %struct.FrontendOutput, ptr %19, i32 0, i32 1
  %225 = load i64, ptr %224, align 8, !tbaa !15
  %226 = icmp ult i64 %223, %225
  br i1 %226, label %227, label %268

227:                                              ; preds = %221
  br label %228

228:                                              ; preds = %227
  %229 = getelementptr inbounds %struct.FrontendOutput, ptr %19, i32 0, i32 0
  %230 = load ptr, ptr %229, align 8, !tbaa !18
  %231 = load i32, ptr %21, align 4, !tbaa !5
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds i16, ptr %230, i64 %232
  %234 = load i16, ptr %233, align 2, !tbaa !19
  %235 = zext i16 %234 to i32
  %236 = load i32, ptr %21, align 4, !tbaa !5
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds [2 x i16], ptr %20, i64 0, i64 %237
  %239 = load i16, ptr %238, align 2, !tbaa !19
  %240 = sext i16 %239 to i32
  %241 = icmp ne i32 %235, %240
  br i1 %241, label %242, label %262

242:                                              ; preds = %228
  %243 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %244 = getelementptr inbounds %struct.FrontendOutput, ptr %19, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8, !tbaa !18
  %246 = load i32, ptr %21, align 4, !tbaa !5
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds i16, ptr %245, i64 %247
  %249 = load i16, ptr %248, align 2, !tbaa !19
  %250 = zext i16 %249 to i32
  %251 = load i32, ptr %21, align 4, !tbaa !5
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [2 x i16], ptr %20, i64 0, i64 %252
  %254 = load i16, ptr %253, align 2, !tbaa !19
  %255 = sext i16 %254 to i32
  %256 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 99, i32 noundef %250, i32 noundef %255)
          to label %257 unwind label %258

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

258:                                              ; preds = %268, %242
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %7, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %283

262:                                              ; preds = %257, %228
  br label %263

263:                                              ; preds = %262
  br label %264

264:                                              ; preds = %263
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %21, align 4, !tbaa !5
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %21, align 4, !tbaa !5
  br label %221, !llvm.loop !24

268:                                              ; preds = %221
  invoke void @FrontendFreeStateContents(ptr noundef %16)
          to label %269 unwind label %258

269:                                              ; preds = %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 240, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #6
  br label %270

270:                                              ; preds = %269
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %271 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %272 = trunc i8 %271 to i1
  %273 = zext i1 %272 to i64
  %274 = select i1 %272, i32 0, i32 1
  %275 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %276 = add nsw i32 %275, %274
  store i32 %276, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %277 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %278 = trunc i8 %277 to i1
  %279 = zext i1 %278 to i64
  %280 = select i1 %278, i32 1, i32 0
  %281 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %282 = add nsw i32 %281, %280
  store i32 %282, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %158, !llvm.loop !25

283:                                              ; preds = %258, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %284

284:                                              ; preds = %283, %210
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #6
  br label %285

285:                                              ; preds = %284, %206
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %286

286:                                              ; preds = %285, %177
  call void @llvm.lifetime.end.p0(i64 240, ptr %16) #6
  br label %287

287:                                              ; preds = %286, %173
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #6
  br label %407

288:                                              ; preds = %158
  %289 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %290 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %289, ptr noundef @.str, ptr noundef @.str.8)
          to label %291 unwind label %46

291:                                              ; preds = %288
  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 %292

292:                                              ; preds = %371, %291
  %293 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %294 = trunc i8 %293 to i1
  %295 = xor i1 %294, true
  br i1 %295, label %296, label %387

296:                                              ; preds = %292
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %297 unwind label %307

297:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 240, ptr %23) #6
  br label %298

298:                                              ; preds = %297
  %299 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %22, i32 0, i32 0
  %300 = invoke i32 @FrontendPopulateState(ptr noundef %299, ptr noundef %23, i32 noundef 1000)
          to label %301 unwind label %311

301:                                              ; preds = %298
  %302 = icmp ne i32 %300, 0
  br i1 %302, label %315, label %303

303:                                              ; preds = %301
  %304 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %305 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %304, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 109)
          to label %306 unwind label %311

306:                                              ; preds = %303
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %315

307:                                              ; preds = %296
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %7, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %8, align 4
  br label %386

311:                                              ; preds = %303, %298
  %312 = landingpad { ptr, i32 }
          cleanup
  %313 = extractvalue { ptr, i32 } %312, 0
  store ptr %313, ptr %7, align 8
  %314 = extractvalue { ptr, i32 } %312, 1
  store i32 %314, ptr %8, align 4
  br label %385

315:                                              ; preds = %306, %301
  br label %316

316:                                              ; preds = %315
  br label %317

317:                                              ; preds = %316
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %318 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %23, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %24)
          to label %319 unwind label %346

319:                                              ; preds = %317
  %320 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 0
  %321 = extractvalue { ptr, i64 } %318, 0
  store ptr %321, ptr %320, align 8
  %322 = getelementptr inbounds { ptr, i64 }, ptr %25, i32 0, i32 1
  %323 = extractvalue { ptr, i64 } %318, 1
  store i64 %323, ptr %322, align 8
  %324 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %23, ptr noundef getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 noundef 11, ptr noundef %24)
          to label %325 unwind label %346

325:                                              ; preds = %319
  %326 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 0
  %327 = extractvalue { ptr, i64 } %324, 0
  store ptr %327, ptr %326, align 8
  %328 = getelementptr inbounds { ptr, i64 }, ptr %26, i32 0, i32 1
  %329 = extractvalue { ptr, i64 } %324, 1
  store i64 %329, ptr %328, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #6
  %330 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef %23, ptr noundef getelementptr inbounds (i16, ptr getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 10), i64 noundef 1, ptr noundef %24)
          to label %331 unwind label %350

331:                                              ; preds = %325
  %332 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %333 = extractvalue { ptr, i64 } %330, 0
  store ptr %333, ptr %332, align 8
  %334 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %335 = extractvalue { ptr, i64 } %330, 1
  store i64 %335, ptr %334, align 8
  br label %336

336:                                              ; preds = %331
  %337 = getelementptr inbounds %struct.FrontendOutput, ptr %27, i32 0, i32 1
  %338 = load i64, ptr %337, align 8, !tbaa !15
  %339 = icmp ne i64 %338, 0
  br i1 %339, label %340, label %354

340:                                              ; preds = %336
  %341 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %342 = getelementptr inbounds %struct.FrontendOutput, ptr %27, i32 0, i32 1
  %343 = load i64, ptr %342, align 8, !tbaa !15
  %344 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %341, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 125, i64 noundef %343, i32 noundef 0)
          to label %345 unwind label %350

345:                                              ; preds = %340
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %354

346:                                              ; preds = %319, %317
  %347 = landingpad { ptr, i32 }
          cleanup
  %348 = extractvalue { ptr, i32 } %347, 0
  store ptr %348, ptr %7, align 8
  %349 = extractvalue { ptr, i32 } %347, 1
  store i32 %349, ptr %8, align 4
  br label %384

350:                                              ; preds = %369, %361, %340, %325
  %351 = landingpad { ptr, i32 }
          cleanup
  %352 = extractvalue { ptr, i32 } %351, 0
  store ptr %352, ptr %7, align 8
  %353 = extractvalue { ptr, i32 } %351, 1
  store i32 %353, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  br label %384

354:                                              ; preds = %345, %336
  br label %355

355:                                              ; preds = %354
  br label %356

356:                                              ; preds = %355
  br label %357

357:                                              ; preds = %356
  %358 = getelementptr inbounds %struct.FrontendOutput, ptr %27, i32 0, i32 0
  %359 = load ptr, ptr %358, align 8, !tbaa !18
  %360 = icmp ne ptr %359, null
  br i1 %360, label %361, label %367

361:                                              ; preds = %357
  %362 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %363 = getelementptr inbounds %struct.FrontendOutput, ptr %27, i32 0, i32 0
  %364 = load ptr, ptr %363, align 8, !tbaa !18
  %365 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %362, ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 126, ptr noundef %364, ptr null)
          to label %366 unwind label %350

366:                                              ; preds = %361
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %367

367:                                              ; preds = %366, %357
  br label %368

368:                                              ; preds = %367
  br label %369

369:                                              ; preds = %368
  invoke void @FrontendFreeStateContents(ptr noundef %23)
          to label %370 unwind label %350

370:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 240, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #6
  br label %371

371:                                              ; preds = %370
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %372 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %373 = trunc i8 %372 to i1
  %374 = zext i1 %373 to i64
  %375 = select i1 %373, i32 0, i32 1
  %376 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %377 = add nsw i32 %376, %375
  store i32 %377, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %378 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %379 = trunc i8 %378 to i1
  %380 = zext i1 %379 to i64
  %381 = select i1 %379, i32 1, i32 0
  %382 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %383 = add nsw i32 %382, %381
  store i32 %383, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %292, !llvm.loop !26

384:                                              ; preds = %350, %346
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %385

385:                                              ; preds = %384, %311
  call void @llvm.lifetime.end.p0(i64 240, ptr %23) #6
  br label %386

386:                                              ; preds = %385, %307
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #6
  br label %407

387:                                              ; preds = %292
  %388 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %389 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %390 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %391 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %392 = add nsw i32 %390, %391
  %393 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %388, ptr noundef @.str.11, i32 noundef %389, i32 noundef %392)
          to label %394 unwind label %46

394:                                              ; preds = %387
  %395 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %396 = icmp eq i32 %395, 0
  br i1 %396, label %397, label %401

397:                                              ; preds = %394
  %398 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %399 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %398, ptr noundef @.str.12)
          to label %400 unwind label %46

400:                                              ; preds = %397
  br label %405

401:                                              ; preds = %394
  %402 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %403 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %402, ptr noundef @.str.13)
          to label %404 unwind label %46

404:                                              ; preds = %401
  br label %405

405:                                              ; preds = %404, %400
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %406 = load i32, ptr %3, align 4
  ret i32 %406

407:                                              ; preds = %386, %287, %153, %46
  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 %408

408:                                              ; preds = %407
  %409 = load ptr, ptr %7, align 8
  %410 = load i32, ptr %8, align 4
  %411 = insertvalue { ptr, i32 } poison, ptr %409, 0
  %412 = insertvalue { ptr, i32 } %411, i32 %410, 1
  resume { ptr, i32 } %412
}

; 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(...)

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4 align 2

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

declare { ptr, i64 } @FrontendProcessSamples(ptr noundef, ptr noundef, i64 noundef, 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) #5

declare void @FrontendFreeStateContents(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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !17, i64 8}
!16 = !{!"_ZTS14FrontendOutput", !10, i64 0, !17, i64 8}
!17 = !{!"long", !7, i64 0}
!18 = !{!16, !10, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}
!24 = distinct !{!24, !22}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


; 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 }
%"class.(anonymous namespace)::FrontendTestConfig" = type { %struct.FrontendConfig }
%struct.FrontendConfig = type { %struct.WindowConfig, %struct.FilterbankConfig, %struct.NoiseReductionConfig, %struct.PcanGainControlConfig, %struct.LogScaleConfig }
%struct.WindowConfig = type { i64, i64 }
%struct.FilterbankConfig = type { i32, float, float, i32 }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.PcanGainControlConfig = type { i32, float, float, i32 }
%struct.LogScaleConfig = type { i32, i32 }
%struct.FrontendState = type { %struct.WindowState, %struct.FftState, %struct.FilterbankState, %struct.NoiseReductionState, %struct.PcanGainControlState, %struct.LogScaleState }
%struct.WindowState = type { i64, ptr, i64, ptr, i64, ptr, i16 }
%struct.FftState = type { ptr, ptr, i64, i64, ptr, i64 }
%struct.FilterbankState = type { i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }
%struct.PcanGainControlState = type { i32, ptr, i32, ptr, i32 }
%struct.LogScaleState = type { i32, i32 }

@_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 [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [115 x i8], align 1
@_ZN12_GLOBAL__N_114kFakeAudioDataE = external hidden constant [36 x i16], align 16
@__const.main.expected = external hidden unnamed_addr constant [2 x i16], align 2
@.str.4 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [36 x i8], align 1
@__const.main.expected.7 = external hidden unnamed_addr constant [2 x i16], align 2
@.str.8 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.13 = 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.(anonymous namespace)::FrontendTestConfig", align 8
  %5 = alloca %struct.FrontendState, align 8
  %6 = alloca i64, align 8
  %7 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %8 = alloca %struct.FrontendState, align 8
  %9 = alloca i64, align 8
  %10 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %11 = alloca %struct.FrontendState, align 8
  %12 = 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) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  store ptr %3, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %13 = 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.ph82 unwind label %20

.lr.ph82:                                         ; 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 72, ptr nonnull %4) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4)
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %5) #5
  %14 = invoke i32 @FrontendPopulateState(ptr noundef nonnull %4, ptr noundef nonnull %5, i32 noundef 1000)
          to label %15 unwind label %22

15:                                               ; preds = %.lr.ph82
  %.not66 = icmp eq i32 %14, 0
  br i1 %.not66, label %16, label %24

16:                                               ; preds = %15
  %17 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %18 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 63)
          to label %19 unwind label %22

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

20:                                               ; preds = %.invoke, %._crit_edge93, %._crit_edge90, %._crit_edge83, %2
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %154

22:                                               ; preds = %16, %.lr.ph82
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %49

24:                                               ; preds = %19, %15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %25 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %5, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %6)
          to label %26 unwind label %32

26:                                               ; preds = %24
  %27 = extractvalue { ptr, i64 } %25, 0
  %28 = extractvalue { ptr, i64 } %25, 1
  %.not67 = icmp eq i64 %28, 2
  br i1 %.not67, label %.lr.ph.preheader, label %29

29:                                               ; preds = %26
  %30 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %31 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 71, i64 noundef %28, i64 noundef 2)
          to label %36 unwind label %34

32:                                               ; preds = %24
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %48

34:                                               ; preds = %29
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %48

36:                                               ; preds = %29
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.not94 = icmp eq i64 %28, 0
  br i1 %.not94, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %26, %36
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %47
  %indvars.iv = phi i64 [ %indvars.iv.next, %47 ], [ 0, %.lr.ph.preheader ]
  %37 = getelementptr inbounds i16, ptr %27, i64 %indvars.iv
  %38 = load i16, ptr %37, align 2, !tbaa !13
  %39 = getelementptr inbounds [2 x i16], ptr @__const.main.expected, i64 0, i64 %indvars.iv
  %40 = load i16, ptr %39, align 2, !tbaa !13
  %.not69 = icmp eq i16 %38, %40
  br i1 %.not69, label %47, label %41

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

46:                                               ; preds = %41
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %47

.loopexit75:                                      ; preds = %41
  %lpad.loopexit77 = landingpad { ptr, i32 }
          cleanup
  br label %48

.loopexit.split-lp76:                             ; preds = %._crit_edge
  %lpad.loopexit.split-lp78 = landingpad { ptr, i32 }
          cleanup
  br label %48

47:                                               ; preds = %.lr.ph, %46
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %28
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

._crit_edge:                                      ; preds = %47, %36
  invoke void @FrontendFreeStateContents(ptr noundef nonnull %5)
          to label %._crit_edge83 unwind label %.loopexit.split-lp76

48:                                               ; preds = %.loopexit75, %.loopexit.split-lp76, %34, %32
  %.pn70.pn = phi { ptr, i32 } [ %33, %32 ], [ %35, %34 ], [ %lpad.loopexit77, %.loopexit75 ], [ %lpad.loopexit.split-lp78, %.loopexit.split-lp76 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  br label %49

49:                                               ; preds = %48, %22
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %48 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  br label %154

._crit_edge83:                                    ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %50 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %51 = xor i8 %50, 1
  %not.68 = zext nneg i8 %51 to i32
  %52 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %53 = add nsw i32 %52, %not.68
  store i32 %53, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %54 = zext nneg i8 %50 to i32
  %55 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %56 = add nsw i32 %55, %54
  store i32 %56, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %57 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %58 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull @.str, ptr noundef nonnull @.str.6)
          to label %.lr.ph89 unwind label %20

.lr.ph89:                                         ; preds = %._crit_edge83
  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 72, ptr nonnull %7) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %7)
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %8) #5
  %59 = invoke i32 @FrontendPopulateState(ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef 1000)
          to label %60 unwind label %65

60:                                               ; preds = %.lr.ph89
  %.not57 = icmp eq i32 %59, 0
  br i1 %.not57, label %61, label %67

61:                                               ; preds = %60
  %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 nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 84)
          to label %64 unwind label %65

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

65:                                               ; preds = %61, %.lr.ph89
  %66 = landingpad { ptr, i32 }
          cleanup
  br label %96

67:                                               ; preds = %64, %60
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  %68 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %8, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %9)
          to label %69 unwind label %77

69:                                               ; preds = %67
  %70 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %8, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 50), i64 noundef 11, ptr noundef nonnull %9)
          to label %71 unwind label %79

71:                                               ; preds = %69
  %72 = extractvalue { ptr, i64 } %70, 0
  %73 = extractvalue { ptr, i64 } %70, 1
  %.not58 = icmp eq i64 %73, 2
  br i1 %.not58, label %.lr.ph86.preheader, label %74

74:                                               ; preds = %71
  %75 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %76 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %75, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 96, i64 noundef %73, i64 noundef 2)
          to label %83 unwind label %81

77:                                               ; preds = %67
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %95

79:                                               ; preds = %69
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %95

81:                                               ; preds = %74
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %95

83:                                               ; preds = %74
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.not95 = icmp eq i64 %73, 0
  br i1 %.not95, label %._crit_edge87, label %.lr.ph86.preheader

.lr.ph86.preheader:                               ; preds = %71, %83
  br label %.lr.ph86

.lr.ph86:                                         ; preds = %.lr.ph86.preheader, %94
  %indvars.iv97 = phi i64 [ %indvars.iv.next98, %94 ], [ 0, %.lr.ph86.preheader ]
  %84 = getelementptr inbounds i16, ptr %72, i64 %indvars.iv97
  %85 = load i16, ptr %84, align 2, !tbaa !13
  %86 = zext i16 %85 to i32
  %87 = getelementptr inbounds [2 x i16], ptr @__const.main.expected.7, i64 0, i64 %indvars.iv97
  %88 = load i16, ptr %87, align 2, !tbaa !13
  %89 = sext i16 %88 to i32
  %.not60 = icmp eq i32 %86, %89
  br i1 %.not60, label %94, label %90

90:                                               ; preds = %.lr.ph86
  %91 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %92 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 99, i32 noundef %86, i32 noundef %89)
          to label %93 unwind label %.loopexit

93:                                               ; preds = %90
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %94

.loopexit:                                        ; preds = %90
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %95

.loopexit.split-lp:                               ; preds = %._crit_edge87
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %95

94:                                               ; preds = %.lr.ph86, %93
  %indvars.iv.next98 = add nuw i64 %indvars.iv97, 1
  %exitcond100.not = icmp eq i64 %indvars.iv.next98, %73
  br i1 %exitcond100.not, label %._crit_edge87, label %.lr.ph86, !llvm.loop !19

._crit_edge87:                                    ; preds = %94, %83
  invoke void @FrontendFreeStateContents(ptr noundef nonnull %8)
          to label %._crit_edge90 unwind label %.loopexit.split-lp

95:                                               ; preds = %.loopexit, %.loopexit.split-lp, %79, %81, %77
  %.pn61.pn.pn = phi { ptr, i32 } [ %78, %77 ], [ %80, %79 ], [ %82, %81 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %96

96:                                               ; preds = %95, %65
  %.pn61.pn.pn.pn = phi { ptr, i32 } [ %.pn61.pn.pn, %95 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #5
  br label %154

._crit_edge90:                                    ; preds = %._crit_edge87
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %97 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %98 = xor i8 %97, 1
  %not.59 = zext nneg i8 %98 to i32
  %99 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %100 = add nsw i32 %99, %not.59
  store i32 %100, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %101 = zext nneg i8 %97 to i32
  %102 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %103 = add nsw i32 %102, %101
  store i32 %103, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %104 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %105 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8)
          to label %.lr.ph92 unwind label %20

.lr.ph92:                                         ; preds = %._crit_edge90
  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 72, ptr nonnull %10) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %10)
  call void @llvm.lifetime.start.p0(i64 240, ptr nonnull %11) #5
  %106 = invoke i32 @FrontendPopulateState(ptr noundef nonnull %10, ptr noundef nonnull %11, i32 noundef 1000)
          to label %107 unwind label %112

107:                                              ; preds = %.lr.ph92
  %.not = icmp eq i32 %106, 0
  br i1 %.not, label %108, label %114

108:                                              ; preds = %107
  %109 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %110 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 109)
          to label %111 unwind label %112

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

112:                                              ; preds = %108, %.lr.ph92
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %138

114:                                              ; preds = %111, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  %115 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %11, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %12)
          to label %116 unwind label %127

116:                                              ; preds = %114
  %117 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 50), i64 noundef 11, ptr noundef nonnull %12)
          to label %118 unwind label %127

118:                                              ; preds = %116
  %119 = invoke { ptr, i64 } @FrontendProcessSamples(ptr noundef nonnull %11, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 70), i64 noundef 1, ptr noundef nonnull %12)
          to label %120 unwind label %129

120:                                              ; preds = %118
  %121 = extractvalue { ptr, i64 } %119, 0
  %122 = extractvalue { ptr, i64 } %119, 1
  %.not53 = icmp eq i64 %122, 0
  br i1 %.not53, label %131, label %123

123:                                              ; preds = %120
  %124 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %125 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 125, i64 noundef %122, i32 noundef 0)
          to label %126 unwind label %129

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

127:                                              ; preds = %116, %114
  %128 = landingpad { ptr, i32 }
          cleanup
  br label %137

129:                                              ; preds = %136, %132, %123, %118
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %137

131:                                              ; preds = %120, %126
  %.not54 = icmp eq ptr %121, null
  br i1 %.not54, label %136, label %132

132:                                              ; preds = %131
  %133 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %134 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 126, ptr noundef nonnull %121, ptr null)
          to label %135 unwind label %129

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

136:                                              ; preds = %135, %131
  invoke void @FrontendFreeStateContents(ptr noundef nonnull %11)
          to label %._crit_edge93 unwind label %129

137:                                              ; preds = %129, %127
  %.pn = phi { ptr, i32 } [ %130, %129 ], [ %128, %127 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %138

138:                                              ; preds = %137, %112
  %.pn.pn = phi { ptr, i32 } [ %.pn, %137 ], [ %113, %112 ]
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #5
  br label %154

._crit_edge93:                                    ; preds = %136
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 240, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %10) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %139 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %140 = xor i8 %139, 1
  %not. = zext nneg i8 %140 to i32
  %141 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %142 = add nsw i32 %141, %not.
  store i32 %142, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %143 = zext nneg i8 %139 to i32
  %144 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %145 = add nsw i32 %144, %143
  store i32 %145, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %146 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %147 = add nsw i32 %145, %142
  %148 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %146, ptr noundef nonnull @.str.11, i32 noundef %142, i32 noundef %147)
          to label %.invoke unwind label %20

.invoke:                                          ; preds = %._crit_edge93
  %149 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %150 = icmp eq i32 %149, 0
  %151 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.12..str.13 = select i1 %150, ptr @.str.12, ptr @.str.13
  %152 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %151, ptr noundef nonnull %.str.12..str.13)
          to label %153 unwind label %20

153:                                              ; 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

154:                                              ; preds = %138, %96, %49, %20
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %49 ], [ %.pn61.pn.pn.pn, %96 ], [ %.pn.pn, %138 ], [ %21, %20 ]
  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 } %.pn70.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(...)

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #4 align 2

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

declare { ptr, i64 } @FrontendProcessSamples(ptr noundef, ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #3

declare void @FrontendFreeStateContents(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 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !16}


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