; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/micro_features/noise (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)::NoiseReductionTestConfig" = type { %struct.NoiseReductionConfig }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, [40 x i32] }

@_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 [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [147 x i8], align 1
@__const.main.signal = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected = external hidden unnamed_addr constant [2 x i32], align 4
@.str.4 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@__const.main.signal.7 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected.8 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

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

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

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

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  store ptr %9, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  invoke void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %31 unwind label %46

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 176, ptr %12) #6
  br label %32

32:                                               ; preds = %31
  %33 = load ptr, ptr %10, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.(anonymous namespace)::NoiseReductionTestConfig", ptr %11, i32 0, i32 0
  %35 = invoke noundef i32 @_Z27NoiseReductionPopulateStatePN6tflite13ErrorReporterEPK20NoiseReductionConfigP19NoiseReductionStatei(ptr noundef %33, ptr noundef %34, ptr noundef %12, i32 noundef 2)
          to label %36 unwind label %50

36:                                               ; preds = %32
  %37 = icmp ne i32 %35, 0
  br i1 %37, label %54, label %38

38:                                               ; preds = %36
  %39 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %40 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 48)
          to label %41 unwind label %50

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

42:                                               ; preds = %264, %260, %250, %139, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %7, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %8, align 4
  br label %270

46:                                               ; preds = %30
  %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 %138

50:                                               ; preds = %38, %32
  %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 %137

54:                                               ; preds = %41, %36
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 @__const.main.signal, i64 8, i1 false)
  %57 = getelementptr inbounds [2 x i32], ptr %13, i64 0, i64 0
  invoke void @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef %12, ptr noundef %57)
          to label %58 unwind label %70

58:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 @__const.main.expected, i64 8, i1 false)
  br label %59

59:                                               ; preds = %58
  %60 = getelementptr inbounds %struct.NoiseReductionState, ptr %12, i32 0, i32 4
  %61 = load i32, ptr %60, align 4, !tbaa !15
  %62 = sext i32 %61 to i64
  %63 = icmp ne i64 %62, 2
  br i1 %63, label %64, label %78

64:                                               ; preds = %59
  %65 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %66 = getelementptr inbounds %struct.NoiseReductionState, ptr %12, i32 0, i32 4
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 55, i32 noundef %67, i64 noundef 2)
          to label %69 unwind label %74

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

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

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

78:                                               ; preds = %69, %59
  br label %79

79:                                               ; preds = %78
  br label %80

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

81:                                               ; preds = %118, %80
  %82 = load i32, ptr %15, align 4, !tbaa !5
  %83 = getelementptr inbounds %struct.NoiseReductionState, ptr %12, i32 0, i32 4
  %84 = load i32, ptr %83, align 4, !tbaa !15
  %85 = icmp slt i32 %82, %84
  br i1 %85, label %86, label %121

86:                                               ; preds = %81
  br label %87

87:                                               ; preds = %86
  %88 = getelementptr inbounds %struct.NoiseReductionState, ptr %12, i32 0, i32 5
  %89 = load i32, ptr %15, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [40 x i32], ptr %88, i64 0, i64 %90
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %93 = load i32, ptr %15, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [2 x i32], ptr %14, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = icmp ne i32 %92, %96
  br i1 %97, label %98, label %115

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

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

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

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

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %116
  br label %118

118:                                              ; preds = %117
  %119 = load i32, ptr %15, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %15, align 4, !tbaa !5
  br label %81, !llvm.loop !18

121:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, 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 %122

122:                                              ; preds = %121
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %123 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %124 = trunc i8 %123 to i1
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i32 0, i32 1
  %127 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %128 = add nsw i32 %127, %126
  store i32 %128, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %129 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %130 = trunc i8 %129 to i1
  %131 = zext i1 %130 to i64
  %132 = select i1 %130, i32 1, i32 0
  %133 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %134 = add nsw i32 %133, %132
  store i32 %134, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %26, !llvm.loop !20

135:                                              ; preds = %111, %74
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %136

136:                                              ; preds = %135, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %137

137:                                              ; preds = %136, %50
  call void @llvm.lifetime.end.p0(i64 176, ptr %12) #6
  br label %138

138:                                              ; preds = %137, %46
  call void @llvm.lifetime.end.p0(i64 16, 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 %270

139:                                              ; preds = %26
  %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 @.str, ptr noundef @.str.6)
          to label %142 unwind label %42

142:                                              ; preds = %139
  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 %143

143:                                              ; preds = %233, %142
  %144 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc i8 %144 to i1
  %146 = xor i1 %145, true
  br i1 %146, label %147, label %250

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  store ptr %16, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  invoke void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %18)
          to label %148 unwind label %159

148:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 176, ptr %19) #6
  br label %149

149:                                              ; preds = %148
  %150 = load ptr, ptr %17, align 8, !tbaa !9
  %151 = getelementptr inbounds %"class.(anonymous namespace)::NoiseReductionTestConfig", ptr %18, i32 0, i32 0
  %152 = invoke noundef i32 @_Z27NoiseReductionPopulateStatePN6tflite13ErrorReporterEPK20NoiseReductionConfigP19NoiseReductionStatei(ptr noundef %150, ptr noundef %151, ptr noundef %19, i32 noundef 2)
          to label %153 unwind label %163

153:                                              ; preds = %149
  %154 = icmp ne i32 %152, 0
  br i1 %154, label %167, label %155

155:                                              ; preds = %153
  %156 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %157 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %156, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 69)
          to label %158 unwind label %163

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

159:                                              ; preds = %147
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  br label %249

163:                                              ; preds = %155, %149
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %7, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %8, align 4
  br label %248

167:                                              ; preds = %158, %153
  br label %168

168:                                              ; preds = %167
  br label %169

169:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %20, ptr align 4 @__const.main.signal.7, i64 8, i1 false)
  %170 = getelementptr inbounds [2 x i32], ptr %20, i64 0, i64 0
  invoke void @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef %19, ptr noundef %170)
          to label %171 unwind label %183

171:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 @__const.main.expected.8, i64 8, i1 false)
  br label %172

172:                                              ; preds = %171
  %173 = getelementptr inbounds %struct.NoiseReductionState, ptr %19, i32 0, i32 4
  %174 = load i32, ptr %173, align 4, !tbaa !15
  %175 = sext i32 %174 to i64
  %176 = icmp ne i64 %175, 2
  br i1 %176, label %177, label %191

177:                                              ; preds = %172
  %178 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %179 = getelementptr inbounds %struct.NoiseReductionState, ptr %19, i32 0, i32 4
  %180 = load i32, ptr %179, align 4, !tbaa !15
  %181 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %178, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 76, i32 noundef %180, i64 noundef 2)
          to label %182 unwind label %187

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

183:                                              ; preds = %169
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %7, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %8, align 4
  br label %247

187:                                              ; preds = %177
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %7, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %8, align 4
  br label %246

191:                                              ; preds = %182, %172
  br label %192

192:                                              ; preds = %191
  br label %193

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

194:                                              ; preds = %229, %193
  %195 = load i32, ptr %22, align 4, !tbaa !5
  %196 = getelementptr inbounds %struct.NoiseReductionState, ptr %19, i32 0, i32 4
  %197 = load i32, ptr %196, align 4, !tbaa !15
  %198 = icmp slt i32 %195, %197
  br i1 %198, label %199, label %232

199:                                              ; preds = %194
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %22, align 4, !tbaa !5
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds [2 x i32], ptr %20, i64 0, i64 %202
  %204 = load i32, ptr %203, align 4, !tbaa !5
  %205 = load i32, ptr %22, align 4, !tbaa !5
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds [2 x i32], ptr %21, i64 0, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !5
  %209 = icmp ne i32 %204, %208
  br i1 %209, label %210, label %226

210:                                              ; preds = %200
  %211 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %212 = load i32, ptr %22, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [2 x i32], ptr %20, i64 0, i64 %213
  %215 = load i32, ptr %214, align 4, !tbaa !5
  %216 = load i32, ptr %22, align 4, !tbaa !5
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [2 x i32], ptr %21, i64 0, i64 %217
  %219 = load i32, ptr %218, align 4, !tbaa !5
  %220 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %211, ptr noundef @.str.9, ptr noundef @.str.3, i32 noundef 79, i32 noundef %215, i32 noundef %219)
          to label %221 unwind label %222

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

222:                                              ; preds = %210
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %7, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %246

226:                                              ; preds = %221, %200
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228
  %230 = load i32, ptr %22, align 4, !tbaa !5
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %22, align 4, !tbaa !5
  br label %194, !llvm.loop !21

232:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 176, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %233

233:                                              ; preds = %232
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %234 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %235 = trunc i8 %234 to i1
  %236 = zext i1 %235 to i64
  %237 = select i1 %235, i32 0, i32 1
  %238 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %239 = add nsw i32 %238, %237
  store i32 %239, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %240 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %241 = trunc i8 %240 to i1
  %242 = zext i1 %241 to i64
  %243 = select i1 %241, i32 1, i32 0
  %244 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %245 = add nsw i32 %244, %243
  store i32 %245, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %143, !llvm.loop !22

246:                                              ; preds = %222, %187
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %247

247:                                              ; preds = %246, %183
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %248

248:                                              ; preds = %247, %163
  call void @llvm.lifetime.end.p0(i64 176, ptr %19) #6
  br label %249

249:                                              ; preds = %248, %159
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %270

250:                                              ; preds = %143
  %251 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %252 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %253 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %254 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %255 = add nsw i32 %253, %254
  %256 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %251, ptr noundef @.str.10, i32 noundef %252, i32 noundef %255)
          to label %257 unwind label %42

257:                                              ; preds = %250
  %258 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %259 = icmp eq i32 %258, 0
  br i1 %259, label %260, label %264

260:                                              ; preds = %257
  %261 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %262 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %261, ptr noundef @.str.11)
          to label %263 unwind label %42

263:                                              ; preds = %260
  br label %268

264:                                              ; preds = %257
  %265 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %266 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %265, ptr noundef @.str.12)
          to label %267 unwind label %42

267:                                              ; preds = %264
  br label %268

268:                                              ; preds = %267, %263
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %269 = load i32, ptr %3, align 4
  ret i32 %269

270:                                              ; preds = %249, %138, %42
  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 %271

271:                                              ; preds = %270
  %272 = load ptr, ptr %7, align 8
  %273 = load i32, ptr %8, align 4
  %274 = insertvalue { ptr, i32 } poison, ptr %272, 0
  %275 = insertvalue { ptr, i32 } %274, i32 %273, 1
  resume { ptr, i32 } %275
}

; 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_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

declare noundef i32 @_Z27NoiseReductionPopulateStatePN6tflite13ErrorReporterEPK20NoiseReductionConfigP19NoiseReductionStatei(ptr noundef, ptr noundef, ptr noundef, i32 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 @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef, ptr noundef) #3

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !6, i64 12}
!16 = !{!"_ZTS19NoiseReductionState", !6, i64 0, !17, i64 4, !17, i64 6, !17, i64 8, !6, i64 12, !7, i64 16}
!17 = !{!"short", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}
!22 = distinct !{!22, !19}


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

%"class.tflite::MicroErrorReporter" = type { %"class.tflite::ErrorReporter" }
%"class.tflite::ErrorReporter" = type { ptr }
%"class.(anonymous namespace)::NoiseReductionTestConfig" = type { %struct.NoiseReductionConfig }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, [40 x 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 [46 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [147 x i8], align 1
@__const.main.signal = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected = external hidden unnamed_addr constant [2 x i32], align 4
@.str.4 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [38 x i8], align 1
@__const.main.signal.7 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected.8 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.9 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.tflite::MicroErrorReporter", align 8
  %4 = alloca %"class.tflite::MicroErrorReporter", align 8
  %5 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %6 = alloca %struct.NoiseReductionState, align 4
  %7 = alloca [2 x i32], align 8
  %8 = alloca %"class.tflite::MicroErrorReporter", align 8
  %9 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %10 = alloca %struct.NoiseReductionState, align 4
  %11 = alloca [2 x i32], 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
  %12 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
          to label %13 unwind label %23

13:                                               ; preds = %2
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %14 = load i64, ptr @__const.main.signal, align 4
  %15 = getelementptr inbounds i8, ptr %6, i64 12
  %16 = getelementptr inbounds i8, ptr %6, i64 16
  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 16, ptr nonnull %5) #5
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %5)
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %6) #5
  %17 = invoke noundef i32 @_Z27NoiseReductionPopulateStatePN6tflite13ErrorReporterEPK20NoiseReductionConfigP19NoiseReductionStatei(ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef 2)
          to label %18 unwind label %25

18:                                               ; preds = %13
  %.not34 = icmp eq i32 %17, 0
  br i1 %.not34, 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 48)
          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_edge53, %._crit_edge46, %2
  %24 = landingpad { ptr, i32 }
          cleanup
  br label %120

25:                                               ; preds = %19, %13
  %26 = landingpad { ptr, i32 }
          cleanup
  br label %55

27:                                               ; preds = %22, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  store i64 %14, ptr %7, align 8
  invoke void @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef nonnull %6, ptr noundef nonnull %7)
          to label %28 unwind label %33

28:                                               ; preds = %27
  %29 = load i32, ptr %15, align 4, !tbaa !13
  %.not35 = icmp eq i32 %29, 2
  br i1 %.not35, label %.lr.ph.preheader, label %30

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

33:                                               ; preds = %27
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %54

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

37:                                               ; preds = %30
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre = load i32, ptr %15, align 4, !tbaa !13
  %38 = icmp sgt i32 %.pre, 0
  br i1 %38, label %.lr.ph.preheader, label %._crit_edge46

.lr.ph.preheader:                                 ; preds = %28, %37
  %.ph64 = phi i32 [ 2, %28 ], [ %.pre, %37 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %50
  %39 = phi i32 [ %51, %50 ], [ %.ph64, %.lr.ph.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %50 ], [ 0, %.lr.ph.preheader ]
  %40 = getelementptr inbounds [40 x i32], ptr %16, i64 0, i64 %indvars.iv
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = getelementptr inbounds [2 x i32], ptr @__const.main.expected, i64 0, i64 %indvars.iv
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %.not37 = icmp eq i32 %41, %43
  br i1 %.not37, label %50, label %44

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

47:                                               ; preds = %44
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre58 = load i32, ptr %15, align 4, !tbaa !13
  br label %50

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

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

54:                                               ; preds = %35, %48, %33
  %.pn38.pn = phi { ptr, i32 } [ %34, %33 ], [ %49, %48 ], [ %36, %35 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  br label %55

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

._crit_edge46:                                    ; preds = %50, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  %56 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !18, !noundef !19
  %57 = xor i8 %56, 1
  %not.36 = zext nneg i8 %57 to i32
  %58 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %59 = add nsw i32 %58, %not.36
  store i32 %59, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %60 = zext nneg i8 %56 to i32
  %61 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %62 = add nsw i32 %61, %60
  store i32 %62, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %63 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %64 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef nonnull @.str, ptr noundef nonnull @.str.6)
          to label %65 unwind label %23

65:                                               ; preds = %._crit_edge46
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %66 = load i64, ptr @__const.main.signal.7, align 4
  %67 = getelementptr inbounds i8, ptr %10, i64 12
  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 16, ptr nonnull %9) #5
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %9)
  call void @llvm.lifetime.start.p0(i64 176, ptr nonnull %10) #5
  %68 = invoke noundef i32 @_Z27NoiseReductionPopulateStatePN6tflite13ErrorReporterEPK20NoiseReductionConfigP19NoiseReductionStatei(ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef 2)
          to label %69 unwind label %74

69:                                               ; preds = %65
  %.not = icmp eq i32 %68, 0
  br i1 %.not, label %70, label %76

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

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

74:                                               ; preds = %70, %65
  %75 = landingpad { ptr, i32 }
          cleanup
  br label %104

76:                                               ; preds = %73, %69
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store i64 %66, ptr %11, align 8
  invoke void @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef nonnull %10, ptr noundef nonnull %11)
          to label %77 unwind label %82

77:                                               ; preds = %76
  %78 = load i32, ptr %67, align 4, !tbaa !13
  %.not29 = icmp eq i32 %78, 2
  br i1 %.not29, label %.lr.ph49.preheader, label %79

79:                                               ; preds = %77
  %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 76, i32 noundef %78, i64 noundef 2)
          to label %86 unwind label %84

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

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

86:                                               ; preds = %79
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre59 = load i32, ptr %67, align 4, !tbaa !13
  %87 = icmp sgt i32 %.pre59, 0
  br i1 %87, label %.lr.ph49.preheader, label %._crit_edge53

.lr.ph49.preheader:                               ; preds = %77, %86
  %.ph = phi i32 [ 2, %77 ], [ %.pre59, %86 ]
  br label %.lr.ph49

.lr.ph49:                                         ; preds = %.lr.ph49.preheader, %99
  %88 = phi i32 [ %100, %99 ], [ %.ph, %.lr.ph49.preheader ]
  %indvars.iv55 = phi i64 [ %indvars.iv.next56, %99 ], [ 0, %.lr.ph49.preheader ]
  %89 = getelementptr inbounds [2 x i32], ptr %11, i64 0, i64 %indvars.iv55
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = getelementptr inbounds [2 x i32], ptr @__const.main.expected.8, i64 0, i64 %indvars.iv55
  %92 = load i32, ptr %91, align 4, !tbaa !5
  %.not30 = icmp eq i32 %90, %92
  br i1 %.not30, label %99, label %93

93:                                               ; preds = %.lr.ph49
  %94 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %95 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.3, i32 noundef 79, i32 noundef %90, i32 noundef %92)
          to label %96 unwind label %97

96:                                               ; preds = %93
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre60 = load i32, ptr %67, align 4, !tbaa !13
  br label %99

97:                                               ; preds = %93
  %98 = landingpad { ptr, i32 }
          cleanup
  br label %103

99:                                               ; preds = %.lr.ph49, %96
  %100 = phi i32 [ %88, %.lr.ph49 ], [ %.pre60, %96 ]
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, 1
  %101 = sext i32 %100 to i64
  %102 = icmp slt i64 %indvars.iv.next56, %101
  br i1 %102, label %.lr.ph49, label %._crit_edge53, !llvm.loop !20

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

104:                                              ; preds = %103, %74
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %103 ], [ %75, %74 ]
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, 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 %120

._crit_edge53:                                    ; preds = %99, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 176, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 16, 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
  %105 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !18, !noundef !19
  %106 = xor i8 %105, 1
  %not. = zext nneg i8 %106 to i32
  %107 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %108 = add nsw i32 %107, %not.
  store i32 %108, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %109 = zext nneg i8 %105 to i32
  %110 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %111 = add nsw i32 %110, %109
  store i32 %111, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %112 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %113 = add nsw i32 %111, %108
  %114 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull @.str.10, i32 noundef %108, i32 noundef %113)
          to label %.invoke unwind label %23

.invoke:                                          ; preds = %._crit_edge53
  %115 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %116 = icmp eq i32 %115, 0
  %117 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.11..str.12 = select i1 %116, ptr @.str.11, ptr @.str.12
  %118 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull %.str.11..str.12)
          to label %119 unwind label %23

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

120:                                              ; preds = %104, %55, %23
  %.pn38.pn.pn.pn = phi { ptr, i32 } [ %.pn38.pn.pn, %55 ], [ %.pn.pn.pn, %104 ], [ %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 } %.pn38.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_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #4 align 2

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

declare void @_Z19NoiseReductionApplyP19NoiseReductionStatePj(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

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

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

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


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