; LLVM IR from NVIDIA/tensorflow :: tensorflow/lite/experimental/micro/examples/micro_speech/feature_provider_mock (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.FeatureProvider = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>

@_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 [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@g_yes_micro_f2e59fea_nohash_1_data = external constant [0 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@g_no_micro_f9643d42_nohash_4_data = external constant [0 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [83 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 [1960 x i8], align 16
  %12 = alloca %class.FeatureProvider, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %"class.tflite::MicroErrorReporter", align 8
  %17 = alloca ptr, align 8
  %18 = alloca [1960 x i8], align 16
  %19 = alloca %class.FeatureProvider, align 8
  %20 = alloca i32, align 4
  %21 = alloca 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 %44

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 = %112, %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 %127

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 1960, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  %31 = getelementptr inbounds [1960 x i8], ptr %11, i64 0, i64 0
  invoke void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17) %12, i32 noundef 1960, ptr noundef %31)
          to label %32 unwind label %48

32:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %33 = load ptr, ptr %10, align 8, !tbaa !9
  %34 = invoke noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17) %12, ptr noundef %33, i32 noundef 0, i32 noundef 970, ptr noundef %13)
          to label %35 unwind label %52

35:                                               ; preds = %32
  store i32 %34, ptr %14, align 4, !tbaa !15
  br label %36

36:                                               ; preds = %35
  %37 = load i32, ptr %14, align 4, !tbaa !15
  %38 = icmp ne i32 0, %37
  br i1 %38, label %39, label %56

39:                                               ; preds = %36
  %40 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %41 = load i32, ptr %14, align 4, !tbaa !15
  %42 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 37, i32 noundef 0, i32 noundef %41)
          to label %43 unwind label %52

43:                                               ; preds = %39
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %56

44:                                               ; preds = %242, %238, %228, %127, %2
  %45 = landingpad { ptr, i32 }
          cleanup
  %46 = extractvalue { ptr, i32 } %45, 0
  store ptr %46, ptr %7, align 8
  %47 = extractvalue { ptr, i32 } %45, 1
  store i32 %47, ptr %8, align 4
  br label %248

48:                                               ; preds = %30
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %7, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %8, align 4
  br label %126

52:                                               ; preds = %62, %39, %32
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %7, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %8, align 4
  br label %125

56:                                               ; preds = %43, %36
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %13, align 4, !tbaa !5
  %61 = icmp ne i32 49, %60
  br i1 %61, label %62, label %67

62:                                               ; preds = %59
  %63 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %64 = load i32, ptr %13, align 4, !tbaa !5
  %65 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %63, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 38, i32 noundef 49, i32 noundef %64)
          to label %66 unwind label %52

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

67:                                               ; preds = %66, %59
  br label %68

68:                                               ; preds = %67
  br label %69

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

70:                                               ; preds = %108, %69
  %71 = load i32, ptr %15, align 4, !tbaa !5
  %72 = icmp slt i32 %71, 1960
  br i1 %72, label %74, label %73

73:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %111

74:                                               ; preds = %70
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %15, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [0 x i8], ptr @g_yes_micro_f2e59fea_nohash_1_data, i64 0, i64 %77
  %79 = load i8, ptr %78, align 1, !tbaa !17
  %80 = zext i8 %79 to i32
  %81 = load i32, ptr %15, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [1960 x i8], ptr %11, i64 0, i64 %82
  %84 = load i8, ptr %83, align 1, !tbaa !17
  %85 = zext i8 %84 to i32
  %86 = icmp ne i32 %80, %85
  br i1 %86, label %87, label %105

87:                                               ; preds = %75
  %88 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %89 = load i32, ptr %15, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [0 x i8], ptr @g_yes_micro_f2e59fea_nohash_1_data, i64 0, i64 %90
  %92 = load i8, ptr %91, align 1, !tbaa !17
  %93 = zext i8 %92 to i32
  %94 = load i32, ptr %15, align 4, !tbaa !5
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [1960 x i8], ptr %11, i64 0, i64 %95
  %97 = load i8, ptr %96, align 1, !tbaa !17
  %98 = zext i8 %97 to i32
  %99 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef @.str.5, ptr noundef @.str.3, i32 noundef 42, i32 noundef %93, i32 noundef %98)
          to label %100 unwind label %101

100:                                              ; preds = %87
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %105

101:                                              ; preds = %87
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %125

105:                                              ; preds = %100, %75
  br label %106

106:                                              ; preds = %105
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %15, align 4, !tbaa !5
  br label %70, !llvm.loop !18

111:                                              ; preds = %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1960, 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 %112

112:                                              ; preds = %111
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %113 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %114 = trunc i8 %113 to i1
  %115 = zext i1 %114 to i64
  %116 = select i1 %114, i32 0, i32 1
  %117 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %118 = add nsw i32 %117, %116
  store i32 %118, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %119 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %120 = trunc i8 %119 to i1
  %121 = zext i1 %120 to i64
  %122 = select i1 %120, i32 1, i32 0
  %123 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %124 = add nsw i32 %123, %122
  store i32 %124, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %26, !llvm.loop !20

125:                                              ; preds = %101, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %12) #6
  br label %126

126:                                              ; preds = %125, %48
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 1960, 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 %248

127:                                              ; preds = %26
  %128 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %129 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %128, ptr noundef @.str, ptr noundef @.str.6)
          to label %130 unwind label %44

130:                                              ; preds = %127
  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 %131

131:                                              ; preds = %213, %130
  %132 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %133 = trunc i8 %132 to i1
  %134 = xor i1 %133, true
  br i1 %134, label %135, label %228

135:                                              ; preds = %131
  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 1960, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %136 = getelementptr inbounds [1960 x i8], ptr %18, i64 0, i64 0
  invoke void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17) %19, i32 noundef 1960, ptr noundef %136)
          to label %137 unwind label %149

137:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %138 = load ptr, ptr %17, align 8, !tbaa !9
  %139 = invoke noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17) %19, ptr noundef %138, i32 noundef 4000, i32 noundef 4970, ptr noundef %20)
          to label %140 unwind label %153

140:                                              ; preds = %137
  store i32 %139, ptr %21, align 4, !tbaa !15
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %21, align 4, !tbaa !15
  %143 = icmp ne i32 0, %142
  br i1 %143, label %144, label %157

144:                                              ; preds = %141
  %145 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %146 = load i32, ptr %21, align 4, !tbaa !15
  %147 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %145, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 57, i32 noundef 0, i32 noundef %146)
          to label %148 unwind label %153

148:                                              ; preds = %144
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %157

149:                                              ; preds = %135
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %7, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %8, align 4
  br label %227

153:                                              ; preds = %163, %144, %137
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %7, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %8, align 4
  br label %226

157:                                              ; preds = %148, %141
  br label %158

158:                                              ; preds = %157
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %20, align 4, !tbaa !5
  %162 = icmp ne i32 49, %161
  br i1 %162, label %163, label %168

163:                                              ; preds = %160
  %164 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %165 = load i32, ptr %20, align 4, !tbaa !5
  %166 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %164, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef 58, i32 noundef 49, i32 noundef %165)
          to label %167 unwind label %153

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

168:                                              ; preds = %167, %160
  br label %169

169:                                              ; preds = %168
  br label %170

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

171:                                              ; preds = %209, %170
  %172 = load i32, ptr %22, align 4, !tbaa !5
  %173 = icmp slt i32 %172, 1960
  br i1 %173, label %175, label %174

174:                                              ; preds = %171
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %212

175:                                              ; preds = %171
  br label %176

176:                                              ; preds = %175
  %177 = load i32, ptr %22, align 4, !tbaa !5
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [0 x i8], ptr @g_no_micro_f9643d42_nohash_4_data, i64 0, i64 %178
  %180 = load i8, ptr %179, align 1, !tbaa !17
  %181 = zext i8 %180 to i32
  %182 = load i32, ptr %22, align 4, !tbaa !5
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds [1960 x i8], ptr %18, i64 0, i64 %183
  %185 = load i8, ptr %184, align 1, !tbaa !17
  %186 = zext i8 %185 to i32
  %187 = icmp ne i32 %181, %186
  br i1 %187, label %188, label %206

188:                                              ; preds = %176
  %189 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !5
  %191 = sext i32 %190 to i64
  %192 = getelementptr inbounds [0 x i8], ptr @g_no_micro_f9643d42_nohash_4_data, i64 0, i64 %191
  %193 = load i8, ptr %192, align 1, !tbaa !17
  %194 = zext i8 %193 to i32
  %195 = load i32, ptr %22, align 4, !tbaa !5
  %196 = sext i32 %195 to i64
  %197 = getelementptr inbounds [1960 x i8], ptr %18, i64 0, i64 %196
  %198 = load i8, ptr %197, align 1, !tbaa !17
  %199 = zext i8 %198 to i32
  %200 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %189, ptr noundef @.str.7, ptr noundef @.str.3, i32 noundef 62, i32 noundef %194, i32 noundef %199)
          to label %201 unwind label %202

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

202:                                              ; preds = %188
  %203 = landingpad { ptr, i32 }
          cleanup
  %204 = extractvalue { ptr, i32 } %203, 0
  store ptr %204, ptr %7, align 8
  %205 = extractvalue { ptr, i32 } %203, 1
  store i32 %205, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %226

206:                                              ; preds = %201, %176
  br label %207

207:                                              ; preds = %206
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  %210 = load i32, ptr %22, align 4, !tbaa !5
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %22, align 4, !tbaa !5
  br label %171, !llvm.loop !21

212:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1960, 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 %213

213:                                              ; preds = %212
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %214 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %215 = trunc i8 %214 to i1
  %216 = zext i1 %215 to i64
  %217 = select i1 %215, i32 0, i32 1
  %218 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %219 = add nsw i32 %218, %217
  store i32 %219, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %220 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %221 = trunc i8 %220 to i1
  %222 = zext i1 %221 to i64
  %223 = select i1 %221, i32 1, i32 0
  %224 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %225 = add nsw i32 %224, %223
  store i32 %225, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %131, !llvm.loop !22

226:                                              ; preds = %202, %153
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %19) #6
  br label %227

227:                                              ; preds = %226, %149
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1960, 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 %248

228:                                              ; preds = %131
  %229 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %230 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %231 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %232 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %233 = add nsw i32 %231, %232
  %234 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef @.str.8, i32 noundef %230, i32 noundef %233)
          to label %235 unwind label %44

235:                                              ; preds = %228
  %236 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %237 = icmp eq i32 %236, 0
  br i1 %237, label %238, label %242

238:                                              ; preds = %235
  %239 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %240 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef @.str.9)
          to label %241 unwind label %44

241:                                              ; preds = %238
  br label %246

242:                                              ; preds = %235
  %243 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %244 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %243, ptr noundef @.str.10)
          to label %245 unwind label %44

245:                                              ; preds = %242
  br label %246

246:                                              ; preds = %245, %241
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %247 = load i32, ptr %3, align 4
  ret i32 %247

248:                                              ; preds = %227, %126, %44
  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 %249

249:                                              ; preds = %248
  %250 = load ptr, ptr %7, align 8
  %251 = load i32, ptr %8, align 4
  %252 = insertvalue { ptr, i32 } poison, ptr %250, 0
  %253 = insertvalue { ptr, i32 } %252, i32 %251, 1
  resume { ptr, i32 } %253
}

; 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 void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, ptr noundef) unnamed_addr #3

declare noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17), 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: nounwind
declare void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 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 = { nounwind "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 = { 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 #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, !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}
!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.FeatureProvider = type <{ i32, [4 x i8], ptr, i8, [7 x i8] }>

@_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 [27 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [69 x i8], align 1
@g_yes_micro_f2e59fea_nohash_1_data = external local_unnamed_addr constant [0 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [26 x i8], align 1
@g_no_micro_f9643d42_nohash_4_data = external local_unnamed_addr constant [0 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [83 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 [1960 x i8], align 16
  %6 = alloca %class.FeatureProvider, align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.tflite::MicroErrorReporter", align 8
  %9 = alloca [1960 x i8], align 16
  %10 = alloca %class.FeatureProvider, align 8
  %11 = alloca i32, align 4
  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) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  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 %.lr.ph unwind label %20

.lr.ph:                                           ; preds = %2
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 1960, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17) %6, i32 noundef 1960, ptr noundef nonnull %5)
          to label %13 unwind label %22

13:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  %14 = invoke noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17) %6, ptr noundef nonnull %4, i32 noundef 0, i32 noundef 970, ptr noundef nonnull %7)
          to label %15 unwind label %24

15:                                               ; preds = %13
  %.not39 = icmp eq i32 %14, 0
  br i1 %.not39, label %26, label %16

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

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

20:                                               ; preds = %.invoke, %._crit_edge51, %._crit_edge, %2
  %21 = landingpad { ptr, i32 }
          cleanup
  br label %105

22:                                               ; preds = %.lr.ph
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %47

24:                                               ; preds = %28, %16, %13
  %25 = landingpad { ptr, i32 }
          cleanup
  br label %46

26:                                               ; preds = %15, %19
  %27 = load i32, ptr %7, align 4, !tbaa !5
  %.not40 = icmp eq i32 %27, 49
  br i1 %.not40, label %.preheader58, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %30 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef 38, i32 noundef 49, i32 noundef %27)
          to label %31 unwind label %24

31:                                               ; preds = %28
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %.preheader58

.preheader58:                                     ; preds = %31, %26
  br label %32

32:                                               ; preds = %.preheader58, %45
  %indvars.iv = phi i64 [ %indvars.iv.next, %45 ], [ 0, %.preheader58 ]
  %33 = getelementptr inbounds [0 x i8], ptr @g_yes_micro_f2e59fea_nohash_1_data, i64 0, i64 %indvars.iv
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %35 = getelementptr inbounds [1960 x i8], ptr %5, i64 0, i64 %indvars.iv
  %36 = load i8, ptr %35, align 1, !tbaa !13
  %.not42 = icmp eq i8 %34, %36
  br i1 %.not42, label %45, label %37

37:                                               ; preds = %32
  %38 = zext i8 %36 to i32
  %39 = zext i8 %34 to i32
  %40 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %41 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.3, i32 noundef 42, i32 noundef %39, i32 noundef %38)
          to label %42 unwind label %43

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

43:                                               ; preds = %37
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %46

45:                                               ; preds = %32, %42
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1960
  br i1 %exitcond.not, label %._crit_edge, label %32, !llvm.loop !14

46:                                               ; preds = %43, %24
  %.pn43 = phi { ptr, i32 } [ %44, %43 ], [ %25, %24 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %6) #6
  br label %47

47:                                               ; preds = %46, %22
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %46 ], [ %23, %22 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1960, ptr nonnull %5) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  br label %105

._crit_edge:                                      ; preds = %45
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 1960, ptr nonnull %5) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %48 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !16, !noundef !17
  %49 = xor i8 %48, 1
  %not.41 = zext nneg i8 %49 to i32
  %50 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %51 = add nsw i32 %50, %not.41
  store i32 %51, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %52 = zext nneg i8 %48 to i32
  %53 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %54 = add nsw i32 %53, %52
  store i32 %54, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %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, ptr noundef nonnull @.str.6)
          to label %.lr.ph50 unwind label %20

.lr.ph50:                                         ; preds = %._crit_edge
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  call void @_ZN6tflite18MicroErrorReporterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.start.p0(i64 1960, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  invoke void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17) %10, i32 noundef 1960, ptr noundef nonnull %9)
          to label %57 unwind label %64

57:                                               ; preds = %.lr.ph50
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store i32 0, ptr %11, align 4, !tbaa !5
  %58 = invoke noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17) %10, ptr noundef nonnull %8, i32 noundef 4000, i32 noundef 4970, ptr noundef nonnull %11)
          to label %59 unwind label %66

59:                                               ; preds = %57
  %.not = icmp eq i32 %58, 0
  br i1 %.not, label %68, label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %62 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 57, i32 noundef 0, i32 noundef %58)
          to label %63 unwind label %66

63:                                               ; preds = %60
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %68

64:                                               ; preds = %.lr.ph50
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %89

66:                                               ; preds = %70, %60, %57
  %67 = landingpad { ptr, i32 }
          cleanup
  br label %88

68:                                               ; preds = %59, %63
  %69 = load i32, ptr %11, align 4, !tbaa !5
  %.not35 = icmp eq i32 %69, 49
  br i1 %.not35, label %.preheader, label %70

70:                                               ; preds = %68
  %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.4, ptr noundef nonnull @.str.3, i32 noundef 58, i32 noundef 49, i32 noundef %69)
          to label %73 unwind label %66

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

.preheader:                                       ; preds = %73, %68
  br label %74

74:                                               ; preds = %.preheader, %87
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %87 ], [ 0, %.preheader ]
  %75 = getelementptr inbounds [0 x i8], ptr @g_no_micro_f9643d42_nohash_4_data, i64 0, i64 %indvars.iv53
  %76 = load i8, ptr %75, align 1, !tbaa !13
  %77 = getelementptr inbounds [1960 x i8], ptr %9, i64 0, i64 %indvars.iv53
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %.not36 = icmp eq i8 %76, %78
  br i1 %.not36, label %87, label %79

79:                                               ; preds = %74
  %80 = zext i8 %78 to i32
  %81 = zext i8 %76 to i32
  %82 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %83 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %82, ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.3, i32 noundef 62, i32 noundef %81, i32 noundef %80)
          to label %84 unwind label %85

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

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

87:                                               ; preds = %74, %84
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next54, 1960
  br i1 %exitcond56.not, label %._crit_edge51, label %74, !llvm.loop !18

88:                                               ; preds = %85, %66
  %.pn = phi { ptr, i32 } [ %86, %85 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %10) #6
  br label %89

89:                                               ; preds = %88, %64
  %.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %65, %64 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1960, ptr nonnull %9) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %105

._crit_edge51:                                    ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 1960, ptr nonnull %9) #6
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %90 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !16, !noundef !17
  %91 = xor i8 %90, 1
  %not. = zext nneg i8 %91 to i32
  %92 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %93 = add nsw i32 %92, %not.
  store i32 %93, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %94 = zext nneg i8 %90 to i32
  %95 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %96 = add nsw i32 %95, %94
  store i32 %96, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %97 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %98 = add nsw i32 %96, %93
  %99 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %97, ptr noundef nonnull @.str.8, i32 noundef %93, i32 noundef %98)
          to label %.invoke unwind label %20

.invoke:                                          ; preds = %._crit_edge51
  %100 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %101 = icmp eq i32 %100, 0
  %102 = load ptr, ptr @_ZN10micro_test8reporterE, align 8, !tbaa !9
  %.str.9..str.10 = select i1 %101, ptr @.str.9, ptr @.str.10
  %103 = invoke noundef i32 (ptr, ptr, ...) @_ZN6tflite13ErrorReporter6ReportEPKcz(ptr noundef nonnull align 8 dereferenceable(8) %102, ptr noundef nonnull %.str.9..str.10)
          to label %104 unwind label %20

104:                                              ; preds = %.invoke
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  ret i32 0

105:                                              ; preds = %89, %47, %20
  %.pn43.pn.pn = phi { ptr, i32 } [ %.pn43.pn, %47 ], [ %.pn.pn, %89 ], [ %21, %20 ]
  call void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn43.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(...)

declare void @_ZN15FeatureProviderC1EiPh(ptr noundef nonnull align 8 dereferenceable(17), i32 noundef, ptr noundef) unnamed_addr #3

declare noundef i32 @_ZN15FeatureProvider19PopulateFeatureDataEPN6tflite13ErrorReporterEiiPi(ptr noundef nonnull align 8 dereferenceable(17), 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: nounwind
declare void @_ZN15FeatureProviderD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN6tflite13ErrorReporterD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #5 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 = { nounwind "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 = { 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 #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 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !15}


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