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

; 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.tflite::ops::micro::pad::PadContext" = type <{ ptr, ptr, ptr, ptr, i32, i8, [3 x i8] }>
%"class.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }
%struct.TfLiteContext = type { i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i8, ptr, ptr, ptr, ptr, ptr, ptr, 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] }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3pad7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.tflite::ops::micro::pad::PadContext", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"class.tflite::RuntimeShape", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.tflite::RuntimeShape", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %2
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %17)
  %19 = icmp eq i32 %18, 2
  br i1 %19, label %31, label %20

20:                                               ; preds = %16
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %21)
  %23 = icmp eq i32 %22, 3
  br i1 %23, label %31, label %24

24:                                               ; preds = %20
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.TfLiteContext, ptr %26, i32 0, i32 5
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %28(ptr noundef %29, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 71, ptr noundef @.str.2)
  br label %30

30:                                               ; preds = %25
  store i32 1, ptr %3, align 4
  br label %264

31:                                               ; preds = %20, %16
  br label %32

32:                                               ; preds = %31
  br label %33

33:                                               ; preds = %32
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %34)
  %36 = icmp ne i32 %35, 1
  br i1 %36, label %37, label %46

37:                                               ; preds = %33
  br label %38

38:                                               ; preds = %37
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.TfLiteContext, ptr %39, i32 0, i32 5
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %43)
  call void (ptr, ptr, ...) %41(ptr noundef %42, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 72, ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef %44, i32 noundef 1)
  br label %45

45:                                               ; preds = %38
  store i32 1, ptr %3, align 4
  br label %264

46:                                               ; preds = %33
  br label %47

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 40, ptr %6) #5
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN6tflite3ops5micro3pad10PadContextC2EP13TfLiteContextP10TfLiteNode(ptr noundef nonnull align 8 dereferenceable(37) %6, ptr noundef %48, ptr noundef %49)
  br label %50

50:                                               ; preds = %47
  %51 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 1
  %52 = load ptr, ptr %51, align 8, !tbaa !14
  %53 = getelementptr inbounds %struct.TfLiteTensor, ptr %52, i32 0, i32 0
  %54 = load i32, ptr %53, align 8, !tbaa !17
  %55 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %56 = load ptr, ptr %55, align 8, !tbaa !25
  %57 = getelementptr inbounds %struct.TfLiteTensor, ptr %56, i32 0, i32 0
  %58 = load i32, ptr %57, align 8, !tbaa !17
  %59 = icmp ne i32 %54, %58
  br i1 %59, label %60, label %76

60:                                               ; preds = %50
  br label %61

61:                                               ; preds = %60
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.TfLiteContext, ptr %62, i32 0, i32 5
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 1
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  %68 = getelementptr inbounds %struct.TfLiteTensor, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !17
  %70 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %71 = load ptr, ptr %70, align 8, !tbaa !25
  %72 = getelementptr inbounds %struct.TfLiteTensor, ptr %71, i32 0, i32 0
  %73 = load i32, ptr %72, align 8, !tbaa !17
  call void (ptr, ptr, ...) %64(ptr noundef %65, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 75, ptr noundef @.str.6, ptr noundef @.str.7, i32 noundef %69, i32 noundef %73)
  br label %74

74:                                               ; preds = %61
  br label %75

75:                                               ; preds = %74
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %262

76:                                               ; preds = %50
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  %79 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !26
  %81 = icmp ne ptr %80, null
  br i1 %81, label %82, label %112

82:                                               ; preds = %78
  br label %83

83:                                               ; preds = %82
  %84 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 1
  %85 = load ptr, ptr %84, align 8, !tbaa !14
  %86 = getelementptr inbounds %struct.TfLiteTensor, ptr %85, i32 0, i32 0
  %87 = load i32, ptr %86, align 8, !tbaa !17
  %88 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = getelementptr inbounds %struct.TfLiteTensor, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !17
  %92 = icmp ne i32 %87, %91
  br i1 %92, label %93, label %109

93:                                               ; preds = %83
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.TfLiteContext, ptr %95, i32 0, i32 5
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 1
  %100 = load ptr, ptr %99, align 8, !tbaa !14
  %101 = getelementptr inbounds %struct.TfLiteTensor, ptr %100, i32 0, i32 0
  %102 = load i32, ptr %101, align 8, !tbaa !17
  %103 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !26
  %105 = getelementptr inbounds %struct.TfLiteTensor, ptr %104, i32 0, i32 0
  %106 = load i32, ptr %105, align 8, !tbaa !17
  call void (ptr, ptr, ...) %97(ptr noundef %98, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 78, ptr noundef @.str.6, ptr noundef @.str.8, i32 noundef %102, i32 noundef %106)
  br label %107

107:                                              ; preds = %94
  br label %108

108:                                              ; preds = %107
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %262

109:                                              ; preds = %83
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  br label %112

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

113:                                              ; preds = %112
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #5
  %114 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 2
  %115 = load ptr, ptr %114, align 8, !tbaa !27
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %8, ptr noundef %115)
  %116 = invoke noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %117 unwind label %146

117:                                              ; preds = %113
  %118 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %119 = load ptr, ptr %118, align 8, !tbaa !25
  %120 = getelementptr inbounds %struct.TfLiteTensor, ptr %119, i32 0, i32 2
  %121 = load ptr, ptr %120, align 8, !tbaa !28
  %122 = getelementptr inbounds %struct.TfLiteIntArray, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 4, !tbaa !29
  %124 = mul nsw i32 %123, 2
  %125 = icmp ne i32 %116, %124
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br i1 %125, label %126, label %154

126:                                              ; preds = %117
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.TfLiteContext, ptr %128, i32 0, i32 5
  %130 = load ptr, ptr %129, align 8, !tbaa !9
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #5
  %132 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 2
  %133 = load ptr, ptr %132, align 8, !tbaa !27
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind writable sret(%"class.tflite::RuntimeShape") align 8 %11, ptr noundef %133)
  %134 = invoke noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %135 unwind label %150

135:                                              ; preds = %127
  %136 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !25
  %138 = getelementptr inbounds %struct.TfLiteTensor, ptr %137, i32 0, i32 2
  %139 = load ptr, ptr %138, align 8, !tbaa !28
  %140 = getelementptr inbounds %struct.TfLiteIntArray, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 4, !tbaa !29
  %142 = mul nsw i32 %141, 2
  invoke void (ptr, ptr, ...) %130(ptr noundef %131, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 83, ptr noundef @.str.9, ptr noundef @.str.10, i32 noundef %134, i32 noundef %142)
          to label %143 unwind label %150

143:                                              ; preds = %135
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %262

146:                                              ; preds = %113
  %147 = landingpad { ptr, i32 }
          cleanup
  %148 = extractvalue { ptr, i32 } %147, 0
  store ptr %148, ptr %9, align 8
  %149 = extractvalue { ptr, i32 } %147, 1
  store i32 %149, ptr %10, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #5
  br label %263

150:                                              ; preds = %135, %127
  %151 = landingpad { ptr, i32 }
          cleanup
  %152 = extractvalue { ptr, i32 } %151, 0
  store ptr %152, ptr %9, align 8
  %153 = extractvalue { ptr, i32 } %151, 1
  store i32 %153, ptr %10, align 4
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #5
  br label %263

154:                                              ; preds = %117
  br label %155

155:                                              ; preds = %154
  br label %156

156:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %157 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 2
  %158 = load ptr, ptr %157, align 8, !tbaa !27
  %159 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPKT_PK12TfLiteTensor(ptr noundef %158)
  store ptr %159, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !29
  br label %160

160:                                              ; preds = %224, %156
  %161 = load i32, ptr %13, align 4, !tbaa !29
  %162 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %163 = load ptr, ptr %162, align 8, !tbaa !25
  %164 = getelementptr inbounds %struct.TfLiteTensor, ptr %163, i32 0, i32 2
  %165 = load ptr, ptr %164, align 8, !tbaa !28
  %166 = getelementptr inbounds %struct.TfLiteIntArray, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 4, !tbaa !29
  %168 = icmp slt i32 %161, %167
  br i1 %168, label %170, label %169

169:                                              ; preds = %160
  store i32 22, ptr %7, align 4
  br label %227

170:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %171 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 3
  %172 = load ptr, ptr %171, align 8, !tbaa !25
  %173 = getelementptr inbounds %struct.TfLiteTensor, ptr %172, i32 0, i32 2
  %174 = load ptr, ptr %173, align 8, !tbaa !28
  %175 = getelementptr inbounds %struct.TfLiteIntArray, ptr %174, i32 0, i32 1
  %176 = load i32, ptr %13, align 4, !tbaa !29
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [0 x i32], ptr %175, i64 0, i64 %177
  %179 = load i32, ptr %178, align 4, !tbaa !29
  store i32 %179, ptr %14, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %180 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 1
  %181 = load ptr, ptr %180, align 8, !tbaa !14
  %182 = getelementptr inbounds %struct.TfLiteTensor, ptr %181, i32 0, i32 2
  %183 = load ptr, ptr %182, align 8, !tbaa !28
  %184 = getelementptr inbounds %struct.TfLiteIntArray, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %13, align 4, !tbaa !29
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [0 x i32], ptr %184, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !29
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = load i32, ptr %13, align 4, !tbaa !29
  %191 = mul nsw i32 %190, 2
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds i32, ptr %189, i64 %192
  %194 = load i32, ptr %193, align 4, !tbaa !29
  %195 = add nsw i32 %188, %194
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = load i32, ptr %13, align 4, !tbaa !29
  %198 = mul nsw i32 %197, 2
  %199 = add nsw i32 %198, 1
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %196, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !29
  %203 = add nsw i32 %195, %202
  store i32 %203, ptr %15, align 4, !tbaa !29
  br label %204

204:                                              ; preds = %170
  %205 = load i32, ptr %14, align 4, !tbaa !29
  %206 = load i32, ptr %15, align 4, !tbaa !29
  %207 = icmp ne i32 %205, %206
  br i1 %207, label %208, label %218

208:                                              ; preds = %204
  br label %209

209:                                              ; preds = %208
  %210 = load ptr, ptr %4, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.TfLiteContext, ptr %210, i32 0, i32 5
  %212 = load ptr, ptr %211, align 8, !tbaa !9
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = load i32, ptr %14, align 4, !tbaa !29
  %215 = load i32, ptr %15, align 4, !tbaa !29
  call void (ptr, ptr, ...) %212(ptr noundef %213, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 91, ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef %214, i32 noundef %215)
  br label %216

216:                                              ; preds = %209
  br label %217

217:                                              ; preds = %216
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %221

218:                                              ; preds = %204
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  store i32 0, ptr %7, align 4
  br label %221

221:                                              ; preds = %220, %217
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  %222 = load i32, ptr %7, align 4
  switch i32 %222, label %227 [
    i32 0, label %223
  ]

223:                                              ; preds = %221
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %13, align 4, !tbaa !29
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !29
  br label %160, !llvm.loop !30

227:                                              ; preds = %221, %169
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  %228 = load i32, ptr %7, align 4
  switch i32 %228, label %261 [
    i32 22, label %229
  ]

229:                                              ; preds = %227
  br label %230

230:                                              ; preds = %229
  %231 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 4
  %232 = load i32, ptr %231, align 8, !tbaa !32
  %233 = call noundef i32 @_ZN6tflite13reference_ops26PadKernelMaxDimensionCountEv()
  %234 = icmp sle i32 %232, %233
  br i1 %234, label %243, label %235

235:                                              ; preds = %230
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %4, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.TfLiteContext, ptr %237, i32 0, i32 5
  %239 = load ptr, ptr %238, align 8, !tbaa !9
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %239(ptr noundef %240, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 96, ptr noundef @.str.13)
  br label %241

241:                                              ; preds = %236
  br label %242

242:                                              ; preds = %241
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %261

243:                                              ; preds = %230
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  %247 = getelementptr inbounds %"struct.tflite::ops::micro::pad::PadContext", ptr %6, i32 0, i32 2
  %248 = load ptr, ptr %247, align 8, !tbaa !27
  %249 = call noundef zeroext i1 @_ZN6tflite16IsConstantTensorEPK12TfLiteTensor(ptr noundef %248)
  br i1 %249, label %258, label %250

250:                                              ; preds = %246
  br label %251

251:                                              ; preds = %250
  %252 = load ptr, ptr %4, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.TfLiteContext, ptr %252, i32 0, i32 5
  %254 = load ptr, ptr %253, align 8, !tbaa !9
  %255 = load ptr, ptr %4, align 8, !tbaa !5
  call void (ptr, ptr, ...) %254(ptr noundef %255, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 97, ptr noundef @.str.14)
  br label %256

256:                                              ; preds = %251
  br label %257

257:                                              ; preds = %256
  store i32 1, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %261

258:                                              ; preds = %246
  br label %259

259:                                              ; preds = %258
  br label %260

260:                                              ; preds = %259
  store i32 0, ptr %3, align 4
  store i32 1, ptr %7, align 4
  br label %261

261:                                              ; preds = %260, %257, %242, %227
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %262

262:                                              ; preds = %261, %145, %108, %75
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  br label %264

263:                                              ; preds = %150, %146
  call void @llvm.lifetime.end.p0(i64 40, ptr %6) #5
  br label %266

264:                                              ; preds = %262, %45, %30
  %265 = load i32, ptr %3, align 4
  ret i32 %265

266:                                              ; preds = %263
  %267 = load ptr, ptr %9, align 8
  %268 = load i32, ptr %10, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6tflite3ops5micro3pad10PadContextC2EP13TfLiteContextP10TfLiteNode(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite13GetTensorDataIiEEPKT_PK12TfLiteTensor(ptr noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite13reference_ops26PadKernelMaxDimensionCountEv() #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tflite16IsConstantTensorEPK12TfLiteTensor(ptr noundef) #1

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

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

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


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

%"struct.tflite::ops::micro::pad::PadContext" = type <{ ptr, ptr, ptr, ptr, i32, i8, [3 x i8] }>
%"class.tflite::RuntimeShape" = type { i32, %union.anon }
%union.anon = type { ptr, [16 x i8] }

@.str = external hidden unnamed_addr constant [23 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [131 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [63 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN6tflite3ops5micro3pad7PrepareEP13TfLiteContextP10TfLiteNode(ptr noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.tflite::ops::micro::pad::PadContext", align 8
  %4 = alloca %"class.tflite::RuntimeShape", align 8
  %5 = alloca %"class.tflite::RuntimeShape", align 8
  %6 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %1)
  %7 = icmp eq i32 %6, 2
  br i1 %7, label %14, label %8

8:                                                ; preds = %2
  %9 = tail call noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef %1)
  %10 = icmp eq i32 %9, 3
  br i1 %10, label %14, label %11

11:                                               ; preds = %8
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = load ptr, ptr %12, align 8, !tbaa !5
  tail call void (ptr, ptr, ...) %13(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 71, ptr noundef nonnull @.str.2)
  br label %105

14:                                               ; preds = %8, %2
  %15 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %1)
  %.not = icmp eq i32 %15, 1
  br i1 %.not, label %20, label %16

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = tail call noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef %1)
  tail call void (ptr, ptr, ...) %18(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 72, ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef %19, i32 noundef 1)
  br label %105

20:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #5
  call void @_ZN6tflite3ops5micro3pad10PadContextC2EP13TfLiteContextP10TfLiteNode(ptr noundef nonnull align 8 dereferenceable(37) %3, ptr noundef %0, ptr noundef %1)
  %21 = getelementptr inbounds i8, ptr %3, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = load i32, ptr %22, align 8, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %3, i64 24
  %25 = load ptr, ptr %24, align 8, !tbaa !24
  %26 = load i32, ptr %25, align 8, !tbaa !16
  %.not51 = icmp eq i32 %23, %26
  br i1 %.not51, label %30, label %27

27:                                               ; preds = %20
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load ptr, ptr %28, align 8, !tbaa !5
  call void (ptr, ptr, ...) %29(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 75, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.7, i32 noundef %23, i32 noundef %26)
  br label %103

30:                                               ; preds = %20
  %31 = load ptr, ptr %3, align 8, !tbaa !25
  %.not52 = icmp eq ptr %31, null
  br i1 %.not52, label %37, label %32

32:                                               ; preds = %30
  %33 = load i32, ptr %31, align 8, !tbaa !16
  %.not53 = icmp eq i32 %23, %33
  br i1 %.not53, label %37, label %34

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %0, i64 40
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  call void (ptr, ptr, ...) %36(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 78, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.8, i32 noundef %23, i32 noundef %33)
  br label %103

37:                                               ; preds = %30, %32
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %38 = getelementptr inbounds i8, ptr %3, i64 16
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %4, ptr noundef %39)
  %40 = invoke noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %41 unwind label %59

41:                                               ; preds = %37
  %42 = load ptr, ptr %24, align 8, !tbaa !24
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = load i32, ptr %44, align 4, !tbaa !28
  %46 = shl nsw i32 %45, 1
  %.not54 = icmp eq i32 %40, %46
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br i1 %.not54, label %63, label %47

47:                                               ; preds = %41
  %48 = getelementptr inbounds i8, ptr %0, i64 40
  %49 = load ptr, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  %50 = load ptr, ptr %38, align 8, !tbaa !26
  call void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind nonnull writable sret(%"class.tflite::RuntimeShape") align 8 %5, ptr noundef %50)
  %51 = invoke noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %52 unwind label %61

52:                                               ; preds = %47
  %53 = load ptr, ptr %24, align 8, !tbaa !24
  %54 = getelementptr inbounds i8, ptr %53, i64 16
  %55 = load ptr, ptr %54, align 8, !tbaa !27
  %56 = load i32, ptr %55, align 4, !tbaa !28
  %57 = shl nsw i32 %56, 1
  invoke void (ptr, ptr, ...) %49(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 83, ptr noundef nonnull @.str.9, ptr noundef nonnull @.str.10, i32 noundef %51, i32 noundef %57)
          to label %58 unwind label %61

58:                                               ; preds = %52
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %103

59:                                               ; preds = %37
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %104

61:                                               ; preds = %52, %47
  %62 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN6tflite12RuntimeShapeD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %104

63:                                               ; preds = %41
  %64 = load ptr, ptr %38, align 8, !tbaa !26
  %65 = call noundef ptr @_ZN6tflite13GetTensorDataIiEEPKT_PK12TfLiteTensor(ptr noundef %64)
  %66 = load ptr, ptr %24, align 8, !tbaa !24
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %68 = load ptr, ptr %67, align 8, !tbaa !27
  %69 = load i32, ptr %68, align 4, !tbaa !28
  %.not5662 = icmp sgt i32 %69, 0
  br i1 %.not5662, label %.critedge.lr.ph, label %.critedge60

.critedge.lr.ph:                                  ; preds = %63
  %70 = getelementptr inbounds i8, ptr %68, i64 4
  %71 = load ptr, ptr %21, align 8, !tbaa !13
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = load ptr, ptr %72, align 8, !tbaa !27
  %74 = getelementptr inbounds i8, ptr %73, i64 4
  %wide.trip.count = zext nneg i32 %69 to i64
  br label %.critedge

75:                                               ; preds = %.critedge
  %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 %.critedge60, label %.critedge, !llvm.loop !29

.critedge:                                        ; preds = %.critedge.lr.ph, %75
  %indvars.iv = phi i64 [ 0, %.critedge.lr.ph ], [ %indvars.iv.next, %75 ]
  %76 = getelementptr inbounds [0 x i32], ptr %70, i64 0, i64 %indvars.iv
  %77 = load i32, ptr %76, align 4, !tbaa !28
  %78 = getelementptr inbounds [0 x i32], ptr %74, i64 0, i64 %indvars.iv
  %79 = load i32, ptr %78, align 4, !tbaa !28
  %80 = shl nuw nsw i64 %indvars.iv, 1
  %81 = getelementptr inbounds i32, ptr %65, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !28
  %83 = add nsw i32 %82, %79
  %84 = or disjoint i64 %80, 1
  %85 = getelementptr inbounds i32, ptr %65, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !28
  %87 = add nsw i32 %83, %86
  %.not55 = icmp eq i32 %77, %87
  br i1 %.not55, label %75, label %88

88:                                               ; preds = %.critedge
  %89 = getelementptr inbounds i8, ptr %0, i64 40
  %90 = load ptr, ptr %89, align 8, !tbaa !5
  call void (ptr, ptr, ...) %90(ptr noundef %0, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 91, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef %77, i32 noundef %87)
  br label %103

.critedge60:                                      ; preds = %75, %63
  %91 = getelementptr inbounds i8, ptr %3, i64 32
  %92 = load i32, ptr %91, align 8, !tbaa !31
  %93 = call noundef i32 @_ZN6tflite13reference_ops26PadKernelMaxDimensionCountEv()
  %.not57 = icmp sgt i32 %92, %93
  br i1 %.not57, label %94, label %97

94:                                               ; preds = %.critedge60
  %95 = getelementptr inbounds i8, ptr %0, i64 40
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  call void (ptr, ptr, ...) %96(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 96, ptr noundef nonnull @.str.13)
  br label %103

97:                                               ; preds = %.critedge60
  %98 = load ptr, ptr %38, align 8, !tbaa !26
  %99 = call noundef zeroext i1 @_ZN6tflite16IsConstantTensorEPK12TfLiteTensor(ptr noundef %98)
  br i1 %99, label %103, label %100

100:                                              ; preds = %97
  %101 = getelementptr inbounds i8, ptr %0, i64 40
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  call void (ptr, ptr, ...) %102(ptr noundef %0, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 97, ptr noundef nonnull @.str.14)
  br label %103

103:                                              ; preds = %88, %94, %100, %97, %58, %34, %27
  %.4 = phi i32 [ 1, %27 ], [ 1, %34 ], [ 1, %58 ], [ 1, %100 ], [ 1, %94 ], [ 1, %88 ], [ 0, %97 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  br label %105

104:                                              ; preds = %61, %59
  %.pn = phi { ptr, i32 } [ %62, %61 ], [ %60, %59 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn

105:                                              ; preds = %103, %16, %11
  %.5 = phi i32 [ 1, %16 ], [ %.4, %103 ], [ 1, %11 ]
  ret i32 %.5
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite9NumInputsEPK10TfLiteNode(ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite10NumOutputsEPK10TfLiteNode(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6tflite3ops5micro3pad10PadContextC2EP13TfLiteContextP10TfLiteNode(ptr noundef nonnull align 8 dereferenceable(37), ptr noundef, ptr noundef) unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6tflite14GetTensorShapeEPK12TfLiteTensor(ptr dead_on_unwind noalias writable sret(%"class.tflite::RuntimeShape") align 8, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNK6tflite12RuntimeShape8FlatSizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN6tflite13GetTensorDataIiEEPKT_PK12TfLiteTensor(ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN6tflite13reference_ops26PadKernelMaxDimensionCountEv() local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN6tflite16IsConstantTensorEPK12TfLiteTensor(ptr noundef) local_unnamed_addr #1

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass