; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/micro_features (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 }
%"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, [512 x i16], i64, [512 x i16], i64, [512 x i16], i16 }
%struct.FftState = type { [512 x i16], [514 x %struct.complex_int16_t], i64, i64, [2848 x i8], i64 }
%struct.complex_int16_t = type { i16, i16 }
%struct.FilterbankState = type { i32, i32, i32, [41 x i16], [41 x i16], [41 x i16], [316 x i16], [316 x i16], [41 x i64] }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, [40 x i32] }
%struct.PcanGainControlState = type { i32, ptr, i32, [125 x i16], 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 [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [140 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.tflite::MicroErrorReporter", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %12 = alloca %struct.FrontendState, align 8
  %13 = alloca i64, align 8
  %14 = alloca %struct.FrontendOutput, align 8
  %15 = alloca [2 x i16], align 2
  %16 = alloca i32, align 4
  %17 = alloca %"class.tflite::MicroErrorReporter", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %20 = alloca %struct.FrontendState, align 8
  %21 = alloca i64, align 8
  %22 = alloca %struct.FrontendOutput, align 8
  %23 = alloca %struct.FrontendOutput, align 8
  %24 = alloca [2 x i16], align 2
  %25 = alloca i32, align 4
  %26 = alloca %"class.tflite::MicroErrorReporter", align 8
  %27 = alloca ptr, align 8
  %28 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %29 = alloca %struct.FrontendState, align 8
  %30 = alloca i64, align 8
  %31 = alloca %struct.FrontendOutput, align 8
  %32 = alloca %struct.FrontendOutput, align 8
  %33 = 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
  %34 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %35 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %34, ptr noundef @.str, ptr noundef @.str.1)
          to label %36 unwind label %53

36:                                               ; 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 %37

37:                                               ; preds = %143, %36
  %38 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %39 = trunc i8 %38 to i1
  %40 = xor i1 %39, true
  br i1 %40, label %41, label %160

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr %9, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %11) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %11)
          to label %42 unwind label %57

42:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 11376, ptr %12) #6
  br label %43

43:                                               ; preds = %42
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  %45 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %11, i32 0, i32 0
  %46 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef %44, ptr noundef %45, ptr noundef %12, i32 noundef 1000)
          to label %47 unwind label %61

47:                                               ; preds = %43
  %48 = icmp ne i32 %46, 0
  br i1 %48, label %65, label %49

49:                                               ; preds = %47
  %50 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %51 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 66)
          to label %52 unwind label %61

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

53:                                               ; preds = %407, %403, %393, %294, %160, %2
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %413

57:                                               ; preds = %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %159

61:                                               ; preds = %49, %43
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %158

65:                                               ; preds = %52, %47
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %68 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %12, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %13)
          to label %69 unwind label %84

69:                                               ; preds = %67
  %70 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 0
  %71 = extractvalue { ptr, i64 } %68, 0
  store ptr %71, ptr %70, align 8
  %72 = getelementptr inbounds { ptr, i64 }, ptr %14, i32 0, i32 1
  %73 = extractvalue { ptr, i64 } %68, 1
  store i64 %73, ptr %72, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %15, ptr align 2 @__const.main.expected, i64 4, i1 false)
  br label %74

74:                                               ; preds = %69
  %75 = getelementptr inbounds %struct.FrontendOutput, ptr %14, i32 0, i32 1
  %76 = load i64, ptr %75, align 8, !tbaa !15
  %77 = icmp ne i64 %76, 2
  br i1 %77, label %78, label %92

78:                                               ; preds = %74
  %79 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %80 = getelementptr inbounds %struct.FrontendOutput, ptr %14, i32 0, i32 1
  %81 = load i64, ptr %80, align 8, !tbaa !15
  %82 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 74, i64 noundef %81, i64 noundef 2)
          to label %83 unwind label %88

83:                                               ; preds = %78
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %92

84:                                               ; preds = %67
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %7, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %8, align 4
  br label %157

88:                                               ; preds = %78
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %7, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %8, align 4
  br label %156

92:                                               ; preds = %83, %74
  br label %93

93:                                               ; preds = %92
  br label %94

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

95:                                               ; preds = %139, %94
  %96 = load i32, ptr %16, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %struct.FrontendOutput, ptr %14, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !15
  %100 = icmp ult i64 %97, %99
  br i1 %100, label %101, label %142

101:                                              ; preds = %95
  br label %102

102:                                              ; preds = %101
  %103 = getelementptr inbounds %struct.FrontendOutput, ptr %14, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !18
  %105 = load i32, ptr %16, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds i16, ptr %104, i64 %106
  %108 = load i16, ptr %107, align 2, !tbaa !19
  %109 = zext i16 %108 to i32
  %110 = load i32, ptr %16, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2 x i16], ptr %15, i64 0, i64 %111
  %113 = load i16, ptr %112, align 2, !tbaa !19
  %114 = zext i16 %113 to i32
  %115 = icmp ne i32 %109, %114
  br i1 %115, label %116, label %136

116:                                              ; preds = %102
  %117 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %118 = getelementptr inbounds %struct.FrontendOutput, ptr %14, i32 0, i32 0
  %119 = load ptr, ptr %118, align 8, !tbaa !18
  %120 = load i32, ptr %16, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i16, ptr %119, i64 %121
  %123 = load i16, ptr %122, align 2, !tbaa !19
  %124 = zext i16 %123 to i32
  %125 = load i32, ptr %16, align 4, !tbaa !5
  %126 = sext i32 %125 to i64
  %127 = getelementptr inbounds [2 x i16], ptr %15, i64 0, i64 %126
  %128 = load i16, ptr %127, align 2, !tbaa !19
  %129 = zext i16 %128 to i32
  %130 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 77, i32 noundef %124, i32 noundef %129)
          to label %131 unwind label %132

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

132:                                              ; preds = %116
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %7, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %156

136:                                              ; preds = %131, %102
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  %140 = load i32, ptr %16, align 4, !tbaa !5
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %16, align 4, !tbaa !5
  br label %95, !llvm.loop !21

142:                                              ; preds = %95
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 11376, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %143

143:                                              ; preds = %142
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %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 0, i32 1
  %148 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %149 = add nsw i32 %148, %147
  store i32 %149, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %150 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %151 = trunc i8 %150 to i1
  %152 = zext i1 %151 to i64
  %153 = select i1 %151, i32 1, i32 0
  %154 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %155 = add nsw i32 %154, %153
  store i32 %155, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %37, !llvm.loop !23

156:                                              ; preds = %132, %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %157

157:                                              ; preds = %156, %84
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %158

158:                                              ; preds = %157, %61
  call void @llvm.lifetime.end.p0(i64 11376, ptr %12) #6
  br label %159

159:                                              ; preds = %158, %57
  call void @llvm.lifetime.end.p0(i64 72, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %413

160:                                              ; preds = %37
  %161 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %162 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %161, ptr noundef @.str, ptr noundef @.str.6)
          to label %163 unwind label %53

163:                                              ; preds = %160
  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 %164

164:                                              ; preds = %276, %163
  %165 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %166 = trunc i8 %165 to i1
  %167 = xor i1 %166, true
  br i1 %167, label %168, label %294

168:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  store ptr %17, ptr %18, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %19)
          to label %169 unwind label %180

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 11376, ptr %20) #6
  br label %170

170:                                              ; preds = %169
  %171 = load ptr, ptr %18, align 8, !tbaa !9
  %172 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %19, i32 0, i32 0
  %173 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef %171, ptr noundef %172, ptr noundef %20, i32 noundef 1000)
          to label %174 unwind label %184

174:                                              ; preds = %170
  %175 = icmp ne i32 %173, 0
  br i1 %175, label %188, label %176

176:                                              ; preds = %174
  %177 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %178 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %177, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 88)
          to label %179 unwind label %184

179:                                              ; preds = %176
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %188

180:                                              ; preds = %168
  %181 = landingpad { ptr, i32 }
          cleanup
  %182 = extractvalue { ptr, i32 } %181, 0
  store ptr %182, ptr %7, align 8
  %183 = extractvalue { ptr, i32 } %181, 1
  store i32 %183, ptr %8, align 4
  br label %293

184:                                              ; preds = %176, %170
  %185 = landingpad { ptr, i32 }
          cleanup
  %186 = extractvalue { ptr, i32 } %185, 0
  store ptr %186, ptr %7, align 8
  %187 = extractvalue { ptr, i32 } %185, 1
  store i32 %187, ptr %8, align 4
  br label %292

188:                                              ; preds = %179, %174
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %191 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %20, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %21)
          to label %192 unwind label %213

192:                                              ; preds = %190
  %193 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 0
  %194 = extractvalue { ptr, i64 } %191, 0
  store ptr %194, ptr %193, align 8
  %195 = getelementptr inbounds { ptr, i64 }, ptr %22, i32 0, i32 1
  %196 = extractvalue { ptr, i64 } %191, 1
  store i64 %196, ptr %195, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %197 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %20, ptr noundef getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 noundef 11, ptr noundef %21)
          to label %198 unwind label %217

198:                                              ; preds = %192
  %199 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 0
  %200 = extractvalue { ptr, i64 } %197, 0
  store ptr %200, ptr %199, align 8
  %201 = getelementptr inbounds { ptr, i64 }, ptr %23, i32 0, i32 1
  %202 = extractvalue { ptr, i64 } %197, 1
  store i64 %202, ptr %201, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %24, ptr align 2 @__const.main.expected.7, i64 4, i1 false)
  br label %203

203:                                              ; preds = %198
  %204 = getelementptr inbounds %struct.FrontendOutput, ptr %23, i32 0, i32 1
  %205 = load i64, ptr %204, align 8, !tbaa !15
  %206 = icmp ne i64 %205, 2
  br i1 %206, label %207, label %225

207:                                              ; preds = %203
  %208 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %209 = getelementptr inbounds %struct.FrontendOutput, ptr %23, i32 0, i32 1
  %210 = load i64, ptr %209, align 8, !tbaa !15
  %211 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 100, i64 noundef %210, i64 noundef 2)
          to label %212 unwind label %221

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

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

217:                                              ; preds = %192
  %218 = landingpad { ptr, i32 }
          cleanup
  %219 = extractvalue { ptr, i32 } %218, 0
  store ptr %219, ptr %7, align 8
  %220 = extractvalue { ptr, i32 } %218, 1
  store i32 %220, ptr %8, align 4
  br label %290

221:                                              ; preds = %207
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %7, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %8, align 4
  br label %289

225:                                              ; preds = %212, %203
  br label %226

226:                                              ; preds = %225
  br label %227

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

228:                                              ; preds = %272, %227
  %229 = load i32, ptr %25, align 4, !tbaa !5
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds %struct.FrontendOutput, ptr %23, i32 0, i32 1
  %232 = load i64, ptr %231, align 8, !tbaa !15
  %233 = icmp ult i64 %230, %232
  br i1 %233, label %234, label %275

234:                                              ; preds = %228
  br label %235

235:                                              ; preds = %234
  %236 = getelementptr inbounds %struct.FrontendOutput, ptr %23, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !18
  %238 = load i32, ptr %25, align 4, !tbaa !5
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds i16, ptr %237, i64 %239
  %241 = load i16, ptr %240, align 2, !tbaa !19
  %242 = zext i16 %241 to i32
  %243 = load i32, ptr %25, align 4, !tbaa !5
  %244 = sext i32 %243 to i64
  %245 = getelementptr inbounds [2 x i16], ptr %24, i64 0, i64 %244
  %246 = load i16, ptr %245, align 2, !tbaa !19
  %247 = sext i16 %246 to i32
  %248 = icmp ne i32 %242, %247
  br i1 %248, label %249, label %269

249:                                              ; preds = %235
  %250 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %251 = getelementptr inbounds %struct.FrontendOutput, ptr %23, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !18
  %253 = load i32, ptr %25, align 4, !tbaa !5
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds i16, ptr %252, i64 %254
  %256 = load i16, ptr %255, align 2, !tbaa !19
  %257 = zext i16 %256 to i32
  %258 = load i32, ptr %25, align 4, !tbaa !5
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds [2 x i16], ptr %24, i64 0, i64 %259
  %261 = load i16, ptr %260, align 2, !tbaa !19
  %262 = sext i16 %261 to i32
  %263 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %250, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 103, i32 noundef %257, i32 noundef %262)
          to label %264 unwind label %265

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

265:                                              ; preds = %249
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %7, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %289

269:                                              ; preds = %264, %235
  br label %270

270:                                              ; preds = %269
  br label %271

271:                                              ; preds = %270
  br label %272

272:                                              ; preds = %271
  %273 = load i32, ptr %25, align 4, !tbaa !5
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %25, align 4, !tbaa !5
  br label %228, !llvm.loop !24

275:                                              ; preds = %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 11376, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %276

276:                                              ; preds = %275
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %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 0, i32 1
  %281 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %282 = add nsw i32 %281, %280
  store i32 %282, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %283 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %284 = trunc i8 %283 to i1
  %285 = zext i1 %284 to i64
  %286 = select i1 %284, i32 1, i32 0
  %287 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %288 = add nsw i32 %287, %286
  store i32 %288, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %164, !llvm.loop !25

289:                                              ; preds = %265, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %290

290:                                              ; preds = %289, %217
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  br label %291

291:                                              ; preds = %290, %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %292

292:                                              ; preds = %291, %184
  call void @llvm.lifetime.end.p0(i64 11376, ptr %20) #6
  br label %293

293:                                              ; preds = %292, %180
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %17) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %413

294:                                              ; preds = %164
  %295 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %296 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %295, ptr noundef @.str, ptr noundef @.str.8)
          to label %297 unwind label %53

297:                                              ; preds = %294
  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 %298

298:                                              ; preds = %377, %297
  %299 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %300 = trunc i8 %299 to i1
  %301 = xor i1 %300, true
  br i1 %301, label %302, label %393

302:                                              ; preds = %298
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  store ptr %26, ptr %27, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %28) #6
  invoke void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %28)
          to label %303 unwind label %314

303:                                              ; preds = %302
  call void @llvm.lifetime.start.p0(i64 11376, ptr %29) #6
  br label %304

304:                                              ; preds = %303
  %305 = load ptr, ptr %27, align 8, !tbaa !9
  %306 = getelementptr inbounds %"class.(anonymous namespace)::FrontendTestConfig", ptr %28, i32 0, i32 0
  %307 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef %305, ptr noundef %306, ptr noundef %29, i32 noundef 1000)
          to label %308 unwind label %318

308:                                              ; preds = %304
  %309 = icmp ne i32 %307, 0
  br i1 %309, label %322, label %310

310:                                              ; preds = %308
  %311 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %312 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %311, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 114)
          to label %313 unwind label %318

313:                                              ; preds = %310
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %322

314:                                              ; preds = %302
  %315 = landingpad { ptr, i32 }
          cleanup
  %316 = extractvalue { ptr, i32 } %315, 0
  store ptr %316, ptr %7, align 8
  %317 = extractvalue { ptr, i32 } %315, 1
  store i32 %317, ptr %8, align 4
  br label %392

318:                                              ; preds = %310, %304
  %319 = landingpad { ptr, i32 }
          cleanup
  %320 = extractvalue { ptr, i32 } %319, 0
  store ptr %320, ptr %7, align 8
  %321 = extractvalue { ptr, i32 } %319, 1
  store i32 %321, ptr %8, align 4
  br label %391

322:                                              ; preds = %313, %308
  br label %323

323:                                              ; preds = %322
  br label %324

324:                                              ; preds = %323
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %325 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %29, ptr noundef @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef %30)
          to label %326 unwind label %353

326:                                              ; preds = %324
  %327 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 0
  %328 = extractvalue { ptr, i64 } %325, 0
  store ptr %328, ptr %327, align 8
  %329 = getelementptr inbounds { ptr, i64 }, ptr %31, i32 0, i32 1
  %330 = extractvalue { ptr, i64 } %325, 1
  store i64 %330, ptr %329, align 8
  %331 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %29, ptr noundef getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 noundef 11, ptr noundef %30)
          to label %332 unwind label %353

332:                                              ; preds = %326
  %333 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 0
  %334 = extractvalue { ptr, i64 } %331, 0
  store ptr %334, ptr %333, align 8
  %335 = getelementptr inbounds { ptr, i64 }, ptr %32, i32 0, i32 1
  %336 = extractvalue { ptr, i64 } %331, 1
  store i64 %336, ptr %335, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #6
  %337 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef %29, ptr noundef getelementptr inbounds (i16, ptr getelementptr inbounds (i16, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 25), i64 10), i64 noundef 1, ptr noundef %30)
          to label %338 unwind label %357

338:                                              ; preds = %332
  %339 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %340 = extractvalue { ptr, i64 } %337, 0
  store ptr %340, ptr %339, align 8
  %341 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %342 = extractvalue { ptr, i64 } %337, 1
  store i64 %342, ptr %341, align 8
  br label %343

343:                                              ; preds = %338
  %344 = getelementptr inbounds %struct.FrontendOutput, ptr %33, i32 0, i32 1
  %345 = load i64, ptr %344, align 8, !tbaa !15
  %346 = icmp ne i64 %345, 0
  br i1 %346, label %347, label %361

347:                                              ; preds = %343
  %348 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %349 = getelementptr inbounds %struct.FrontendOutput, ptr %33, i32 0, i32 1
  %350 = load i64, ptr %349, align 8, !tbaa !15
  %351 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %348, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 130, i64 noundef %350, i32 noundef 0)
          to label %352 unwind label %357

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

353:                                              ; preds = %326, %324
  %354 = landingpad { ptr, i32 }
          cleanup
  %355 = extractvalue { ptr, i32 } %354, 0
  store ptr %355, ptr %7, align 8
  %356 = extractvalue { ptr, i32 } %354, 1
  store i32 %356, ptr %8, align 4
  br label %390

357:                                              ; preds = %368, %347, %332
  %358 = landingpad { ptr, i32 }
          cleanup
  %359 = extractvalue { ptr, i32 } %358, 0
  store ptr %359, ptr %7, align 8
  %360 = extractvalue { ptr, i32 } %358, 1
  store i32 %360, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  br label %390

361:                                              ; preds = %352, %343
  br label %362

362:                                              ; preds = %361
  br label %363

363:                                              ; preds = %362
  br label %364

364:                                              ; preds = %363
  %365 = getelementptr inbounds %struct.FrontendOutput, ptr %33, i32 0, i32 0
  %366 = load ptr, ptr %365, align 8, !tbaa !18
  %367 = icmp ne ptr %366, null
  br i1 %367, label %368, label %374

368:                                              ; preds = %364
  %369 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %370 = getelementptr inbounds %struct.FrontendOutput, ptr %33, i32 0, i32 0
  %371 = load ptr, ptr %370, align 8, !tbaa !18
  %372 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %369, ptr noundef @.str.10, ptr noundef @.str.3, i32 noundef 131, ptr noundef %371, ptr null)
          to label %373 unwind label %357

373:                                              ; preds = %368
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %374

374:                                              ; preds = %373, %364
  br label %375

375:                                              ; preds = %374
  br label %376

376:                                              ; preds = %375
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 11376, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %377

377:                                              ; preds = %376
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %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 0, i32 1
  %382 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %383 = add nsw i32 %382, %381
  store i32 %383, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %384 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %385 = trunc i8 %384 to i1
  %386 = zext i1 %385 to i64
  %387 = select i1 %385, i32 1, i32 0
  %388 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %389 = add nsw i32 %388, %387
  store i32 %389, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %298, !llvm.loop !26

390:                                              ; preds = %357, %353
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %391

391:                                              ; preds = %390, %318
  call void @llvm.lifetime.end.p0(i64 11376, ptr %29) #6
  br label %392

392:                                              ; preds = %391, %314
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %413

393:                                              ; preds = %298
  %394 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %395 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %396 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %397 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %398 = add nsw i32 %396, %397
  %399 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %394, ptr noundef @.str.11, i32 noundef %395, i32 noundef %398)
          to label %400 unwind label %53

400:                                              ; preds = %393
  %401 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %402 = icmp eq i32 %401, 0
  br i1 %402, label %403, label %407

403:                                              ; preds = %400
  %404 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %405 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %404, ptr noundef @.str.12)
          to label %406 unwind label %53

406:                                              ; preds = %403
  br label %411

407:                                              ; preds = %400
  %408 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %409 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef @.str.13)
          to label %410 unwind label %53

410:                                              ; preds = %407
  br label %411

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

413:                                              ; preds = %392, %293, %159, %53
  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 %414

414:                                              ; preds = %413
  %415 = load ptr, ptr %7, align 8
  %416 = load i32, ptr %8, align 4
  %417 = insertvalue { ptr, i32 } poison, ptr %415, 0
  %418 = insertvalue { ptr, i32 } %417, i32 %416, 1
  resume { ptr, i32 } %418
}

; 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 noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef, ptr noundef, ptr noundef, i32 noundef) #3

declare { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(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

; 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, [512 x i16], i64, [512 x i16], i64, [512 x i16], i16 }
%struct.FftState = type { [512 x i16], [514 x %struct.complex_int16_t], i64, i64, [2848 x i8], i64 }
%struct.complex_int16_t = type { i16, i16 }
%struct.FilterbankState = type { i32, i32, i32, [41 x i16], [41 x i16], [41 x i16], [316 x i16], [316 x i16], [41 x i64] }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, [40 x i32] }
%struct.PcanGainControlState = type { i32, ptr, i32, [125 x i16], 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 [92 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [140 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.tflite::MicroErrorReporter", align 8
  %5 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %6 = alloca %struct.FrontendState, align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.tflite::MicroErrorReporter", align 8
  %9 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %10 = alloca %struct.FrontendState, align 8
  %11 = alloca i64, align 8
  %12 = alloca %"class.tflite::MicroErrorReporter", align 8
  %13 = alloca %"class.(anonymous namespace)::FrontendTestConfig", align 8
  %14 = alloca %struct.FrontendState, align 8
  %15 = 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
  %16 = 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.ph80 unwind label %23

.lr.ph80:                                         ; 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 72, ptr nonnull %5) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %5)
  call void @llvm.lifetime.start.p0(i64 11376, ptr nonnull %6) #5
  %17 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 1000)
          to label %18 unwind label %25

18:                                               ; preds = %.lr.ph80
  %.not69 = icmp eq i32 %17, 0
  br i1 %.not69, label %19, label %27

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

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

23:                                               ; preds = %.invoke, %._crit_edge91, %._crit_edge88, %._crit_edge81, %2
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %160

25:                                               ; preds = %19, %.lr.ph80
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %54

27:                                               ; preds = %22, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  %28 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %6, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %7)
          to label %29 unwind label %35

29:                                               ; preds = %27
  %30 = extractvalue { ptr, i64 } %28, 0
  %31 = extractvalue { ptr, i64 } %28, 1
  %.not70 = icmp eq i64 %31, 2
  br i1 %.not70, label %.lr.ph.preheader, label %32

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

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

37:                                               ; preds = %32
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %53

39:                                               ; preds = %32
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.not92 = icmp eq i64 %31, 0
  br i1 %.not92, label %._crit_edge81, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %29, %39
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %52
  %indvars.iv = phi i64 [ %indvars.iv.next, %52 ], [ 0, %.lr.ph.preheader ]
  %40 = getelementptr inbounds i16, ptr %30, i64 %indvars.iv
  %41 = load i16, ptr %40, align 2, !tbaa !13
  %42 = getelementptr inbounds [2 x i16], ptr @__const.main.expected, i64 0, i64 %indvars.iv
  %43 = load i16, ptr %42, align 2, !tbaa !13
  %.not72 = icmp eq i16 %41, %43
  br i1 %.not72, label %52, label %44

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

49:                                               ; preds = %44
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %52

50:                                               ; preds = %44
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %53

52:                                               ; preds = %.lr.ph, %49
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %31
  br i1 %exitcond.not, label %._crit_edge81, label %.lr.ph, !llvm.loop !15

53:                                               ; preds = %37, %50, %35
  %.pn73.pn = phi { ptr, i32 } [ %36, %35 ], [ %51, %50 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %54

54:                                               ; preds = %53, %25
  %.pn73.pn.pn = phi { ptr, i32 } [ %.pn73.pn, %53 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, 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 %160

._crit_edge81:                                    ; preds = %52, %39
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 72, 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
  %55 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %56 = xor i8 %55, 1
  %not.71 = zext nneg i8 %56 to i32
  %57 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %58 = add nsw i32 %57, %not.71
  store i32 %58, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %59 = zext nneg i8 %55 to i32
  %60 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %61 = add nsw i32 %60, %59
  store i32 %61, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %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, ptr noundef nonnull @.str.6)
          to label %.lr.ph87 unwind label %23

.lr.ph87:                                         ; preds = %._crit_edge81
  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 %8) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %9)
  call void @llvm.lifetime.start.p0(i64 11376, ptr nonnull %10) #5
  %64 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 1000)
          to label %65 unwind label %70

65:                                               ; preds = %.lr.ph87
  %.not60 = icmp eq i32 %64, 0
  br i1 %.not60, label %66, label %72

66:                                               ; preds = %65
  %67 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %68 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 88)
          to label %69 unwind label %70

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

70:                                               ; preds = %66, %.lr.ph87
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %103

72:                                               ; preds = %69, %65
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  %73 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %10, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %11)
          to label %74 unwind label %82

74:                                               ; preds = %72
  %75 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %10, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 50), i64 noundef 11, ptr noundef nonnull %11)
          to label %76 unwind label %84

76:                                               ; preds = %74
  %77 = extractvalue { ptr, i64 } %75, 0
  %78 = extractvalue { ptr, i64 } %75, 1
  %.not61 = icmp eq i64 %78, 2
  br i1 %.not61, label %.lr.ph84.preheader, label %79

79:                                               ; preds = %76
  %80 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %81 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %80, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 100, i64 noundef %78, i64 noundef 2)
          to label %88 unwind label %86

82:                                               ; preds = %72
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %102

84:                                               ; preds = %74
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %102

86:                                               ; preds = %79
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %102

88:                                               ; preds = %79
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.not93 = icmp eq i64 %78, 0
  br i1 %.not93, label %._crit_edge88, label %.lr.ph84.preheader

.lr.ph84.preheader:                               ; preds = %76, %88
  br label %.lr.ph84

.lr.ph84:                                         ; preds = %.lr.ph84.preheader, %101
  %indvars.iv95 = phi i64 [ %indvars.iv.next96, %101 ], [ 0, %.lr.ph84.preheader ]
  %89 = getelementptr inbounds i16, ptr %77, i64 %indvars.iv95
  %90 = load i16, ptr %89, align 2, !tbaa !13
  %91 = zext i16 %90 to i32
  %92 = getelementptr inbounds [2 x i16], ptr @__const.main.expected.7, i64 0, i64 %indvars.iv95
  %93 = load i16, ptr %92, align 2, !tbaa !13
  %94 = sext i16 %93 to i32
  %.not63 = icmp eq i32 %91, %94
  br i1 %.not63, label %101, label %95

95:                                               ; preds = %.lr.ph84
  %96 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %97 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 103, i32 noundef %91, i32 noundef %94)
          to label %98 unwind label %99

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

99:                                               ; preds = %95
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %102

101:                                              ; preds = %.lr.ph84, %98
  %indvars.iv.next96 = add nuw i64 %indvars.iv95, 1
  %exitcond98.not = icmp eq i64 %indvars.iv.next96, %78
  br i1 %exitcond98.not, label %._crit_edge88, label %.lr.ph84, !llvm.loop !19

102:                                              ; preds = %84, %99, %86, %82
  %.pn64.pn.pn = phi { ptr, i32 } [ %83, %82 ], [ %85, %84 ], [ %100, %99 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  br label %103

103:                                              ; preds = %102, %70
  %.pn64.pn.pn.pn = phi { ptr, i32 } [ %.pn64.pn.pn, %102 ], [ %71, %70 ]
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  br label %160

._crit_edge88:                                    ; preds = %101, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %9) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %104 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %105 = xor i8 %104, 1
  %not.62 = zext nneg i8 %105 to i32
  %106 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %107 = add nsw i32 %106, %not.62
  store i32 %107, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %108 = zext nneg i8 %104 to i32
  %109 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %110 = add nsw i32 %109, %108
  store i32 %110, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %111 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %112 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef nonnull @.str, ptr noundef nonnull @.str.8)
          to label %.lr.ph90 unwind label %23

.lr.ph90:                                         ; preds = %._crit_edge88
  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 %12) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #5
  call void @_ZN12_GLOBAL__N_118FrontendTestConfigC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %13)
  call void @llvm.lifetime.start.p0(i64 11376, ptr nonnull %14) #5
  %113 = invoke noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14, i32 noundef 1000)
          to label %114 unwind label %119

114:                                              ; preds = %.lr.ph90
  %.not = icmp eq i32 %113, 0
  br i1 %.not, label %115, label %121

115:                                              ; preds = %114
  %116 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %117 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 114)
          to label %118 unwind label %119

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

119:                                              ; preds = %115, %.lr.ph90
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %144

121:                                              ; preds = %118, %114
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #5
  %122 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %14, ptr noundef nonnull @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 noundef 36, ptr noundef nonnull %15)
          to label %123 unwind label %134

123:                                              ; preds = %121
  %124 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %14, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 50), i64 noundef 11, ptr noundef nonnull %15)
          to label %125 unwind label %134

125:                                              ; preds = %123
  %126 = invoke { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef nonnull %14, ptr noundef nonnull getelementptr inbounds (i8, ptr @_ZN12_GLOBAL__N_114kFakeAudioDataE, i64 70), i64 noundef 1, ptr noundef nonnull %15)
          to label %127 unwind label %136

127:                                              ; preds = %125
  %128 = extractvalue { ptr, i64 } %126, 0
  %129 = extractvalue { ptr, i64 } %126, 1
  %.not56 = icmp eq i64 %129, 0
  br i1 %.not56, label %138, label %130

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 nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 130, i64 noundef %129, i32 noundef 0)
          to label %133 unwind label %136

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

134:                                              ; preds = %123, %121
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %143

136:                                              ; preds = %139, %130, %125
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %143

138:                                              ; preds = %127, %133
  %.not57 = icmp eq ptr %128, null
  br i1 %.not57, label %._crit_edge91, label %139

139:                                              ; preds = %138
  %140 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %141 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %140, ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.3, i32 noundef 131, ptr noundef nonnull %128, ptr null)
          to label %142 unwind label %136

142:                                              ; preds = %139
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %._crit_edge91

143:                                              ; preds = %136, %134
  %.pn = phi { ptr, i32 } [ %137, %136 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  br label %144

144:                                              ; preds = %143, %119
  %.pn.pn = phi { ptr, i32 } [ %.pn, %143 ], [ %120, %119 ]
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  br label %160

._crit_edge91:                                    ; preds = %142, %138
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #5
  call void @llvm.lifetime.end.p0(i64 11376, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %145 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %146 = xor i8 %145, 1
  %not. = zext nneg i8 %146 to i32
  %147 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %148 = add nsw i32 %147, %not.
  store i32 %148, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %149 = zext nneg i8 %145 to i32
  %150 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %152 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %153 = add nsw i32 %151, %148
  %154 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %152, ptr noundef nonnull @.str.11, i32 noundef %148, i32 noundef %153)
          to label %.invoke unwind label %23

.invoke:                                          ; preds = %._crit_edge91
  %155 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %156 = icmp eq i32 %155, 0
  %157 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.12..str.13 = select i1 %156, ptr @.str.12, ptr @.str.13
  %158 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull %.str.12..str.13)
          to label %159 unwind label %23

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

160:                                              ; preds = %144, %103, %54, %23
  %.pn73.pn.pn.pn = phi { ptr, i32 } [ %.pn73.pn.pn, %54 ], [ %.pn64.pn.pn.pn, %103 ], [ %.pn.pn, %144 ], [ %24, %23 ]
  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 } %.pn73.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 noundef i32 @_Z21FrontendPopulateStatePN6tflite13ErrorReporterEPK14FrontendConfigP13FrontendStatei(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare { ptr, i64 } @_Z22FrontendProcessSamplesP13FrontendStatePKsmPm(ptr noundef, ptr noundef, i64 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 = !{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