; LLVM IR from huawei-noah/bolt :: compute/tensor/src/cpu/arm (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
@OMP_NUM_THREADS = external global i32, align 4

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

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

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

declare i32 @fflush(ptr noundef) #2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs5d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_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) #6 {
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca 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 i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca %struct.TensorDesc, align 8
  %35 = alloca i32, align 4
  %36 = alloca %struct.TensorDesc, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca %struct.TensorDesc, align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %struct.TensorDesc, align 8
  %43 = alloca i32, align 4
  %44 = alloca %struct.TensorDesc, align 8
  %45 = alloca i32, align 4
  %46 = alloca %struct.TensorDesc, align 8
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca %struct.TensorDesc, align 8
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca %struct.TensorDesc, align 8
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  %61 = alloca i32, align 4
  %62 = alloca i32, align 4
  %63 = alloca i32, align 4
  %64 = alloca i32, align 4
  %65 = alloca i32, align 4
  %66 = alloca %struct.TensorDesc, align 8
  %67 = alloca i32, align 4
  %68 = alloca %struct.TensorDesc, align 8
  store i32 %4, ptr %8, align 4, !tbaa !5
  store ptr %5, ptr %9, align 8, !tbaa !9
  %69 = load ptr, ptr %9, align 8, !tbaa !9
  %70 = icmp eq ptr null, %69
  br i1 %70, label %71, label %87

71:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !11
  %72 = load i32, ptr %10, align 4, !tbaa !11
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %86

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

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

87:                                               ; preds = %86, %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  store i32 0, ptr %12, align 4, !tbaa !11
  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.lifetime.start.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %88 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %34)
  %89 = icmp ne i8 %88, 0
  br i1 %89, label %90, label %143

90:                                               ; preds = %87
  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 %0, i64 92, i1 false), !tbaa.struct !15
  %91 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %36, ptr noundef %13, ptr noundef %16, ptr noundef %19, ptr noundef %20, ptr noundef %22, ptr noundef %23)
  store i32 %91, ptr %35, align 4, !tbaa !11
  %92 = load i32, ptr %35, align 4, !tbaa !11
  %93 = icmp ne i32 %92, 0
  br i1 %93, label %94, label %106

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

106:                                              ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !15
  %107 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %39, ptr noundef %14, ptr noundef %17, ptr noundef %24, ptr noundef %25, ptr noundef %27, ptr noundef %28)
  store i32 %107, ptr %38, align 4, !tbaa !11
  %108 = load i32, ptr %38, align 4, !tbaa !11
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %122

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

122:                                              ; preds = %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %123 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %42, ptr noundef %15, ptr noundef %18, ptr noundef %29, ptr noundef %30, ptr noundef %32, ptr noundef %33)
  store i32 %123, ptr %41, align 4, !tbaa !11
  %124 = load i32, ptr %41, align 4, !tbaa !11
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %126, label %138

126:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %127 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %43, align 4, !tbaa !13
  %129 = load i32, ptr %43, align 4, !tbaa !13
  %130 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %129)
  %131 = load ptr, ptr @stdout, align 8, !tbaa !9
  %132 = call i32 @fflush(ptr noundef %131)
  %133 = load i32, ptr %41, align 4, !tbaa !11
  %134 = call ptr @ee2str(i32 noundef %133)
  %135 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %134)
  %136 = load ptr, ptr @stdout, align 8, !tbaa !9
  %137 = call i32 @fflush(ptr noundef %136)
  call void @exit(i32 noundef 1) #9
  unreachable

138:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  store i32 1, ptr %31, align 4, !tbaa !13
  store i32 1, ptr %26, align 4, !tbaa !13
  store i32 1, ptr %21, align 4, !tbaa !13
  %139 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 4
  store i32 1, ptr %139, align 8, !tbaa !21
  %140 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 14
  store i32 1, ptr %140, align 8, !tbaa !26
  %141 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 8
  store i32 0, ptr %141, align 8, !tbaa !27
  %142 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 7
  store i32 0, ptr %142, align 4, !tbaa !28
  br label %197

143:                                              ; preds = %87
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %144 = call noundef zeroext i8 @_Z10tensorIs5d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %44)
  %145 = icmp ne i8 %144, 0
  br i1 %145, label %146, label %195

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %147 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %46, ptr noundef %13, ptr noundef %16, ptr noundef %19, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
  store i32 %147, ptr %45, align 4, !tbaa !11
  %148 = load i32, ptr %45, align 4, !tbaa !11
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %150, label %162

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %151 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %152 = trunc i64 %151 to i32
  store i32 %152, ptr %47, align 4, !tbaa !13
  %153 = load i32, ptr %47, align 4, !tbaa !13
  %154 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %153)
  %155 = load ptr, ptr @stdout, align 8, !tbaa !9
  %156 = call i32 @fflush(ptr noundef %155)
  %157 = load i32, ptr %45, align 4, !tbaa !11
  %158 = call ptr @ee2str(i32 noundef %157)
  %159 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %158)
  %160 = load ptr, ptr @stdout, align 8, !tbaa !9
  %161 = call i32 @fflush(ptr noundef %160)
  call void @exit(i32 noundef 1) #9
  unreachable

162:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %1, i64 92, i1 false), !tbaa.struct !15
  %163 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %49, ptr noundef %14, ptr noundef %17, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27, ptr noundef %28)
  store i32 %163, ptr %48, align 4, !tbaa !11
  %164 = load i32, ptr %48, align 4, !tbaa !11
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %166, label %178

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  %167 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %168 = trunc i64 %167 to i32
  store i32 %168, ptr %50, align 4, !tbaa !13
  %169 = load i32, ptr %50, align 4, !tbaa !13
  %170 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %169)
  %171 = load ptr, ptr @stdout, align 8, !tbaa !9
  %172 = call i32 @fflush(ptr noundef %171)
  %173 = load i32, ptr %48, align 4, !tbaa !11
  %174 = call ptr @ee2str(i32 noundef %173)
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %174)
  %176 = load ptr, ptr @stdout, align 8, !tbaa !9
  %177 = call i32 @fflush(ptr noundef %176)
  call void @exit(i32 noundef 1) #9
  unreachable

178:                                              ; preds = %162
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 8 %2, i64 92, i1 false), !tbaa.struct !15
  %179 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %52, ptr noundef %15, ptr noundef %18, ptr noundef %29, ptr noundef %30, ptr noundef %31, ptr noundef %32, ptr noundef %33)
  store i32 %179, ptr %51, align 4, !tbaa !11
  %180 = load i32, ptr %51, align 4, !tbaa !11
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %194

182:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %183 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %184 = trunc i64 %183 to i32
  store i32 %184, ptr %53, align 4, !tbaa !13
  %185 = load i32, ptr %53, align 4, !tbaa !13
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %185)
  %187 = load ptr, ptr @stdout, align 8, !tbaa !9
  %188 = call i32 @fflush(ptr noundef %187)
  %189 = load i32, ptr %51, align 4, !tbaa !11
  %190 = call ptr @ee2str(i32 noundef %189)
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %190)
  %192 = load ptr, ptr @stdout, align 8, !tbaa !9
  %193 = call i32 @fflush(ptr noundef %192)
  call void @exit(i32 noundef 1) #9
  unreachable

194:                                              ; preds = %178
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %196

195:                                              ; preds = %143
  store i32 51, ptr %7, align 4
  store i32 1, ptr %54, align 4
  br label %486

196:                                              ; preds = %194
  br label %197

197:                                              ; preds = %196, %138
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #8
  %198 = load i32, ptr %21, align 4, !tbaa !13
  %199 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 7
  %200 = load i32, ptr %199, align 4, !tbaa !28
  %201 = add i32 %198, %200
  %202 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 8
  %203 = load i32, ptr %202, align 8, !tbaa !27
  %204 = add i32 %201, %203
  store i32 %204, ptr %55, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #8
  %205 = load i32, ptr %22, align 4, !tbaa !13
  %206 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 9
  %207 = load i32, ptr %206, align 4, !tbaa !29
  %208 = add i32 %205, %207
  %209 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 10
  %210 = load i32, ptr %209, align 8, !tbaa !30
  %211 = add i32 %208, %210
  store i32 %211, ptr %56, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #8
  %212 = load i32, ptr %23, align 4, !tbaa !13
  %213 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 11
  %214 = load i32, ptr %213, align 4, !tbaa !31
  %215 = add i32 %212, %214
  %216 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 12
  %217 = load i32, ptr %216, align 8, !tbaa !32
  %218 = add i32 %215, %217
  store i32 %218, ptr %57, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #8
  store i32 0, ptr %58, align 4, !tbaa !13
  %219 = load i32, ptr %14, align 4, !tbaa !16
  switch i32 %219, label %225 [
    i32 6, label %220
    i32 4, label %221
    i32 1, label %222
    i32 7, label %223
    i32 8, label %224
  ]

220:                                              ; preds = %197
  store i32 6, ptr %58, align 4, !tbaa !13
  br label %226

221:                                              ; preds = %197
  store i32 8, ptr %58, align 4, !tbaa !13
  br label %226

222:                                              ; preds = %197
  store i32 12, ptr %58, align 4, !tbaa !13
  br label %226

223:                                              ; preds = %197
  store i32 0, ptr %58, align 4, !tbaa !13
  br label %226

224:                                              ; preds = %197
  store i32 0, ptr %58, align 4, !tbaa !13
  br label %226

225:                                              ; preds = %197
  store i32 51, ptr %12, align 4, !tbaa !11
  br label %226

226:                                              ; preds = %225, %224, %223, %222, %221, %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #8
  %227 = load i32, ptr %13, align 4, !tbaa !16
  %228 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %227)
  store i32 %228, ptr %59, align 4, !tbaa !13
  %229 = load i32, ptr %20, align 4, !tbaa !13
  %230 = load i32, ptr %55, align 4, !tbaa !13
  %231 = mul i32 %229, %230
  %232 = load i32, ptr %56, align 4, !tbaa !13
  %233 = mul i32 %231, %232
  %234 = load i32, ptr %57, align 4, !tbaa !13
  %235 = mul i32 %233, %234
  %236 = load i32, ptr %59, align 4, !tbaa !13
  %237 = mul i32 %235, %236
  %238 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %237, ptr %238, align 4, !tbaa !13
  %239 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %239, label %453 [
    i32 1, label %454
    i32 3, label %240
    i32 5, label %294
    i32 4, label %411
    i32 6, label %428
  ]

240:                                              ; preds = %226
  %241 = load i32, ptr %58, align 4, !tbaa !13
  %242 = load i32, ptr %26, align 4, !tbaa !13
  %243 = mul i32 %241, %242
  %244 = load i32, ptr %27, align 4, !tbaa !13
  %245 = mul i32 %243, %244
  %246 = load i32, ptr %28, align 4, !tbaa !13
  %247 = mul i32 %245, %246
  %248 = load i32, ptr %20, align 4, !tbaa !13
  %249 = mul i32 %247, %248
  %250 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !13
  %251 = mul i32 %249, %250
  %252 = load i32, ptr %59, align 4, !tbaa !13
  %253 = mul i32 %251, %252
  %254 = load ptr, ptr %9, align 8, !tbaa !9
  %255 = load i32, ptr %254, align 4, !tbaa !13
  %256 = add i32 %255, %253
  store i32 %256, ptr %254, align 4, !tbaa !13
  %257 = load i32, ptr %14, align 4, !tbaa !16
  %258 = icmp eq i32 %257, 1
  br i1 %258, label %259, label %270

259:                                              ; preds = %240
  %260 = load i32, ptr %20, align 4, !tbaa !13
  %261 = load i32, ptr %21, align 4, !tbaa !13
  %262 = mul i32 %260, %261
  %263 = load i32, ptr %22, align 4, !tbaa !13
  %264 = mul i32 %262, %263
  %265 = load i32, ptr %23, align 4, !tbaa !13
  %266 = mul i32 %264, %265
  %267 = load ptr, ptr %9, align 8, !tbaa !9
  %268 = load i32, ptr %267, align 4, !tbaa !13
  %269 = add i32 %268, %266
  store i32 %269, ptr %267, align 4, !tbaa !13
  br label %270

270:                                              ; preds = %259, %240
  %271 = load i32, ptr %15, align 4, !tbaa !16
  %272 = icmp eq i32 %271, 1
  br i1 %272, label %276, label %273

273:                                              ; preds = %270
  %274 = load i32, ptr %15, align 4, !tbaa !16
  %275 = icmp eq i32 %274, 6
  br i1 %275, label %276, label %293

276:                                              ; preds = %273, %270
  %277 = load i32, ptr %30, align 4, !tbaa !13
  %278 = load i32, ptr %29, align 4, !tbaa !13
  %279 = load i32, ptr %30, align 4, !tbaa !13
  %280 = mul i32 %278, %279
  %281 = load i32, ptr %31, align 4, !tbaa !13
  %282 = mul i32 %280, %281
  %283 = load i32, ptr %32, align 4, !tbaa !13
  %284 = mul i32 %282, %283
  %285 = load i32, ptr %33, align 4, !tbaa !13
  %286 = mul i32 %284, %285
  %287 = add i32 %277, %286
  %288 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %289 = mul i32 %287, %288
  %290 = load ptr, ptr %9, align 8, !tbaa !9
  %291 = load i32, ptr %290, align 4, !tbaa !13
  %292 = add i32 %291, %289
  store i32 %292, ptr %290, align 4, !tbaa !13
  br label %293

293:                                              ; preds = %276, %273
  br label %454

294:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #8
  %295 = load i32, ptr %32, align 4, !tbaa !13
  %296 = add i32 %295, 3
  %297 = udiv i32 %296, 4
  store i32 %297, ptr %60, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #8
  %298 = load i32, ptr %33, align 4, !tbaa !13
  %299 = add i32 %298, 3
  %300 = udiv i32 %299, 4
  store i32 %300, ptr %61, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %62) #8
  %301 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 11
  %302 = load i32, ptr %301, align 4, !tbaa !31
  store i32 %302, ptr %62, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %63) #8
  %303 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 12
  %304 = load i32, ptr %303, align 8, !tbaa !32
  %305 = load i32, ptr %61, align 4, !tbaa !13
  %306 = mul i32 %305, 4
  %307 = load i32, ptr %33, align 4, !tbaa !13
  %308 = sub i32 %306, %307
  %309 = add i32 %304, %308
  store i32 %309, ptr %63, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %64) #8
  %310 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 9
  %311 = load i32, ptr %310, align 4, !tbaa !29
  store i32 %311, ptr %64, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %65) #8
  %312 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 10
  %313 = load i32, ptr %312, align 8, !tbaa !30
  %314 = load i32, ptr %60, align 4, !tbaa !13
  %315 = mul i32 %314, 4
  %316 = load i32, ptr %32, align 4, !tbaa !13
  %317 = sub i32 %315, %316
  %318 = add i32 %313, %317
  store i32 %318, ptr %65, align 4, !tbaa !13
  %319 = load i32, ptr %22, align 4, !tbaa !13
  %320 = load i32, ptr %64, align 4, !tbaa !13
  %321 = add i32 %319, %320
  %322 = load i32, ptr %65, align 4, !tbaa !13
  %323 = add i32 %321, %322
  store i32 %323, ptr %56, align 4, !tbaa !13
  %324 = load i32, ptr %23, align 4, !tbaa !13
  %325 = load i32, ptr %62, align 4, !tbaa !13
  %326 = add i32 %324, %325
  %327 = load i32, ptr %63, align 4, !tbaa !13
  %328 = add i32 %326, %327
  store i32 %328, ptr %57, align 4, !tbaa !13
  %329 = load i32, ptr %20, align 4, !tbaa !13
  %330 = load i32, ptr %56, align 4, !tbaa !13
  %331 = mul i32 %329, %330
  %332 = load i32, ptr %57, align 4, !tbaa !13
  %333 = mul i32 %331, %332
  %334 = load i32, ptr %59, align 4, !tbaa !13
  %335 = mul i32 %333, %334
  %336 = load ptr, ptr %9, align 8, !tbaa !9
  store i32 %335, ptr %336, align 4, !tbaa !13
  %337 = load i32, ptr %14, align 4, !tbaa !16
  %338 = icmp eq i32 %337, 6
  br i1 %338, label %339, label %352

339:                                              ; preds = %294
  %340 = load i32, ptr %20, align 4, !tbaa !13
  %341 = add i32 %340, 8
  %342 = mul i32 %341, 6
  %343 = mul i32 %342, 6
  %344 = mul i32 %343, 12
  %345 = load i32, ptr %59, align 4, !tbaa !13
  %346 = mul i32 %344, %345
  %347 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !13
  %348 = mul i32 %346, %347
  %349 = load ptr, ptr %9, align 8, !tbaa !9
  %350 = load i32, ptr %349, align 4, !tbaa !13
  %351 = add i32 %350, %348
  store i32 %351, ptr %349, align 4, !tbaa !13
  br label %410

352:                                              ; preds = %294
  %353 = load i32, ptr %14, align 4, !tbaa !16
  %354 = icmp eq i32 %353, 4
  br i1 %354, label %355, label %370

355:                                              ; preds = %352
  %356 = load i32, ptr %20, align 4, !tbaa !13
  %357 = add i32 %356, 8
  %358 = load i32, ptr %30, align 4, !tbaa !13
  %359 = add i32 %357, %358
  %360 = mul i32 %359, 6
  %361 = mul i32 %360, 6
  %362 = mul i32 %361, 8
  %363 = load i32, ptr %59, align 4, !tbaa !13
  %364 = mul i32 %362, %363
  %365 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !13
  %366 = mul i32 %364, %365
  %367 = load ptr, ptr %9, align 8, !tbaa !9
  %368 = load i32, ptr %367, align 4, !tbaa !13
  %369 = add i32 %368, %366
  store i32 %369, ptr %367, align 4, !tbaa !13
  br label %409

370:                                              ; preds = %352
  %371 = load i32, ptr %14, align 4, !tbaa !16
  %372 = icmp eq i32 %371, 1
  br i1 %372, label %373, label %407

373:                                              ; preds = %370
  %374 = load i32, ptr %20, align 4, !tbaa !13
  %375 = add i32 %374, 8
  %376 = mul i32 %375, 6
  %377 = mul i32 %376, 6
  %378 = mul i32 %377, 12
  %379 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 4)
  %380 = mul i32 %378, %379
  %381 = load ptr, ptr %9, align 8, !tbaa !9
  %382 = load i32, ptr %381, align 4, !tbaa !13
  %383 = add i32 %382, %380
  store i32 %383, ptr %381, align 4, !tbaa !13
  %384 = load i32, ptr %20, align 4, !tbaa !13
  %385 = mul i32 %384, 6
  %386 = mul i32 %385, 6
  %387 = mul i32 %386, 12
  %388 = load ptr, ptr %9, align 8, !tbaa !9
  %389 = load i32, ptr %388, align 4, !tbaa !13
  %390 = add i32 %389, %387
  store i32 %390, ptr %388, align 4, !tbaa !13
  %391 = load i32, ptr %15, align 4, !tbaa !16
  %392 = icmp eq i32 %391, 1
  br i1 %392, label %393, label %406

393:                                              ; preds = %373
  %394 = load i32, ptr %29, align 4, !tbaa !13
  %395 = load i32, ptr %30, align 4, !tbaa !13
  %396 = mul i32 %394, %395
  %397 = load i32, ptr %32, align 4, !tbaa !13
  %398 = mul i32 %396, %397
  %399 = load i32, ptr %33, align 4, !tbaa !13
  %400 = mul i32 %398, %399
  %401 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 4)
  %402 = mul i32 %400, %401
  %403 = load ptr, ptr %9, align 8, !tbaa !9
  %404 = load i32, ptr %403, align 4, !tbaa !13
  %405 = add i32 %404, %402
  store i32 %405, ptr %403, align 4, !tbaa !13
  br label %406

406:                                              ; preds = %393, %373
  br label %408

407:                                              ; preds = %370
  store i32 51, ptr %12, align 4, !tbaa !11
  br label %408

408:                                              ; preds = %407, %406
  br label %409

409:                                              ; preds = %408, %355
  br label %410

410:                                              ; preds = %409, %339
  store i32 3, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %65) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %64) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %63) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %62) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #8
  br label %454

411:                                              ; preds = %226
  %412 = load i32, ptr %58, align 4, !tbaa !13
  %413 = load i32, ptr %26, align 4, !tbaa !13
  %414 = mul i32 %412, %413
  %415 = load i32, ptr %27, align 4, !tbaa !13
  %416 = mul i32 %414, %415
  %417 = load i32, ptr %28, align 4, !tbaa !13
  %418 = mul i32 %416, %417
  %419 = load i32, ptr %20, align 4, !tbaa !13
  %420 = mul i32 %418, %419
  %421 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !13
  %422 = mul i32 %420, %421
  %423 = load i32, ptr %59, align 4, !tbaa !13
  %424 = mul i32 %422, %423
  %425 = load ptr, ptr %9, align 8, !tbaa !9
  %426 = load i32, ptr %425, align 4, !tbaa !13
  %427 = add i32 %426, %424
  store i32 %427, ptr %425, align 4, !tbaa !13
  br label %454

428:                                              ; preds = %226
  %429 = load i32, ptr %26, align 4, !tbaa !13
  %430 = mul i32 8, %429
  %431 = load i32, ptr %27, align 4, !tbaa !13
  %432 = mul i32 %430, %431
  %433 = load i32, ptr %28, align 4, !tbaa !13
  %434 = mul i32 %432, %433
  %435 = load i32, ptr %20, align 4, !tbaa !13
  %436 = mul i32 %434, %435
  %437 = load i32, ptr %20, align 4, !tbaa !13
  %438 = load i32, ptr %21, align 4, !tbaa !13
  %439 = mul i32 %437, %438
  %440 = load i32, ptr %22, align 4, !tbaa !13
  %441 = mul i32 %439, %440
  %442 = load i32, ptr %23, align 4, !tbaa !13
  %443 = mul i32 %441, %442
  %444 = add i32 %436, %443
  %445 = load i32, ptr %59, align 4, !tbaa !13
  %446 = mul i32 %444, %445
  %447 = load ptr, ptr %9, align 8, !tbaa !9
  %448 = load i32, ptr %447, align 4, !tbaa !13
  %449 = add i32 %448, %446
  store i32 %449, ptr %447, align 4, !tbaa !13
  %450 = load ptr, ptr %9, align 8, !tbaa !9
  %451 = load i32, ptr %450, align 4, !tbaa !13
  %452 = udiv i32 %451, 8
  store i32 %452, ptr %450, align 4, !tbaa !13
  br label %454

453:                                              ; preds = %226
  store i32 2, ptr %12, align 4, !tbaa !11
  br label %454

454:                                              ; preds = %453, %428, %411, %410, %293, %226
  %455 = load i32, ptr %14, align 4, !tbaa !16
  %456 = icmp eq i32 1, %455
  br i1 %456, label %457, label %465

457:                                              ; preds = %454
  %458 = load i32, ptr %16, align 4, !tbaa !18
  %459 = icmp ne i32 2, %458
  br i1 %459, label %460, label %465

460:                                              ; preds = %457
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %66, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %461 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %66)
  %462 = load ptr, ptr %9, align 8, !tbaa !9
  %463 = load i32, ptr %462, align 4, !tbaa !13
  %464 = add i32 %463, %461
  store i32 %464, ptr %462, align 4, !tbaa !13
  br label %465

465:                                              ; preds = %460, %457, %454
  %466 = load ptr, ptr %9, align 8, !tbaa !9
  %467 = load i32, ptr %466, align 4, !tbaa !13
  %468 = add i32 %467, 32
  store i32 %468, ptr %466, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %67) #8
  %469 = load i32, ptr %20, align 4, !tbaa !13
  %470 = getelementptr inbounds %struct.ConvolutionParamSpec, ptr %3, i32 0, i32 13
  %471 = load i32, ptr %470, align 4, !tbaa !33
  %472 = udiv i32 %469, %471
  store i32 %472, ptr %67, align 4, !tbaa !13
  %473 = load i32, ptr %16, align 4, !tbaa !18
  %474 = icmp eq i32 %473, 2
  br i1 %474, label %475, label %484

475:                                              ; preds = %465
  %476 = load i32, ptr %67, align 4, !tbaa !13
  %477 = urem i32 %476, 8
  %478 = icmp ne i32 %477, 0
  br i1 %478, label %479, label %484

479:                                              ; preds = %475
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %68, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !15
  %480 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %68)
  %481 = load ptr, ptr %9, align 8, !tbaa !9
  %482 = load i32, ptr %481, align 4, !tbaa !13
  %483 = add i32 %482, %480
  store i32 %483, ptr %481, align 4, !tbaa !13
  br label %484

484:                                              ; preds = %479, %475, %465
  %485 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %485, ptr %7, align 4
  store i32 1, ptr %54, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %67) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #8
  br label %486

486:                                              ; preds = %484, %195
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #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
  %487 = load i32, ptr %7, align 4
  ret i32 %487
}

; 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"_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 16}
!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 56}
!27 = !{!22, !14, i64 32}
!28 = !{!22, !14, i64 28}
!29 = !{!22, !14, i64 36}
!30 = !{!22, !14, i64 40}
!31 = !{!22, !14, i64 44}
!32 = !{!22, !14, i64 48}
!33 = !{!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
@OMP_NUM_THREADS = external local_unnamed_addr global i32, align 4
@switch.table._Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj = private unnamed_addr constant [8 x i32] [i32 12, i32 0, i32 0, i32 8, i32 0, i32 6, i32 0, i32 0], align 4
@switch.table._Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj.1 = private unnamed_addr constant [8 x i32] [i32 0, i32 51, i32 51, i32 0, i32 51, i32 0, i32 0, i32 0], align 4

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

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

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

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

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

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #3

; 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 #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_Z10tensorIs5d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 52) i32 @_Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_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 #5 {
  %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 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = icmp eq ptr %5, null
  br i1 %28, label %29, label %39

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

39:                                               ; 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
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %40 = tail call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not = icmp eq i8 %40, 0
  br i1 %.not, label %78, label %41

41:                                               ; preds = %39
  %42 = 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 %16, ptr noundef nonnull %17)
  %.not77 = icmp eq i32 %42, 0
  br i1 %.not77, label %53, label %43

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

53:                                               ; preds = %41
  %54 = 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 %18, ptr noundef nonnull %19, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %.not78 = icmp eq i32 %54, 0
  br i1 %.not78, label %65, label %55

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

65:                                               ; preds = %53
  %66 = 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 %23, ptr noundef nonnull %24, ptr noundef nonnull %26, ptr noundef nonnull %27)
  %.not79 = icmp eq i32 %66, 0
  br i1 %.not79, label %77, label %67

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

77:                                               ; preds = %65
  store i32 1, ptr %25, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %118

78:                                               ; preds = %39
  %79 = tail call noundef zeroext i8 @_Z10tensorIs5d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not73 = icmp eq i8 %79, 0
  br i1 %.not73, label %298, label %80

80:                                               ; preds = %78
  %81 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_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, ptr noundef nonnull %17)
  %.not74 = icmp eq i32 %81, 0
  br i1 %.not74, label %92, label %82

82:                                               ; preds = %80
  %83 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %84 = trunc i64 %83 to i32
  %85 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %84)
  %86 = load ptr, ptr @stdout, align 8, !tbaa !5
  %87 = call i32 @fflush(ptr noundef %86)
  %88 = call ptr @ee2str(i32 noundef %81)
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %88)
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = call i32 @fflush(ptr noundef %90)
  call void @exit(i32 noundef 1) #8
  unreachable

92:                                               ; preds = %80
  %93 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %1, ptr noundef nonnull %8, ptr noundef nonnull %11, ptr noundef nonnull %18, ptr noundef nonnull %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %22)
  %.not75 = icmp eq i32 %93, 0
  br i1 %.not75, label %104, label %94

94:                                               ; preds = %92
  %95 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %96 = trunc i64 %95 to i32
  %97 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %96)
  %98 = load ptr, ptr @stdout, align 8, !tbaa !5
  %99 = call i32 @fflush(ptr noundef %98)
  %100 = call ptr @ee2str(i32 noundef %93)
  %101 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %100)
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = call i32 @fflush(ptr noundef %102)
  call void @exit(i32 noundef 1) #8
  unreachable

104:                                              ; preds = %92
  %105 = call noundef i32 @_Z11tensor5dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %2, ptr noundef nonnull %9, ptr noundef nonnull %12, ptr noundef nonnull %23, ptr noundef nonnull %24, ptr noundef nonnull %25, ptr noundef nonnull %26, ptr noundef nonnull %27)
  %.not76 = icmp eq i32 %105, 0
  br i1 %.not76, label %._crit_edge, label %108

._crit_edge:                                      ; preds = %104
  %.pre = load i32, ptr %15, align 4, !tbaa !9
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 28
  %.pre83 = load i32, ptr %.phi.trans.insert, align 4, !tbaa !11
  %.phi.trans.insert84 = getelementptr inbounds i8, ptr %3, i64 32
  %.pre85 = load i32, ptr %.phi.trans.insert84, align 8, !tbaa !16
  %106 = add i32 %.pre83, %.pre
  %107 = add i32 %106, %.pre85
  br label %118

108:                                              ; preds = %104
  %109 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %110 = trunc i64 %109 to i32
  %111 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %110)
  %112 = load ptr, ptr @stdout, align 8, !tbaa !5
  %113 = call i32 @fflush(ptr noundef %112)
  %114 = call ptr @ee2str(i32 noundef %105)
  %115 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %114)
  %116 = load ptr, ptr @stdout, align 8, !tbaa !5
  %117 = call i32 @fflush(ptr noundef %116)
  call void @exit(i32 noundef 1) #8
  unreachable

118:                                              ; preds = %._crit_edge, %77
  %119 = phi i32 [ %107, %._crit_edge ], [ 1, %77 ]
  %120 = load i32, ptr %16, align 4, !tbaa !9
  %121 = getelementptr inbounds i8, ptr %3, i64 36
  %122 = load i32, ptr %121, align 4, !tbaa !17
  %123 = getelementptr inbounds i8, ptr %3, i64 40
  %124 = load i32, ptr %123, align 8, !tbaa !18
  %125 = add i32 %124, %122
  %126 = add i32 %125, %120
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = getelementptr inbounds i8, ptr %3, i64 44
  %129 = load i32, ptr %128, align 4, !tbaa !19
  %130 = getelementptr inbounds i8, ptr %3, i64 48
  %131 = load i32, ptr %130, align 8, !tbaa !20
  %132 = add i32 %131, %129
  %133 = add i32 %132, %127
  %134 = load i32, ptr %8, align 4, !tbaa !21
  %switch.tableidx = add i32 %134, -1
  %135 = icmp ult i32 %switch.tableidx, 8
  br i1 %135, label %switch.lookup, label %138

switch.lookup:                                    ; preds = %118
  %136 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [8 x i32], ptr @switch.table._Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj, i64 0, i64 %136
  %switch.load = load i32, ptr %switch.gep, align 4
  %137 = zext nneg i32 %switch.tableidx to i64
  %switch.gep86 = getelementptr inbounds [8 x i32], ptr @switch.table._Z39convolution_infer_forward_tmp_bytes_arm10TensorDescS_S_20ConvolutionParamSpec27ConvolutionForwardAlgorithmPj.1, i64 0, i64 %137
  %switch.load87 = load i32, ptr %switch.gep86, align 4
  br label %138

138:                                              ; preds = %118, %switch.lookup
  %.065 = phi i32 [ %switch.load, %switch.lookup ], [ 0, %118 ]
  %.064 = phi i32 [ %switch.load87, %switch.lookup ], [ 51, %118 ]
  %139 = load i32, ptr %7, align 4, !tbaa !21
  %140 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %139)
  %141 = load i32, ptr %14, align 4, !tbaa !9
  %142 = mul i32 %126, %119
  %143 = mul i32 %142, %133
  %144 = mul i32 %143, %141
  %145 = mul i32 %144, %140
  store i32 %145, ptr %5, align 4, !tbaa !9
  switch i32 %4, label %272 [
    i32 1, label %273
    i32 3, label %146
    i32 5, label %186
    i32 4, label %245
    i32 6, label %257
  ]

146:                                              ; preds = %138
  %147 = load i32, ptr %20, align 4, !tbaa !9
  %148 = load i32, ptr %21, align 4, !tbaa !9
  %149 = load i32, ptr %22, align 4, !tbaa !9
  %150 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !9
  %151 = mul i32 %141, %.065
  %152 = mul i32 %151, %147
  %153 = mul i32 %152, %148
  %154 = mul i32 %153, %149
  %155 = mul i32 %154, %150
  %156 = add i32 %155, %144
  %157 = mul i32 %156, %140
  store i32 %157, ptr %5, align 4, !tbaa !9
  %158 = load i32, ptr %8, align 4, !tbaa !21
  %159 = icmp eq i32 %158, 1
  br i1 %159, label %160, label %168

160:                                              ; preds = %146
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = mul i32 %161, %141
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = mul i32 %162, %163
  %165 = load i32, ptr %17, align 4, !tbaa !9
  %166 = mul i32 %164, %165
  %167 = add i32 %166, %157
  store i32 %167, ptr %5, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %160, %146
  %169 = phi i32 [ %167, %160 ], [ %157, %146 ]
  %170 = load i32, ptr %9, align 4
  switch i32 %170, label %273 [
    i32 6, label %171
    i32 1, label %171
  ]

171:                                              ; preds = %168, %168
  %172 = load i32, ptr %24, align 4, !tbaa !9
  %173 = load i32, ptr %23, align 4, !tbaa !9
  %174 = mul i32 %173, %172
  %175 = load i32, ptr %25, align 4, !tbaa !9
  %176 = mul i32 %174, %175
  %177 = load i32, ptr %26, align 4, !tbaa !9
  %178 = mul i32 %176, %177
  %179 = load i32, ptr %27, align 4, !tbaa !9
  %180 = mul i32 %178, %179
  %181 = add i32 %180, %172
  %182 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 3)
  %183 = mul i32 %181, %182
  %184 = load i32, ptr %5, align 4, !tbaa !9
  %185 = add i32 %183, %184
  store i32 %185, ptr %5, align 4, !tbaa !9
  br label %273

186:                                              ; preds = %138
  %187 = load i32, ptr %26, align 4, !tbaa !9
  %188 = add i32 %187, 3
  %189 = and i32 %188, -4
  %190 = load i32, ptr %27, align 4, !tbaa !9
  %191 = add i32 %190, 3
  %192 = and i32 %191, -4
  %193 = load i32, ptr %16, align 4, !tbaa !9
  %194 = sub i32 %125, %187
  %195 = add i32 %194, %193
  %196 = add i32 %195, %189
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = sub i32 %132, %190
  %199 = add i32 %198, %197
  %200 = add i32 %199, %192
  %201 = mul i32 %141, %140
  %202 = mul i32 %201, %196
  %203 = mul i32 %202, %200
  store i32 %203, ptr %5, align 4, !tbaa !9
  %204 = load i32, ptr %8, align 4, !tbaa !21
  switch i32 %204, label %273 [
    i32 6, label %205
    i32 4, label %212
    i32 1, label %221
  ]

205:                                              ; preds = %186
  %206 = mul i32 %141, 432
  %207 = add i32 %206, 3456
  %208 = mul i32 %207, %140
  %209 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !9
  %210 = mul i32 %208, %209
  %211 = add i32 %210, %203
  store i32 %211, ptr %5, align 4, !tbaa !9
  br label %273

212:                                              ; preds = %186
  %213 = add i32 %141, 8
  %214 = load i32, ptr %24, align 4, !tbaa !9
  %215 = add i32 %213, %214
  %216 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !9
  %217 = mul i32 %140, 288
  %218 = mul i32 %217, %215
  %219 = mul i32 %218, %216
  %220 = add i32 %219, %203
  store i32 %220, ptr %5, align 4, !tbaa !9
  br label %273

221:                                              ; preds = %186
  %222 = mul i32 %141, 432
  %223 = add i32 %222, 3456
  %224 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 4)
  %225 = mul i32 %224, %223
  %226 = load i32, ptr %5, align 4, !tbaa !9
  %227 = add i32 %226, %225
  %228 = load i32, ptr %14, align 4, !tbaa !9
  %229 = mul i32 %228, 432
  %230 = add i32 %229, %227
  store i32 %230, ptr %5, align 4, !tbaa !9
  %231 = load i32, ptr %9, align 4, !tbaa !21
  %232 = icmp eq i32 %231, 1
  br i1 %232, label %233, label %273

233:                                              ; preds = %221
  %234 = load i32, ptr %23, align 4, !tbaa !9
  %235 = load i32, ptr %24, align 4, !tbaa !9
  %236 = mul i32 %235, %234
  %237 = load i32, ptr %26, align 4, !tbaa !9
  %238 = mul i32 %236, %237
  %239 = load i32, ptr %27, align 4, !tbaa !9
  %240 = mul i32 %238, %239
  %241 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef 4)
  %242 = mul i32 %240, %241
  %243 = load i32, ptr %5, align 4, !tbaa !9
  %244 = add i32 %243, %242
  store i32 %244, ptr %5, align 4, !tbaa !9
  br label %273

245:                                              ; preds = %138
  %246 = load i32, ptr %20, align 4, !tbaa !9
  %247 = load i32, ptr %21, align 4, !tbaa !9
  %248 = load i32, ptr %22, align 4, !tbaa !9
  %249 = load i32, ptr @OMP_NUM_THREADS, align 4, !tbaa !9
  %250 = mul i32 %141, %.065
  %251 = mul i32 %250, %246
  %252 = mul i32 %251, %247
  %253 = mul i32 %252, %248
  %254 = mul i32 %253, %249
  %255 = add i32 %254, %144
  %256 = mul i32 %255, %140
  store i32 %256, ptr %5, align 4, !tbaa !9
  br label %273

257:                                              ; preds = %138
  %258 = load i32, ptr %20, align 4, !tbaa !9
  %259 = load i32, ptr %21, align 4, !tbaa !9
  %260 = load i32, ptr %22, align 4, !tbaa !9
  %261 = shl i32 %258, 3
  %262 = mul i32 %261, %259
  %263 = mul i32 %262, %260
  %264 = load i32, ptr %15, align 4, !tbaa !9
  %265 = load i32, ptr %16, align 4, !tbaa !9
  %266 = load i32, ptr %17, align 4, !tbaa !9
  %267 = mul i32 %265, %264
  %268 = mul i32 %267, %266
  %reass.add = add i32 %268, %263
  %reass.mul82 = add i32 %reass.add, %143
  %269 = mul i32 %reass.mul82, %141
  %270 = mul i32 %269, %140
  %271 = lshr i32 %270, 3
  store i32 %271, ptr %5, align 4, !tbaa !9
  br label %273

272:                                              ; preds = %138
  br label %273

273:                                              ; preds = %205, %233, %221, %212, %186, %168, %171, %272, %257, %245, %138
  %274 = phi i32 [ %145, %272 ], [ %271, %257 ], [ %256, %245 ], [ %185, %171 ], [ %169, %168 ], [ %145, %138 ], [ %211, %205 ], [ %220, %212 ], [ %244, %233 ], [ %230, %221 ], [ %203, %186 ]
  %.2 = phi i32 [ 2, %272 ], [ %.064, %257 ], [ %.064, %245 ], [ %.064, %171 ], [ %.064, %168 ], [ %.064, %138 ], [ %.064, %205 ], [ %.064, %212 ], [ %.064, %233 ], [ %.064, %221 ], [ 51, %186 ]
  %275 = load i32, ptr %8, align 4, !tbaa !21
  %276 = icmp eq i32 %275, 1
  %277 = load i32, ptr %10, align 4
  %278 = icmp ne i32 %277, 2
  %or.cond3 = select i1 %276, i1 %278, i1 false
  br i1 %or.cond3, label %279, label %283

279:                                              ; preds = %273
  %280 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %281 = load i32, ptr %5, align 4, !tbaa !9
  %282 = add i32 %281, %280
  %.pr = load i32, ptr %10, align 4, !tbaa !23
  br label %283

283:                                              ; preds = %279, %273
  %284 = phi i32 [ %282, %279 ], [ %274, %273 ]
  %285 = phi i32 [ %.pr, %279 ], [ %277, %273 ]
  %286 = add i32 %284, 32
  store i32 %286, ptr %5, align 4, !tbaa !9
  %287 = icmp eq i32 %285, 2
  br i1 %287, label %288, label %298

288:                                              ; preds = %283
  %289 = load i32, ptr %14, align 4, !tbaa !9
  %290 = getelementptr inbounds i8, ptr %3, i64 52
  %291 = load i32, ptr %290, align 4, !tbaa !25
  %292 = udiv i32 %289, %291
  %293 = and i32 %292, 7
  %.not80 = icmp eq i32 %293, 0
  br i1 %.not80, label %298, label %294

294:                                              ; preds = %288
  %295 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %296 = load i32, ptr %5, align 4, !tbaa !9
  %297 = add i32 %296, %295
  store i32 %297, ptr %5, align 4, !tbaa !9
  br label %298

298:                                              ; preds = %283, %288, %294, %78
  %.0 = phi i32 [ 51, %78 ], [ %.2, %294 ], [ %.2, %288 ], [ %.2, %283 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  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: 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 28}
!12 = !{!"_ZTS20ConvolutionParamSpec", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !13, i64 72, !14, i64 76, !14, i64 80, !7, i64 84, !15, i64 92, !10, i64 96, !10, i64 100, !10, i64 104}
!13 = !{!"_ZTS15ConvolutionMode", !7, i64 0}
!14 = !{!"_ZTS14ActivationMode", !7, i64 0}
!15 = !{!"_ZTS9RoundMode", !7, i64 0}
!16 = !{!12, !10, i64 32}
!17 = !{!12, !10, i64 36}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !10, i64 44}
!20 = !{!12, !10, i64 48}
!21 = !{!22, !22, i64 0}
!22 = !{!"_ZTS8DataType", !7, i64 0}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTS10DataFormat", !7, i64 0}
!25 = !{!12, !10, i64 52}


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