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

; 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.TfLiteNode = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr }
%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.TfLiteIntArray = type { i32, [0 x i32] }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.tflite::ops::micro::depthwise_conv::(anonymous namespace)::OpData" = type { %struct.TfLitePaddingValues, i32, i32, ptr, ptr, i32, i32 }
%struct.TfLitePaddingValues = type { i32, i32, i32, i32 }
%struct.TfLiteAffineQuantization = type { ptr, ptr, i32 }
%struct.TfLiteFloatArray = type { i32, [0 x float] }

@.str = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [142 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro14depthwise_conv7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.TfLiteNode, ptr %20, i32 0, i32 4
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %25

24:                                               ; preds = %2
  br label %27

25:                                               ; preds = %2
  call void @abort() #4
  unreachable

26:                                               ; No predecessors!
  br label %27

27:                                               ; preds = %26, %24
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TfLiteNode, ptr %28, i32 0, i32 5
  %30 = load ptr, ptr %29, align 8, !tbaa !12
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %27
  br label %35

33:                                               ; preds = %27
  call void @abort() #4
  unreachable

34:                                               ; No predecessors!
  br label %35

35:                                               ; preds = %34, %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.TfLiteNode, ptr %36, i32 0, i32 5
  %38 = load ptr, ptr %37, align 8, !tbaa !12
  store ptr %38, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.TfLiteNode, ptr %39, i32 0, i32 4
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  store ptr %41, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %42, ptr noundef %43, i32 noundef 0)
  store ptr %44, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %45, ptr noundef %46, i32 noundef 1)
  store ptr %47, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TfLiteTensor, ptr %48, i32 0, i32 0
  %50 = load i32, ptr %49, align 8, !tbaa !13
  store i32 %50, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %51, i32 noundef 2)
  store i32 %52, ptr %11, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %53, i32 noundef 1)
  store i32 %54, ptr %12, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %55, i32 noundef 2)
  store i32 %56, ptr %13, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %57, i32 noundef 1)
  store i32 %58, ptr %14, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.TfLiteTensor, ptr %59, i32 0, i32 2
  %61 = load ptr, ptr %60, align 8, !tbaa !25
  %62 = getelementptr inbounds %struct.TfLiteIntArray, ptr %61, i32 0, i32 1
  %63 = getelementptr inbounds [0 x i32], ptr %62, i64 0, i64 3
  %64 = load i32, ptr %63, align 4, !tbaa !24
  store i32 %64, ptr %15, align 4, !tbaa !24
  br label %65

65:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.TfLiteContext, ptr %66, i32 0, i32 14
  %68 = load ptr, ptr %67, align 8, !tbaa !26
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = load i32, ptr %15, align 4, !tbaa !24
  %71 = sext i32 %70 to i64
  %72 = mul i64 %71, 4
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.tflite::ops::micro::depthwise_conv::(anonymous namespace)::OpData", ptr %73, i32 0, i32 3
  %75 = call noundef i32 %68(ptr noundef %69, i64 noundef %72, ptr noundef %74)
  store i32 %75, ptr %16, align 4, !tbaa !28
  %76 = load i32, ptr %16, align 4, !tbaa !28
  %77 = icmp ne i32 %76, 0
  br i1 %77, label %78, label %80

78:                                               ; preds = %65
  %79 = load i32, ptr %16, align 4, !tbaa !28
  store i32 %79, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %81

80:                                               ; preds = %65
  store i32 0, ptr %17, align 4
  br label %81

81:                                               ; preds = %80, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %82 = load i32, ptr %17, align 4
  switch i32 %82, label %261 [
    i32 0, label %83
  ]

83:                                               ; preds = %81
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TfLiteContext, ptr %87, i32 0, i32 14
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = load i32, ptr %15, align 4, !tbaa !24
  %92 = sext i32 %91 to i64
  %93 = mul i64 %92, 4
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.tflite::ops::micro::depthwise_conv::(anonymous namespace)::OpData", ptr %94, i32 0, i32 4
  %96 = call noundef i32 %89(ptr noundef %90, i64 noundef %93, ptr noundef %95)
  store i32 %96, ptr %18, align 4, !tbaa !28
  %97 = load i32, ptr %18, align 4, !tbaa !28
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %101

99:                                               ; preds = %86
  %100 = load i32, ptr %18, align 4, !tbaa !28
  store i32 %100, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %102

101:                                              ; preds = %86
  store i32 0, ptr %17, align 4
  br label %102

102:                                              ; preds = %101, %99
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %103 = load i32, ptr %17, align 4
  switch i32 %103, label %261 [
    i32 0, label %104
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TfLiteTensor, ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !13
  %110 = icmp eq i32 %109, 9
  br i1 %110, label %111, label %250

111:                                              ; preds = %106
  br label %112

112:                                              ; preds = %111
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.TfLiteTensor, ptr %113, i32 0, i32 12
  %115 = getelementptr inbounds %struct.TfLiteQuantization, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !30
  %117 = icmp ne i32 %116, 1
  br i1 %117, label %118, label %130

118:                                              ; preds = %112
  br label %119

119:                                              ; preds = %118
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.TfLiteContext, ptr %120, i32 0, i32 5
  %122 = load ptr, ptr %121, align 8, !tbaa !31
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.TfLiteTensor, ptr %124, i32 0, i32 12
  %126 = getelementptr inbounds %struct.TfLiteQuantization, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 8, !tbaa !30
  call void (ptr, ptr, ...) %122(ptr noundef %123, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 549, ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef %127, i32 noundef 1)
  br label %128

128:                                              ; preds = %119
  br label %129

129:                                              ; preds = %128
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %261

130:                                              ; preds = %112
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.TfLiteTensor, ptr %133, i32 0, i32 12
  %135 = getelementptr inbounds %struct.TfLiteQuantization, ptr %134, i32 0, i32 1
  %136 = load ptr, ptr %135, align 8, !tbaa !32
  store ptr %136, ptr %19, align 8, !tbaa !5
  br label %137

137:                                              ; preds = %132
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = icmp ne ptr %138, null
  br i1 %139, label %148, label %140

140:                                              ; preds = %137
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.TfLiteContext, ptr %142, i32 0, i32 5
  %144 = load ptr, ptr %143, align 8, !tbaa !31
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %144(ptr noundef %145, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 554, ptr noundef @.str.5)
  br label %146

146:                                              ; preds = %141
  br label %147

147:                                              ; preds = %146
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %247

148:                                              ; preds = %137
  br label %149

149:                                              ; preds = %148
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  %152 = load ptr, ptr %19, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %152, i32 0, i32 0
  %154 = load ptr, ptr %153, align 8, !tbaa !33
  %155 = icmp ne ptr %154, null
  br i1 %155, label %164, label %156

156:                                              ; preds = %151
  br label %157

157:                                              ; preds = %156
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.TfLiteContext, ptr %158, i32 0, i32 5
  %160 = load ptr, ptr %159, align 8, !tbaa !31
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %160(ptr noundef %161, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 555, ptr noundef @.str.6)
  br label %162

162:                                              ; preds = %157
  br label %163

163:                                              ; preds = %162
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %247

164:                                              ; preds = %151
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  br label %167

167:                                              ; preds = %166
  %168 = load ptr, ptr %19, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %168, i32 0, i32 1
  %170 = load ptr, ptr %169, align 8, !tbaa !35
  %171 = icmp ne ptr %170, null
  br i1 %171, label %180, label %172

172:                                              ; preds = %167
  br label %173

173:                                              ; preds = %172
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.TfLiteContext, ptr %174, i32 0, i32 5
  %176 = load ptr, ptr %175, align 8, !tbaa !31
  %177 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %176(ptr noundef %177, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 556, ptr noundef @.str.7)
  br label %178

178:                                              ; preds = %173
  br label %179

179:                                              ; preds = %178
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %247

180:                                              ; preds = %167
  br label %181

181:                                              ; preds = %180
  br label %182

182:                                              ; preds = %181
  br label %183

183:                                              ; preds = %182
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %184, i32 0, i32 0
  %186 = load ptr, ptr %185, align 8, !tbaa !33
  %187 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 4, !tbaa !24
  %189 = icmp eq i32 %188, 1
  br i1 %189, label %211, label %190

190:                                              ; preds = %183
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %191, i32 0, i32 0
  %193 = load ptr, ptr %192, align 8, !tbaa !33
  %194 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 4, !tbaa !24
  %196 = load ptr, ptr %9, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.TfLiteTensor, ptr %196, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !25
  %199 = getelementptr inbounds %struct.TfLiteIntArray, ptr %198, i32 0, i32 1
  %200 = getelementptr inbounds [0 x i32], ptr %199, i64 0, i64 3
  %201 = load i32, ptr %200, align 4, !tbaa !24
  %202 = icmp eq i32 %195, %201
  br i1 %202, label %211, label %203

203:                                              ; preds = %190
  br label %204

204:                                              ; preds = %203
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.TfLiteContext, ptr %205, i32 0, i32 5
  %207 = load ptr, ptr %206, align 8, !tbaa !31
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %207(ptr noundef %208, ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 560, ptr noundef @.str.8)
  br label %209

209:                                              ; preds = %204
  br label %210

210:                                              ; preds = %209
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %247

211:                                              ; preds = %190, %183
  br label %212

212:                                              ; preds = %211
  br label %213

213:                                              ; preds = %212
  br label %214

214:                                              ; preds = %213
  %215 = load ptr, ptr %19, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8, !tbaa !33
  %218 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 4, !tbaa !24
  %220 = load ptr, ptr %19, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %220, i32 0, i32 1
  %222 = load ptr, ptr %221, align 8, !tbaa !35
  %223 = getelementptr inbounds %struct.TfLiteIntArray, ptr %222, i32 0, i32 0
  %224 = load i32, ptr %223, align 4, !tbaa !24
  %225 = icmp ne i32 %219, %224
  br i1 %225, label %226, label %244

226:                                              ; preds = %214
  br label %227

227:                                              ; preds = %226
  %228 = load ptr, ptr %4, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.TfLiteContext, ptr %228, i32 0, i32 5
  %230 = load ptr, ptr %229, align 8, !tbaa !31
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = load ptr, ptr %19, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %232, i32 0, i32 0
  %234 = load ptr, ptr %233, align 8, !tbaa !33
  %235 = getelementptr inbounds %struct.TfLiteFloatArray, ptr %234, i32 0, i32 0
  %236 = load i32, ptr %235, align 4, !tbaa !24
  %237 = load ptr, ptr %19, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.TfLiteAffineQuantization, ptr %237, i32 0, i32 1
  %239 = load ptr, ptr %238, align 8, !tbaa !35
  %240 = getelementptr inbounds %struct.TfLiteIntArray, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %240, align 4, !tbaa !24
  call void (ptr, ptr, ...) %230(ptr noundef %231, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 562, ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %236, i32 noundef %241)
  br label %242

242:                                              ; preds = %227
  br label %243

243:                                              ; preds = %242
  store i32 1, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %247

244:                                              ; preds = %214
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  store i32 0, ptr %17, align 4
  br label %247

247:                                              ; preds = %246, %243, %210, %179, %163, %147
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %248 = load i32, ptr %17, align 4
  switch i32 %248, label %261 [
    i32 0, label %249
  ]

249:                                              ; preds = %247
  br label %250

250:                                              ; preds = %249, %106
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = load ptr, ptr %6, align 8, !tbaa !5
  %254 = load i32, ptr %11, align 4, !tbaa !24
  %255 = load i32, ptr %12, align 4, !tbaa !24
  %256 = load i32, ptr %13, align 4, !tbaa !24
  %257 = load i32, ptr %14, align 4, !tbaa !24
  %258 = load i32, ptr %10, align 4, !tbaa !23
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = call noundef i32 @_ZN6tflite3ops5micro14depthwise_conv12_GLOBAL__N_115CalculateOpDataEP13TfLiteContextP10TfLiteNodeP25TfLiteDepthwiseConvParamsiiii10TfLiteTypePNS3_6OpDataE(ptr noundef %251, ptr noundef %252, ptr noundef %253, i32 noundef %254, i32 noundef %255, i32 noundef %256, i32 noundef %257, i32 noundef %258, ptr noundef %259)
  store i32 %260, ptr %3, align 4
  store i32 1, ptr %17, align 4
  br label %261

261:                                              ; preds = %250, %247, %129, %102, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %262 = load i32, ptr %3, align 4
  ret i32 %262
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZN6tflite3ops5micro14depthwise_conv12_GLOBAL__N_115CalculateOpDataEP13TfLiteContextP10TfLiteNodeP25TfLiteDepthwiseConvParamsiiii10TfLiteTypePNS3_6OpDataE(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 32}
!10 = !{!"_ZTS10TfLiteNode", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !11, i64 56, !6, i64 64}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 40}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS12TfLiteTensor", !15, i64 0, !7, i64 8, !6, i64 16, !16, i64 24, !18, i64 32, !19, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !11, i64 72, !20, i64 76, !20, i64 77, !21, i64 80, !6, i64 96, !6, i64 104}
!15 = !{!"_ZTS10TfLiteType", !7, i64 0}
!16 = !{!"_ZTS24TfLiteQuantizationParams", !17, i64 0, !11, i64 4}
!17 = !{!"float", !7, i64 0}
!18 = !{!"_ZTS20TfLiteAllocationType", !7, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{!"_ZTS18TfLiteQuantization", !22, i64 0, !6, i64 8}
!22 = !{!"_ZTS22TfLiteQuantizationType", !7, i64 0}
!23 = !{!15, !15, i64 0}
!24 = !{!11, !11, i64 0}
!25 = !{!14, !6, i64 16}
!26 = !{!27, !6, i64 112}
!27 = !{!"_ZTS13TfLiteContext", !19, 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, !11, i64 72, !6, i64 80, !6, i64 88, !20, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152}
!28 = !{!29, !29, i64 0}
!29 = !{!"_ZTS12TfLiteStatus", !7, i64 0}
!30 = !{!14, !22, i64 80}
!31 = !{!27, !6, i64 40}
!32 = !{!14, !6, i64 88}
!33 = !{!34, !6, i64 0}
!34 = !{!"_ZTS24TfLiteAffineQuantization", !6, i64 0, !6, i64 8, !11, i64 16}
!35 = !{!34, !6, i64 8}


; 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 [142 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [130 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @abort() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro14depthwise_conv7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 32
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %5, label %6

5:                                                ; preds = %2
  tail call void @abort() #3
  unreachable

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %1, i64 40
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %.not77 = icmp eq ptr %8, null
  br i1 %.not77, label %9, label %10

9:                                                ; preds = %6
  tail call void @abort() #3
  unreachable

10:                                               ; preds = %6
  %11 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 0)
  %12 = tail call noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef %0, ptr noundef nonnull %1, i32 noundef 1)
  %13 = load i32, ptr %11, align 8, !tbaa !12
  %14 = tail call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef nonnull %11, i32 noundef 2)
  %15 = tail call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef nonnull %11, i32 noundef 1)
  %16 = tail call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %12, i32 noundef 2)
  %17 = tail call noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef %12, i32 noundef 1)
  %18 = getelementptr inbounds i8, ptr %12, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !22
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %21 = load i32, ptr %20, align 4, !tbaa !23
  %22 = getelementptr inbounds i8, ptr %0, i64 112
  %23 = load ptr, ptr %22, align 8, !tbaa !24
  %24 = sext i32 %21 to i64
  %25 = shl nsw i64 %24, 2
  %26 = getelementptr inbounds i8, ptr %4, i64 24
  %27 = tail call noundef i32 %23(ptr noundef %0, i64 noundef %25, ptr noundef nonnull %26)
  %.not78 = icmp eq i32 %27, 0
  br i1 %.not78, label %28, label %.thread

