; LLVM IR from tensorflow/tflite-micro :: tensorflow/lite/micro/memory_planner (non_persistent_buffer_planner_shim_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.tflite::NonPersistentMemoryPlannerShim" = type <{ %"class.tflite::MicroMemoryPlanner", ptr, i32, [4 x i8] }>
%"class.tflite::MicroMemoryPlanner" = 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
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = 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::NonPersistentMemoryPlannerShim", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %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 i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i8, align 1
  %29 = alloca i8, align 1
  %30 = alloca i32, align 4
  %31 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i8, align 1
  %36 = alloca i8, align 1
  %37 = alloca i32, align 4
  %38 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i8, align 1
  %42 = alloca i8, align 1
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i8, align 1
  %47 = alloca i8, align 1
  %48 = alloca i32, align 4
  %49 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i8, align 1
  %53 = alloca i8, align 1
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i8, align 1
  %58 = alloca i8, align 1
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca i8, align 1
  %63 = alloca i8, align 1
  %64 = alloca i32, align 4
  %65 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %66 = alloca i64, align 8
  %67 = alloca i64, align 8
  %68 = alloca i8, align 1
  %69 = alloca i8, align 1
  %70 = alloca i64, align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  store i32 0, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  store i32 0, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void @_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 %71

71:                                               ; preds = %332, %2
  %72 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %73 = trunc i8 %72 to i1
  %74 = xor i1 %73, true
  br i1 %74, label %75, label %348

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  %76 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %6, ptr noundef %76)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 -1, ptr %7, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %78 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef 0, ptr noundef %7)
          to label %79 unwind label %108

79:                                               ; preds = %77
  store i32 %78, ptr %9, align 4, !tbaa !15
  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
  %80 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %117

82:                                               ; preds = %79
  %83 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %84 = trunc i8 %83 to i1
  br i1 %84, label %85, label %117

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %86 = load i32, ptr %8, align 4, !tbaa !15
  %87 = load i32, ptr %9, align 4, !tbaa !15
  %88 = icmp sgt i32 %86, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %85
  %90 = load i32, ptr %8, align 4, !tbaa !15
  %91 = load i32, ptr %9, align 4, !tbaa !15
  %92 = sub nsw i32 %90, %91
  br label %97

93:                                               ; preds = %85
  %94 = load i32, ptr %9, align 4, !tbaa !15
  %95 = load i32, ptr %8, align 4, !tbaa !15
  %96 = sub nsw i32 %94, %95
  br label %97

97:                                               ; preds = %93, %89
  %98 = phi i32 [ %92, %89 ], [ %96, %93 ]
  store i32 %98, ptr %14, align 4, !tbaa !5
  %99 = load i32, ptr %14, align 4, !tbaa !5
  %100 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %101 = icmp sgt i32 %99, %100
  br i1 %101, label %102, label %116

102:                                              ; preds = %97
  %103 = load i32, ptr %8, align 4, !tbaa !15
  %104 = uitofp i32 %103 to double
  %105 = load i32, ptr %9, align 4, !tbaa !15
  %106 = uitofp i32 %105 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 55, double noundef %104, double noundef %106)
          to label %107 unwind label %112

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

108:                                              ; preds = %77
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %10, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %11, align 4
  br label %173

112:                                              ; preds = %102
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %10, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %172

116:                                              ; preds = %107, %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %139

117:                                              ; preds = %82, %79
  %118 = load i32, ptr %8, align 4, !tbaa !15
  %119 = load i32, ptr %9, align 4, !tbaa !15
  %120 = icmp ne i32 %118, %119
  br i1 %120, label %121, label %138

121:                                              ; preds = %117
  %122 = load i32, ptr %8, align 4, !tbaa !15
  %123 = load i32, ptr %9, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.3, ptr noundef @.str.2, i32 noundef 55, i32 noundef %122, i32 noundef %123)
          to label %124 unwind label %133

124:                                              ; preds = %121
  %125 = load i8, ptr %12, align 1, !tbaa !11, !range !13, !noundef !14
  %126 = trunc i8 %125 to i1
  br i1 %126, label %130, label %127

127:                                              ; preds = %124
  %128 = load i8, ptr %13, align 1, !tbaa !11, !range !13, !noundef !14
  %129 = trunc i8 %128 to i1
  br i1 %129, label %130, label %137

130:                                              ; preds = %127, %124
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %131 unwind label %133

131:                                              ; preds = %130
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %132 unwind label %133

132:                                              ; preds = %131
  br label %137

133:                                              ; preds = %131, %130, %121
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %10, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %11, align 4
  br label %172

137:                                              ; preds = %132, %127
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %138

138:                                              ; preds = %137, %117
  br label %139

139:                                              ; preds = %138, %116
  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 %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %143 = load i32, ptr %7, align 4, !tbaa !5
  store i32 %143, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  store i8 0, ptr %17, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 0, ptr %18, align 1, !tbaa !11
  %144 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %145 = trunc i8 %144 to i1
  br i1 %145, label %146, label %179

146:                                              ; preds = %142
  %147 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %148 = trunc i8 %147 to i1
  br i1 %148, label %149, label %179

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %150 = load i32, ptr %15, align 4, !tbaa !5
  %151 = load i32, ptr %16, align 4, !tbaa !5
  %152 = icmp sgt i32 %150, %151
  br i1 %152, label %153, label %157

153:                                              ; preds = %149
  %154 = load i32, ptr %15, align 4, !tbaa !5
  %155 = load i32, ptr %16, align 4, !tbaa !5
  %156 = sub nsw i32 %154, %155
  br label %161

157:                                              ; preds = %149
  %158 = load i32, ptr %16, align 4, !tbaa !5
  %159 = load i32, ptr %15, align 4, !tbaa !5
  %160 = sub nsw i32 %158, %159
  br label %161

161:                                              ; preds = %157, %153
  %162 = phi i32 [ %156, %153 ], [ %160, %157 ]
  store i32 %162, ptr %19, align 4, !tbaa !5
  %163 = load i32, ptr %19, align 4, !tbaa !5
  %164 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %165 = icmp sgt i32 %163, %164
  br i1 %165, label %166, label %178

166:                                              ; preds = %161
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = sitofp i32 %167 to double
  %169 = load i32, ptr %16, align 4, !tbaa !5
  %170 = sitofp i32 %169 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.6, ptr noundef @.str.2, i32 noundef 56, double noundef %168, double noundef %170)
          to label %171 unwind label %174

171:                                              ; preds = %166
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %178

172:                                              ; preds = %133, %112
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #6
  br label %173

173:                                              ; preds = %172, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %347

174:                                              ; preds = %166
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %10, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %235

178:                                              ; preds = %171, %161
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %201

179:                                              ; preds = %146, %142
  %180 = load i32, ptr %15, align 4, !tbaa !5
  %181 = load i32, ptr %16, align 4, !tbaa !5
  %182 = icmp ne i32 %180, %181
  br i1 %182, label %183, label %200

183:                                              ; preds = %179
  %184 = load i32, ptr %15, align 4, !tbaa !5
  %185 = load i32, ptr %16, align 4, !tbaa !5
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.7, ptr noundef @.str.2, i32 noundef 56, i32 noundef %184, i32 noundef %185)
          to label %186 unwind label %195

186:                                              ; preds = %183
  %187 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %188 = trunc i8 %187 to i1
  br i1 %188, label %192, label %189

189:                                              ; preds = %186
  %190 = load i8, ptr %18, align 1, !tbaa !11, !range !13, !noundef !14
  %191 = trunc i8 %190 to i1
  br i1 %191, label %192, label %199

192:                                              ; preds = %189, %186
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %193 unwind label %195

193:                                              ; preds = %192
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %194 unwind label %195

194:                                              ; preds = %193
  br label %199

195:                                              ; preds = %193, %192, %183
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %10, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %11, align 4
  br label %235

199:                                              ; preds = %194, %189
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %200

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

201:                                              ; preds = %200, %178
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 -1, ptr %20, align 4, !tbaa !5
  br label %204

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store i32 0, ptr %21, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %205 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %6, i32 noundef 1, ptr noundef %20)
          to label %206 unwind label %236

206:                                              ; preds = %204
  store i32 %205, ptr %22, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  store i8 0, ptr %23, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  store i8 0, ptr %24, align 1, !tbaa !11
  %207 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %208 = trunc i8 %207 to i1
  br i1 %208, label %209, label %245

209:                                              ; preds = %206
  %210 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %211 = trunc i8 %210 to i1
  br i1 %211, label %212, label %245

212:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %213 = load i32, ptr %21, align 4, !tbaa !15
  %214 = load i32, ptr %22, align 4, !tbaa !15
  %215 = icmp sgt i32 %213, %214
  br i1 %215, label %216, label %220

216:                                              ; preds = %212
  %217 = load i32, ptr %21, align 4, !tbaa !15
  %218 = load i32, ptr %22, align 4, !tbaa !15
  %219 = sub nsw i32 %217, %218
  br label %224

220:                                              ; preds = %212
  %221 = load i32, ptr %22, align 4, !tbaa !15
  %222 = load i32, ptr %21, align 4, !tbaa !15
  %223 = sub nsw i32 %221, %222
  br label %224

224:                                              ; preds = %220, %216
  %225 = phi i32 [ %219, %216 ], [ %223, %220 ]
  store i32 %225, ptr %25, align 4, !tbaa !5
  %226 = load i32, ptr %25, align 4, !tbaa !5
  %227 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %228 = icmp sgt i32 %226, %227
  br i1 %228, label %229, label %244

229:                                              ; preds = %224
  %230 = load i32, ptr %21, align 4, !tbaa !15
  %231 = uitofp i32 %230 to double
  %232 = load i32, ptr %22, align 4, !tbaa !15
  %233 = uitofp i32 %232 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.8, ptr noundef @.str.2, i32 noundef 59, double noundef %231, double noundef %233)
          to label %234 unwind label %240

234:                                              ; preds = %229
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %244

235:                                              ; preds = %195, %174
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %347

236:                                              ; preds = %204
  %237 = landingpad { ptr, i32 }
          cleanup
  %238 = extractvalue { ptr, i32 } %237, 0
  store ptr %238, ptr %10, align 8
  %239 = extractvalue { ptr, i32 } %237, 1
  store i32 %239, ptr %11, align 4
  br label %301

240:                                              ; preds = %229
  %241 = landingpad { ptr, i32 }
          cleanup
  %242 = extractvalue { ptr, i32 } %241, 0
  store ptr %242, ptr %10, align 8
  %243 = extractvalue { ptr, i32 } %241, 1
  store i32 %243, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %300

244:                                              ; preds = %234, %224
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %267

245:                                              ; preds = %209, %206
  %246 = load i32, ptr %21, align 4, !tbaa !15
  %247 = load i32, ptr %22, align 4, !tbaa !15
  %248 = icmp ne i32 %246, %247
  br i1 %248, label %249, label %266

249:                                              ; preds = %245
  %250 = load i32, ptr %21, align 4, !tbaa !15
  %251 = load i32, ptr %22, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.9, ptr noundef @.str.2, i32 noundef 59, i32 noundef %250, i32 noundef %251)
          to label %252 unwind label %261

252:                                              ; preds = %249
  %253 = load i8, ptr %23, align 1, !tbaa !11, !range !13, !noundef !14
  %254 = trunc i8 %253 to i1
  br i1 %254, label %258, label %255

255:                                              ; preds = %252
  %256 = load i8, ptr %24, align 1, !tbaa !11, !range !13, !noundef !14
  %257 = trunc i8 %256 to i1
  br i1 %257, label %258, label %265

258:                                              ; preds = %255, %252
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %259 unwind label %261

259:                                              ; preds = %258
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %260 unwind label %261

260:                                              ; preds = %259
  br label %265

261:                                              ; preds = %259, %258, %249
  %262 = landingpad { ptr, i32 }
          cleanup
  %263 = extractvalue { ptr, i32 } %262, 0
  store ptr %263, ptr %10, align 8
  %264 = extractvalue { ptr, i32 } %262, 1
  store i32 %264, ptr %11, align 4
  br label %300

265:                                              ; preds = %260, %255
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %266

266:                                              ; preds = %265, %245
  br label %267

267:                                              ; preds = %266, %244
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %268

268:                                              ; preds = %267
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 10, ptr %26, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %271 = load i32, ptr %20, align 4, !tbaa !5
  store i32 %271, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  store i8 0, ptr %28, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #6
  store i8 0, ptr %29, align 1, !tbaa !11
  %272 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %273 = trunc i8 %272 to i1
  br i1 %273, label %274, label %307

274:                                              ; preds = %270
  %275 = load i8, ptr %29, align 1, !tbaa !11, !range !13, !noundef !14
  %276 = trunc i8 %275 to i1
  br i1 %276, label %277, label %307

277:                                              ; preds = %274
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %278 = load i32, ptr %26, align 4, !tbaa !5
  %279 = load i32, ptr %27, align 4, !tbaa !5
  %280 = icmp sgt i32 %278, %279
  br i1 %280, label %281, label %285

281:                                              ; preds = %277
  %282 = load i32, ptr %26, align 4, !tbaa !5
  %283 = load i32, ptr %27, align 4, !tbaa !5
  %284 = sub nsw i32 %282, %283
  br label %289

285:                                              ; preds = %277
  %286 = load i32, ptr %27, align 4, !tbaa !5
  %287 = load i32, ptr %26, align 4, !tbaa !5
  %288 = sub nsw i32 %286, %287
  br label %289

289:                                              ; preds = %285, %281
  %290 = phi i32 [ %284, %281 ], [ %288, %285 ]
  store i32 %290, ptr %30, align 4, !tbaa !5
  %291 = load i32, ptr %30, align 4, !tbaa !5
  %292 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %293 = icmp sgt i32 %291, %292
  br i1 %293, label %294, label %306

294:                                              ; preds = %289
  %295 = load i32, ptr %26, align 4, !tbaa !5
  %296 = sitofp i32 %295 to double
  %297 = load i32, ptr %27, align 4, !tbaa !5
  %298 = sitofp i32 %297 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.10, ptr noundef @.str.2, i32 noundef 60, double noundef %296, double noundef %298)
          to label %299 unwind label %302

299:                                              ; preds = %294
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %306

300:                                              ; preds = %261, %240
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  br label %301

301:                                              ; preds = %300, %236
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %346

302:                                              ; preds = %294
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %10, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %345

306:                                              ; preds = %299, %289
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %329

307:                                              ; preds = %274, %270
  %308 = load i32, ptr %26, align 4, !tbaa !5
  %309 = load i32, ptr %27, align 4, !tbaa !5
  %310 = icmp ne i32 %308, %309
  br i1 %310, label %311, label %328

311:                                              ; preds = %307
  %312 = load i32, ptr %26, align 4, !tbaa !5
  %313 = load i32, ptr %27, align 4, !tbaa !5
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.11, ptr noundef @.str.2, i32 noundef 60, i32 noundef %312, i32 noundef %313)
          to label %314 unwind label %323

314:                                              ; preds = %311
  %315 = load i8, ptr %28, align 1, !tbaa !11, !range !13, !noundef !14
  %316 = trunc i8 %315 to i1
  br i1 %316, label %320, label %317

317:                                              ; preds = %314
  %318 = load i8, ptr %29, align 1, !tbaa !11, !range !13, !noundef !14
  %319 = trunc i8 %318 to i1
  br i1 %319, label %320, label %327

320:                                              ; preds = %317, %314
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %321 unwind label %323

321:                                              ; preds = %320
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %322 unwind label %323

322:                                              ; preds = %321
  br label %327

323:                                              ; preds = %321, %320, %311
  %324 = landingpad { ptr, i32 }
          cleanup
  %325 = extractvalue { ptr, i32 } %324, 0
  store ptr %325, ptr %10, align 8
  %326 = extractvalue { ptr, i32 } %324, 1
  store i32 %326, ptr %11, align 4
  br label %345

327:                                              ; preds = %322, %317
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %328

328:                                              ; preds = %327, %307
  br label %329

329:                                              ; preds = %328, %306
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %330

330:                                              ; preds = %329
  br label %331

331:                                              ; preds = %330
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %332

332:                                              ; preds = %331
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %333 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %334 = trunc i8 %333 to i1
  %335 = zext i1 %334 to i64
  %336 = select i1 %334, i32 0, i32 1
  %337 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %338 = add nsw i32 %337, %336
  store i32 %338, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %339 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %340 = trunc i8 %339 to i1
  %341 = zext i1 %340 to i64
  %342 = select i1 %340, i32 1, i32 0
  %343 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %344 = add nsw i32 %343, %342
  store i32 %344, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %71, !llvm.loop !17

345:                                              ; preds = %323, %302
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %346

346:                                              ; preds = %345, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  br label %347

347:                                              ; preds = %346, %235, %173
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %912

348:                                              ; preds = %71
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.12)
  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 %349

349:                                              ; preds = %420, %348
  %350 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %351 = trunc i8 %350 to i1
  %352 = xor i1 %351, true
  br i1 %352, label %353, label %435

353:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 24, ptr %31) #6
  %354 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %31, ptr noundef %354)
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 -1, ptr %32, align 4, !tbaa !5
  br label %355

355:                                              ; preds = %353
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 1, ptr %33, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %356 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %31, i32 noundef 2, ptr noundef %32)
          to label %357 unwind label %386

357:                                              ; preds = %355
  store i32 %356, ptr %34, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %35) #6
  store i8 0, ptr %35, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %36) #6
  store i8 0, ptr %36, align 1, !tbaa !11
  %358 = load i8, ptr %35, align 1, !tbaa !11, !range !13, !noundef !14
  %359 = trunc i8 %358 to i1
  br i1 %359, label %360, label %395

360:                                              ; preds = %357
  %361 = load i8, ptr %36, align 1, !tbaa !11, !range !13, !noundef !14
  %362 = trunc i8 %361 to i1
  br i1 %362, label %363, label %395

363:                                              ; preds = %360
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %364 = load i32, ptr %33, align 4, !tbaa !15
  %365 = load i32, ptr %34, align 4, !tbaa !15
  %366 = icmp sgt i32 %364, %365
  br i1 %366, label %367, label %371

367:                                              ; preds = %363
  %368 = load i32, ptr %33, align 4, !tbaa !15
  %369 = load i32, ptr %34, align 4, !tbaa !15
  %370 = sub nsw i32 %368, %369
  br label %375

371:                                              ; preds = %363
  %372 = load i32, ptr %34, align 4, !tbaa !15
  %373 = load i32, ptr %33, align 4, !tbaa !15
  %374 = sub nsw i32 %372, %373
  br label %375

375:                                              ; preds = %371, %367
  %376 = phi i32 [ %370, %367 ], [ %374, %371 ]
  store i32 %376, ptr %37, align 4, !tbaa !5
  %377 = load i32, ptr %37, align 4, !tbaa !5
  %378 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %379 = icmp sgt i32 %377, %378
  br i1 %379, label %380, label %394

380:                                              ; preds = %375
  %381 = load i32, ptr %33, align 4, !tbaa !15
  %382 = uitofp i32 %381 to double
  %383 = load i32, ptr %34, align 4, !tbaa !15
  %384 = uitofp i32 %383 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.13, ptr noundef @.str.2, i32 noundef 68, double noundef %382, double noundef %384)
          to label %385 unwind label %390

385:                                              ; preds = %380
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %394

386:                                              ; preds = %355
  %387 = landingpad { ptr, i32 }
          cleanup
  %388 = extractvalue { ptr, i32 } %387, 0
  store ptr %388, ptr %10, align 8
  %389 = extractvalue { ptr, i32 } %387, 1
  store i32 %389, ptr %11, align 4
  br label %434

390:                                              ; preds = %380
  %391 = landingpad { ptr, i32 }
          cleanup
  %392 = extractvalue { ptr, i32 } %391, 0
  store ptr %392, ptr %10, align 8
  %393 = extractvalue { ptr, i32 } %391, 1
  store i32 %393, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %433

394:                                              ; preds = %385, %375
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  br label %417

395:                                              ; preds = %360, %357
  %396 = load i32, ptr %33, align 4, !tbaa !15
  %397 = load i32, ptr %34, align 4, !tbaa !15
  %398 = icmp ne i32 %396, %397
  br i1 %398, label %399, label %416

399:                                              ; preds = %395
  %400 = load i32, ptr %33, align 4, !tbaa !15
  %401 = load i32, ptr %34, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.14, ptr noundef @.str.2, i32 noundef 68, i32 noundef %400, i32 noundef %401)
          to label %402 unwind label %411

402:                                              ; preds = %399
  %403 = load i8, ptr %35, align 1, !tbaa !11, !range !13, !noundef !14
  %404 = trunc i8 %403 to i1
  br i1 %404, label %408, label %405

405:                                              ; preds = %402
  %406 = load i8, ptr %36, align 1, !tbaa !11, !range !13, !noundef !14
  %407 = trunc i8 %406 to i1
  br i1 %407, label %408, label %415

408:                                              ; preds = %405, %402
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %409 unwind label %411

409:                                              ; preds = %408
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %410 unwind label %411

410:                                              ; preds = %409
  br label %415

411:                                              ; preds = %409, %408, %399
  %412 = landingpad { ptr, i32 }
          cleanup
  %413 = extractvalue { ptr, i32 } %412, 0
  store ptr %413, ptr %10, align 8
  %414 = extractvalue { ptr, i32 } %412, 1
  store i32 %414, ptr %11, align 4
  br label %433

415:                                              ; preds = %410, %405
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %416

416:                                              ; preds = %415, %395
  br label %417

417:                                              ; preds = %416, %394
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %418

418:                                              ; preds = %417
  br label %419

419:                                              ; preds = %418
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %420

420:                                              ; preds = %419
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %421 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %422 = trunc i8 %421 to i1
  %423 = zext i1 %422 to i64
  %424 = select i1 %422, i32 0, i32 1
  %425 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %426 = add nsw i32 %425, %424
  store i32 %426, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %427 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %428 = trunc i8 %427 to i1
  %429 = zext i1 %428 to i64
  %430 = select i1 %428, i32 1, i32 0
  %431 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %432 = add nsw i32 %431, %430
  store i32 %432, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %349, !llvm.loop !19

433:                                              ; preds = %411, %390
  call void @llvm.lifetime.end.p0(i64 1, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %35) #6
  br label %434

434:                                              ; preds = %433, %386
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %31) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %31) #6
  br label %912

435:                                              ; preds = %349
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.15)
  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 %436

436:                                              ; preds = %574, %435
  %437 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %438 = trunc i8 %437 to i1
  %439 = xor i1 %438, true
  br i1 %439, label %440, label %590

440:                                              ; preds = %436
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #6
  %441 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %38, ptr noundef %441)
  br label %442

442:                                              ; preds = %440
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #6
  store i32 0, ptr %39, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %443 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %38, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %444 unwind label %473

444:                                              ; preds = %442
  store i32 %443, ptr %40, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %41) #6
  store i8 0, ptr %41, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %42) #6
  store i8 0, ptr %42, align 1, !tbaa !11
  %445 = load i8, ptr %41, align 1, !tbaa !11, !range !13, !noundef !14
  %446 = trunc i8 %445 to i1
  br i1 %446, label %447, label %482

447:                                              ; preds = %444
  %448 = load i8, ptr %42, align 1, !tbaa !11, !range !13, !noundef !14
  %449 = trunc i8 %448 to i1
  br i1 %449, label %450, label %482

450:                                              ; preds = %447
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %451 = load i32, ptr %39, align 4, !tbaa !15
  %452 = load i32, ptr %40, align 4, !tbaa !15
  %453 = icmp sgt i32 %451, %452
  br i1 %453, label %454, label %458

454:                                              ; preds = %450
  %455 = load i32, ptr %39, align 4, !tbaa !15
  %456 = load i32, ptr %40, align 4, !tbaa !15
  %457 = sub nsw i32 %455, %456
  br label %462

458:                                              ; preds = %450
  %459 = load i32, ptr %40, align 4, !tbaa !15
  %460 = load i32, ptr %39, align 4, !tbaa !15
  %461 = sub nsw i32 %459, %460
  br label %462

462:                                              ; preds = %458, %454
  %463 = phi i32 [ %457, %454 ], [ %461, %458 ]
  store i32 %463, ptr %43, align 4, !tbaa !5
  %464 = load i32, ptr %43, align 4, !tbaa !5
  %465 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %466 = icmp sgt i32 %464, %465
  br i1 %466, label %467, label %481

467:                                              ; preds = %462
  %468 = load i32, ptr %39, align 4, !tbaa !15
  %469 = uitofp i32 %468 to double
  %470 = load i32, ptr %40, align 4, !tbaa !15
  %471 = uitofp i32 %470 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.16, ptr noundef @.str.2, i32 noundef 76, double noundef %469, double noundef %471)
          to label %472 unwind label %477

472:                                              ; preds = %467
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %481

473:                                              ; preds = %442
  %474 = landingpad { ptr, i32 }
          cleanup
  %475 = extractvalue { ptr, i32 } %474, 0
  store ptr %475, ptr %10, align 8
  %476 = extractvalue { ptr, i32 } %474, 1
  store i32 %476, ptr %11, align 4
  br label %539

477:                                              ; preds = %467
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %10, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %538

481:                                              ; preds = %472, %462
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  br label %504

482:                                              ; preds = %447, %444
  %483 = load i32, ptr %39, align 4, !tbaa !15
  %484 = load i32, ptr %40, align 4, !tbaa !15
  %485 = icmp ne i32 %483, %484
  br i1 %485, label %486, label %503

486:                                              ; preds = %482
  %487 = load i32, ptr %39, align 4, !tbaa !15
  %488 = load i32, ptr %40, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.17, ptr noundef @.str.2, i32 noundef 76, i32 noundef %487, i32 noundef %488)
          to label %489 unwind label %498

489:                                              ; preds = %486
  %490 = load i8, ptr %41, align 1, !tbaa !11, !range !13, !noundef !14
  %491 = trunc i8 %490 to i1
  br i1 %491, label %495, label %492

492:                                              ; preds = %489
  %493 = load i8, ptr %42, align 1, !tbaa !11, !range !13, !noundef !14
  %494 = trunc i8 %493 to i1
  br i1 %494, label %495, label %502

495:                                              ; preds = %492, %489
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %496 unwind label %498

496:                                              ; preds = %495
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %497 unwind label %498

497:                                              ; preds = %496
  br label %502

498:                                              ; preds = %496, %495, %486
  %499 = landingpad { ptr, i32 }
          cleanup
  %500 = extractvalue { ptr, i32 } %499, 0
  store ptr %500, ptr %10, align 8
  %501 = extractvalue { ptr, i32 } %499, 1
  store i32 %501, ptr %11, align 4
  br label %538

502:                                              ; preds = %497, %492
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %503

503:                                              ; preds = %502, %482
  br label %504

504:                                              ; preds = %503, %481
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %505

505:                                              ; preds = %504
  br label %506

506:                                              ; preds = %505
  br label %507

507:                                              ; preds = %506
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #6
  store i32 0, ptr %44, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #6
  %508 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %38, i32 noundef 20, i32 noundef 0, i32 noundef 1)
          to label %509 unwind label %540

509:                                              ; preds = %507
  store i32 %508, ptr %45, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #6
  store i8 0, ptr %46, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %47) #6
  store i8 0, ptr %47, align 1, !tbaa !11
  %510 = load i8, ptr %46, align 1, !tbaa !11, !range !13, !noundef !14
  %511 = trunc i8 %510 to i1
  br i1 %511, label %512, label %549

512:                                              ; preds = %509
  %513 = load i8, ptr %47, align 1, !tbaa !11, !range !13, !noundef !14
  %514 = trunc i8 %513 to i1
  br i1 %514, label %515, label %549

515:                                              ; preds = %512
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #6
  %516 = load i32, ptr %44, align 4, !tbaa !15
  %517 = load i32, ptr %45, align 4, !tbaa !15
  %518 = icmp sgt i32 %516, %517
  br i1 %518, label %519, label %523

519:                                              ; preds = %515
  %520 = load i32, ptr %44, align 4, !tbaa !15
  %521 = load i32, ptr %45, align 4, !tbaa !15
  %522 = sub nsw i32 %520, %521
  br label %527

523:                                              ; preds = %515
  %524 = load i32, ptr %45, align 4, !tbaa !15
  %525 = load i32, ptr %44, align 4, !tbaa !15
  %526 = sub nsw i32 %524, %525
  br label %527

527:                                              ; preds = %523, %519
  %528 = phi i32 [ %522, %519 ], [ %526, %523 ]
  store i32 %528, ptr %48, align 4, !tbaa !5
  %529 = load i32, ptr %48, align 4, !tbaa !5
  %530 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %531 = icmp sgt i32 %529, %530
  br i1 %531, label %532, label %548

532:                                              ; preds = %527
  %533 = load i32, ptr %44, align 4, !tbaa !15
  %534 = uitofp i32 %533 to double
  %535 = load i32, ptr %45, align 4, !tbaa !15
  %536 = uitofp i32 %535 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.18, ptr noundef @.str.2, i32 noundef 79, double noundef %534, double noundef %536)
          to label %537 unwind label %544

537:                                              ; preds = %532
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %548

538:                                              ; preds = %498, %477
  call void @llvm.lifetime.end.p0(i64 1, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %41) #6
  br label %539

539:                                              ; preds = %538, %473
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #6
  br label %589

540:                                              ; preds = %507
  %541 = landingpad { ptr, i32 }
          cleanup
  %542 = extractvalue { ptr, i32 } %541, 0
  store ptr %542, ptr %10, align 8
  %543 = extractvalue { ptr, i32 } %541, 1
  store i32 %543, ptr %11, align 4
  br label %588

544:                                              ; preds = %532
  %545 = landingpad { ptr, i32 }
          cleanup
  %546 = extractvalue { ptr, i32 } %545, 0
  store ptr %546, ptr %10, align 8
  %547 = extractvalue { ptr, i32 } %545, 1
  store i32 %547, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  br label %587

548:                                              ; preds = %537, %527
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #6
  br label %571

549:                                              ; preds = %512, %509
  %550 = load i32, ptr %44, align 4, !tbaa !15
  %551 = load i32, ptr %45, align 4, !tbaa !15
  %552 = icmp ne i32 %550, %551
  br i1 %552, label %553, label %570

553:                                              ; preds = %549
  %554 = load i32, ptr %44, align 4, !tbaa !15
  %555 = load i32, ptr %45, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef 79, i32 noundef %554, i32 noundef %555)
          to label %556 unwind label %565

556:                                              ; preds = %553
  %557 = load i8, ptr %46, align 1, !tbaa !11, !range !13, !noundef !14
  %558 = trunc i8 %557 to i1
  br i1 %558, label %562, label %559

559:                                              ; preds = %556
  %560 = load i8, ptr %47, align 1, !tbaa !11, !range !13, !noundef !14
  %561 = trunc i8 %560 to i1
  br i1 %561, label %562, label %569

562:                                              ; preds = %559, %556
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %563 unwind label %565

563:                                              ; preds = %562
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %564 unwind label %565

564:                                              ; preds = %563
  br label %569

565:                                              ; preds = %563, %562, %553
  %566 = landingpad { ptr, i32 }
          cleanup
  %567 = extractvalue { ptr, i32 } %566, 0
  store ptr %567, ptr %10, align 8
  %568 = extractvalue { ptr, i32 } %566, 1
  store i32 %568, ptr %11, align 4
  br label %587

569:                                              ; preds = %564, %559
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %570

570:                                              ; preds = %569, %549
  br label %571

571:                                              ; preds = %570, %548
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %572

572:                                              ; preds = %571
  br label %573

573:                                              ; preds = %572
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  br label %574

574:                                              ; preds = %573
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %575 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %576 = trunc i8 %575 to i1
  %577 = zext i1 %576 to i64
  %578 = select i1 %576, i32 0, i32 1
  %579 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %580 = add nsw i32 %579, %578
  store i32 %580, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %581 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %582 = trunc i8 %581 to i1
  %583 = zext i1 %582 to i64
  %584 = select i1 %582, i32 1, i32 0
  %585 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %586 = add nsw i32 %585, %584
  store i32 %586, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %436, !llvm.loop !20

587:                                              ; preds = %565, %544
  call void @llvm.lifetime.end.p0(i64 1, ptr %47) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  br label %588

588:                                              ; preds = %587, %540
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #6
  br label %589

589:                                              ; preds = %588, %539
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %38) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #6
  br label %912

590:                                              ; preds = %436
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.20)
  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 %591

591:                                              ; preds = %796, %590
  %592 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %593 = trunc i8 %592 to i1
  %594 = xor i1 %593, true
  br i1 %594, label %595, label %812

595:                                              ; preds = %591
  call void @llvm.lifetime.start.p0(i64 24, ptr %49) #6
  %596 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %49, ptr noundef %596)
  br label %597

597:                                              ; preds = %595
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #6
  store i32 0, ptr %50, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #6
  %598 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %49, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %599 unwind label %628

599:                                              ; preds = %597
  store i32 %598, ptr %51, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %52) #6
  store i8 0, ptr %52, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %53) #6
  store i8 0, ptr %53, align 1, !tbaa !11
  %600 = load i8, ptr %52, align 1, !tbaa !11, !range !13, !noundef !14
  %601 = trunc i8 %600 to i1
  br i1 %601, label %602, label %637

602:                                              ; preds = %599
  %603 = load i8, ptr %53, align 1, !tbaa !11, !range !13, !noundef !14
  %604 = trunc i8 %603 to i1
  br i1 %604, label %605, label %637

605:                                              ; preds = %602
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #6
  %606 = load i32, ptr %50, align 4, !tbaa !15
  %607 = load i32, ptr %51, align 4, !tbaa !15
  %608 = icmp sgt i32 %606, %607
  br i1 %608, label %609, label %613

609:                                              ; preds = %605
  %610 = load i32, ptr %50, align 4, !tbaa !15
  %611 = load i32, ptr %51, align 4, !tbaa !15
  %612 = sub nsw i32 %610, %611
  br label %617

613:                                              ; preds = %605
  %614 = load i32, ptr %51, align 4, !tbaa !15
  %615 = load i32, ptr %50, align 4, !tbaa !15
  %616 = sub nsw i32 %614, %615
  br label %617

617:                                              ; preds = %613, %609
  %618 = phi i32 [ %612, %609 ], [ %616, %613 ]
  store i32 %618, ptr %54, align 4, !tbaa !5
  %619 = load i32, ptr %54, align 4, !tbaa !5
  %620 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %621 = icmp sgt i32 %619, %620
  br i1 %621, label %622, label %636

622:                                              ; preds = %617
  %623 = load i32, ptr %50, align 4, !tbaa !15
  %624 = uitofp i32 %623 to double
  %625 = load i32, ptr %51, align 4, !tbaa !15
  %626 = uitofp i32 %625 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.16, ptr noundef @.str.2, i32 noundef 87, double noundef %624, double noundef %626)
          to label %627 unwind label %632

627:                                              ; preds = %622
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %636

628:                                              ; preds = %597
  %629 = landingpad { ptr, i32 }
          cleanup
  %630 = extractvalue { ptr, i32 } %629, 0
  store ptr %630, ptr %10, align 8
  %631 = extractvalue { ptr, i32 } %629, 1
  store i32 %631, ptr %11, align 4
  br label %694

632:                                              ; preds = %622
  %633 = landingpad { ptr, i32 }
          cleanup
  %634 = extractvalue { ptr, i32 } %633, 0
  store ptr %634, ptr %10, align 8
  %635 = extractvalue { ptr, i32 } %633, 1
  store i32 %635, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %693

636:                                              ; preds = %627, %617
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #6
  br label %659

637:                                              ; preds = %602, %599
  %638 = load i32, ptr %50, align 4, !tbaa !15
  %639 = load i32, ptr %51, align 4, !tbaa !15
  %640 = icmp ne i32 %638, %639
  br i1 %640, label %641, label %658

641:                                              ; preds = %637
  %642 = load i32, ptr %50, align 4, !tbaa !15
  %643 = load i32, ptr %51, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.17, ptr noundef @.str.2, i32 noundef 87, i32 noundef %642, i32 noundef %643)
          to label %644 unwind label %653

644:                                              ; preds = %641
  %645 = load i8, ptr %52, align 1, !tbaa !11, !range !13, !noundef !14
  %646 = trunc i8 %645 to i1
  br i1 %646, label %650, label %647

647:                                              ; preds = %644
  %648 = load i8, ptr %53, align 1, !tbaa !11, !range !13, !noundef !14
  %649 = trunc i8 %648 to i1
  br i1 %649, label %650, label %657

650:                                              ; preds = %647, %644
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %651 unwind label %653

651:                                              ; preds = %650
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %652 unwind label %653

652:                                              ; preds = %651
  br label %657

653:                                              ; preds = %651, %650, %641
  %654 = landingpad { ptr, i32 }
          cleanup
  %655 = extractvalue { ptr, i32 } %654, 0
  store ptr %655, ptr %10, align 8
  %656 = extractvalue { ptr, i32 } %654, 1
  store i32 %656, ptr %11, align 4
  br label %693

657:                                              ; preds = %652, %647
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %658

658:                                              ; preds = %657, %637
  br label %659

659:                                              ; preds = %658, %636
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  br label %660

660:                                              ; preds = %659
  br label %661

661:                                              ; preds = %660
  br label %662

662:                                              ; preds = %661
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #6
  store i32 0, ptr %55, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #6
  %663 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %49, i32 noundef 20, i32 noundef 0, i32 noundef 1)
          to label %664 unwind label %695

664:                                              ; preds = %662
  store i32 %663, ptr %56, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %57) #6
  store i8 0, ptr %57, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #6
  store i8 0, ptr %58, align 1, !tbaa !11
  %665 = load i8, ptr %57, align 1, !tbaa !11, !range !13, !noundef !14
  %666 = trunc i8 %665 to i1
  br i1 %666, label %667, label %704

667:                                              ; preds = %664
  %668 = load i8, ptr %58, align 1, !tbaa !11, !range !13, !noundef !14
  %669 = trunc i8 %668 to i1
  br i1 %669, label %670, label %704

670:                                              ; preds = %667
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #6
  %671 = load i32, ptr %55, align 4, !tbaa !15
  %672 = load i32, ptr %56, align 4, !tbaa !15
  %673 = icmp sgt i32 %671, %672
  br i1 %673, label %674, label %678

674:                                              ; preds = %670
  %675 = load i32, ptr %55, align 4, !tbaa !15
  %676 = load i32, ptr %56, align 4, !tbaa !15
  %677 = sub nsw i32 %675, %676
  br label %682

678:                                              ; preds = %670
  %679 = load i32, ptr %56, align 4, !tbaa !15
  %680 = load i32, ptr %55, align 4, !tbaa !15
  %681 = sub nsw i32 %679, %680
  br label %682

682:                                              ; preds = %678, %674
  %683 = phi i32 [ %677, %674 ], [ %681, %678 ]
  store i32 %683, ptr %59, align 4, !tbaa !5
  %684 = load i32, ptr %59, align 4, !tbaa !5
  %685 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %686 = icmp sgt i32 %684, %685
  br i1 %686, label %687, label %703

687:                                              ; preds = %682
  %688 = load i32, ptr %55, align 4, !tbaa !15
  %689 = uitofp i32 %688 to double
  %690 = load i32, ptr %56, align 4, !tbaa !15
  %691 = uitofp i32 %690 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.18, ptr noundef @.str.2, i32 noundef 90, double noundef %689, double noundef %691)
          to label %692 unwind label %699

692:                                              ; preds = %687
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %703

693:                                              ; preds = %653, %632
  call void @llvm.lifetime.end.p0(i64 1, ptr %53) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %52) #6
  br label %694

694:                                              ; preds = %693, %628
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #6
  br label %811

695:                                              ; preds = %662
  %696 = landingpad { ptr, i32 }
          cleanup
  %697 = extractvalue { ptr, i32 } %696, 0
  store ptr %697, ptr %10, align 8
  %698 = extractvalue { ptr, i32 } %696, 1
  store i32 %698, ptr %11, align 4
  br label %761

699:                                              ; preds = %687
  %700 = landingpad { ptr, i32 }
          cleanup
  %701 = extractvalue { ptr, i32 } %700, 0
  store ptr %701, ptr %10, align 8
  %702 = extractvalue { ptr, i32 } %700, 1
  store i32 %702, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  br label %760

703:                                              ; preds = %692, %682
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #6
  br label %726

704:                                              ; preds = %667, %664
  %705 = load i32, ptr %55, align 4, !tbaa !15
  %706 = load i32, ptr %56, align 4, !tbaa !15
  %707 = icmp ne i32 %705, %706
  br i1 %707, label %708, label %725

708:                                              ; preds = %704
  %709 = load i32, ptr %55, align 4, !tbaa !15
  %710 = load i32, ptr %56, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.19, ptr noundef @.str.2, i32 noundef 90, i32 noundef %709, i32 noundef %710)
          to label %711 unwind label %720

711:                                              ; preds = %708
  %712 = load i8, ptr %57, align 1, !tbaa !11, !range !13, !noundef !14
  %713 = trunc i8 %712 to i1
  br i1 %713, label %717, label %714

714:                                              ; preds = %711
  %715 = load i8, ptr %58, align 1, !tbaa !11, !range !13, !noundef !14
  %716 = trunc i8 %715 to i1
  br i1 %716, label %717, label %724

717:                                              ; preds = %714, %711
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %718 unwind label %720

718:                                              ; preds = %717
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %719 unwind label %720

719:                                              ; preds = %718
  br label %724

720:                                              ; preds = %718, %717, %708
  %721 = landingpad { ptr, i32 }
          cleanup
  %722 = extractvalue { ptr, i32 } %721, 0
  store ptr %722, ptr %10, align 8
  %723 = extractvalue { ptr, i32 } %721, 1
  store i32 %723, ptr %11, align 4
  br label %760

724:                                              ; preds = %719, %714
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %725

725:                                              ; preds = %724, %704
  br label %726

726:                                              ; preds = %725, %703
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  br label %727

727:                                              ; preds = %726
  br label %728

728:                                              ; preds = %727
  br label %729

729:                                              ; preds = %728
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #6
  store i32 1, ptr %60, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #6
  %730 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %49, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %731 unwind label %762

731:                                              ; preds = %729
  store i32 %730, ptr %61, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %62) #6
  store i8 0, ptr %62, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %63) #6
  store i8 0, ptr %63, align 1, !tbaa !11
  %732 = load i8, ptr %62, align 1, !tbaa !11, !range !13, !noundef !14
  %733 = trunc i8 %732 to i1
  br i1 %733, label %734, label %771

734:                                              ; preds = %731
  %735 = load i8, ptr %63, align 1, !tbaa !11, !range !13, !noundef !14
  %736 = trunc i8 %735 to i1
  br i1 %736, label %737, label %771

737:                                              ; preds = %734
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #6
  %738 = load i32, ptr %60, align 4, !tbaa !15
  %739 = load i32, ptr %61, align 4, !tbaa !15
  %740 = icmp sgt i32 %738, %739
  br i1 %740, label %741, label %745

741:                                              ; preds = %737
  %742 = load i32, ptr %60, align 4, !tbaa !15
  %743 = load i32, ptr %61, align 4, !tbaa !15
  %744 = sub nsw i32 %742, %743
  br label %749

745:                                              ; preds = %737
  %746 = load i32, ptr %61, align 4, !tbaa !15
  %747 = load i32, ptr %60, align 4, !tbaa !15
  %748 = sub nsw i32 %746, %747
  br label %749

749:                                              ; preds = %745, %741
  %750 = phi i32 [ %744, %741 ], [ %748, %745 ]
  store i32 %750, ptr %64, align 4, !tbaa !5
  %751 = load i32, ptr %64, align 4, !tbaa !5
  %752 = call noundef i32 @_ZNSt14numeric_limitsIiE7epsilonEv() #6
  %753 = icmp sgt i32 %751, %752
  br i1 %753, label %754, label %770

754:                                              ; preds = %749
  %755 = load i32, ptr %60, align 4, !tbaa !15
  %756 = uitofp i32 %755 to double
  %757 = load i32, ptr %61, align 4, !tbaa !15
  %758 = uitofp i32 %757 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.21, ptr noundef @.str.2, i32 noundef 94, double noundef %756, double noundef %758)
          to label %759 unwind label %766

759:                                              ; preds = %754
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %770

760:                                              ; preds = %720, %699
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %57) #6
  br label %761

761:                                              ; preds = %760, %695
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #6
  br label %811

762:                                              ; preds = %729
  %763 = landingpad { ptr, i32 }
          cleanup
  %764 = extractvalue { ptr, i32 } %763, 0
  store ptr %764, ptr %10, align 8
  %765 = extractvalue { ptr, i32 } %763, 1
  store i32 %765, ptr %11, align 4
  br label %810

766:                                              ; preds = %754
  %767 = landingpad { ptr, i32 }
          cleanup
  %768 = extractvalue { ptr, i32 } %767, 0
  store ptr %768, ptr %10, align 8
  %769 = extractvalue { ptr, i32 } %767, 1
  store i32 %769, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #6
  br label %809

770:                                              ; preds = %759, %749
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #6
  br label %793

771:                                              ; preds = %734, %731
  %772 = load i32, ptr %60, align 4, !tbaa !15
  %773 = load i32, ptr %61, align 4, !tbaa !15
  %774 = icmp ne i32 %772, %773
  br i1 %774, label %775, label %792

775:                                              ; preds = %771
  %776 = load i32, ptr %60, align 4, !tbaa !15
  %777 = load i32, ptr %61, align 4, !tbaa !15
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.22, ptr noundef @.str.2, i32 noundef 94, i32 noundef %776, i32 noundef %777)
          to label %778 unwind label %787

778:                                              ; preds = %775
  %779 = load i8, ptr %62, align 1, !tbaa !11, !range !13, !noundef !14
  %780 = trunc i8 %779 to i1
  br i1 %780, label %784, label %781

781:                                              ; preds = %778
  %782 = load i8, ptr %63, align 1, !tbaa !11, !range !13, !noundef !14
  %783 = trunc i8 %782 to i1
  br i1 %783, label %784, label %791

784:                                              ; preds = %781, %778
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %785 unwind label %787

785:                                              ; preds = %784
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %786 unwind label %787

786:                                              ; preds = %785
  br label %791

787:                                              ; preds = %785, %784, %775
  %788 = landingpad { ptr, i32 }
          cleanup
  %789 = extractvalue { ptr, i32 } %788, 0
  store ptr %789, ptr %10, align 8
  %790 = extractvalue { ptr, i32 } %788, 1
  store i32 %790, ptr %11, align 4
  br label %809

791:                                              ; preds = %786, %781
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %792

792:                                              ; preds = %791, %771
  br label %793

793:                                              ; preds = %792, %770
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %62) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #6
  br label %794

794:                                              ; preds = %793
  br label %795

795:                                              ; preds = %794
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %49) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #6
  br label %796

796:                                              ; preds = %795
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %797 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %798 = trunc i8 %797 to i1
  %799 = zext i1 %798 to i64
  %800 = select i1 %798, i32 0, i32 1
  %801 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %802 = add nsw i32 %801, %800
  store i32 %802, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %803 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %804 = trunc i8 %803 to i1
  %805 = zext i1 %804 to i64
  %806 = select i1 %804, i32 1, i32 0
  %807 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %808 = add nsw i32 %807, %806
  store i32 %808, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %591, !llvm.loop !21

809:                                              ; preds = %787, %766
  call void @llvm.lifetime.end.p0(i64 1, ptr %63) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %62) #6
  br label %810

810:                                              ; preds = %809, %762
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #6
  br label %811

811:                                              ; preds = %810, %761, %694
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %49) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %49) #6
  br label %912

812:                                              ; preds = %591
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.23)
  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 %813

813:                                              ; preds = %886, %812
  %814 = load i8, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11, !range !13, !noundef !14
  %815 = trunc i8 %814 to i1
  %816 = xor i1 %815, true
  br i1 %816, label %817, label %901

817:                                              ; preds = %813
  call void @llvm.lifetime.start.p0(i64 24, ptr %65) #6
  %818 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %65, ptr noundef %818)
  br label %819

819:                                              ; preds = %817
  call void @llvm.lifetime.start.p0(i64 8, ptr %66) #6
  store i64 0, ptr %66, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 8, ptr %67) #6
  %820 = invoke noundef i64 @_ZN6tflite30NonPersistentMemoryPlannerShim20GetMaximumMemorySizeEv(ptr noundef nonnull align 8 dereferenceable(20) %65)
          to label %821 unwind label %850

821:                                              ; preds = %819
  store i64 %820, ptr %67, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 1, ptr %68) #6
  store i8 0, ptr %68, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %69) #6
  store i8 0, ptr %69, align 1, !tbaa !11
  %822 = load i8, ptr %68, align 1, !tbaa !11, !range !13, !noundef !14
  %823 = trunc i8 %822 to i1
  br i1 %823, label %824, label %859

824:                                              ; preds = %821
  %825 = load i8, ptr %69, align 1, !tbaa !11, !range !13, !noundef !14
  %826 = trunc i8 %825 to i1
  br i1 %826, label %827, label %859

827:                                              ; preds = %824
  call void @llvm.lifetime.start.p0(i64 8, ptr %70) #6
  %828 = load i64, ptr %66, align 8, !tbaa !22
  %829 = load i64, ptr %67, align 8, !tbaa !22
  %830 = icmp ugt i64 %828, %829
  br i1 %830, label %831, label %835

831:                                              ; preds = %827
  %832 = load i64, ptr %66, align 8, !tbaa !22
  %833 = load i64, ptr %67, align 8, !tbaa !22
  %834 = sub i64 %832, %833
  br label %839

835:                                              ; preds = %827
  %836 = load i64, ptr %67, align 8, !tbaa !22
  %837 = load i64, ptr %66, align 8, !tbaa !22
  %838 = sub i64 %836, %837
  br label %839

839:                                              ; preds = %835, %831
  %840 = phi i64 [ %834, %831 ], [ %838, %835 ]
  store i64 %840, ptr %70, align 8, !tbaa !22
  %841 = load i64, ptr %70, align 8, !tbaa !22
  %842 = call noundef i64 @_ZNSt14numeric_limitsImE7epsilonEv() #6
  %843 = icmp ugt i64 %841, %842
  br i1 %843, label %844, label %858

844:                                              ; preds = %839
  %845 = load i64, ptr %66, align 8, !tbaa !22
  %846 = uitofp i64 %845 to double
  %847 = load i64, ptr %67, align 8, !tbaa !22
  %848 = uitofp i64 %847 to double
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.24, ptr noundef @.str.2, i32 noundef 101, double noundef %846, double noundef %848)
          to label %849 unwind label %854

849:                                              ; preds = %844
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %858

850:                                              ; preds = %819
  %851 = landingpad { ptr, i32 }
          cleanup
  %852 = extractvalue { ptr, i32 } %851, 0
  store ptr %852, ptr %10, align 8
  %853 = extractvalue { ptr, i32 } %851, 1
  store i32 %853, ptr %11, align 4
  br label %900

854:                                              ; preds = %844
  %855 = landingpad { ptr, i32 }
          cleanup
  %856 = extractvalue { ptr, i32 } %855, 0
  store ptr %856, ptr %10, align 8
  %857 = extractvalue { ptr, i32 } %855, 1
  store i32 %857, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %899

858:                                              ; preds = %849, %839
  call void @llvm.lifetime.end.p0(i64 8, ptr %70) #6
  br label %883

859:                                              ; preds = %824, %821
  %860 = load i64, ptr %66, align 8, !tbaa !22
  %861 = load i64, ptr %67, align 8, !tbaa !22
  %862 = icmp ne i64 %860, %861
  br i1 %862, label %863, label %882

863:                                              ; preds = %859
  %864 = load i64, ptr %66, align 8, !tbaa !22
  %865 = trunc i64 %864 to i32
  %866 = load i64, ptr %67, align 8, !tbaa !22
  %867 = trunc i64 %866 to i32
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.25, ptr noundef @.str.2, i32 noundef 101, i32 noundef %865, i32 noundef %867)
          to label %868 unwind label %877

868:                                              ; preds = %863
  %869 = load i8, ptr %68, align 1, !tbaa !11, !range !13, !noundef !14
  %870 = trunc i8 %869 to i1
  br i1 %870, label %874, label %871

871:                                              ; preds = %868
  %872 = load i8, ptr %69, align 1, !tbaa !11, !range !13, !noundef !14
  %873 = trunc i8 %872 to i1
  br i1 %873, label %874, label %881

874:                                              ; preds = %871, %868
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.4)
          to label %875 unwind label %877

875:                                              ; preds = %874
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.5)
          to label %876 unwind label %877

876:                                              ; preds = %875
  br label %881

877:                                              ; preds = %875, %874, %863
  %878 = landingpad { ptr, i32 }
          cleanup
  %879 = extractvalue { ptr, i32 } %878, 0
  store ptr %879, ptr %10, align 8
  %880 = extractvalue { ptr, i32 } %878, 1
  store i32 %880, ptr %11, align 4
  br label %899

881:                                              ; preds = %876, %871
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11
  br label %882

882:                                              ; preds = %881, %859
  br label %883

883:                                              ; preds = %882, %858
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  br label %884

884:                                              ; preds = %883
  br label %885

885:                                              ; preds = %884
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %65) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %65) #6
  br label %886

886:                                              ; preds = %885
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !11
  %887 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %888 = trunc i8 %887 to i1
  %889 = zext i1 %888 to i64
  %890 = select i1 %888, i32 0, i32 1
  %891 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %892 = add nsw i32 %891, %890
  store i32 %892, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %893 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !11, !range !13, !noundef !14
  %894 = trunc i8 %893 to i1
  %895 = zext i1 %894 to i64
  %896 = select i1 %894, i32 1, i32 0
  %897 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %898 = add nsw i32 %897, %896
  store i32 %898, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  br label %813, !llvm.loop !24

899:                                              ; preds = %877, %854
  call void @llvm.lifetime.end.p0(i64 1, ptr %69) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %68) #6
  br label %900

900:                                              ; preds = %899, %850
  call void @llvm.lifetime.end.p0(i64 8, ptr %67) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %66) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %65) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %65) #6
  br label %912

901:                                              ; preds = %813
  %902 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %903 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %904 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %905 = add nsw i32 %903, %904
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.26, i32 noundef %902, i32 noundef %905)
  %906 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %907 = icmp eq i32 %906, 0
  br i1 %907, label %908, label %909

908:                                              ; preds = %901
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.27)
  store i32 0, ptr %3, align 4
  br label %910

909:                                              ; preds = %901
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef @.str.28)
  store i32 1, ptr %3, align 4
  br label %910

910:                                              ; preds = %909, %908
  %911 = load i32, ptr %3, align 4
  ret i32 %911

912:                                              ; preds = %900, %811, %589, %434, %347
  %913 = load ptr, ptr %10, align 8
  %914 = load i32, ptr %11, align 4
  %915 = insertvalue { ptr, i32 } poison, ptr %913, 0
  %916 = insertvalue { ptr, i32 } %915, i32 %914, 1
  resume { ptr, i32 } %916
}

; 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 noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv() #4

declare void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #2

declare noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

; 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: nounwind
declare void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

declare noundef i64 @_ZN6tflite30NonPersistentMemoryPlannerShim20GetMaximumMemorySizeEv(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNSt14numeric_limitsImE7epsilonEv() #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 = { 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 = { 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 #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 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}
!22 = !{!23, !23, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !18}


; 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::NonPersistentMemoryPlannerShim" = type <{ %"class.tflite::MicroMemoryPlanner", ptr, i32, [4 x i8] }>
%"class.tflite::MicroMemoryPlanner" = 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
@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [137 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [91 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.28 = 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 personality ptr @__gxx_personality_v0 {
.lr.ph:
  %2 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %8 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", align 8
  %9 = alloca %"class.tflite::NonPersistentMemoryPlannerShim", 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
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %10 = tail call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %2, ptr noundef %10)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 -1, ptr %3, align 4, !tbaa !5
  %11 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef 0, ptr noundef nonnull %3)
          to label %14 unwind label %12

12:                                               ; preds = %.lr.ph
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %41

14:                                               ; preds = %.lr.ph
  %.not270 = icmp eq i32 %11, 0
  br i1 %.not270, label %19, label %15

15:                                               ; preds = %14
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.2, i32 noundef 55, i32 noundef 0, i32 noundef %11)
          to label %18 unwind label %16

16:                                               ; preds = %15
  %17 = landingpad { ptr, i32 }
          cleanup
  br label %41

18:                                               ; preds = %15
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %19

19:                                               ; preds = %14, %18
  %20 = load i32, ptr %3, align 4, !tbaa !5
  %.not273 = icmp eq i32 %20, 0
  br i1 %.not273, label %25, label %21

21:                                               ; preds = %19
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.2, i32 noundef 56, i32 noundef 0, i32 noundef %20)
          to label %24 unwind label %22

22:                                               ; preds = %21
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %41

24:                                               ; preds = %21
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %25

25:                                               ; preds = %19, %24
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  store i32 -1, ptr %4, align 4, !tbaa !5
  %26 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %2, i32 noundef 1, ptr noundef nonnull %4)
          to label %29 unwind label %27

27:                                               ; preds = %25
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %40

29:                                               ; preds = %25
  %.not274 = icmp eq i32 %26, 0
  br i1 %.not274, label %34, label %30

30:                                               ; preds = %29
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.2, i32 noundef 59, i32 noundef 0, i32 noundef %26)
          to label %33 unwind label %31

31:                                               ; preds = %30
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %40

33:                                               ; preds = %30
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %34

34:                                               ; preds = %29, %33
  %35 = load i32, ptr %4, align 4, !tbaa !5
  %.not277 = icmp eq i32 %35, 10
  br i1 %.not277, label %.lr.ph284, label %36

36:                                               ; preds = %34
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.2, i32 noundef 60, i32 noundef 10, i32 noundef %35)
          to label %39 unwind label %37

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

39:                                               ; preds = %36
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph284

40:                                               ; preds = %27, %31, %37
  %.pn278 = phi { ptr, i32 } [ %38, %37 ], [ %32, %31 ], [ %28, %27 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %41

41:                                               ; preds = %12, %16, %40, %22
  %.pn278.pn = phi { ptr, i32 } [ %.pn278, %40 ], [ %23, %22 ], [ %17, %16 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  br label %148

.lr.ph284:                                        ; preds = %34, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %2) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %42 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11, !noundef !12
  %43 = xor i8 %42, 1
  %not.282 = zext nneg i8 %43 to i32
  %44 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %45 = add nsw i32 %44, %not.282
  store i32 %45, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %46 = zext nneg i8 %42 to i32
  %47 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %48 = add nsw i32 %47, %46
  store i32 %48, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.12)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %49 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %5, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  store i32 -1, ptr %6, align 4, !tbaa !5
  %50 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20) %5, i32 noundef 2, ptr noundef nonnull %6)
          to label %53 unwind label %51

51:                                               ; preds = %.lr.ph284
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %58

53:                                               ; preds = %.lr.ph284
  %.not266 = icmp eq i32 %50, 1
  br i1 %.not266, label %.lr.ph287, label %54

54:                                               ; preds = %53
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.2, i32 noundef 68, i32 noundef 1, i32 noundef %50)
          to label %57 unwind label %55

55:                                               ; preds = %54
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %58

57:                                               ; preds = %54
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph287

58:                                               ; preds = %55, %51
  %.pn267 = phi { ptr, i32 } [ %56, %55 ], [ %52, %51 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %148

.lr.ph287:                                        ; preds = %53, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %59 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11, !noundef !12
  %60 = xor i8 %59, 1
  %not.269 = zext nneg i8 %60 to i32
  %61 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %62 = add nsw i32 %61, %not.269
  store i32 %62, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %63 = zext nneg i8 %59 to i32
  %64 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.15)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %66 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %7, ptr noundef %66)
  %67 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %70 unwind label %68

68:                                               ; preds = %.lr.ph287
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %84

70:                                               ; preds = %.lr.ph287
  %.not258 = icmp eq i32 %67, 0
  br i1 %.not258, label %75, label %71

71:                                               ; preds = %70
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.2, i32 noundef 76, i32 noundef 0, i32 noundef %67)
          to label %74 unwind label %72

72:                                               ; preds = %71
  %73 = landingpad { ptr, i32 }
          cleanup
  br label %84

74:                                               ; preds = %71
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %75

75:                                               ; preds = %70, %74
  %76 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %7, i32 noundef 20, i32 noundef 0, i32 noundef 1)
          to label %79 unwind label %77

77:                                               ; preds = %75
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %84

79:                                               ; preds = %75
  %.not261 = icmp eq i32 %76, 0
  br i1 %.not261, label %.lr.ph290, label %80

80:                                               ; preds = %79
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef 79, i32 noundef 0, i32 noundef %76)
          to label %83 unwind label %81

81:                                               ; preds = %80
  %82 = landingpad { ptr, i32 }
          cleanup
  br label %84

83:                                               ; preds = %80
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph290

84:                                               ; preds = %77, %81, %68, %72
  %.pn262.pn = phi { ptr, i32 } [ %73, %72 ], [ %69, %68 ], [ %82, %81 ], [ %78, %77 ]
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %148

.lr.ph290:                                        ; preds = %79, %83
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %85 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11, !noundef !12
  %86 = xor i8 %85, 1
  %not.265 = zext nneg i8 %86 to i32
  %87 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %88 = add nsw i32 %87, %not.265
  store i32 %88, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %89 = zext nneg i8 %85 to i32
  %90 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %91 = add nsw i32 %90, %89
  store i32 %91, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.20)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #6
  %92 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %8, ptr noundef %92)
  %93 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %96 unwind label %94

94:                                               ; preds = %.lr.ph290
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %119

96:                                               ; preds = %.lr.ph290
  %.not247 = icmp eq i32 %93, 0
  br i1 %.not247, label %101, label %97

97:                                               ; preds = %96
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.17, ptr noundef nonnull @.str.2, i32 noundef 87, i32 noundef 0, i32 noundef %93)
          to label %100 unwind label %98

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

100:                                              ; preds = %97
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %101

101:                                              ; preds = %96, %100
  %102 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef 20, i32 noundef 0, i32 noundef 1)
          to label %105 unwind label %103

103:                                              ; preds = %101
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %119

105:                                              ; preds = %101
  %.not250 = icmp eq i32 %102, 0
  br i1 %.not250, label %110, label %106

106:                                              ; preds = %105
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.19, ptr noundef nonnull @.str.2, i32 noundef 90, i32 noundef 0, i32 noundef %102)
          to label %109 unwind label %107

107:                                              ; preds = %106
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %119

109:                                              ; preds = %106
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %110

110:                                              ; preds = %105, %109
  %111 = invoke noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20) %8, i32 noundef 10, i32 noundef 0, i32 noundef 1)
          to label %114 unwind label %112

112:                                              ; preds = %110
  %113 = landingpad { ptr, i32 }
          cleanup
  br label %119

114:                                              ; preds = %110
  %.not253 = icmp eq i32 %111, 1
  br i1 %.not253, label %.lr.ph293, label %115

115:                                              ; preds = %114
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.2, i32 noundef 94, i32 noundef 1, i32 noundef %111)
          to label %118 unwind label %116

116:                                              ; preds = %115
  %117 = landingpad { ptr, i32 }
          cleanup
  br label %119

118:                                              ; preds = %115
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %.lr.ph293

119:                                              ; preds = %112, %116, %103, %107, %94, %98
  %.pn254.pn = phi { ptr, i32 } [ %99, %98 ], [ %95, %94 ], [ %108, %107 ], [ %104, %103 ], [ %117, %116 ], [ %113, %112 ]
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  br label %148

.lr.ph293:                                        ; preds = %114, %118
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %120 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11, !noundef !12
  %121 = xor i8 %120, 1
  %not.257 = zext nneg i8 %121 to i32
  %122 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %123 = add nsw i32 %122, %not.257
  store i32 %123, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %124 = zext nneg i8 %120 to i32
  %125 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %126 = add nsw i32 %125, %124
  store i32 %126, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.23)
  store i8 0, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  store i8 0, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  %127 = call noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv()
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20) %9, ptr noundef %127)
  %128 = invoke noundef i64 @_ZN6tflite30NonPersistentMemoryPlannerShim20GetMaximumMemorySizeEv(ptr noundef nonnull align 8 dereferenceable(20) %9)
          to label %131 unwind label %129

129:                                              ; preds = %.lr.ph293
  %130 = landingpad { ptr, i32 }
          cleanup
  br label %137

131:                                              ; preds = %.lr.ph293
  %.not = icmp eq i64 %128, 0
  br i1 %.not, label %._crit_edge294, label %132

132:                                              ; preds = %131
  %133 = trunc i64 %128 to i32
  invoke void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.25, ptr noundef nonnull @.str.2, i32 noundef 101, i32 noundef 0, i32 noundef %133)
          to label %136 unwind label %134

134:                                              ; preds = %132
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %137

136:                                              ; preds = %132
  store i8 1, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9
  br label %._crit_edge294

137:                                              ; preds = %134, %129
  %.pn = phi { ptr, i32 } [ %135, %134 ], [ %130, %129 ]
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %148

._crit_edge294:                                   ; preds = %131, %136
  call void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  store i8 1, ptr @_ZN10micro_test16is_test_completeE, align 1, !tbaa !9
  %138 = load i8, ptr @_ZN10micro_test13did_test_failE, align 1, !tbaa !9, !range !11, !noundef !12
  %139 = xor i8 %138, 1
  %not. = zext nneg i8 %139 to i32
  %140 = load i32, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %141 = add nsw i32 %140, %not.
  store i32 %141, ptr @_ZN10micro_test12tests_passedE, align 4, !tbaa !5
  %142 = zext nneg i8 %138 to i32
  %143 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %144 = add nsw i32 %143, %142
  store i32 %144, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %145 = add nsw i32 %144, %141
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull @.str.26, i32 noundef %141, i32 noundef %145)
  %146 = load i32, ptr @_ZN10micro_test12tests_failedE, align 4, !tbaa !5
  %147 = icmp ne i32 %146, 0
  %.str.27..str.28 = select i1 %147, ptr @.str.28, ptr @.str.27
  %. = zext i1 %147 to i32
  call void (ptr, ...) @_Z11MicroPrintfPKcz(ptr noundef nonnull %.str.27..str.28)
  ret i32 %.

148:                                              ; preds = %137, %119, %84, %58, %41
  %.pn278.pn.pn = phi { ptr, i32 } [ %.pn278.pn, %41 ], [ %.pn267, %58 ], [ %.pn262.pn, %84 ], [ %.pn254.pn, %119 ], [ %.pn, %137 ]
  resume { ptr, i32 } %.pn278.pn.pn
}

; 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 noundef ptr @_ZN12_GLOBAL__N_116CreateBufferPlanEv() local_unnamed_addr #4

declare void @_ZN6tflite30NonPersistentMemoryPlannerShimC1EPKNS_10BufferPlanE(ptr noundef nonnull align 8 dereferenceable(20), ptr noundef) unnamed_addr #2

declare noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim18GetOffsetForBufferEiPi(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, ptr noundef) unnamed_addr #2

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nounwind
declare void @_ZN6tflite30NonPersistentMemoryPlannerShimD1Ev(ptr noundef nonnull align 8 dereferenceable(20)) unnamed_addr #5

declare noundef i32 @_ZN6tflite30NonPersistentMemoryPlannerShim9AddBufferEiii(ptr noundef nonnull align 8 dereferenceable(20), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #2

declare noundef i64 @_ZN6tflite30NonPersistentMemoryPlannerShim20GetMaximumMemorySizeEv(ptr noundef nonnull align 8 dereferenceable(20)) 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 "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 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}


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