; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/simple_features (main)

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

%"class.tflite::MicroErrorReporter" = type { %"class.tflite::ErrorReporter" }
%"class.tflite::ErrorReporter" = type { ptr }

@_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 [28 x i8], align 1
@g_yes_30ms_sample_data = external constant [0 x i16], align 2
@g_yes_30ms_sample_data_size = external constant i32, align 4
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [158 x i8], align 1
@g_yes_power_spectrum_data = external constant [0 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@g_no_30ms_sample_data = external constant [0 x i16], align 2
@g_no_30ms_sample_data_size = external constant i32, align 4
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@g_no_power_spectrum_data = external constant [0 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = 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 [43 x i8], align 16
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca [43 x i8], align 16
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  store ptr %6, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %17 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %18 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @.str, ptr noundef @.str.1)
          to label %19 unwind label %38

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

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

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store ptr %9, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 43, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %25 = load ptr, ptr %10, align 8, !tbaa !9
  %26 = load i32, ptr @g_yes_30ms_sample_data_size, align 4, !tbaa !5
  %27 = getelementptr inbounds [43 x i8], ptr %11, i64 0, i64 0
  %28 = invoke noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef %25, ptr noundef @g_yes_30ms_sample_data, i32 noundef %26, i32 noundef 43, ptr noundef %27)
          to label %29 unwind label %42

29:                                               ; preds = %24
  store i32 %28, ptr %12, align 4, !tbaa !15
  br label %30

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

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

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

38:                                               ; preds = %234, %230, %220, %2
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %7, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %8, align 4
  br label %240

42:                                               ; preds = %33, %24
  %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 %219

46:                                               ; preds = %37, %30
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %113, %48
  %50 = load i32, ptr %13, align 4, !tbaa !5
  %51 = icmp slt i32 %50, 43
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %116

53:                                               ; preds = %49
  br label %54

54:                                               ; preds = %53
  %55 = load i32, ptr %13, align 4, !tbaa !5
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [0 x i8], ptr @g_yes_power_spectrum_data, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !17
  %59 = zext i8 %58 to i32
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [43 x i8], ptr %11, i64 0, i64 %61
  %63 = load i8, ptr %62, align 1, !tbaa !17
  %64 = zext i8 %63 to i32
  %65 = icmp ne i32 %59, %64
  br i1 %65, label %66, label %84

66:                                               ; preds = %54
  %67 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %68 = load i32, ptr %13, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [0 x i8], ptr @g_yes_power_spectrum_data, i64 0, i64 %69
  %71 = load i8, ptr %70, align 1, !tbaa !17
  %72 = zext i8 %71 to i32
  %73 = load i32, ptr %13, align 4, !tbaa !5
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [43 x i8], ptr %11, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !17
  %77 = zext i8 %76 to i32
  %78 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %67, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 39, i32 noundef %72, i32 noundef %77)
          to label %79 unwind label %80

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

80:                                               ; preds = %98, %66
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %7, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %219

84:                                               ; preds = %79, %54
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  %87 = load i32, ptr %13, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds [0 x i8], ptr @g_yes_power_spectrum_data, i64 0, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !17
  %91 = zext i8 %90 to i32
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [43 x i8], ptr %11, i64 0, i64 %93
  %95 = load i8, ptr %94, align 1, !tbaa !17
  %96 = zext i8 %95 to i32
  %97 = icmp ne i32 %91, %96
  br i1 %97, label %98, label %112

98:                                               ; preds = %86
  %99 = load ptr, ptr %10, align 8, !tbaa !9
  %100 = load i32, ptr %13, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [0 x i8], ptr @g_yes_power_spectrum_data, i64 0, i64 %101
  %103 = load i8, ptr %102, align 1, !tbaa !17
  %104 = zext i8 %103 to i32
  %105 = load i32, ptr %13, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [43 x i8], ptr %11, i64 0, i64 %106
  %108 = load i8, ptr %107, align 1, !tbaa !17
  %109 = zext i8 %108 to i32
  %110 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %99, ptr noundef @.str.5, i32 noundef %104, i32 noundef %109)
          to label %111 unwind label %80

111:                                              ; preds = %98
  br label %112

112:                                              ; preds = %111, %86
  br label %113

113:                                              ; preds = %112
  %114 = load i32, ptr %13, align 4, !tbaa !5
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %13, align 4, !tbaa !5
  br label %49, !llvm.loop !18

116:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 43, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %117 = load ptr, ptr %10, align 8, !tbaa !9
  %118 = load i32, ptr @g_no_30ms_sample_data_size, align 4, !tbaa !5
  %119 = getelementptr inbounds [43 x i8], ptr %14, i64 0, i64 0
  %120 = invoke noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef %117, ptr noundef @g_no_30ms_sample_data, i32 noundef %118, i32 noundef 43, ptr noundef %119)
          to label %121 unwind label %130

121:                                              ; preds = %116
  store i32 %120, ptr %15, align 4, !tbaa !15
  br label %122

122:                                              ; preds = %121
  %123 = load i32, ptr %15, align 4, !tbaa !15
  %124 = icmp ne i32 0, %123
  br i1 %124, label %125, label %134

125:                                              ; preds = %122
  %126 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %127 = load i32, ptr %15, align 4, !tbaa !15
  %128 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @.str.6, ptr noundef @.str.3, i32 noundef 51, i32 noundef 0, i32 noundef %127)
          to label %129 unwind label %130

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

130:                                              ; preds = %125, %116
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %7, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %8, align 4
  br label %218

134:                                              ; preds = %129, %122
  br label %135

135:                                              ; preds = %134
  br label %136

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

137:                                              ; preds = %201, %136
  %138 = load i32, ptr %16, align 4, !tbaa !5
  %139 = icmp slt i32 %138, 43
  br i1 %139, label %141, label %140

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

141:                                              ; preds = %137
  br label %142

142:                                              ; preds = %141
  %143 = load i32, ptr %16, align 4, !tbaa !5
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [0 x i8], ptr @g_no_power_spectrum_data, i64 0, i64 %144
  %146 = load i8, ptr %145, align 1, !tbaa !17
  %147 = zext i8 %146 to i32
  %148 = load i32, ptr %16, align 4, !tbaa !5
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds [43 x i8], ptr %14, i64 0, i64 %149
  %151 = load i8, ptr %150, align 1, !tbaa !17
  %152 = zext i8 %151 to i32
  %153 = icmp ne i32 %147, %152
  br i1 %153, label %154, label %172

154:                                              ; preds = %142
  %155 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %156 = load i32, ptr %16, align 4, !tbaa !5
  %157 = sext i32 %156 to i64
  %158 = getelementptr inbounds [0 x i8], ptr @g_no_power_spectrum_data, i64 0, i64 %157
  %159 = load i8, ptr %158, align 1, !tbaa !17
  %160 = zext i8 %159 to i32
  %161 = load i32, ptr %16, align 4, !tbaa !5
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds [43 x i8], ptr %14, i64 0, i64 %162
  %164 = load i8, ptr %163, align 1, !tbaa !17
  %165 = zext i8 %164 to i32
  %166 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %155, ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 54, i32 noundef %160, i32 noundef %165)
          to label %167 unwind label %168

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

168:                                              ; preds = %186, %154
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %7, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %218

172:                                              ; preds = %167, %142
  br label %173

173:                                              ; preds = %172
  br label %174

174:                                              ; preds = %173
  %175 = load i32, ptr %16, align 4, !tbaa !5
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [0 x i8], ptr @g_no_power_spectrum_data, i64 0, i64 %176
  %178 = load i8, ptr %177, align 1, !tbaa !17
  %179 = zext i8 %178 to i32
  %180 = load i32, ptr %16, align 4, !tbaa !5
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [43 x i8], ptr %14, i64 0, i64 %181
  %183 = load i8, ptr %182, align 1, !tbaa !17
  %184 = zext i8 %183 to i32
  %185 = icmp ne i32 %179, %184
  br i1 %185, label %186, label %200

186:                                              ; preds = %174
  %187 = load ptr, ptr %10, align 8, !tbaa !9
  %188 = load i32, ptr %16, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [0 x i8], ptr @g_no_power_spectrum_data, i64 0, i64 %189
  %191 = load i8, ptr %190, align 1, !tbaa !17
  %192 = zext i8 %191 to i32
  %193 = load i32, ptr %16, align 4, !tbaa !5
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds [43 x i8], ptr %14, i64 0, i64 %194
  %196 = load i8, ptr %195, align 1, !tbaa !17
  %197 = zext i8 %196 to i32
  %198 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %187, ptr noundef @.str.5, i32 noundef %192, i32 noundef %197)
          to label %199 unwind label %168

199:                                              ; preds = %186
  br label %200

200:                                              ; preds = %199, %174
  br label %201

201:                                              ; preds = %200
  %202 = load i32, ptr %16, align 4, !tbaa !5
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %16, align 4, !tbaa !5
  br label %137, !llvm.loop !20

204:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 43, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 43, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %205

205:                                              ; preds = %204
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %206 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %207 = trunc i8 %206 to i1
  %208 = zext i1 %207 to i64
  %209 = select i1 %207, i32 0, i32 1
  %210 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %211 = add nsw i32 %210, %209
  store i32 %211, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %212 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %213 = trunc i8 %212 to i1
  %214 = zext i1 %213 to i64
  %215 = select i1 %213, i32 1, i32 0
  %216 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %217 = add nsw i32 %216, %215
  store i32 %217, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %20, !llvm.loop !21

218:                                              ; preds = %168, %130
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 43, ptr %14) #5
  br label %219

219:                                              ; preds = %218, %80, %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 43, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %240

220:                                              ; preds = %20
  %221 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %222 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %223 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %224 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %225 = add nsw i32 %223, %224
  %226 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %221, ptr noundef @.str.8, i32 noundef %222, i32 noundef %225)
          to label %227 unwind label %38

227:                                              ; preds = %220
  %228 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %229 = icmp eq i32 %228, 0
  br i1 %229, label %230, label %234

230:                                              ; preds = %227
  %231 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %232 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.9)
          to label %233 unwind label %38

233:                                              ; preds = %230
  br label %238

234:                                              ; preds = %227
  %235 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %236 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %235, ptr noundef @.str.10)
          to label %237 unwind label %38

237:                                              ; preds = %234
  br label %238

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

240:                                              ; preds = %219, %38
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %241

241:                                              ; preds = %240
  %242 = load ptr, ptr %7, align 8
  %243 = load i32, ptr %8, align 4
  %244 = insertvalue { ptr, i32 } poison, ptr %242, 0
  %245 = insertvalue { ptr, i32 } %244, i32 %243, 1
  resume { ptr, i32 } %245
}

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

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

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) #3

declare i32 @__gxx_personality_v0(...)

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

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

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

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

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

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

@_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 [28 x i8], align 1
@g_yes_30ms_sample_data = external constant [0 x i16], align 2
@g_yes_30ms_sample_data_size = external local_unnamed_addr constant i32, align 4
@.str.2 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [158 x i8], align 1
@g_yes_power_spectrum_data = external local_unnamed_addr constant [0 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@g_no_30ms_sample_data = external constant [0 x i16], align 2
@g_no_30ms_sample_data_size = external local_unnamed_addr constant i32, align 4
@.str.6 = external hidden unnamed_addr constant [50 x i8], align 1
@g_no_power_spectrum_data = external local_unnamed_addr constant [0 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.10 = 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 [43 x i8], align 16
  %6 = alloca [43 x i8], align 16
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #5
  store ptr %3, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %7 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1)
          to label %8 unwind label %17

8:                                                ; 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
  %9 = load i32, ptr @g_no_30ms_sample_data_size, align 4
  %10 = load i32, ptr @g_yes_30ms_sample_data_size, align 4
  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 43, ptr nonnull %5) #5
  %11 = invoke noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef nonnull %4, ptr noundef nonnull @g_yes_30ms_sample_data, i32 noundef %10, i32 noundef 43, ptr noundef nonnull %5)
          to label %12 unwind label %19

12:                                               ; preds = %8
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %.preheader68, label %13

.preheader68:                                     ; preds = %16, %12
  br label %23

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

16:                                               ; preds = %13
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %.preheader68

17:                                               ; preds = %.invoke, %._crit_edge, %2
  %18 = landingpad { ptr, i32 }
          cleanup
  br label %81

19:                                               ; preds = %13, %8
  %20 = landingpad { ptr, i32 }
          cleanup
  br label %65

21:                                               ; preds = %.thread
  call void @llvm.lifetime.start.p0(i64 43, ptr nonnull %6) #5
  %22 = invoke noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef nonnull %4, ptr noundef nonnull @g_no_30ms_sample_data, i32 noundef %9, i32 noundef 43, ptr noundef nonnull %6)
          to label %40 unwind label %45

23:                                               ; preds = %.preheader68, %.thread
  %indvars.iv = phi i64 [ %indvars.iv.next, %.thread ], [ 0, %.preheader68 ]
  %24 = getelementptr inbounds [0 x i8], ptr @g_yes_power_spectrum_data, i64 0, i64 %indvars.iv
  %25 = load i8, ptr %24, align 1, !tbaa !13
  %26 = getelementptr inbounds [43 x i8], ptr %5, i64 0, i64 %indvars.iv
  %27 = load i8, ptr %26, align 1, !tbaa !13
  %.not49 = icmp eq i8 %25, %27
  br i1 %.not49, label %.thread, label %28

28:                                               ; preds = %23
  %29 = zext i8 %27 to i32
  %30 = zext i8 %25 to i32
  %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 39, i32 noundef %30, i32 noundef %29)
          to label %35 unwind label %33

33:                                               ; preds = %36, %28
  %34 = landingpad { ptr, i32 }
          cleanup
  br label %65

35:                                               ; preds = %28
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre = load i8, ptr %26, align 1, !tbaa !13
  %.not50 = icmp eq i8 %25, %.pre
  br i1 %.not50, label %.thread, label %36

36:                                               ; preds = %35
  %37 = zext i8 %.pre to i32
  %38 = zext i8 %25 to i32
  %39 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.5, i32 noundef %38, i32 noundef %37)
          to label %.thread unwind label %33

.thread:                                          ; preds = %23, %35, %36
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 43
  br i1 %exitcond.not, label %21, label %23, !llvm.loop !14

40:                                               ; preds = %21
  %.not45 = icmp eq i32 %22, 0
  br i1 %.not45, label %.preheader, label %41

.preheader:                                       ; preds = %44, %40
  br label %47

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

44:                                               ; preds = %41
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %.preheader

45:                                               ; preds = %41, %21
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %64

47:                                               ; preds = %.preheader, %.thread66
  %indvars.iv57 = phi i64 [ %indvars.iv.next58, %.thread66 ], [ 0, %.preheader ]
  %48 = getelementptr inbounds [0 x i8], ptr @g_no_power_spectrum_data, i64 0, i64 %indvars.iv57
  %49 = load i8, ptr %48, align 1, !tbaa !13
  %50 = getelementptr inbounds [43 x i8], ptr %6, i64 0, i64 %indvars.iv57
  %51 = load i8, ptr %50, align 1, !tbaa !13
  %.not46 = icmp eq i8 %49, %51
  br i1 %.not46, label %.thread66, label %52

52:                                               ; preds = %47
  %53 = zext i8 %51 to i32
  %54 = zext i8 %49 to i32
  %55 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %56 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 54, i32 noundef %54, i32 noundef %53)
          to label %59 unwind label %57

57:                                               ; preds = %60, %52
  %58 = landingpad { ptr, i32 }
          cleanup
  br label %64

59:                                               ; preds = %52
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  %.pre61 = load i8, ptr %50, align 1, !tbaa !13
  %.not47 = icmp eq i8 %49, %.pre61
  br i1 %.not47, label %.thread66, label %60

60:                                               ; preds = %59
  %61 = zext i8 %.pre61 to i32
  %62 = zext i8 %49 to i32
  %63 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull @.str.5, i32 noundef %62, i32 noundef %61)
          to label %.thread66 unwind label %57

.thread66:                                        ; preds = %47, %59, %60
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %exitcond60.not = icmp eq i64 %indvars.iv.next58, 43
  br i1 %exitcond60.not, label %._crit_edge, label %47, !llvm.loop !16

64:                                               ; preds = %57, %45
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %46, %45 ]
  call void @llvm.lifetime.end.p0(i64 43, ptr nonnull %6) #5
  br label %65

65:                                               ; preds = %64, %33, %19
  %.pn51 = phi { ptr, i32 } [ %34, %33 ], [ %.pn, %64 ], [ %20, %19 ]
  call void @llvm.lifetime.end.p0(i64 43, 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 %81

._crit_edge:                                      ; preds = %.thread66
  call void @llvm.lifetime.end.p0(i64 43, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 43, 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
  %66 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !17, !noundef !18
  %67 = xor i8 %66, 1
  %not. = zext nneg i8 %67 to i32
  %68 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %69 = add nsw i32 %68, %not.
  store i32 %69, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %70 = zext nneg i8 %66 to i32
  %71 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %72 = add nsw i32 %71, %70
  store i32 %72, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %73 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %74 = add nsw i32 %72, %69
  %75 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %73, ptr noundef nonnull @.str.8, i32 noundef %69, i32 noundef %74)
          to label %.invoke unwind label %17

.invoke:                                          ; preds = %._crit_edge
  %76 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %77 = icmp eq i32 %76, 0
  %78 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.9..str.10 = select i1 %77, ptr @.str.9, ptr @.str.10
  %79 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef nonnull %.str.9..str.10)
          to label %80 unwind label %17

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

81:                                               ; preds = %65, %17
  %.pn51.pn = phi { ptr, i32 } [ %.pn51, %65 ], [ %18, %17 ]
  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 } %.pn51.pn
}

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

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

declare noundef i32 @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, ...) local_unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare noundef i32 @_Z22GenerateSimpleFeaturesPN6tflite13ErrorReporterEPKsiiPh(ptr noundef, ptr noundef, i32 noundef, i32 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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{i8 0, i8 2}
!18 = !{}


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