28:                                               ; preds = %10
  %29 = load ptr, ptr %22, align 8, !tbaa !24
  %30 = getelementptr inbounds i8, ptr %4, i64 32
  %31 = tail call noundef i32 %29(ptr noundef nonnull %0, i64 noundef %25, ptr noundef nonnull %30)
  %.not79 = icmp eq i32 %31, 0
  br i1 %.not79, label %32, label %.thread

32:                                               ; preds = %28
  %33 = load i32, ptr %11, align 8, !tbaa !12
  %34 = icmp eq i32 %33, 9
  br i1 %34, label %35, label %74

35:                                               ; preds = %32
  %36 = getelementptr inbounds i8, ptr %12, i64 80
  %37 = load i32, ptr %36, align 8, !tbaa !26
  %.not80 = icmp eq i32 %37, 1
  br i1 %.not80, label %41, label %38

38:                                               ; preds = %35
  %39 = getelementptr inbounds i8, ptr %0, i64 40
  %40 = load ptr, ptr %39, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %40(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 549, ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef %37, i32 noundef 1)
  br label %.thread

41:                                               ; preds = %35
  %42 = getelementptr inbounds i8, ptr %12, i64 88
  %43 = load ptr, ptr %42, align 8, !tbaa !28
  %.not81 = icmp eq ptr %43, null
  br i1 %.not81, label %44, label %47

44:                                               ; preds = %41
  %45 = getelementptr inbounds i8, ptr %0, i64 40
  %46 = load ptr, ptr %45, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %46(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 554, ptr noundef nonnull @.str.5)
  br label %.thread

47:                                               ; preds = %41
  %48 = load ptr, ptr %43, align 8, !tbaa !29
  %.not82 = icmp eq ptr %48, null
  br i1 %.not82, label %49, label %52

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %51(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 555, ptr noundef nonnull @.str.6)
  br label %.thread

52:                                               ; preds = %47
  %53 = getelementptr inbounds i8, ptr %43, i64 8
  %54 = load ptr, ptr %53, align 8, !tbaa !31
  %.not83 = icmp eq ptr %54, null
  br i1 %.not83, label %55, label %58

55:                                               ; preds = %52
  %56 = getelementptr inbounds i8, ptr %0, i64 40
  %57 = load ptr, ptr %56, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %57(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 556, ptr noundef nonnull @.str.7)
  br label %.thread

58:                                               ; preds = %52
  %59 = load i32, ptr %48, align 4, !tbaa !23
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %69, label %61

61:                                               ; preds = %58
  %62 = load ptr, ptr %18, align 8, !tbaa !22
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  %64 = load i32, ptr %63, align 4, !tbaa !23
  %65 = icmp eq i32 %59, %64
  br i1 %65, label %69, label %66

66:                                               ; preds = %61
  %67 = getelementptr inbounds i8, ptr %0, i64 40
  %68 = load ptr, ptr %67, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %68(ptr noundef nonnull %0, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 560, ptr noundef nonnull @.str.8)
  br label %.thread

69:                                               ; preds = %58, %61
  %70 = load i32, ptr %54, align 4, !tbaa !23
  %.not84 = icmp eq i32 %59, %70
  br i1 %.not84, label %74, label %71

71:                                               ; preds = %69
  %72 = getelementptr inbounds i8, ptr %0, i64 40
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  tail call void (ptr, ptr, ...) %73(ptr noundef nonnull %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 562, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef %59, i32 noundef %70)
  br label %.thread

74:                                               ; preds = %69, %32
  %75 = tail call noundef i32 @_ZN6tflite3ops5micro14depthwise_conv12_GLOBAL__N_115CalculateOpDataEP13TfLiteContextP10TfLiteNodeP25TfLiteDepthwiseConvParamsiiii10TfLiteTypePNS3_6OpDataE(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef nonnull %8, i32 noundef %14, i32 noundef %15, i32 noundef %16, i32 noundef %17, i32 noundef %13, ptr noundef nonnull %4)
  br label %.thread

.thread:                                          ; preds = %44, %49, %55, %66, %71, %28, %10, %74, %38
  %.3 = phi i32 [ 1, %38 ], [ %75, %74 ], [ %31, %28 ], [ %27, %10 ], [ 1, %71 ], [ 1, %66 ], [ 1, %55 ], [ 1, %49 ], [ 1, %44 ]
  ret i32 %.3
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite8GetInputEPK13TfLiteContextPK10TfLiteNodei(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite15SizeOfDimensionEPK12TfLiteTensori(ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { noreturn 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 #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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { noreturn 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, !7, i64 32}
!6 = !{!"_ZTS10TfLiteNode", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !7, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 40}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTS12TfLiteTensor", !14, i64 0, !8, i64 8, !7, i64 16, !15, i64 24, !17, i64 32, !18, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !19, i64 76, !19, i64 77, !20, i64 80, !7, i64 96, !7, i64 104}
!14 = !{!"_ZTS10TfLiteType", !8, i64 0}
!15 = !{!"_ZTS24TfLiteQuantizationParams", !16, i64 0, !10, i64 4}
!16 = !{!"float", !8, i64 0}
!17 = !{!"_ZTS20TfLiteAllocationType", !8, i64 0}
!18 = !{!"long", !8, i64 0}
!19 = !{!"bool", !8, i64 0}
!20 = !{!"_ZTS18TfLiteQuantization", !21, i64 0, !7, i64 8}
!21 = !{!"_ZTS22TfLiteQuantizationType", !8, i64 0}
!22 = !{!13, !7, i64 16}
!23 = !{!10, !10, i64 0}
!24 = !{!25, !7, i64 112}
!25 = !{!"_ZTS13TfLiteContext", !18, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !10, i64 72, !7, i64 80, !7, i64 88, !19, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152}
!26 = !{!13, !21, i64 80}
!27 = !{!25, !7, i64 40}
!28 = !{!13, !7, i64 88}
!29 = !{!30, !7, i64 0}
!30 = !{!"_ZTS24TfLiteAffineQuantization", !7, i64 0, !7, i64 8, !10, i64 16}
!31 = !{!30, !7, i64 8}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass