; LLVM IR from huawei-noah/bolt :: compute/tensor/src/cpu/arm (pooling)

; 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.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.PoolingParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) #3

declare i32 @printf(ptr noundef, ...) #4

declare i32 @fflush(ptr noundef) #4

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #5

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z14pooling_bp_arm10TensorDescPKv16PoolingParamSpecS_Pv(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.PoolingParamSpec) align 8 %2, ptr noundef byval(%struct.TensorDesc) align 8 %3, ptr noundef %4) #6 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %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 i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %struct.TensorDesc, align 8
  %26 = alloca i32, align 4
  %27 = alloca %struct.TensorDesc, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %4, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  store i32 0, ptr %8, align 4, !tbaa !9
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = icmp eq ptr null, %41
  br i1 %42, label %46, label %43

43:                                               ; preds = %5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = icmp eq ptr null, %44
  br i1 %45, label %46, label %47

46:                                               ; preds = %43, %5
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %47

47:                                               ; preds = %46, %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #8
  store i32 0, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 0, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  store i32 0, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %48 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %22, ptr noundef %9, ptr noundef %11, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16)
  store i32 %48, ptr %21, align 4, !tbaa !9
  %49 = load i32, ptr %21, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %63

51:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %52 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %53 = trunc i64 %52 to i32
  store i32 %53, ptr %23, align 4, !tbaa !11
  %54 = load i32, ptr %23, align 4, !tbaa !11
  %55 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %54)
  %56 = load ptr, ptr @stdout, align 8, !tbaa !5
  %57 = call i32 @fflush(ptr noundef %56)
  %58 = load i32, ptr %21, align 4, !tbaa !9
  %59 = call ptr @ee2str(i32 noundef %58)
  %60 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %59)
  %61 = load ptr, ptr @stdout, align 8, !tbaa !5
  %62 = call i32 @fflush(ptr noundef %61)
  call void @exit(i32 noundef 1) #9
  unreachable

63:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 8 %3, i64 92, i1 false), !tbaa.struct !13
  %64 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %25, ptr noundef %10, ptr noundef %12, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  store i32 %64, ptr %24, align 4, !tbaa !9
  %65 = load i32, ptr %24, align 4, !tbaa !9
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %67, label %79

67:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %68 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %26, align 4, !tbaa !11
  %70 = load i32, ptr %26, align 4, !tbaa !11
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %70)
  %72 = load ptr, ptr @stdout, align 8, !tbaa !5
  %73 = call i32 @fflush(ptr noundef %72)
  %74 = load i32, ptr %24, align 4, !tbaa !9
  %75 = call ptr @ee2str(i32 noundef %74)
  %76 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %75)
  %77 = load ptr, ptr @stdout, align 8, !tbaa !5
  %78 = call i32 @fflush(ptr noundef %77)
  call void @exit(i32 noundef 1) #9
  unreachable

79:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %80 = load i32, ptr %9, align 4, !tbaa !14
  %81 = load i32, ptr %10, align 4, !tbaa !14
  %82 = icmp ne i32 %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %79
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %84

84:                                               ; preds = %83, %79
  %85 = load i32, ptr %13, align 4, !tbaa !11
  %86 = load i32, ptr %17, align 4, !tbaa !11
  %87 = icmp ne i32 %85, %86
  br i1 %87, label %92, label %88

88:                                               ; preds = %84
  %89 = load i32, ptr %14, align 4, !tbaa !11
  %90 = load i32, ptr %18, align 4, !tbaa !11
  %91 = icmp ne i32 %89, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %88, %84
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %92, %88
  %94 = load i32, ptr %11, align 4, !tbaa !16
  %95 = icmp ne i32 %94, 2
  br i1 %95, label %100, label %96

96:                                               ; preds = %93
  %97 = load i32, ptr %12, align 4, !tbaa !16
  %98 = load i32, ptr %11, align 4, !tbaa !16
  %99 = icmp ne i32 %97, %98
  br i1 %99, label %100, label %101

100:                                              ; preds = %96, %93
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %100, %96
  %102 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 8
  %103 = load i32, ptr %102, align 8, !tbaa !19
  %104 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 1
  %105 = load i32, ptr %104, align 4, !tbaa !24
  %106 = icmp uge i32 %103, %105
  br i1 %106, label %113, label %107

107:                                              ; preds = %101
  %108 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 10
  %109 = load i32, ptr %108, align 8, !tbaa !25
  %110 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 2
  %111 = load i32, ptr %110, align 8, !tbaa !26
  %112 = icmp uge i32 %109, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %107, %101
  store i32 51, ptr %8, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %113, %107
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %3, i64 92, i1 false), !tbaa.struct !13
  %116 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %27)
  %117 = zext i32 %116 to i64
  call void @_Z10UNI_MEMSETPvim(ptr noundef %115, i32 noundef 0, i64 noundef %117)
  %118 = load i32, ptr %14, align 4, !tbaa !11
  %119 = udiv i32 %118, 8
  store i32 %119, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %120 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 0
  %121 = load i32, ptr %120, align 8, !tbaa !27
  %122 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 1
  %123 = load i32, ptr %122, align 4, !tbaa !24
  %124 = mul i32 %121, %123
  %125 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 2
  %126 = load i32, ptr %125, align 8, !tbaa !26
  %127 = mul i32 %124, %126
  store i32 %127, ptr %28, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 0, ptr %29, align 4, !tbaa !11
  br label %128

128:                                              ; preds = %265, %114
  %129 = load i32, ptr %29, align 4, !tbaa !11
  %130 = load i32, ptr %13, align 4, !tbaa !11
  %131 = load i32, ptr %14, align 4, !tbaa !11
  %132 = mul i32 %130, %131
  %133 = icmp ult i32 %129, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %128
  store i32 2, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %268

135:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %136 = load i32, ptr %29, align 4, !tbaa !11
  %137 = load i32, ptr %14, align 4, !tbaa !11
  %138 = udiv i32 %136, %137
  store i32 %138, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %139 = load i32, ptr %29, align 4, !tbaa !11
  %140 = load i32, ptr %14, align 4, !tbaa !11
  %141 = urem i32 %139, %140
  store i32 %141, ptr %32, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #8
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = load i32, ptr %29, align 4, !tbaa !11
  %144 = load i32, ptr %15, align 4, !tbaa !11
  %145 = mul i32 %143, %144
  %146 = load i32, ptr %16, align 4, !tbaa !11
  %147 = mul i32 %145, %146
  %148 = mul i32 %147, 8
  %149 = load i32, ptr %9, align 4, !tbaa !14
  %150 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %149)
  %151 = mul i32 %148, %150
  %152 = zext i32 %151 to i64
  %153 = getelementptr inbounds i8, ptr %142, i64 %152
  store ptr %153, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #8
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = load i32, ptr %29, align 4, !tbaa !11
  %156 = load i32, ptr %19, align 4, !tbaa !11
  %157 = mul i32 %155, %156
  %158 = load i32, ptr %20, align 4, !tbaa !11
  %159 = mul i32 %157, %158
  %160 = mul i32 %159, 8
  %161 = load i32, ptr %9, align 4, !tbaa !14
  %162 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %161)
  %163 = mul i32 %160, %162
  %164 = zext i32 %163 to i64
  %165 = getelementptr inbounds i8, ptr %154, i64 %164
  store ptr %165, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !11
  br label %166

166:                                              ; preds = %261, %135
  %167 = load i32, ptr %35, align 4, !tbaa !11
  %168 = load i32, ptr %15, align 4, !tbaa !11
  %169 = icmp ult i32 %167, %168
  br i1 %169, label %171, label %170

170:                                              ; preds = %166
  store i32 5, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  br label %264

171:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %172 = load i32, ptr %35, align 4, !tbaa !11
  %173 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 4
  %174 = load i32, ptr %173, align 8, !tbaa !28
  %175 = mul nsw i32 %172, %174
  %176 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 8
  %177 = load i32, ptr %176, align 8, !tbaa !19
  %178 = sub nsw i32 %175, %177
  store i32 %178, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %179 = load i32, ptr %36, align 4, !tbaa !11
  %180 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 1
  %181 = load i32, ptr %180, align 4, !tbaa !24
  %182 = add i32 %179, %181
  %183 = load i32, ptr %19, align 4, !tbaa !11
  %184 = icmp ult i32 %182, %183
  br i1 %184, label %185, label %190

185:                                              ; preds = %171
  %186 = load i32, ptr %36, align 4, !tbaa !11
  %187 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 1
  %188 = load i32, ptr %187, align 4, !tbaa !24
  %189 = add i32 %186, %188
  br label %192

190:                                              ; preds = %171
  %191 = load i32, ptr %19, align 4, !tbaa !11
  br label %192

192:                                              ; preds = %190, %185
  %193 = phi i32 [ %189, %185 ], [ %191, %190 ]
  store i32 %193, ptr %37, align 4, !tbaa !11
  %194 = load i32, ptr %36, align 4, !tbaa !11
  %195 = icmp sgt i32 %194, 0
  br i1 %195, label %196, label %198

196:                                              ; preds = %192
  %197 = load i32, ptr %36, align 4, !tbaa !11
  br label %199

198:                                              ; preds = %192
  br label %199

199:                                              ; preds = %198, %196
  %200 = phi i32 [ %197, %196 ], [ 0, %198 ]
  store i32 %200, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !11
  br label %201

201:                                              ; preds = %251, %199
  %202 = load i32, ptr %38, align 4, !tbaa !11
  %203 = load i32, ptr %16, align 4, !tbaa !11
  %204 = icmp ult i32 %202, %203
  br i1 %204, label %206, label %205

205:                                              ; preds = %201
  store i32 8, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %260

206:                                              ; preds = %201
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %207 = load i32, ptr %38, align 4, !tbaa !11
  %208 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 5
  %209 = load i32, ptr %208, align 4, !tbaa !29
  %210 = mul nsw i32 %207, %209
  %211 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 10
  %212 = load i32, ptr %211, align 8, !tbaa !25
  %213 = sub nsw i32 %210, %212
  store i32 %213, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %214 = load i32, ptr %39, align 4, !tbaa !11
  %215 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 2
  %216 = load i32, ptr %215, align 8, !tbaa !26
  %217 = add i32 %214, %216
  %218 = load i32, ptr %20, align 4, !tbaa !11
  %219 = icmp ult i32 %217, %218
  br i1 %219, label %220, label %225

220:                                              ; preds = %206
  %221 = load i32, ptr %39, align 4, !tbaa !11
  %222 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 2
  %223 = load i32, ptr %222, align 8, !tbaa !26
  %224 = add i32 %221, %223
  br label %227

225:                                              ; preds = %206
  %226 = load i32, ptr %20, align 4, !tbaa !11
  br label %227

227:                                              ; preds = %225, %220
  %228 = phi i32 [ %224, %220 ], [ %226, %225 ]
  store i32 %228, ptr %40, align 4, !tbaa !11
  %229 = load i32, ptr %39, align 4, !tbaa !11
  %230 = icmp sgt i32 %229, 0
  br i1 %230, label %231, label %233

231:                                              ; preds = %227
  %232 = load i32, ptr %39, align 4, !tbaa !11
  br label %234

233:                                              ; preds = %227
  br label %234

234:                                              ; preds = %233, %231
  %235 = phi i32 [ %232, %231 ], [ 0, %233 ]
  store i32 %235, ptr %39, align 4, !tbaa !11
  %236 = getelementptr inbounds %struct.PoolingParamSpec, ptr %2, i32 0, i32 14
  %237 = load i8, ptr %236, align 8, !tbaa !30, !range !31, !noundef !32
  %238 = trunc i8 %237 to i1
  br i1 %238, label %247, label %239

239:                                              ; preds = %234
  %240 = load i32, ptr %37, align 4, !tbaa !11
  %241 = load i32, ptr %36, align 4, !tbaa !11
  %242 = sub nsw i32 %240, %241
  %243 = load i32, ptr %40, align 4, !tbaa !11
  %244 = load i32, ptr %39, align 4, !tbaa !11
  %245 = sub nsw i32 %243, %244
  %246 = mul nsw i32 %242, %245
  store i32 %246, ptr %28, align 4, !tbaa !11
  br label %247

247:                                              ; preds = %239, %234
  %248 = load i32, ptr %9, align 4, !tbaa !14
  switch i32 %248, label %249 [
  ]

249:                                              ; preds = %247
  store i32 51, ptr %8, align 4, !tbaa !9
  br label %250

250:                                              ; preds = %249
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  br label %251

251:                                              ; preds = %250
  %252 = load i32, ptr %38, align 4, !tbaa !11
  %253 = add i32 %252, 1
  store i32 %253, ptr %38, align 4, !tbaa !11
  %254 = load i32, ptr %9, align 4, !tbaa !14
  %255 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %254)
  %256 = mul i32 8, %255
  %257 = load ptr, ptr %33, align 8, !tbaa !5
  %258 = zext i32 %256 to i64
  %259 = getelementptr inbounds i8, ptr %257, i64 %258
  store ptr %259, ptr %33, align 8, !tbaa !5
  br label %201, !llvm.loop !33

260:                                              ; preds = %205
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  br label %261

261:                                              ; preds = %260
  %262 = load i32, ptr %35, align 4, !tbaa !11
  %263 = add i32 %262, 1
  store i32 %263, ptr %35, align 4, !tbaa !11
  br label %166, !llvm.loop !35

264:                                              ; preds = %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %29, align 4, !tbaa !11
  %267 = add i32 %266, 1
  store i32 %267, ptr %29, align 4, !tbaa !11
  br label %128, !llvm.loop !36

268:                                              ; preds = %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  %269 = load i32, ptr %8, align 4, !tbaa !9
  store i32 1, ptr %30, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  ret i32 %269
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #7

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7bytesOf8DataType(i32 noundef) #7

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { "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 = { 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 #6 = { 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 #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !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 = !{!"_ZTS2EE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !16, i64 8, i64 4, !11, i64 12, i64 80, !18}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS8DataType", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !12, i64 32}
!20 = !{!"_ZTS16PoolingParamSpec", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !21, i64 48, !22, i64 52, !23, i64 56}
!21 = !{!"_ZTS9RoundMode", !7, i64 0}
!22 = !{!"_ZTS11PoolingMode", !7, i64 0}
!23 = !{!"bool", !7, i64 0}
!24 = !{!20, !12, i64 4}
!25 = !{!20, !12, i64 40}
!26 = !{!20, !12, i64 8}
!27 = !{!20, !12, i64 0}
!28 = !{!20, !12, i64 16}
!29 = !{!20, !12, i64 20}
!30 = !{!20, !23, i64 56}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = distinct !{!36, !34}


; 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.TensorDesc = type { i32, i32, i32, [20 x i32] }
%struct.PoolingParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 52) i32 @_Z14pooling_bp_arm10TensorDescPKv16PoolingParamSpecS_Pv(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef readnone %1, ptr nocapture noundef readonly byval(%struct.PoolingParamSpec) align 8 %2, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %3, ptr noundef %4) local_unnamed_addr #5 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %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 = icmp eq ptr %1, null
  %19 = icmp eq ptr %4, null
  %or.cond = or i1 %18, %19
  %spec.store.select = zext i1 %or.cond to i32
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  store i32 0, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  store i32 0, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  store i32 0, ptr %17, align 4, !tbaa !5
  %20 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %31, label %21

21:                                               ; preds = %5
  %22 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %23 = trunc i64 %22 to i32
  %24 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %23)
  %25 = load ptr, ptr @stdout, align 8, !tbaa !9
  %26 = call i32 @fflush(ptr noundef %25)
  %27 = call ptr @ee2str(i32 noundef %20)
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %27)
  %29 = load ptr, ptr @stdout, align 8, !tbaa !9
  %30 = call i32 @fflush(ptr noundef %29)
  call void @exit(i32 noundef 1) #8
  unreachable

31:                                               ; preds = %5
  %32 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %3, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %.not45 = icmp eq i32 %32, 0
  br i1 %.not45, label %43, label %33

33:                                               ; preds = %31
  %34 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %35 = trunc i64 %34 to i32
  %36 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %35)
  %37 = load ptr, ptr @stdout, align 8, !tbaa !9
  %38 = call i32 @fflush(ptr noundef %37)
  %39 = call ptr @ee2str(i32 noundef %32)
  %40 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %39)
  %41 = load ptr, ptr @stdout, align 8, !tbaa !9
  %42 = call i32 @fflush(ptr noundef %41)
  call void @exit(i32 noundef 1) #8
  unreachable

43:                                               ; preds = %31
  %44 = load i32, ptr %10, align 4, !tbaa !5
  %45 = load i32, ptr %14, align 4, !tbaa !5
  %.not47 = icmp eq i32 %44, %45
  br i1 %.not47, label %46, label %51

46:                                               ; preds = %43
  %47 = load i32, ptr %6, align 4, !tbaa !11
  %48 = load i32, ptr %7, align 4, !tbaa !11
  %.not46 = icmp eq i32 %47, %48
  %spec.select = select i1 %.not46, i32 %spec.store.select, i32 2
  %49 = load i32, ptr %11, align 4, !tbaa !5
  %50 = load i32, ptr %15, align 4, !tbaa !5
  %.not48 = icmp eq i32 %49, %50
  br i1 %.not48, label %52, label %51

51:                                               ; preds = %46, %43
  br label %52

52:                                               ; preds = %51, %46
  %.1 = phi i32 [ 2, %51 ], [ %spec.select, %46 ]
  %53 = getelementptr inbounds i8, ptr %2, i64 32
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %2, i64 4
  %56 = load i32, ptr %55, align 4, !tbaa !18
  %.not51 = icmp ult i32 %54, %56
  br i1 %.not51, label %57, label %64

57:                                               ; preds = %52
  %58 = load i32, ptr %8, align 4, !tbaa !19
  %.not49 = icmp eq i32 %58, 2
  %59 = load i32, ptr %9, align 4
  %.not50 = icmp eq i32 %59, 2
  %or.cond53 = select i1 %.not49, i1 %.not50, i1 false
  %.2 = select i1 %or.cond53, i32 %.1, i32 2
  %60 = getelementptr inbounds i8, ptr %2, i64 40
  %61 = load i32, ptr %60, align 8, !tbaa !21
  %62 = getelementptr inbounds i8, ptr %2, i64 8
  %63 = load i32, ptr %62, align 8, !tbaa !22
  %.not52 = icmp ult i32 %61, %63
  br i1 %.not52, label %65, label %64

64:                                               ; preds = %57, %52
  br label %65

65:                                               ; preds = %64, %57
  %.3 = phi i32 [ 51, %64 ], [ %.2, %57 ]
  %66 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %3)
  %67 = zext i32 %66 to i64
  call void @_Z10UNI_MEMSETPvim(ptr noundef %4, i32 noundef 0, i64 noundef %67)
  %68 = load i32, ptr %11, align 4, !tbaa !5
  %69 = lshr i32 %68, 3
  store i32 %69, ptr %11, align 4, !tbaa !5
  %70 = load i32, ptr %10, align 4, !tbaa !5
  %71 = mul i32 %69, %70
  %.not68 = icmp eq i32 %71, 0
  br i1 %.not68, label %._crit_edge66, label %.lr.ph65

._crit_edge66:                                    ; preds = %._crit_edge60, %65
  %.4.lcssa = phi i32 [ %.3, %65 ], [ %.5.lcssa, %._crit_edge60 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  ret i32 %.4.lcssa

.lr.ph65:                                         ; preds = %65, %._crit_edge60
  %.463 = phi i32 [ %.5.lcssa, %._crit_edge60 ], [ %.3, %65 ]
  %.03962 = phi i32 [ %80, %._crit_edge60 ], [ 0, %65 ]
  %72 = load i32, ptr %6, align 4, !tbaa !11
  %73 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %72)
  %74 = load i32, ptr %6, align 4, !tbaa !11
  %75 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %74)
  %76 = load i32, ptr %12, align 4, !tbaa !5
  %.not69 = icmp eq i32 %76, 0
  %77 = load i32, ptr %13, align 4
  %.not70 = icmp eq i32 %77, 0
  %or.cond74 = select i1 %.not69, i1 true, i1 %.not70
  br i1 %or.cond74, label %._crit_edge60, label %.preheader

.preheader:                                       ; preds = %.lr.ph65, %._crit_edge
  %78 = phi i32 [ %85, %._crit_edge ], [ %76, %.lr.ph65 ]
  %79 = phi i32 [ %86, %._crit_edge ], [ 1, %.lr.ph65 ]
  %.559 = phi i32 [ %.6.lcssa, %._crit_edge ], [ %.463, %.lr.ph65 ]
  %.03858 = phi i32 [ %87, %._crit_edge ], [ 0, %.lr.ph65 ]
  %.not71 = icmp eq i32 %79, 0
  br i1 %.not71, label %._crit_edge, label %.lr.ph

._crit_edge60:                                    ; preds = %._crit_edge, %.lr.ph65
  %.5.lcssa = phi i32 [ %.463, %.lr.ph65 ], [ %.6.lcssa, %._crit_edge ]
  %80 = add nuw i32 %.03962, 1
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = load i32, ptr %11, align 4, !tbaa !5
  %83 = mul i32 %82, %81
  %84 = icmp ult i32 %80, %83
  br i1 %84, label %.lr.ph65, label %._crit_edge66, !llvm.loop !23

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre73 = load i32, ptr %12, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %85 = phi i32 [ %78, %.preheader ], [ %.pre73, %._crit_edge.loopexit ]
  %86 = phi i32 [ 0, %.preheader ], [ %92, %._crit_edge.loopexit ]
  %.6.lcssa = phi i32 [ %.559, %.preheader ], [ 51, %._crit_edge.loopexit ]
  %87 = add nuw i32 %.03858, 1
  %88 = icmp ult i32 %87, %85
  br i1 %88, label %.preheader, label %._crit_edge60, !llvm.loop !25

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.03755 = phi i32 [ %89, %.lr.ph ], [ 0, %.preheader ]
  %89 = add nuw i32 %.03755, 1
  %90 = load i32, ptr %6, align 4, !tbaa !11
  %91 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %90)
  %92 = load i32, ptr %13, align 4, !tbaa !5
  %93 = icmp ult i32 %89, %92
  br i1 %93, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !27
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z7bytesOf8DataType(i32 noundef) local_unnamed_addr #6

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #3 = { nofree 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 #4 = { 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 #5 = { 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS8DataType", !7, i64 0}
!13 = !{!14, !6, i64 32}
!14 = !{!"_ZTS16PoolingParamSpec", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !15, i64 48, !16, i64 52, !17, i64 56}
!15 = !{!"_ZTS9RoundMode", !7, i64 0}
!16 = !{!"_ZTS11PoolingMode", !7, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!14, !6, i64 4}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTS10DataFormat", !7, i64 0}
!21 = !{!14, !6, i64 40}
!22 = !{!14, !6, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24, !26}
!26 = !{!"llvm.loop.unswitch.partial.disable"}
!27 = distinct !{!27, !24}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass