; LLVM IR from Seeed-Studio/Seeed_Arduino_edgeimpulse :: src/edge-impulse-sdk/tensorflow/lite/kernels (kernel_util)

; 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"

%struct.TfLiteTensor = type { i32, %union.TfLitePtrUnion, ptr, %struct.TfLiteQuantizationParams, i32, i64, ptr, ptr, ptr, i32, i8, i8, %struct.TfLiteQuantization, ptr, ptr }
%union.TfLitePtrUnion = type { ptr }
%struct.TfLiteQuantizationParams = type { float, i32 }
%struct.TfLiteQuantization = type { i32, ptr }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.TfLiteAffineQuantization = type { ptr, ptr, i32 }
%struct.TfLiteFloatArray = type { i32, [0 x float] }
%struct.TfLiteIntArray = type { i32, [0 x i32] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [61 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, i32 noundef %12) #1 {
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca i32, align 4
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i8, align 1
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca ptr, align 8
  %34 = alloca i32, align 4
  %35 = alloca float, align 4
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca double, align 8
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  store ptr %0, ptr %15, align 8, !tbaa !5
  store ptr %1, ptr %16, align 8, !tbaa !5
  store ptr %2, ptr %17, align 8, !tbaa !5
  store ptr %3, ptr %18, align 8, !tbaa !5
  store ptr %4, ptr %19, align 8, !tbaa !5
  store ptr %5, ptr %20, align 8, !tbaa !5
  store ptr %6, ptr %21, align 8, !tbaa !5
  store ptr %7, ptr %22, align 8, !tbaa !5
  store ptr %8, ptr %23, align 8, !tbaa !5
  store ptr %9, ptr %24, align 8, !tbaa !5
  store ptr %10, ptr %25, align 8, !tbaa !5
  store ptr %11, ptr %26, align 8, !tbaa !5
  store i32 %12, ptr %27, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %13
  %45 = load ptr, ptr %16, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TfLiteTensor, ptr %45, i32 0, i32 12
  %47 = getelementptr inbounds %struct.TfLiteQuantization, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !11
  %49 = icmp ne i32 %48, 1
  br i1 %49, label %50, label %61

50:                                               ; preds = %44
  br label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.TfLiteContext, ptr %52, i32 0, i32 5
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = load ptr, ptr %16, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TfLiteTensor, ptr %56, i32 0, i32 12
  %58 = getelementptr inbounds %struct.TfLiteQuantization, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !11
  call void (ptr, ptr, ...) %54(ptr noundef %55, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 54, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %59, i32 noundef 1)
  br label %60

60:                                               ; preds = %51
  store i32 1, ptr %14, align 4
  br label %352

61:                                               ; preds = %44
  br label %62

62:                                               ; preds = %61
  br label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr %17, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.TfLiteTensor, ptr %64, i32 0, i32 12
  %66 = getelementptr inbounds %struct.TfLiteQuantization, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 8, !tbaa !11
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %80

69:                                               ; preds = %63
  br label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.TfLiteContext, ptr %71, i32 0, i32 5
  %73 = load ptr, ptr %72, align 8, !tbaa !21
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %17, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TfLiteTensor, ptr %75, i32 0, i32 12
  %77 = getelementptr inbounds %struct.TfLiteQuantization, ptr %76, i32 0, i32 0
  %78 = load i32, ptr %77, align 8, !tbaa !11
  call void (ptr, ptr, ...) %73(ptr noundef %74, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 56, ptr noundef @.str.4, ptr noundef @.str.3, i32 noundef %78, i32 noundef 1)
  br label %79

79:                                               ; preds = %70
  store i32 1, ptr %14, align 4
  br label %352

80:                                               ; preds = %63
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  %82 = load ptr, ptr %17, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.TfLiteTensor, ptr %82, i32 0, i32 12
  %84 = getelementptr inbounds %struct.TfLiteQuantization, ptr %83, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !23
  store ptr %85, ptr %28, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %81
  %87 = load ptr, ptr %28, align 8, !tbaa !5
  %88 = icmp ne ptr %87, null
  br i1 %88, label %97, label %89

89:                                               ; preds = %86
  br label %90

90:                                               ; preds = %89
  %91 = load ptr, ptr %15, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.TfLiteContext, ptr %91, i32 0, i32 5
  %93 = load ptr, ptr %92, align 8, !tbaa !21
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  call void (ptr, ptr, ...) %93(ptr noundef %94, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 66, ptr noundef @.str.6)
  br label %95

95:                                               ; preds = %90
  br label %96

96:                                               ; preds = %95
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %351

97:                                               ; preds = %86
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  %101 = load ptr, ptr %28, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %101, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !24
  %104 = icmp ne ptr %103, null
  br i1 %104, label %113, label %105

105:                                              ; preds = %100
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TfLiteContext, ptr %107, i32 0, i32 5
  %109 = load ptr, ptr %108, align 8, !tbaa !21
  %110 = load ptr, ptr %15, align 8, !tbaa !5
  call void (ptr, ptr, ...) %109(ptr noundef %110, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 67, ptr noundef @.str.7)
  br label %111

111:                                              ; preds = %106
  br label %112

112:                                              ; preds = %111
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %351

113:                                              ; preds = %100
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #3
  %116 = load ptr, ptr %28, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %116, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %118, i32 0, i32 0
  %120 = load i32, ptr %119, align 4, !tbaa !9
  %121 = icmp sgt i32 %120, 1
  %122 = zext i1 %121 to i8
  store i8 %122, ptr %30, align 1, !tbaa !26
  %123 = load i8, ptr %30, align 1, !tbaa !26, !range !27, !noundef !28
  %124 = trunc i8 %123 to i1
  br i1 %124, label %125, label %226

125:                                              ; preds = %115
  br label %126

126:                                              ; preds = %125
  %127 = load ptr, ptr %16, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.TfLiteTensor, ptr %127, i32 0, i32 0
  %129 = load i32, ptr %128, align 8, !tbaa !29
  %130 = icmp eq i32 %129, 9
  br i1 %130, label %144, label %131

131:                                              ; preds = %126
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.TfLiteTensor, ptr %132, i32 0, i32 0
  %134 = load i32, ptr %133, align 8, !tbaa !29
  %135 = icmp eq i32 %134, 7
  br i1 %135, label %144, label %136

136:                                              ; preds = %131
  br label %137

137:                                              ; preds = %136
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.TfLiteContext, ptr %138, i32 0, i32 5
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  %141 = load ptr, ptr %15, align 8, !tbaa !5
  call void (ptr, ptr, ...) %140(ptr noundef %141, ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 72, ptr noundef @.str.8)
  br label %142

142:                                              ; preds = %137
  br label %143

143:                                              ; preds = %142
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %350

144:                                              ; preds = %131, %126
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %17, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.TfLiteTensor, ptr %148, i32 0, i32 0
  %150 = load i32, ptr %149, align 8, !tbaa !29
  %151 = icmp ne i32 %150, 9
  br i1 %151, label %152, label %163

152:                                              ; preds = %147
  br label %153

153:                                              ; preds = %152
  %154 = load ptr, ptr %15, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.TfLiteContext, ptr %154, i32 0, i32 5
  %156 = load ptr, ptr %155, align 8, !tbaa !21
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.TfLiteTensor, ptr %158, i32 0, i32 0
  %160 = load i32, ptr %159, align 8, !tbaa !29
  call void (ptr, ptr, ...) %156(ptr noundef %157, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 73, ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %160, i32 noundef 9)
  br label %161

161:                                              ; preds = %153
  br label %162

162:                                              ; preds = %161
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %350

163:                                              ; preds = %147
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load ptr, ptr %28, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %167, i32 0, i32 0
  %169 = load ptr, ptr %168, align 8, !tbaa !24
  %170 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !9
  %172 = load i32, ptr %27, align 4, !tbaa !9
  %173 = icmp ne i32 %171, %172
  br i1 %173, label %174, label %188

174:                                              ; preds = %166
  br label %175

175:                                              ; preds = %174
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.TfLiteContext, ptr %176, i32 0, i32 5
  %178 = load ptr, ptr %177, align 8, !tbaa !21
  %179 = load ptr, ptr %15, align 8, !tbaa !5
  %180 = load ptr, ptr %28, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %180, i32 0, i32 0
  %182 = load ptr, ptr %181, align 8, !tbaa !24
  %183 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %182, i32 0, i32 0
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load i32, ptr %27, align 4, !tbaa !9
  call void (ptr, ptr, ...) %178(ptr noundef %179, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 74, ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef %184, i32 noundef %185)
  br label %186

186:                                              ; preds = %175
  br label %187

187:                                              ; preds = %186
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %350

188:                                              ; preds = %166
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  %192 = load i32, ptr %27, align 4, !tbaa !9
  %193 = load ptr, ptr %17, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.TfLiteTensor, ptr %193, i32 0, i32 2
  %195 = load ptr, ptr %194, align 8, !tbaa !30
  %196 = getelementptr inbounds %struct.TfLiteIntArray, ptr %195, i32 0, i32 1
  %197 = load ptr, ptr %28, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 8, !tbaa !31
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds [0 x i32], ptr %196, i64 0, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !9
  %203 = icmp ne i32 %192, %202
  br i1 %203, label %204, label %223

204:                                              ; preds = %191
  br label %205

205:                                              ; preds = %204
  %206 = load ptr, ptr %15, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.TfLiteContext, ptr %206, i32 0, i32 5
  %208 = load ptr, ptr %207, align 8, !tbaa !21
  %209 = load ptr, ptr %15, align 8, !tbaa !5
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = load ptr, ptr %17, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.TfLiteTensor, ptr %211, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !30
  %214 = getelementptr inbounds %struct.TfLiteIntArray, ptr %213, i32 0, i32 1
  %215 = load ptr, ptr %28, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %215, i32 0, i32 2
  %217 = load i32, ptr %216, align 8, !tbaa !31
  %218 = sext i32 %217 to i64
  %219 = getelementptr inbounds [0 x i32], ptr %214, i64 0, i64 %218
  %220 = load i32, ptr %219, align 4, !tbaa !9
  call void (ptr, ptr, ...) %208(ptr noundef %209, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 77, ptr noundef @.str.12, ptr noundef @.str.13, i32 noundef %210, i32 noundef %220)
  br label %221

221:                                              ; preds = %205
  br label %222

222:                                              ; preds = %221
  store i32 1, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %350

223:                                              ; preds = %191
  br label %224

224:                                              ; preds = %223
  br label %225

225:                                              ; preds = %224
  br label %226

226:                                              ; preds = %225, %115
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %227 = load ptr, ptr %16, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.TfLiteTensor, ptr %227, i32 0, i32 3
  %229 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %228, i32 0, i32 0
  %230 = load float, ptr %229, align 8, !tbaa !32
  store float %230, ptr %31, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %231 = load ptr, ptr %19, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.TfLiteTensor, ptr %231, i32 0, i32 3
  %233 = getelementptr inbounds %struct.TfLiteQuantizationParams, ptr %232, i32 0, i32 0
  %234 = load float, ptr %233, align 8, !tbaa !32
  store float %234, ptr %32, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  %235 = load ptr, ptr %28, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %235, i32 0, i32 0
  %237 = load ptr, ptr %236, align 8, !tbaa !24
  %238 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %237, i32 0, i32 1
  %239 = getelementptr inbounds [0 x float], ptr %238, i64 0, i64 0
  store ptr %239, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  store i32 0, ptr %34, align 4, !tbaa !9
  br label %240

240:                                              ; preds = %280, %226
  %241 = load i32, ptr %34, align 4, !tbaa !9
  %242 = load i32, ptr %27, align 4, !tbaa !9
  %243 = icmp slt i32 %241, %242
  br i1 %243, label %245, label %244

244:                                              ; preds = %240
  store i32 34, ptr %29, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  br label %283

245:                                              ; preds = %240
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  %246 = load i8, ptr %30, align 1, !tbaa !26, !range !27, !noundef !28
  %247 = trunc i8 %246 to i1
  br i1 %247, label %248, label %254

248:                                              ; preds = %245
  %249 = load ptr, ptr %33, align 8, !tbaa !5
  %250 = load i32, ptr %34, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = getelementptr inbounds float, ptr %249, i64 %251
  %253 = load float, ptr %252, align 4, !tbaa !33
  br label %258

254:                                              ; preds = %245
  %255 = load ptr, ptr %33, align 8, !tbaa !5
  %256 = getelementptr inbounds float, ptr %255, i64 0
  %257 = load float, ptr %256, align 4, !tbaa !33
  br label %258

258:                                              ; preds = %254, %248
  %259 = phi float [ %253, %248 ], [ %257, %254 ]
  store float %259, ptr %35, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  %260 = load float, ptr %35, align 4, !tbaa !33
  %261 = fpext float %260 to double
  store double %261, ptr %36, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  %262 = load float, ptr %31, align 4, !tbaa !33
  %263 = fpext float %262 to double
  %264 = load double, ptr %36, align 8, !tbaa !34
  %265 = fmul double %263, %264
  %266 = load float, ptr %32, align 4, !tbaa !33
  %267 = fpext float %266 to double
  %268 = fdiv double %265, %267
  store double %268, ptr %37, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  %269 = load double, ptr %37, align 8, !tbaa !34
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %269, ptr noundef %38, ptr noundef %39)
  %270 = load i32, ptr %38, align 4, !tbaa !9
  %271 = load ptr, ptr %25, align 8, !tbaa !5
  %272 = load i32, ptr %34, align 4, !tbaa !9
  %273 = sext i32 %272 to i64
  %274 = getelementptr inbounds i32, ptr %271, i64 %273
  store i32 %270, ptr %274, align 4, !tbaa !9
  %275 = load i32, ptr %39, align 4, !tbaa !9
  %276 = load ptr, ptr %26, align 8, !tbaa !5
  %277 = load i32, ptr %34, align 4, !tbaa !9
  %278 = sext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  store i32 %275, ptr %279, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  br label %280

280:                                              ; preds = %258
  %281 = load i32, ptr %34, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %34, align 4, !tbaa !9
  br label %240, !llvm.loop !36

283:                                              ; preds = %244
  %284 = load ptr, ptr %16, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.TfLiteTensor, ptr %284, i32 0, i32 0
  %286 = load i32, ptr %285, align 8, !tbaa !29
  %287 = icmp eq i32 %286, 3
  br i1 %287, label %288, label %314

288:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #3
  store double 0.000000e+00, ptr %40, align 8, !tbaa !34
  br label %289

289:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #3
  %290 = load ptr, ptr %15, align 8, !tbaa !5
  %291 = load ptr, ptr %16, align 8, !tbaa !5
  %292 = load ptr, ptr %17, align 8, !tbaa !5
  %293 = load ptr, ptr %18, align 8, !tbaa !5
  %294 = load ptr, ptr %19, align 8, !tbaa !5
  %295 = call noundef i32 @_ZN6tflite32GetQuantizedConvolutionMultiplerEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_Pd(ptr noundef %290, ptr noundef %291, ptr noundef %292, ptr noundef %293, ptr noundef %294, ptr noundef %40)
  store i32 %295, ptr %41, align 4, !tbaa !38
  %296 = load i32, ptr %41, align 4, !tbaa !38
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %300

298:                                              ; preds = %289
  %299 = load i32, ptr %41, align 4, !tbaa !38
  store i32 %299, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %301

300:                                              ; preds = %289
  store i32 0, ptr %29, align 4
  br label %301

301:                                              ; preds = %300, %298
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #3
  %302 = load i32, ptr %29, align 4
  switch i32 %302, label %311 [
    i32 0, label %303
  ]

303:                                              ; preds = %301
  br label %304

304:                                              ; preds = %303
  br label %305

305:                                              ; preds = %304
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #3
  %306 = load double, ptr %40, align 8, !tbaa !34
  %307 = load ptr, ptr %21, align 8, !tbaa !5
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %306, ptr noundef %307, ptr noundef %42)
  %308 = load i32, ptr %42, align 4, !tbaa !9
  %309 = sub nsw i32 0, %308
  %310 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %309, ptr %310, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #3
  store i32 0, ptr %29, align 4
  br label %311

311:                                              ; preds = %305, %301
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #3
  %312 = load i32, ptr %29, align 4
  switch i32 %312, label %349 [
    i32 0, label %313
  ]

313:                                              ; preds = %311
  br label %314

314:                                              ; preds = %313, %283
  %315 = load ptr, ptr %16, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.TfLiteTensor, ptr %315, i32 0, i32 0
  %317 = load i32, ptr %316, align 8, !tbaa !29
  %318 = icmp eq i32 %317, 9
  br i1 %318, label %329, label %319

319:                                              ; preds = %314
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.TfLiteTensor, ptr %320, i32 0, i32 0
  %322 = load i32, ptr %321, align 8, !tbaa !29
  %323 = icmp eq i32 %322, 3
  br i1 %323, label %329, label %324

324:                                              ; preds = %319
  %325 = load ptr, ptr %16, align 8, !tbaa !5
  %326 = getelementptr inbounds %struct.TfLiteTensor, ptr %325, i32 0, i32 0
  %327 = load i32, ptr %326, align 8, !tbaa !29
  %328 = icmp eq i32 %327, 7
  br i1 %328, label %329, label %348

329:                                              ; preds = %324, %319, %314
  br label %330

330:                                              ; preds = %329
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #3
  %331 = load ptr, ptr %15, align 8, !tbaa !5
  %332 = load ptr, ptr %20, align 8, !tbaa !5
  %333 = load i32, ptr %332, align 4, !tbaa !40
  %334 = load ptr, ptr %19, align 8, !tbaa !5
  %335 = load ptr, ptr %23, align 8, !tbaa !5
  %336 = load ptr, ptr %24, align 8, !tbaa !5
  %337 = call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %331, i32 noundef %333, ptr noundef %334, ptr noundef %335, ptr noundef %336)
  store i32 %337, ptr %43, align 4, !tbaa !38
  %338 = load i32, ptr %43, align 4, !tbaa !38
  %339 = icmp ne i32 %338, 0
  br i1 %339, label %340, label %342

340:                                              ; preds = %330
  %341 = load i32, ptr %43, align 4, !tbaa !38
  store i32 %341, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %343

342:                                              ; preds = %330
  store i32 0, ptr %29, align 4
  br label %343

343:                                              ; preds = %342, %340
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #3
  %344 = load i32, ptr %29, align 4
  switch i32 %344, label %349 [
    i32 0, label %345
  ]

345:                                              ; preds = %343
  br label %346

346:                                              ; preds = %345
  br label %347

347:                                              ; preds = %346
  br label %348

348:                                              ; preds = %347, %324
  store i32 0, ptr %14, align 4
  store i32 1, ptr %29, align 4
  br label %349

349:                                              ; preds = %348, %343, %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  br label %350

350:                                              ; preds = %349, %222, %187, %162, %143
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #3
  br label %351

351:                                              ; preds = %350, %112, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %352

352:                                              ; preds = %351, %79, %60
  %353 = load i32, ptr %14, align 4
  ret i32 %353
}

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

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite32GetQuantizedConvolutionMultiplerEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_Pd(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !20, i64 80}
!12 = !{!"_ZTS12TfLiteTensor", !13, i64 0, !7, i64 8, !6, i64 16, !14, i64 24, !16, i64 32, !17, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !18, i64 76, !18, i64 77, !19, i64 80, !6, i64 96, !6, i64 104}
!13 = !{!"_ZTS10TfLiteType", !7, i64 0}
!14 = !{!"_ZTS24TfLiteQuantizationParams", !15, i64 0, !10, i64 4}
!15 = !{!"float", !7, i64 0}
!16 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTS18TfLiteQuantization", !20, i64 0, !6, i64 8}
!20 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!21 = !{!22, !6, i64 40}
!22 = !{!"_ZTS13TfLiteContext", !17, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !10, i64 72, !6, i64 80, !6, i64 88, !18, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!23 = !{!12, !6, i64 88}
!24 = !{!25, !6, i64 0}
!25 = !{!"_ZTS24TfLiteAffineQuantization", !6, i64 0, !6, i64 8, !10, i64 16}
!26 = !{!18, !18, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!12, !13, i64 0}
!30 = !{!12, !6, i64 16}
!31 = !{!25, !10, i64 16}
!32 = !{!12, !15, i64 24}
!33 = !{!15, !15, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"double", !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = !{!39, !39, i64 0}
!39 = !{!"_ZTS12TfLiteStatus", !7, i64 0}
!40 = !{!41, !41, i64 0}
!41 = !{!"_ZTS21TfLiteFusedActivation", !7, i64 0}


; 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"

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [133 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [61 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite37PopulateConvolutionQuantizationParamsEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_RK21TfLiteFusedActivationPiS9_S9_S9_S9_S9_i(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr nocapture noundef nonnull readonly align 4 dereferenceable(4) %5, ptr noundef %6, ptr nocapture noundef writeonly %7, ptr noundef %8, ptr noundef %9, ptr nocapture noundef writeonly %10, ptr nocapture noundef writeonly %11, i32 noundef %12) local_unnamed_addr #1 {
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca i32, align 4
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  %19 = load i32, ptr %18, align 8, !tbaa !5
  %.not = icmp eq i32 %19, 1
  br i1 %.not, label %23, label %20

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %0, i64 40
  %22 = load ptr, ptr %21, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %22(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 54, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef %19, i32 noundef 1)
  br label %115

23:                                               ; preds = %13
  %24 = getelementptr inbounds i8, ptr %2, i64 80
  %25 = load i32, ptr %24, align 8, !tbaa !5
  %.not98 = icmp eq i32 %25, 1
  br i1 %.not98, label %29, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %28(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 56, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.3, i32 noundef %25, i32 noundef 1)
  br label %115

29:                                               ; preds = %23
  %30 = getelementptr inbounds i8, ptr %2, i64 88
  %31 = load ptr, ptr %30, align 8, !tbaa !21
  %.not99 = icmp eq ptr %31, null
  br i1 %.not99, label %32, label %35

32:                                               ; preds = %29
  %33 = getelementptr inbounds i8, ptr %0, i64 40
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %34(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 66, ptr noundef nonnull @.str.6)
  br label %115

35:                                               ; preds = %29
  %36 = load ptr, ptr %31, align 8, !tbaa !22
  %.not100 = icmp eq ptr %36, null
  br i1 %.not100, label %37, label %40

37:                                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %0, i64 40
  %39 = load ptr, ptr %38, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %39(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 67, ptr noundef nonnull @.str.7)
  br label %115

40:                                               ; preds = %35
  %41 = load i32, ptr %36, align 4, !tbaa !24
  %42 = icmp sgt i32 %41, 1
  br i1 %42, label %43, label %69

43:                                               ; preds = %40
  %44 = load i32, ptr %1, align 8, !tbaa !25
  switch i32 %44, label %45 [
    i32 9, label %48
    i32 7, label %48
  ]

45:                                               ; preds = %43
  %46 = getelementptr inbounds i8, ptr %0, i64 40
  %47 = load ptr, ptr %46, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %47(ptr noundef %0, ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 72, ptr noundef nonnull @.str.8)
  br label %115

48:                                               ; preds = %43, %43
  %49 = load i32, ptr %2, align 8, !tbaa !25
  %.not101 = icmp eq i32 %49, 9
  br i1 %.not101, label %53, label %50

50:                                               ; preds = %48
  %51 = getelementptr inbounds i8, ptr %0, i64 40
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %52(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 73, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef %49, i32 noundef 9)
  br label %115

53:                                               ; preds = %48
  %.not102 = icmp eq i32 %41, %12
  br i1 %.not102, label %57, label %54

54:                                               ; preds = %53
  %55 = getelementptr inbounds i8, ptr %0, i64 40
  %56 = load ptr, ptr %55, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %56(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 74, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef %41, i32 noundef %12)
  br label %115

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %2, i64 16
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = getelementptr inbounds i8, ptr %59, i64 4
  %61 = getelementptr inbounds i8, ptr %31, i64 16
  %62 = load i32, ptr %61, align 8, !tbaa !27
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [0 x i32], ptr %60, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !24
  %.not103 = icmp eq i32 %65, %12
  br i1 %.not103, label %.lr.ph.split.us.preheader, label %66

66:                                               ; preds = %57
  %67 = getelementptr inbounds i8, ptr %0, i64 40
  %68 = load ptr, ptr %67, align 8, !tbaa !19
  tail call void (ptr, ptr, ...) %68(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 77, ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.13, i32 noundef %12, i32 noundef %65)
  br label %115

69:                                               ; preds = %40
  %70 = getelementptr inbounds i8, ptr %36, i64 4
  %71 = icmp sgt i32 %12, 0
  br i1 %71, label %.lr.ph.split.preheader, label %._crit_edge

.lr.ph.split.preheader:                           ; preds = %69
  %72 = getelementptr inbounds i8, ptr %4, i64 24
  %73 = load float, ptr %72, align 8, !tbaa !28
  %74 = getelementptr inbounds i8, ptr %1, i64 24
  %75 = load float, ptr %74, align 8, !tbaa !28
  %76 = fpext float %75 to double
  %77 = fpext float %73 to double
  %wide.trip.count = zext nneg i32 %12 to i64
  br label %.lr.ph.split

.lr.ph.split.us.preheader:                        ; preds = %57
  %78 = getelementptr inbounds i8, ptr %36, i64 4
  %79 = getelementptr inbounds i8, ptr %4, i64 24
  %80 = load float, ptr %79, align 8, !tbaa !28
  %81 = getelementptr inbounds i8, ptr %1, i64 24
  %82 = load float, ptr %81, align 8, !tbaa !28
  %83 = fpext float %82 to double
  %84 = fpext float %80 to double
  %wide.trip.count112 = zext nneg i32 %12 to i64
  br label %.lr.ph.split.us

.lr.ph.split.us:                                  ; preds = %.lr.ph.split.us.preheader, %.lr.ph.split.us
  %indvars.iv109 = phi i64 [ 0, %.lr.ph.split.us.preheader ], [ %indvars.iv.next110, %.lr.ph.split.us ]
  %.in.us = getelementptr inbounds float, ptr %78, i64 %indvars.iv109
  %85 = load float, ptr %.in.us, align 4, !tbaa !29
  %86 = fpext float %85 to double
  %87 = fmul double %83, %86
  %88 = fdiv double %87, %84
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %88, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %89 = load i32, ptr %14, align 4, !tbaa !24
  %90 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv109
  store i32 %89, ptr %90, align 4, !tbaa !24
  %91 = load i32, ptr %15, align 4, !tbaa !24
  %92 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv109
  store i32 %91, ptr %92, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  %indvars.iv.next110 = add nuw nsw i64 %indvars.iv109, 1
  %exitcond113.not = icmp eq i64 %indvars.iv.next110, %wide.trip.count112
  br i1 %exitcond113.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !30

._crit_edge:                                      ; preds = %.lr.ph.split, %.lr.ph.split.us, %69
  %93 = load i32, ptr %1, align 8, !tbaa !25
  %94 = icmp eq i32 %93, 3
  br i1 %94, label %103, label %109

.lr.ph.split:                                     ; preds = %.lr.ph.split.preheader, %.lr.ph.split
  %indvars.iv = phi i64 [ 0, %.lr.ph.split.preheader ], [ %indvars.iv.next, %.lr.ph.split ]
  %95 = load float, ptr %70, align 4, !tbaa !29
  %96 = fpext float %95 to double
  %97 = fmul double %76, %96
  %98 = fdiv double %97, %77
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #3
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %98, ptr noundef nonnull %14, ptr noundef nonnull %15)
  %99 = load i32, ptr %14, align 4, !tbaa !24
  %100 = getelementptr inbounds i32, ptr %10, i64 %indvars.iv
  store i32 %99, ptr %100, align 4, !tbaa !24
  %101 = load i32, ptr %15, align 4, !tbaa !24
  %102 = getelementptr inbounds i32, ptr %11, i64 %indvars.iv
  store i32 %101, ptr %102, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !30

103:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #3
  store double 0.000000e+00, ptr %16, align 8, !tbaa !32
  %104 = call noundef i32 @_ZN6tflite32GetQuantizedConvolutionMultiplerEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_Pd(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %16)
  %.not104 = icmp eq i32 %104, 0
  br i1 %.not104, label %105, label %.critedge

105:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #3
  %106 = load double, ptr %16, align 8, !tbaa !32
  call void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef %106, ptr noundef %6, ptr noundef nonnull %17)
  %107 = load i32, ptr %17, align 4, !tbaa !24
  %108 = sub nsw i32 0, %107
  store i32 %108, ptr %7, align 4, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  %.pr = load i32, ptr %1, align 8, !tbaa !25
  br label %109

109:                                              ; preds = %105, %._crit_edge
  %110 = phi i32 [ %.pr, %105 ], [ %93, %._crit_edge ]
  switch i32 %110, label %114 [
    i32 9, label %111
    i32 3, label %111
    i32 7, label %111
  ]

111:                                              ; preds = %109, %109, %109
  %112 = load i32, ptr %5, align 4, !tbaa !34
  %113 = call noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef %0, i32 noundef %112, ptr noundef %4, ptr noundef %8, ptr noundef %9)
  %.not105 = icmp eq i32 %113, 0
  br i1 %.not105, label %114, label %115

114:                                              ; preds = %109, %111
  br label %115

.critedge:                                        ; preds = %103
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #3
  br label %115

115:                                              ; preds = %32, %37, %114, %111, %.critedge, %66, %54, %50, %45, %26, %20
  %.6 = phi i32 [ 1, %20 ], [ 1, %26 ], [ 1, %37 ], [ 1, %32 ], [ 1, %50 ], [ 1, %54 ], [ 1, %66 ], [ 1, %45 ], [ 0, %114 ], [ %113, %111 ], [ %104, %.critedge ]
  ret i32 %.6
}

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

declare void @_ZN6tflite18QuantizeMultiplierEdPiS0_(double noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite32GetQuantizedConvolutionMultiplerEP13TfLiteContextPK12TfLiteTensorS4_S4_PS2_Pd(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN6tflite33CalculateActivationRangeQuantizedEP13TfLiteContext21TfLiteFusedActivationP12TfLiteTensorPiS5_(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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, !18, i64 80}
!6 = !{!"_ZTS12TfLiteTensor", !7, i64 0, !8, i64 8, !10, i64 16, !11, i64 24, !14, i64 32, !15, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !13, i64 72, !16, i64 76, !16, i64 77, !17, i64 80, !10, i64 96, !10, i64 104}
!7 = !{!"_ZTS10TfLiteType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS24TfLiteQuantizationParams", !12, i64 0, !13, i64 4}
!12 = !{!"float", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTS18TfLiteQuantization", !18, i64 0, !10, i64 8}
!18 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!19 = !{!20, !10, i64 40}
!20 = !{!"_ZTS13TfLiteContext", !15, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !13, i64 72, !10, i64 80, !10, i64 88, !16, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !10, i64 152}
!21 = !{!6, !10, i64 88}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTS24TfLiteAffineQuantization", !10, i64 0, !10, i64 8, !13, i64 16}
!24 = !{!13, !13, i64 0}
!25 = !{!6, !7, i64 0}
!26 = !{!6, !10, i64 16}
!27 = !{!23, !13, i64 16}
!28 = !{!6, !12, i64 24}
!29 = !{!12, !12, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!33, !33, i64 0}
!33 = !{!"double", !8, i64 0}
!34 = !{!35, !35, i64 0}
!35 = !{!"_ZTS21TfLiteFusedActivation", !8, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass