; LLVM IR from huawei-noah/bolt :: compute/tensor/src/cpu/x86/int8 (convolution)

; 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.ConvolutionParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %union.ActivationSpec, i32, i32, i32, i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }

@.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: mustprogress uwtable
define dso_local noundef i32 @_Z40convolution_infer_forward_tmp_bytes_int810TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef byval(%struct.TensorDesc) align 8 %1, ptr noundef byval(%struct.TensorDesc) align 8 %2, ptr noundef byval(%struct.ConvolutionParamSpec) align 8 %3, i32 noundef %4, ptr noundef %5) #0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %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 i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca %struct.TensorDesc, align 8
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.TensorDesc, align 8
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca %struct.TensorDesc, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca %struct.TensorDesc, align 8
  store i32 %4, ptr %7, align 4, !tbaa !5
  store ptr %5, ptr %8, align 8, !tbaa !9
  %53 = load ptr, ptr %8, align 8, !tbaa !9
  %54 = icmp eq ptr null, %53
  br i1 %54, label %55, label %71

55:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  store i32 1, ptr %9, align 4, !tbaa !11
  %56 = load i32, ptr %9, align 4, !tbaa !11
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %70

58:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %59 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %60 = trunc i64 %59 to i32
  store i32 %60, ptr %10, align 4, !tbaa !13
  %61 = load i32, ptr %10, align 4, !tbaa !13
  %62 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %61)
  %63 = load ptr, ptr @stdout, align 8, !tbaa !9
  %64 = call i32 @fflush(ptr noundef %63)
  %65 = load i32, ptr %9, align 4, !tbaa !11
  %66 = call ptr @ee2str(i32 noundef %65)
  %67 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %66)
  %68 = load ptr, ptr @stdout, align 8, !tbaa !9
  %69 = call i32 @fflush(ptr noundef %68)
  call void @exit(i32 noundef 1) #9
  unreachable

70:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  br label %71

71:                                               ; preds = %70, %6
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %30, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %72 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %30, ptr noundef %11, ptr noundef %14, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  store i32 %72, ptr %29, align 4, !tbaa !11
  %73 = load i32, ptr %29, align 4, !tbaa !11
  %74 = icmp ne i32 %73, 0
  br i1 %74, label %75, label %87

75:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  %76 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %77 = trunc i64 %76 to i32
  store i32 %77, ptr %31, align 4, !tbaa !13
  %78 = load i32, ptr %31, align 4, !tbaa !13
  %79 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %78)
  %80 = load ptr, ptr @stdout, align 8, !tbaa !9
  %81 = call i32 @fflush(ptr noundef %80)
  %82 = load i32, ptr %29, align 4, !tbaa !11
  %83 = call ptr @ee2str(i32 noundef %82)
  %84 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %83)
  %85 = load ptr, ptr @stdout, align 8, !tbaa !9
  %86 = call i32 @fflush(ptr noundef %85)
  call void @exit(i32 noundef 1) #9
  unreachable

87:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !15
  %88 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %33, ptr noundef %12, ptr noundef %15, ptr noundef %21, ptr noundef %22, ptr noundef %23, ptr noundef %24)
  store i32 %88, ptr %32, align 4, !tbaa !11
  %89 = load i32, ptr %32, align 4, !tbaa !11
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %91, label %103

91:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %92 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %93 = trunc i64 %92 to i32
  store i32 %93, ptr %34, align 4, !tbaa !13
  %94 = load i32, ptr %34, align 4, !tbaa !13
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %94)
  %96 = load ptr, ptr @stdout, align 8, !tbaa !9
  %97 = call i32 @fflush(ptr noundef %96)
  %98 = load i32, ptr %32, align 4, !tbaa !11
  %99 = call ptr @ee2str(i32 noundef %98)
  %100 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %99)
  %101 = load ptr, ptr @stdout, align 8, !tbaa !9
  %102 = call i32 @fflush(ptr noundef %101)
  call void @exit(i32 noundef 1) #9
  unreachable

103:                                              ; preds = %87
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %104 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %36, ptr noundef %13, ptr noundef %16, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28)
  store i32 %104, ptr %35, align 4, !tbaa !11
  %105 = load i32, ptr %35, align 4, !tbaa !11
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %107, label %119

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %108 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %109 = trunc i64 %108 to i32
  store i32 %109, ptr %37, align 4, !tbaa !13
  %110 = load i32, ptr %37, align 4, !tbaa !13
  %111 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %110)
  %112 = load ptr, ptr @stdout, align 8, !tbaa !9
  %113 = call i32 @fflush(ptr noundef %112)
  %114 = load i32, ptr %35, align 4, !tbaa !11
  %115 = call ptr @ee2str(i32 noundef %114)
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %115)
  %117 = load ptr, ptr @stdout, align 8, !tbaa !9
  %118 = call i32 @fflush(ptr noundef %117)
  call void @exit(i32 noundef 1) #9
  unreachable

119:                                              ; preds = %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %120 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 9
  %121 = load i32, ptr %120, align 4, !tbaa !21
  store i32 %121, ptr %38, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %122 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 10
  %123 = load i32, ptr %122, align 8, !tbaa !26
  store i32 %123, ptr %39, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %124 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 11
  %125 = load i32, ptr %124, align 4, !tbaa !27
  store i32 %125, ptr %40, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  %126 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 12
  %127 = load i32, ptr %126, align 8, !tbaa !28
  store i32 %127, ptr %41, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %128 = load i32, ptr %19, align 4, !tbaa !13
  %129 = load i32, ptr %38, align 4, !tbaa !13
  %130 = add i32 %128, %129
  %131 = load i32, ptr %39, align 4, !tbaa !13
  %132 = add i32 %130, %131
  store i32 %132, ptr %42, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %133 = load i32, ptr %20, align 4, !tbaa !13
  %134 = load i32, ptr %40, align 4, !tbaa !13
  %135 = add i32 %133, %134
  %136 = load i32, ptr %41, align 4, !tbaa !13
  %137 = add i32 %135, %136
  store i32 %137, ptr %43, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 16, ptr %44, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %138 = load i32, ptr %18, align 4, !tbaa !13
  %139 = load i32, ptr %44, align 4, !tbaa !13
  %140 = add i32 %138, %139
  %141 = sub i32 %140, 1
  %142 = load i32, ptr %44, align 4, !tbaa !13
  %143 = udiv i32 %141, %142
  %144 = load i32, ptr %44, align 4, !tbaa !13
  %145 = mul i32 %143, %144
  store i32 %145, ptr %45, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  store i32 0, ptr %46, align 4, !tbaa !11
  %146 = load i32, ptr %7, align 4, !tbaa !5
  switch i32 %146, label %221 [
    i32 1, label %147
    i32 0, label %154
    i32 4, label %219
  ]

147:                                              ; preds = %119
  %148 = load i32, ptr %45, align 4, !tbaa !13
  %149 = load i32, ptr %42, align 4, !tbaa !13
  %150 = mul i32 %148, %149
  %151 = load i32, ptr %43, align 4, !tbaa !13
  %152 = mul i32 %150, %151
  %153 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %152, ptr %153, align 4, !tbaa !13
  br label %222

154:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %155 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 5
  %156 = load i32, ptr %155, align 4, !tbaa !29
  store i32 %156, ptr %47, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  %157 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 6
  %158 = load i32, ptr %157, align 8, !tbaa !30
  store i32 %158, ptr %48, align 4, !tbaa !13
  %159 = load i32, ptr %26, align 4, !tbaa !13
  %160 = add i32 %159, 32
  %161 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 %160, ptr %161, align 4, !tbaa !13
  %162 = load i32, ptr %47, align 4, !tbaa !13
  %163 = icmp ugt i32 %162, 1
  br i1 %163, label %167, label %164

164:                                              ; preds = %154
  %165 = load i32, ptr %48, align 4, !tbaa !13
  %166 = icmp ugt i32 %165, 1
  br i1 %166, label %167, label %188

167:                                              ; preds = %164, %154
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %168 = load i32, ptr %42, align 4, !tbaa !13
  %169 = load i32, ptr %47, align 4, !tbaa !13
  %170 = add i32 %168, %169
  %171 = sub i32 %170, 1
  %172 = load i32, ptr %47, align 4, !tbaa !13
  %173 = udiv i32 %171, %172
  store i32 %173, ptr %49, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %174 = load i32, ptr %43, align 4, !tbaa !13
  %175 = load i32, ptr %48, align 4, !tbaa !13
  %176 = add i32 %174, %175
  %177 = sub i32 %176, 1
  %178 = load i32, ptr %48, align 4, !tbaa !13
  %179 = udiv i32 %177, %178
  store i32 %179, ptr %50, align 4, !tbaa !13
  %180 = load i32, ptr %45, align 4, !tbaa !13
  %181 = load i32, ptr %50, align 4, !tbaa !13
  %182 = mul i32 %180, %181
  %183 = load i32, ptr %49, align 4, !tbaa !13
  %184 = mul i32 %182, %183
  %185 = load ptr, ptr %8, align 8, !tbaa !9
  %186 = load i32, ptr %185, align 4, !tbaa !13
  %187 = add i32 %186, %184
  store i32 %187, ptr %185, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  br label %188

188:                                              ; preds = %167, %164
  %189 = load i32, ptr %14, align 4, !tbaa !18
  %190 = icmp ne i32 %189, 41
  br i1 %190, label %191, label %200

191:                                              ; preds = %188
  %192 = load i32, ptr %45, align 4, !tbaa !13
  %193 = load i32, ptr %42, align 4, !tbaa !13
  %194 = mul i32 %192, %193
  %195 = load i32, ptr %43, align 4, !tbaa !13
  %196 = mul i32 %194, %195
  %197 = load ptr, ptr %8, align 8, !tbaa !9
  %198 = load i32, ptr %197, align 4, !tbaa !13
  %199 = add i32 %198, %196
  store i32 %199, ptr %197, align 4, !tbaa !13
  br label %200

200:                                              ; preds = %191, %188
  %201 = load i32, ptr %38, align 4, !tbaa !13
  %202 = icmp ugt i32 %201, 1
  br i1 %202, label %212, label %203

203:                                              ; preds = %200
  %204 = load i32, ptr %39, align 4, !tbaa !13
  %205 = icmp ugt i32 %204, 1
  br i1 %205, label %212, label %206

206:                                              ; preds = %203
  %207 = load i32, ptr %40, align 4, !tbaa !13
  %208 = icmp ugt i32 %207, 1
  br i1 %208, label %212, label %209

209:                                              ; preds = %206
  %210 = load i32, ptr %41, align 4, !tbaa !13
  %211 = icmp ugt i32 %210, 1
  br i1 %211, label %212, label %218

212:                                              ; preds = %209, %206, %203, %200
  %213 = load i32, ptr %26, align 4, !tbaa !13
  %214 = mul i32 %213, 4
  %215 = load ptr, ptr %8, align 8, !tbaa !9
  %216 = load i32, ptr %215, align 4, !tbaa !13
  %217 = add i32 %216, %214
  store i32 %217, ptr %215, align 4, !tbaa !13
  br label %218

218:                                              ; preds = %212, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  br label %222

219:                                              ; preds = %119
  %220 = load ptr, ptr %8, align 8, !tbaa !9
  store i32 0, ptr %220, align 4, !tbaa !13
  br label %222

221:                                              ; preds = %119
  store i32 2, ptr %46, align 4, !tbaa !11
  br label %222

222:                                              ; preds = %221, %219, %218, %147
  %223 = load i32, ptr %12, align 4, !tbaa !16
  %224 = icmp eq i32 %223, 1
  br i1 %224, label %225, label %244

225:                                              ; preds = %222
  %226 = load i32, ptr %26, align 4, !tbaa !13
  %227 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %228 = mul i32 %226, %227
  %229 = load ptr, ptr %8, align 8, !tbaa !9
  %230 = load i32, ptr %229, align 4, !tbaa !13
  %231 = add i32 %230, %228
  store i32 %231, ptr %229, align 4, !tbaa !13
  %232 = load i32, ptr %11, align 4, !tbaa !16
  %233 = icmp ne i32 %232, 10
  br i1 %233, label %234, label %243

234:                                              ; preds = %225
  %235 = load i32, ptr %45, align 4, !tbaa !13
  %236 = load i32, ptr %42, align 4, !tbaa !13
  %237 = mul i32 %235, %236
  %238 = load i32, ptr %43, align 4, !tbaa !13
  %239 = mul i32 %237, %238
  %240 = load ptr, ptr %8, align 8, !tbaa !9
  %241 = load i32, ptr %240, align 4, !tbaa !13
  %242 = add i32 %241, %239
  store i32 %242, ptr %240, align 4, !tbaa !13
  br label %243

243:                                              ; preds = %234, %225
  br label %244

244:                                              ; preds = %243, %222
  %245 = load i32, ptr %13, align 4, !tbaa !16
  %246 = icmp eq i32 %245, 10
  br i1 %246, label %247, label %260

247:                                              ; preds = %244
  %248 = load i32, ptr %25, align 4, !tbaa !13
  %249 = load i32, ptr %26, align 4, !tbaa !13
  %250 = mul i32 %248, %249
  %251 = load i32, ptr %27, align 4, !tbaa !13
  %252 = mul i32 %250, %251
  %253 = load i32, ptr %28, align 4, !tbaa !13
  %254 = mul i32 %252, %253
  %255 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %256 = mul i32 %254, %255
  %257 = load ptr, ptr %8, align 8, !tbaa !9
  %258 = load i32, ptr %257, align 4, !tbaa !13
  %259 = add i32 %258, %256
  store i32 %259, ptr %257, align 4, !tbaa !13
  br label %260

260:                                              ; preds = %247, %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  %261 = load i32, ptr %18, align 4, !tbaa !13
  %262 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 13
  %263 = load i32, ptr %262, align 4, !tbaa !31
  %264 = udiv i32 %261, %263
  store i32 %264, ptr %51, align 4, !tbaa !13
  %265 = load i32, ptr %14, align 4, !tbaa !18
  %266 = icmp eq i32 %265, 2
  br i1 %266, label %267, label %276

267:                                              ; preds = %260
  %268 = load i32, ptr %51, align 4, !tbaa !13
  %269 = urem i32 %268, 8
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %271, label %276

271:                                              ; preds = %267
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %272 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %52)
  %273 = load ptr, ptr %8, align 8, !tbaa !9
  %274 = load i32, ptr %273, align 4, !tbaa !13
  %275 = add i32 %274, %272
  store i32 %275, ptr %273, align 4, !tbaa !13
  br label %276

276:                                              ; preds = %271, %267, %260
  %277 = load ptr, ptr %8, align 8, !tbaa !9
  %278 = load i32, ptr %277, align 4, !tbaa !13
  %279 = add i32 %278, 32
  store i32 %279, ptr %277, align 4, !tbaa !13
  %280 = load i32, ptr %46, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  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
  ret i32 %280
}

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

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

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

declare i32 @fflush(ptr noundef) #3

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

; 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) #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) #4

; 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) #6

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_ZTS27ConvolutionForwardAlgorithm", !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 = !{!"_ZTS2EE", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !18, i64 8, i64 4, !13, i64 12, i64 80, !20}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS8DataType", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"_ZTS10DataFormat", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !14, i64 36}
!22 = !{!"_ZTS20ConvolutionParamSpec", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !23, i64 72, !24, i64 76, !24, i64 80, !7, i64 84, !25, i64 92, !14, i64 96, !14, i64 100, !14, i64 104}
!23 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!24 = !{!"_ZTS14ActivationMode", !7, i64 0}
!25 = !{!"_ZTS9RoundMode", !7, i64 0}
!26 = !{!22, !14, i64 40}
!27 = !{!22, !14, i64 44}
!28 = !{!22, !14, i64 48}
!29 = !{!22, !14, i64 20}
!30 = !{!22, !14, i64 24}
!31 = !{!22, !14, i64 52}


; 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.ConvolutionParamSpec = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %union.ActivationSpec, i32, i32, i32, i32 }
%union.ActivationSpec = type { %struct.ClipParamSpec }
%struct.ClipParamSpec = type { float, float }

@.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 uwtable
define dso_local noundef range(i32 0, 3) i32 @_Z40convolution_infer_forward_tmp_bytes_int810TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %1, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %2, ptr nocapture noundef readonly byval(%struct.ConvolutionParamSpec) align 8 %3, i32 noundef %4, ptr noundef %5) local_unnamed_addr #0 {
  %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 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = icmp eq ptr %5, null
  br i1 %25, label %26, label %36

26:                                               ; preds = %6
  %27 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %28 = trunc i64 %27 to i32
  %29 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %28)
  %30 = load ptr, ptr @stdout, align 8, !tbaa !5
  %31 = tail call i32 @fflush(ptr noundef %30)
  %32 = tail call ptr @ee2str(i32 noundef 1)
  %33 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %32)
  %34 = load ptr, ptr @stdout, align 8, !tbaa !5
  %35 = tail call i32 @fflush(ptr noundef %34)
  tail call void @exit(i32 noundef 1) #8
  unreachable

36:                                               ; preds = %6
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %37 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %7, ptr noundef nonnull %10, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %.not = icmp eq i32 %37, 0
  br i1 %.not, label %48, label %38

38:                                               ; preds = %36
  %39 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %40 = trunc i64 %39 to i32
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %40)
  %42 = load ptr, ptr @stdout, align 8, !tbaa !5
  %43 = call i32 @fflush(ptr noundef %42)
  %44 = call ptr @ee2str(i32 noundef %37)
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %44)
  %46 = load ptr, ptr @stdout, align 8, !tbaa !5
  %47 = call i32 @fflush(ptr noundef %46)
  call void @exit(i32 noundef 1) #8
  unreachable

48:                                               ; preds = %36
  %49 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %17, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20)
  %.not67 = icmp eq i32 %49, 0
  br i1 %.not67, label %60, label %50

50:                                               ; preds = %48
  %51 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %52 = trunc i64 %51 to i32
  %53 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %52)
  %54 = load ptr, ptr @stdout, align 8, !tbaa !5
  %55 = call i32 @fflush(ptr noundef %54)
  %56 = call ptr @ee2str(i32 noundef %49)
  %57 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %56)
  %58 = load ptr, ptr @stdout, align 8, !tbaa !5
  %59 = call i32 @fflush(ptr noundef %58)
  call void @exit(i32 noundef 1) #8
  unreachable

60:                                               ; preds = %48
  %61 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef nonnull %21, ptr noundef nonnull %22, ptr noundef nonnull %23, ptr noundef nonnull %24)
  %.not68 = icmp eq i32 %61, 0
  br i1 %.not68, label %72, label %62

62:                                               ; preds = %60
  %63 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %64 = trunc i64 %63 to i32
  %65 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %64)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !5
  %67 = call i32 @fflush(ptr noundef %66)
  %68 = call ptr @ee2str(i32 noundef %61)
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %68)
  %70 = load ptr, ptr @stdout, align 8, !tbaa !5
  %71 = call i32 @fflush(ptr noundef %70)
  call void @exit(i32 noundef 1) #8
  unreachable

72:                                               ; preds = %60
  %73 = getelementptr inbounds i8, ptr %3, i64 36
  %74 = load i32, ptr %73, align 4, !tbaa !9
  %75 = getelementptr inbounds i8, ptr %3, i64 40
  %76 = load i32, ptr %75, align 8, !tbaa !15
  %77 = getelementptr inbounds i8, ptr %3, i64 44
  %78 = load i32, ptr %77, align 4, !tbaa !16
  %79 = getelementptr inbounds i8, ptr %3, i64 48
  %80 = load i32, ptr %79, align 8, !tbaa !17
  %81 = load i32, ptr %15, align 4, !tbaa !18
  %82 = add i32 %76, %74
  %83 = add i32 %82, %81
  %84 = load i32, ptr %16, align 4, !tbaa !18
  %85 = add i32 %80, %78
  %86 = add i32 %85, %84
  %87 = load i32, ptr %14, align 4, !tbaa !18
  %88 = add i32 %87, 15
  %89 = and i32 %88, -16
  switch i32 %4, label %127 [
    i32 1, label %90
    i32 0, label %93
    i32 4, label %.sink.split
  ]

90:                                               ; preds = %72
  %91 = mul i32 %86, %83
  %92 = mul i32 %91, %89
  br label %.sink.split

93:                                               ; preds = %72
  %94 = getelementptr inbounds i8, ptr %3, i64 20
  %95 = load i32, ptr %94, align 4, !tbaa !19
  %96 = getelementptr inbounds i8, ptr %3, i64 24
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = load i32, ptr %22, align 4, !tbaa !18
  %99 = add i32 %98, 32
  %100 = icmp ugt i32 %95, 1
  %101 = icmp ugt i32 %97, 1
  %or.cond = select i1 %100, i1 true, i1 %101
  br i1 %or.cond, label %102, label %112

102:                                              ; preds = %93
  %103 = add i32 %83, -1
  %104 = add i32 %103, %95
  %105 = udiv i32 %104, %95
  %106 = add i32 %86, -1
  %107 = add i32 %106, %97
  %108 = udiv i32 %107, %97
  %109 = mul i32 %105, %89
  %110 = mul i32 %109, %108
  %111 = add i32 %110, %99
  br label %112

112:                                              ; preds = %93, %102
  %storemerge = phi i32 [ %111, %102 ], [ %99, %93 ]
  store i32 %storemerge, ptr %5, align 4, !tbaa !18
  %113 = load i32, ptr %10, align 4, !tbaa !21
  %.not69 = icmp eq i32 %113, 41
  br i1 %.not69, label %118, label %114

114:                                              ; preds = %112
  %115 = mul i32 %86, %83
  %116 = mul i32 %115, %89
  %117 = add i32 %storemerge, %116
  store i32 %117, ptr %5, align 4, !tbaa !18
  br label %118

118:                                              ; preds = %114, %112
  %119 = phi i32 [ %117, %114 ], [ %storemerge, %112 ]
  %120 = icmp ugt i32 %74, 1
  %121 = icmp ugt i32 %76, 1
  %or.cond3 = select i1 %120, i1 true, i1 %121
  %122 = icmp ugt i32 %78, 1
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %122
  %123 = icmp ugt i32 %80, 1
  %or.cond7 = select i1 %or.cond5, i1 true, i1 %123
  br i1 %or.cond7, label %124, label %127

124:                                              ; preds = %118
  %125 = shl i32 %98, 2
  %126 = add i32 %119, %125
  br label %.sink.split

.sink.split:                                      ; preds = %72, %90, %124
  %.sink = phi i32 [ %126, %124 ], [ %92, %90 ], [ 0, %72 ]
  store i32 %.sink, ptr %5, align 4, !tbaa !18
  br label %127

127:                                              ; preds = %.sink.split, %72, %118
  %.0 = phi i32 [ 0, %118 ], [ 2, %72 ], [ 0, %.sink.split ]
  %128 = load i32, ptr %8, align 4, !tbaa !23
  %129 = icmp eq i32 %128, 1
  br i1 %129, label %130, label %141

130:                                              ; preds = %127
  %131 = load i32, ptr %22, align 4, !tbaa !18
  %132 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %133 = mul i32 %132, %131
  %134 = load i32, ptr %5, align 4, !tbaa !18
  %135 = add i32 %134, %133
  store i32 %135, ptr %5, align 4, !tbaa !18
  %136 = load i32, ptr %7, align 4, !tbaa !23
  %.not70 = icmp eq i32 %136, 10
  br i1 %.not70, label %141, label %137

137:                                              ; preds = %130
  %138 = mul i32 %86, %83
  %139 = mul i32 %138, %89
  %140 = add i32 %135, %139
  store i32 %140, ptr %5, align 4, !tbaa !18
  br label %141

141:                                              ; preds = %130, %137, %127
  %142 = load i32, ptr %9, align 4, !tbaa !23
  %143 = icmp eq i32 %142, 10
  br i1 %143, label %144, label %156

144:                                              ; preds = %141
  %145 = load i32, ptr %21, align 4, !tbaa !18
  %146 = load i32, ptr %22, align 4, !tbaa !18
  %147 = mul i32 %146, %145
  %148 = load i32, ptr %23, align 4, !tbaa !18
  %149 = mul i32 %147, %148
  %150 = load i32, ptr %24, align 4, !tbaa !18
  %151 = mul i32 %149, %150
  %152 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %153 = mul i32 %151, %152
  %154 = load i32, ptr %5, align 4, !tbaa !18
  %155 = add i32 %154, %153
  store i32 %155, ptr %5, align 4, !tbaa !18
  br label %156

156:                                              ; preds = %144, %141
  %157 = load i32, ptr %10, align 4, !tbaa !21
  %158 = icmp eq i32 %157, 2
  br i1 %158, label %159, label %169

159:                                              ; preds = %156
  %160 = load i32, ptr %14, align 4, !tbaa !18
  %161 = getelementptr inbounds i8, ptr %3, i64 52
  %162 = load i32, ptr %161, align 4, !tbaa !25
  %163 = udiv i32 %160, %162
  %164 = and i32 %163, 7
  %.not71 = icmp eq i32 %164, 0
  br i1 %.not71, label %169, label %165

165:                                              ; preds = %159
  %166 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %167 = load i32, ptr %5, align 4, !tbaa !18
  %168 = add i32 %167, %166
  store i32 %168, ptr %5, align 4, !tbaa !18
  br label %169

169:                                              ; preds = %165, %159, %156
  %170 = load i32, ptr %5, align 4, !tbaa !18
  %171 = add i32 %170, 32
  store i32 %171, ptr %5, align 4, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  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
  ret i32 %.0
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #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 #4

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) local_unnamed_addr #4

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

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

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 36}
!10 = !{!"_ZTS20ConvolutionParamSpec", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !13, i64 76, !13, i64 80, !7, i64 84, !14, i64 92, !11, i64 96, !11, i64 100, !11, i64 104}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!13 = !{!"_ZTS14ActivationMode", !7, i64 0}
!14 = !{!"_ZTS9RoundMode", !7, i64 0}
!15 = !{!10, !11, i64 40}
!16 = !{!10, !11, i64 44}
!17 = !{!10, !11, i64 48}
!18 = !{!11, !11, i64 0}
!19 = !{!10, !11, i64 20}
!20 = !{!10, !11, i64 24}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS10DataFormat", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS8DataType", !7, i64 0}
!25 = !{!10, !11, i64 52}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass