; LLVM IR from tensorflow/tflite-micro :: tensorflow/lite/experimental/microfrontend/lib (noise_reduction_test)

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

%"class.(anonymous namespace)::NoiseReductionTestConfig" = type { %struct.NoiseReductionConfig }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }

@_ZN10micro_test12tests_passedE = external dso_local global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local global i8, align 1
@.str = external hidden unnamed_addr constant [54 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [128 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.3 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@__const.main.signal.10 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected.11 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = 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 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %7 = alloca %struct.NoiseReductionState, align 8
  %8 = alloca [2 x i32], align 4
  %9 = alloca [2 x i32], align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i8, align 1
  %20 = alloca i32, align 4
  %21 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %22 = alloca %struct.NoiseReductionState, align 8
  %23 = alloca [2 x i32], align 4
  %24 = alloca [2 x i32], align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i8, align 1
  %34 = alloca i8, align 1
  %35 = 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 @_ZN6tflite14InitializeTestEv()
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str)
  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 %36

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

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  br label %41

41:                                               ; preds = %40
  %42 = getelementptr inbounds %"class.(anonymous namespace)::NoiseReductionTestConfig", ptr %6, i32 0, i32 0
  %43 = call i32 @NoiseReductionPopulateState(ptr noundef %42, ptr noundef %7, i32 noundef 2)
  %44 = icmp ne i32 %43, 0
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 45)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %46

46:                                               ; preds = %45, %41
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.main.signal, i64 8, i1 false)
  %49 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 0
  call void @NoiseReductionApply(ptr noundef %7, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 @__const.main.expected, i64 8, i1 false)
  br label %50

50:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %51 = getelementptr inbounds %struct.NoiseReductionState, ptr %7, i32 0, i32 4
  %52 = load i32, ptr %51, align 4, !tbaa !15
  store i32 %52, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 2, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #6
  store i8 0, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #6
  store i8 0, ptr %13, align 1, !tbaa !11
  %53 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %81

55:                                               ; preds = %50
  %56 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %57 = trunc i8 %56 to i1
  br i1 %57, label %58, label %81

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %59 = load i32, ptr %10, align 4, !tbaa !5
  %60 = load i32, ptr %11, align 4, !tbaa !5
  %61 = icmp sgt i32 %59, %60
  br i1 %61, label %62, label %66

62:                                               ; preds = %58
  %63 = load i32, ptr %10, align 4, !tbaa !5
  %64 = load i32, ptr %11, align 4, !tbaa !5
  %65 = sub nsw i32 %63, %64
  br label %70

66:                                               ; preds = %58
  %67 = load i32, ptr %11, align 4, !tbaa !5
  %68 = load i32, ptr %10, align 4, !tbaa !5
  %69 = sub nsw i32 %67, %68
  br label %70

70:                                               ; preds = %66, %62
  %71 = phi i32 [ %65, %62 ], [ %69, %66 ]
  store i32 %71, ptr %14, align 4, !tbaa !5
  %72 = load i32, ptr %14, align 4, !tbaa !5
  %73 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %74 = icmp sgt i32 %72, %73
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = sitofp i32 %76 to double
  %78 = load i32, ptr %11, align 4, !tbaa !5
  %79 = sitofp i32 %78 to double
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 52, double noundef %77, double noundef %79)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %80

80:                                               ; preds = %75, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %96

81:                                               ; preds = %55, %50
  %82 = load i32, ptr %10, align 4, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !5
  %84 = icmp ne i32 %82, %83
  br i1 %84, label %85, label %95

85:                                               ; preds = %81
  %86 = load i32, ptr %10, align 4, !tbaa !5
  %87 = load i32, ptr %11, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 52, i32 noundef %86, i32 noundef %87)
  %88 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %89 = trunc i8 %88 to i1
  br i1 %89, label %93, label %90

90:                                               ; preds = %85
  %91 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %94

93:                                               ; preds = %90, %85
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6)
  br label %94

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

95:                                               ; preds = %94, %81
  br label %96

96:                                               ; preds = %95, %80
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %97

97:                                               ; preds = %96
  br label %98

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

99:                                               ; preds = %162, %98
  %100 = load i32, ptr %15, align 4, !tbaa !5
  %101 = getelementptr inbounds %struct.NoiseReductionState, ptr %7, i32 0, i32 4
  %102 = load i32, ptr %101, align 4, !tbaa !15
  %103 = icmp slt i32 %100, %102
  br i1 %103, label %104, label %165

104:                                              ; preds = %99
  br label %105

105:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %106 = getelementptr inbounds %struct.NoiseReductionState, ptr %7, i32 0, i32 5
  %107 = load ptr, ptr %106, align 8, !tbaa !18
  %108 = load i32, ptr %15, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i32, ptr %107, i64 %109
  %111 = load i32, ptr %110, align 4, !tbaa !5
  store i32 %111, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %112 = load i32, ptr %15, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [2 x i32], ptr %9, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  store i32 %115, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 0, ptr %18, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %19) #6
  store i8 0, ptr %19, align 1, !tbaa !11
  %116 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %144

118:                                              ; preds = %105
  %119 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %120 = trunc i8 %119 to i1
  br i1 %120, label %121, label %144

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %122 = load i32, ptr %16, align 4, !tbaa !5
  %123 = load i32, ptr %17, align 4, !tbaa !5
  %124 = icmp ugt i32 %122, %123
  br i1 %124, label %125, label %129

125:                                              ; preds = %121
  %126 = load i32, ptr %16, align 4, !tbaa !5
  %127 = load i32, ptr %17, align 4, !tbaa !5
  %128 = sub i32 %126, %127
  br label %133

129:                                              ; preds = %121
  %130 = load i32, ptr %17, align 4, !tbaa !5
  %131 = load i32, ptr %16, align 4, !tbaa !5
  %132 = sub i32 %130, %131
  br label %133

133:                                              ; preds = %129, %125
  %134 = phi i32 [ %128, %125 ], [ %132, %129 ]
  store i32 %134, ptr %20, align 4, !tbaa !5
  %135 = load i32, ptr %20, align 4, !tbaa !5
  %136 = call noundef i32 @_ZNSt14numeric_limitsIjE7epsilonEv() #6
  %137 = icmp ugt i32 %135, %136
  br i1 %137, label %138, label %143

138:                                              ; preds = %133
  %139 = load i32, ptr %16, align 4, !tbaa !5
  %140 = uitofp i32 %139 to double
  %141 = load i32, ptr %17, align 4, !tbaa !5
  %142 = uitofp i32 %141 to double
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 55, double noundef %140, double noundef %142)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %143

143:                                              ; preds = %138, %133
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %159

144:                                              ; preds = %118, %105
  %145 = load i32, ptr %16, align 4, !tbaa !5
  %146 = load i32, ptr %17, align 4, !tbaa !5
  %147 = icmp ne i32 %145, %146
  br i1 %147, label %148, label %158

148:                                              ; preds = %144
  %149 = load i32, ptr %16, align 4, !tbaa !5
  %150 = load i32, ptr %17, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 55, i32 noundef %149, i32 noundef %150)
  %151 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %152 = trunc i8 %151 to i1
  br i1 %152, label %156, label %153

153:                                              ; preds = %148
  %154 = load i8, ptr %19, align 1, !tbaa !11, !range !13, !noundef !14
  %155 = trunc i8 %154 to i1
  br i1 %155, label %156, label %157

156:                                              ; preds = %153, %148
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6)
  br label %157

157:                                              ; preds = %156, %153
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %158

158:                                              ; preds = %157, %144
  br label %159

159:                                              ; preds = %158, %143
  call void @llvm.lifetime.end.p0(i64 1, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %15, align 4, !tbaa !5
  %164 = add nsw i32 %163, 1
  store i32 %164, ptr %15, align 4, !tbaa !5
  br label %99, !llvm.loop !19

165:                                              ; preds = %99
  call void @NoiseReductionFreeStateContents(ptr noundef %7)
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  br label %166

166:                                              ; preds = %165
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %167 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %168 = trunc i8 %167 to i1
  %169 = zext i1 %168 to i64
  %170 = select i1 %168, i32 0, i32 1
  %171 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %172 = add nsw i32 %171, %170
  store i32 %172, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %173 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %174 = trunc i8 %173 to i1
  %175 = zext i1 %174 to i64
  %176 = select i1 %174, i32 1, i32 0
  %177 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %178 = add nsw i32 %177, %176
  store i32 %178, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %36, !llvm.loop !21

179:                                              ; preds = %36
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.9)
  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 %180

180:                                              ; preds = %308, %179
  %181 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %182 = trunc i8 %181 to i1
  %183 = xor i1 %182, true
  br i1 %183, label %184, label %321

184:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  br label %185

185:                                              ; preds = %184
  %186 = getelementptr inbounds %"class.(anonymous namespace)::NoiseReductionTestConfig", ptr %21, i32 0, i32 0
  %187 = call i32 @NoiseReductionPopulateState(ptr noundef %186, ptr noundef %22, i32 noundef 2)
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %190, label %189

189:                                              ; preds = %185
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 65)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %190

190:                                              ; preds = %189, %185
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 @__const.main.signal.10, i64 8, i1 false)
  %193 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  call void @NoiseReductionApply(ptr noundef %22, ptr noundef %193)
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 @__const.main.expected.11, i64 8, i1 false)
  br label %194

194:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %195 = getelementptr inbounds %struct.NoiseReductionState, ptr %22, i32 0, i32 4
  %196 = load i32, ptr %195, align 4, !tbaa !15
  store i32 %196, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 2, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  store i8 0, ptr %27, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 0, ptr %28, align 1, !tbaa !11
  %197 = load i8, ptr %27, align 1, !tbaa !11, !range !13, !noundef !14
  %198 = trunc i8 %197 to i1
  br i1 %198, label %199, label %225

199:                                              ; preds = %194
  %200 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %225

202:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %203 = load i32, ptr %25, align 4, !tbaa !5
  %204 = load i32, ptr %26, align 4, !tbaa !5
  %205 = icmp sgt i32 %203, %204
  br i1 %205, label %206, label %210

206:                                              ; preds = %202
  %207 = load i32, ptr %25, align 4, !tbaa !5
  %208 = load i32, ptr %26, align 4, !tbaa !5
  %209 = sub nsw i32 %207, %208
  br label %214

210:                                              ; preds = %202
  %211 = load i32, ptr %26, align 4, !tbaa !5
  %212 = load i32, ptr %25, align 4, !tbaa !5
  %213 = sub nsw i32 %211, %212
  br label %214

214:                                              ; preds = %210, %206
  %215 = phi i32 [ %209, %206 ], [ %213, %210 ]
  store i32 %215, ptr %29, align 4, !tbaa !5
  %216 = load i32, ptr %29, align 4, !tbaa !5
  %217 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %218 = icmp sgt i32 %216, %217
  br i1 %218, label %219, label %224

219:                                              ; preds = %214
  %220 = load i32, ptr %25, align 4, !tbaa !5
  %221 = sitofp i32 %220 to double
  %222 = load i32, ptr %26, align 4, !tbaa !5
  %223 = sitofp i32 %222 to double
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 72, double noundef %221, double noundef %223)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %224

224:                                              ; preds = %219, %214
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %240

225:                                              ; preds = %199, %194
  %226 = load i32, ptr %25, align 4, !tbaa !5
  %227 = load i32, ptr %26, align 4, !tbaa !5
  %228 = icmp ne i32 %226, %227
  br i1 %228, label %229, label %239

229:                                              ; preds = %225
  %230 = load i32, ptr %25, align 4, !tbaa !5
  %231 = load i32, ptr %26, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4, ptr noundef @.str.2, i32 noundef 72, i32 noundef %230, i32 noundef %231)
  %232 = load i8, ptr %27, align 1, !tbaa !11, !range !13, !noundef !14
  %233 = trunc i8 %232 to i1
  br i1 %233, label %237, label %234

234:                                              ; preds = %229
  %235 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %238

237:                                              ; preds = %234, %229
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6)
  br label %238

238:                                              ; preds = %237, %234
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %239

239:                                              ; preds = %238, %225
  br label %240

240:                                              ; preds = %239, %224
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %241

241:                                              ; preds = %240
  br label %242

242:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %243

243:                                              ; preds = %304, %242
  %244 = load i32, ptr %30, align 4, !tbaa !5
  %245 = getelementptr inbounds %struct.NoiseReductionState, ptr %22, i32 0, i32 4
  %246 = load i32, ptr %245, align 4, !tbaa !15
  %247 = icmp slt i32 %244, %246
  br i1 %247, label %248, label %307

248:                                              ; preds = %243
  br label %249

249:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %250 = load i32, ptr %30, align 4, !tbaa !5
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 %251
  %253 = load i32, ptr %252, align 4, !tbaa !5
  store i32 %253, ptr %31, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %254 = load i32, ptr %30, align 4, !tbaa !5
  %255 = sext i32 %254 to i64
  %256 = getelementptr inbounds [2 x i32], ptr %24, i64 0, i64 %255
  %257 = load i32, ptr %256, align 4, !tbaa !5
  store i32 %257, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #6
  store i8 0, ptr %33, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %34) #6
  store i8 0, ptr %34, align 1, !tbaa !11
  %258 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %259 = trunc i8 %258 to i1
  br i1 %259, label %260, label %286

260:                                              ; preds = %249
  %261 = load i8, ptr %34, align 1, !tbaa !11, !range !13, !noundef !14
  %262 = trunc i8 %261 to i1
  br i1 %262, label %263, label %286

263:                                              ; preds = %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %264 = load i32, ptr %31, align 4, !tbaa !5
  %265 = load i32, ptr %32, align 4, !tbaa !5
  %266 = icmp ugt i32 %264, %265
  br i1 %266, label %267, label %271

267:                                              ; preds = %263
  %268 = load i32, ptr %31, align 4, !tbaa !5
  %269 = load i32, ptr %32, align 4, !tbaa !5
  %270 = sub i32 %268, %269
  br label %275

271:                                              ; preds = %263
  %272 = load i32, ptr %32, align 4, !tbaa !5
  %273 = load i32, ptr %31, align 4, !tbaa !5
  %274 = sub i32 %272, %273
  br label %275

275:                                              ; preds = %271, %267
  %276 = phi i32 [ %270, %267 ], [ %274, %271 ]
  store i32 %276, ptr %35, align 4, !tbaa !5
  %277 = load i32, ptr %35, align 4, !tbaa !5
  %278 = call noundef i32 @_ZNSt14numeric_limitsIjE7epsilonEv() #6
  %279 = icmp ugt i32 %277, %278
  br i1 %279, label %280, label %285

280:                                              ; preds = %275
  %281 = load i32, ptr %31, align 4, !tbaa !5
  %282 = uitofp i32 %281 to double
  %283 = load i32, ptr %32, align 4, !tbaa !5
  %284 = uitofp i32 %283 to double
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 75, double noundef %282, double noundef %284)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %285

285:                                              ; preds = %280, %275
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %301

286:                                              ; preds = %260, %249
  %287 = load i32, ptr %31, align 4, !tbaa !5
  %288 = load i32, ptr %32, align 4, !tbaa !5
  %289 = icmp ne i32 %287, %288
  br i1 %289, label %290, label %300

290:                                              ; preds = %286
  %291 = load i32, ptr %31, align 4, !tbaa !5
  %292 = load i32, ptr %32, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.13, ptr noundef @.str.2, i32 noundef 75, i32 noundef %291, i32 noundef %292)
  %293 = load i8, ptr %33, align 1, !tbaa !11, !range !13, !noundef !14
  %294 = trunc i8 %293 to i1
  br i1 %294, label %298, label %295

295:                                              ; preds = %290
  %296 = load i8, ptr %34, align 1, !tbaa !11, !range !13, !noundef !14
  %297 = trunc i8 %296 to i1
  br i1 %297, label %298, label %299

298:                                              ; preds = %295, %290
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6)
  br label %299

299:                                              ; preds = %298, %295
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %300

300:                                              ; preds = %299, %286
  br label %301

301:                                              ; preds = %300, %285
  call void @llvm.lifetime.end.p0(i64 1, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %302

302:                                              ; preds = %301
  br label %303

303:                                              ; preds = %302
  br label %304

304:                                              ; preds = %303
  %305 = load i32, ptr %30, align 4, !tbaa !5
  %306 = add nsw i32 %305, 1
  store i32 %306, ptr %30, align 4, !tbaa !5
  br label %243, !llvm.loop !22

307:                                              ; preds = %243
  call void @NoiseReductionFreeStateContents(ptr noundef %22)
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  br label %308

308:                                              ; preds = %307
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %309 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %310 = trunc i8 %309 to i1
  %311 = zext i1 %310 to i64
  %312 = select i1 %310, i32 0, i32 1
  %313 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %314 = add nsw i32 %313, %312
  store i32 %314, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %315 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %316 = trunc i8 %315 to i1
  %317 = zext i1 %316 to i64
  %318 = select i1 %316, i32 1, i32 0
  %319 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %320 = add nsw i32 %319, %318
  store i32 %320, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %180, !llvm.loop !23

321:                                              ; preds = %180
  %322 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %323 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %324 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %325 = add nsw i32 %323, %324
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.14, i32 noundef %322, i32 noundef %325)
  %326 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %327 = icmp eq i32 %326, 0
  br i1 %327, label %328, label %329

328:                                              ; preds = %321
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.15)
  store i32 0, ptr %3, align 4
  br label %330

329:                                              ; preds = %321
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.16)
  store i32 1, ptr %3, align 4
  br label %330

330:                                              ; preds = %329, %328
  %331 = load i32, ptr %3, align 4
  ret i32 %331
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14InitializeTestEv() #1

declare void @_Z11MicroPrintfPKcz(ptr noundef, ...) #2

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

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

; 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 @NoiseReductionApply(ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #4 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt14numeric_limitsIjE7epsilonEv() #4 align 2

declare void @NoiseReductionFreeStateContents(ptr noundef) #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 = { inlinehint mustprogress 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 #2 = { "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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 16}
!17 = !{!"short", !7, i64 0}
!18 = !{!16, !10, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}


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

%"class.(anonymous namespace)::NoiseReductionTestConfig" = type { %struct.NoiseReductionConfig }
%struct.NoiseReductionConfig = type { i32, float, float, float }
%struct.NoiseReductionState = type { i32, i16, i16, i16, i32, ptr }

@_ZN10micro_test12tests_passedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test12tests_failedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN10micro_test16is_test_completeE = external dso_local local_unnamed_addr global i8, align 1
@_ZN10micro_test13did_test_failE = external dso_local local_unnamed_addr global i8, align 1
@.str = external hidden unnamed_addr constant [54 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [128 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 [106 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [46 x i8], align 1
@__const.main.signal.10 = external hidden unnamed_addr constant [2 x i32], align 4
@__const.main.expected.11 = external hidden unnamed_addr constant [2 x i32], align 4
@.str.13 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [25 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef range(i32 0, 2) i32 @main(i32 noundef %0, ptr nocapture noundef readnone %1) local_unnamed_addr #0 {
  %3 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %4 = alloca %struct.NoiseReductionState, align 8
  %5 = alloca [2 x i32], align 8
  %6 = alloca %"class.(anonymous namespace)::NoiseReductionTestConfig", align 4
  %7 = alloca %struct.NoiseReductionState, align 8
  %8 = 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
  tail call void @_ZN6tflite14InitializeTestEv()
  tail call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %9 = load i64, ptr @__const.main.signal, align 4
  %10 = getelementptr inbounds i8, ptr %4, i64 12
  %11 = getelementptr inbounds i8, ptr %4, i64 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  %12 = call i32 @NoiseReductionPopulateState(ptr noundef nonnull %3, ptr noundef nonnull %4, i32 noundef 2)
  %.not97 = icmp eq i32 %12, 0
  br i1 %.not97, label %13, label %14

13:                                               ; preds = %2
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 45)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %14

14:                                               ; preds = %13, %2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  store i64 %9, ptr %5, align 8
  call void @NoiseReductionApply(ptr noundef nonnull %4, ptr noundef nonnull %5)
  %15 = load i32, ptr %10, align 4, !tbaa !11
  %.not98 = icmp eq i32 %15, 2
  br i1 %.not98, label %.lr.ph.preheader, label %16

16:                                               ; preds = %14
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 52, i32 noundef %15, i32 noundef 2)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %.pre = load i32, ptr %10, align 4, !tbaa !11
  %17 = icmp sgt i32 %.pre, 0
  br i1 %17, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %14, %16
  %.ph123 = phi i32 [ 2, %14 ], [ %.pre, %16 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %25
  %18 = phi i32 [ %26, %25 ], [ %.ph123, %.lr.ph.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next, %25 ], [ 0, %.lr.ph.preheader ]
  %19 = load ptr, ptr %11, align 8, !tbaa !15
  %20 = getelementptr inbounds i32, ptr %19, i64 %indvars.iv
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = getelementptr inbounds [2 x i32], ptr @__const.main.expected, i64 0, i64 %indvars.iv
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %.not100 = icmp eq i32 %21, %23
  br i1 %.not100, label %25, label %24

24:                                               ; preds = %.lr.ph
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.2, i32 noundef 55, i32 noundef %21, i32 noundef %23)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %.pre116 = load i32, ptr %10, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %.lr.ph, %24
  %26 = phi i32 [ %18, %.lr.ph ], [ %.pre116, %24 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %27 = sext i32 %26 to i64
  %28 = icmp slt i64 %indvars.iv.next, %27
  br i1 %28, label %.lr.ph, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %25, %16
  call void @NoiseReductionFreeStateContents(ptr noundef nonnull %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %29 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !18, !noundef !19
  %30 = xor i8 %29, 1
  %not.99 = zext nneg i8 %30 to i32
  %31 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %32 = add nsw i32 %31, %not.99
  store i32 %32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %33 = zext nneg i8 %29 to i32
  %34 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %35 = add nsw i32 %34, %33
  store i32 %35, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.9)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %36 = load i64, ptr @__const.main.signal.10, align 4
  %37 = getelementptr inbounds i8, ptr %7, i64 12
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #5
  call void @_ZN12_GLOBAL__N_124NoiseReductionTestConfigC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #5
  %38 = call i32 @NoiseReductionPopulateState(ptr noundef nonnull %6, ptr noundef nonnull %7, i32 noundef 2)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %39, label %40

39:                                               ; preds = %.loopexit
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 65)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %40

40:                                               ; preds = %39, %.loopexit
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  store i64 %36, ptr %8, align 8
  call void @NoiseReductionApply(ptr noundef nonnull %7, ptr noundef nonnull %8)
  %41 = load i32, ptr %37, align 4, !tbaa !11
  %.not95 = icmp eq i32 %41, 2
  br i1 %.not95, label %.lr.ph107.preheader, label %42

42:                                               ; preds = %40
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.2, i32 noundef 72, i32 noundef %41, i32 noundef 2)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %.pre117 = load i32, ptr %37, align 4, !tbaa !11
  %43 = icmp sgt i32 %.pre117, 0
  br i1 %43, label %.lr.ph107.preheader, label %._crit_edge111

.lr.ph107.preheader:                              ; preds = %40, %42
  %.ph = phi i32 [ 2, %40 ], [ %.pre117, %42 ]
  br label %.lr.ph107

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %50
  %44 = phi i32 [ %51, %50 ], [ %.ph, %.lr.ph107.preheader ]
  %indvars.iv113 = phi i64 [ %indvars.iv.next114, %50 ], [ 0, %.lr.ph107.preheader ]
  %45 = getelementptr inbounds [2 x i32], ptr %8, i64 0, i64 %indvars.iv113
  %46 = load i32, ptr %45, align 4, !tbaa !5
  %47 = getelementptr inbounds [2 x i32], ptr @__const.main.expected.11, i64 0, i64 %indvars.iv113
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %.not96 = icmp eq i32 %46, %48
  br i1 %.not96, label %50, label %49

49:                                               ; preds = %.lr.ph107
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.2, i32 noundef 75, i32 noundef %46, i32 noundef %48)
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  %.pre118 = load i32, ptr %37, align 4, !tbaa !11
  br label %50

50:                                               ; preds = %.lr.ph107, %49
  %51 = phi i32 [ %44, %.lr.ph107 ], [ %.pre118, %49 ]
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %52 = sext i32 %51 to i64
  %53 = icmp slt i64 %indvars.iv.next114, %52
  br i1 %53, label %.lr.ph107, label %._crit_edge111, !llvm.loop !20

._crit_edge111:                                   ; preds = %50, %42
  call void @NoiseReductionFreeStateContents(ptr noundef nonnull %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #5
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %54 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !18, !noundef !19
  %55 = xor i8 %54, 1
  %not. = zext nneg i8 %55 to i32
  %56 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %57 = add nsw i32 %56, %not.
  store i32 %57, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %58 = zext nneg i8 %54 to i32
  %59 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %61 = add nsw i32 %60, %57
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.14, i32 noundef %57, i32 noundef %61)
  %62 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %63 = icmp ne i32 %62, 0
  %.str.15..str.16 = select i1 %63, ptr @.str.16, ptr @.str.15
  %. = zext i1 %63 to i32
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull %.str.15..str.16)
  ret i32 %.
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14InitializeTestEv() local_unnamed_addr #1

declare void @_Z11MicroPrintfPKcz(ptr noundef, ...) local_unnamed_addr #2

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

; 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 i32 @NoiseReductionPopulateState(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @NoiseReductionApply(ptr noundef, ptr noundef) local_unnamed_addr #2

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

declare void @NoiseReductionFreeStateContents(ptr noundef) local_unnamed_addr #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 = { inlinehint mustprogress 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 #2 = { "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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"bool", !7, i64 0}
!11 = !{!12, !6, i64 12}
!12 = !{!"_ZTS19NoiseReductionState", !6, i64 0, !13, i64 4, !13, i64 6, !13, i64 8, !6, i64 12, !14, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!12, !14, i64 16}
!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,TailCallElimPass