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

; 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.PReLUParamSpec = type { i8 }

@.str = external hidden unnamed_addr constant [20 x i8], align 1
@stdout = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1

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

56:                                               ; preds = %6
  %57 = load ptr, ptr %11, align 8, !tbaa !5
  %58 = icmp eq ptr null, %57
  br i1 %58, label %59, label %75

59:                                               ; preds = %56, %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 1, ptr %12, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %74

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

74:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %75

75:                                               ; preds = %74, %56
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %76 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %26)
  %77 = icmp ne i8 %76, 0
  br i1 %77, label %78, label %114

78:                                               ; preds = %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %79 = call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %27)
  %80 = icmp ne i8 %79, 0
  br i1 %80, label %81, label %114

81:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %82 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %29, ptr noundef %14, ptr noundef %16, ptr noundef %18, ptr noundef %19, ptr noundef %20, ptr noundef %21)
  store i32 %82, ptr %28, align 4, !tbaa !9
  %83 = load i32, ptr %28, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %97

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %86 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %87 = trunc i64 %86 to i32
  store i32 %87, ptr %30, align 4, !tbaa !11
  %88 = load i32, ptr %30, align 4, !tbaa !11
  %89 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %88)
  %90 = load ptr, ptr @stdout, align 8, !tbaa !5
  %91 = call i32 @fflush(ptr noundef %90)
  %92 = load i32, ptr %28, align 4, !tbaa !9
  %93 = call ptr @ee2str(i32 noundef %92)
  %94 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %93)
  %95 = load ptr, ptr @stdout, align 8, !tbaa !5
  %96 = call i32 @fflush(ptr noundef %95)
  call void @exit(i32 noundef 1) #8
  unreachable

97:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %98 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %32, ptr noundef %15, ptr noundef %17, ptr noundef %22, ptr noundef %23, ptr noundef %24, ptr noundef %25)
  store i32 %98, ptr %31, align 4, !tbaa !9
  %99 = load i32, ptr %31, align 4, !tbaa !9
  %100 = icmp ne i32 %99, 0
  br i1 %100, label %101, label %113

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #7
  %102 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %103 = trunc i64 %102 to i32
  store i32 %103, ptr %33, align 4, !tbaa !11
  %104 = load i32, ptr %33, align 4, !tbaa !11
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %104)
  %106 = load ptr, ptr @stdout, align 8, !tbaa !5
  %107 = call i32 @fflush(ptr noundef %106)
  %108 = load i32, ptr %31, align 4, !tbaa !9
  %109 = call ptr @ee2str(i32 noundef %108)
  %110 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %109)
  %111 = load ptr, ptr @stdout, align 8, !tbaa !5
  %112 = call i32 @fflush(ptr noundef %111)
  call void @exit(i32 noundef 1) #8
  unreachable

113:                                              ; preds = %97
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #7
  br label %195

114:                                              ; preds = %78, %75
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %34, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %115 = call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %34)
  %116 = icmp ne i8 %115, 0
  br i1 %116, label %117, label %153

117:                                              ; preds = %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %35, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %118 = call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %35)
  %119 = icmp ne i8 %118, 0
  br i1 %119, label %120, label %153

120:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %121 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %37, ptr noundef %14, ptr noundef %16, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  store i32 %121, ptr %36, align 4, !tbaa !9
  %122 = load i32, ptr %36, align 4, !tbaa !9
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %136

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

136:                                              ; preds = %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %137 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %40, ptr noundef %15, ptr noundef %17, ptr noundef %22, ptr noundef %23, ptr noundef %24)
  store i32 %137, ptr %39, align 4, !tbaa !9
  %138 = load i32, ptr %39, align 4, !tbaa !9
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %152

140:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %141 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %142 = trunc i64 %141 to i32
  store i32 %142, ptr %41, align 4, !tbaa !11
  %143 = load i32, ptr %41, align 4, !tbaa !11
  %144 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %143)
  %145 = load ptr, ptr @stdout, align 8, !tbaa !5
  %146 = call i32 @fflush(ptr noundef %145)
  %147 = load i32, ptr %39, align 4, !tbaa !9
  %148 = call ptr @ee2str(i32 noundef %147)
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %148)
  %150 = load ptr, ptr @stdout, align 8, !tbaa !5
  %151 = call i32 @fflush(ptr noundef %150)
  call void @exit(i32 noundef 1) #8
  unreachable

152:                                              ; preds = %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  store i32 1, ptr %25, align 4, !tbaa !11
  store i32 1, ptr %21, align 4, !tbaa !11
  br label %194

153:                                              ; preds = %117, %114
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %154 = call noundef zeroext i8 @_Z10tensorIs2d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %42)
  %155 = icmp ne i8 %154, 0
  br i1 %155, label %156, label %192

156:                                              ; preds = %153
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %43, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %157 = call noundef zeroext i8 @_Z10tensorIs2d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %43)
  %158 = icmp ne i8 %157, 0
  br i1 %158, label %159, label %192

159:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %45, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !13
  %160 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %45, ptr noundef %14, ptr noundef %16, ptr noundef %18, ptr noundef %19)
  store i32 %160, ptr %44, align 4, !tbaa !9
  %161 = load i32, ptr %44, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %175

163:                                              ; preds = %159
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %164 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %165 = trunc i64 %164 to i32
  store i32 %165, ptr %46, align 4, !tbaa !11
  %166 = load i32, ptr %46, align 4, !tbaa !11
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %166)
  %168 = load ptr, ptr @stdout, align 8, !tbaa !5
  %169 = call i32 @fflush(ptr noundef %168)
  %170 = load i32, ptr %44, align 4, !tbaa !9
  %171 = call ptr @ee2str(i32 noundef %170)
  %172 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %171)
  %173 = load ptr, ptr @stdout, align 8, !tbaa !5
  %174 = call i32 @fflush(ptr noundef %173)
  call void @exit(i32 noundef 1) #8
  unreachable

175:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 8 %4, i64 92, i1 false), !tbaa.struct !13
  %176 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef byval(%struct.TensorDesc) align 8 %48, ptr noundef %15, ptr noundef %17, ptr noundef %22, ptr noundef %23)
  store i32 %176, ptr %47, align 4, !tbaa !9
  %177 = load i32, ptr %47, align 4, !tbaa !9
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %179, label %191

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  %180 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %181 = trunc i64 %180 to i32
  store i32 %181, ptr %49, align 4, !tbaa !11
  %182 = load i32, ptr %49, align 4, !tbaa !11
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %182)
  %184 = load ptr, ptr @stdout, align 8, !tbaa !5
  %185 = call i32 @fflush(ptr noundef %184)
  %186 = load i32, ptr %47, align 4, !tbaa !9
  %187 = call ptr @ee2str(i32 noundef %186)
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %187)
  %189 = load ptr, ptr @stdout, align 8, !tbaa !5
  %190 = call i32 @fflush(ptr noundef %189)
  call void @exit(i32 noundef 1) #8
  unreachable

191:                                              ; preds = %175
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  store i32 1, ptr %25, align 4, !tbaa !11
  store i32 1, ptr %21, align 4, !tbaa !11
  store i32 1, ptr %24, align 4, !tbaa !11
  store i32 1, ptr %20, align 4, !tbaa !11
  br label %193

192:                                              ; preds = %156, %153
  store i32 51, ptr %7, align 4
  store i32 1, ptr %50, align 4
  br label %226

193:                                              ; preds = %191
  br label %194

194:                                              ; preds = %193, %152
  br label %195

195:                                              ; preds = %194, %113
  %196 = load i32, ptr %18, align 4, !tbaa !11
  %197 = load i32, ptr %22, align 4, !tbaa !11
  %198 = icmp eq i32 %196, %197
  br i1 %198, label %199, label %211

199:                                              ; preds = %195
  %200 = load i32, ptr %19, align 4, !tbaa !11
  %201 = load i32, ptr %23, align 4, !tbaa !11
  %202 = icmp eq i32 %200, %201
  br i1 %202, label %203, label %211

203:                                              ; preds = %199
  %204 = load i32, ptr %20, align 4, !tbaa !11
  %205 = load i32, ptr %24, align 4, !tbaa !11
  %206 = icmp eq i32 %204, %205
  br i1 %206, label %207, label %211

207:                                              ; preds = %203
  %208 = load i32, ptr %21, align 4, !tbaa !11
  %209 = load i32, ptr %25, align 4, !tbaa !11
  %210 = icmp eq i32 %208, %209
  br i1 %210, label %221, label %211

211:                                              ; preds = %207, %203, %199, %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #7
  %212 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %213 = trunc i64 %212 to i32
  store i32 %213, ptr %51, align 4, !tbaa !11
  %214 = load i32, ptr %51, align 4, !tbaa !11
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %214)
  %216 = load ptr, ptr @stdout, align 8, !tbaa !5
  %217 = call i32 @fflush(ptr noundef %216)
  %218 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %219 = load ptr, ptr @stdout, align 8, !tbaa !5
  %220 = call i32 @fflush(ptr noundef %219)
  call void @exit(i32 noundef 1) #8
  unreachable

221:                                              ; preds = %207
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #7
  store i32 0, ptr %52, align 4, !tbaa !9
  %222 = load i32, ptr %14, align 4, !tbaa !14
  switch i32 %222, label %223 [
  ]

223:                                              ; preds = %221
  store i32 51, ptr %52, align 4, !tbaa !9
  br label %224

224:                                              ; preds = %223
  %225 = load i32, ptr %52, align 4, !tbaa !9
  store i32 %225, ptr %7, align 4
  store i32 1, ptr %50, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #7
  br label %226

226:                                              ; preds = %224, %192
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %227 = load i32, ptr %7, align 4
  ret i32 %227
}

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

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

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

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

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 = { 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 = !{!"_ZTS2EE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{i64 0, i64 4, !14, i64 4, i64 4, !16, i64 8, i64 4, !11, i64 12, i64 80, !18}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS8DataType", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"_ZTS10DataFormat", !7, i64 0}
!18 = !{!7, !7, i64 0}


; 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] }

@.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
@.str.2 = external hidden unnamed_addr constant [23 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_Z13prelu_general10TensorDescPvS0_14PReLUParamSpecS_S0_(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef readnone %1, ptr nocapture noundef readnone %2, i8 %3, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %4, ptr noundef readnone %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 = icmp eq ptr %1, null
  %20 = icmp eq ptr %5, null
  %or.cond = or i1 %19, %20
  br i1 %or.cond, label %21, label %31

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

31:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 0, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  store i32 0, ptr %18, align 4, !tbaa !9
  %32 = tail call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not = icmp eq i8 %32, 0
  br i1 %.not, label %59, label %33

33:                                               ; preds = %31
  %34 = tail call noundef zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
  %.not31 = icmp eq i8 %34, 0
  br i1 %.not31, label %59, label %35

35:                                               ; preds = %33
  %36 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14)
  %.not40 = icmp eq i32 %36, 0
  br i1 %.not40, label %47, label %37

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

47:                                               ; preds = %35
  %48 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17, ptr noundef nonnull %18)
  %.not41 = icmp eq i32 %48, 0
  br i1 %.not41, label %117, label %49

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

59:                                               ; preds = %33, %31
  %60 = tail call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not32 = icmp eq i8 %60, 0
  br i1 %.not32, label %88, label %61

61:                                               ; preds = %59
  %62 = tail call noundef zeroext i8 @_Z10tensorIs3d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
  %.not33 = icmp eq i8 %62, 0
  br i1 %.not33, label %88, label %63

63:                                               ; preds = %61
  %64 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %.not38 = icmp eq i32 %64, 0
  br i1 %.not38, label %75, label %65

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

75:                                               ; preds = %63
  %76 = call noundef i32 @_Z11tensor3dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %.not39 = icmp eq i32 %76, 0
  br i1 %.not39, label %87, label %77

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

87:                                               ; preds = %75
  store i32 1, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %117

88:                                               ; preds = %61, %59
  %89 = tail call noundef zeroext i8 @_Z10tensorIs2d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %.not34 = icmp eq i8 %89, 0
  br i1 %.not34, label %142, label %90

90:                                               ; preds = %88
  %91 = tail call noundef zeroext i8 @_Z10tensorIs2d10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4)
  %.not35 = icmp eq i8 %91, 0
  br i1 %.not35, label %142, label %92

92:                                               ; preds = %90
  %93 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %.not36 = icmp eq i32 %93, 0
  br i1 %.not36, label %104, label %94

94:                                               ; preds = %92
  %95 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %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) #7
  unreachable

104:                                              ; preds = %92
  %105 = call noundef i32 @_Z11tensor2dGet10TensorDescP8DataTypeP10DataFormatPjS4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %4, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %15, ptr noundef nonnull %16)
  %.not37 = icmp eq i32 %105, 0
  br i1 %.not37, label %116, label %106

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

116:                                              ; preds = %104
  store i32 1, ptr %18, align 4, !tbaa !9
  store i32 1, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %117

117:                                              ; preds = %47, %87, %116
  %118 = load i32, ptr %11, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = icmp eq i32 %118, %119
  br i1 %120, label %121, label %133

121:                                              ; preds = %117
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %125, label %133

125:                                              ; preds = %121
  %126 = load i32, ptr %13, align 4, !tbaa !9
  %127 = load i32, ptr %17, align 4, !tbaa !9
  %128 = icmp eq i32 %126, %127
  br i1 %128, label %129, label %133

129:                                              ; preds = %125
  %130 = load i32, ptr %14, align 4, !tbaa !9
  %131 = load i32, ptr %18, align 4, !tbaa !9
  %132 = icmp eq i32 %130, %131
  br i1 %132, label %142, label %133

133:                                              ; preds = %129, %125, %121, %117
  %134 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %135 = trunc i64 %134 to i32
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %135)
  %137 = load ptr, ptr @stdout, align 8, !tbaa !5
  %138 = call i32 @fflush(ptr noundef %137)
  %139 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %140 = load ptr, ptr @stdout, align 8, !tbaa !5
  %141 = call i32 @fflush(ptr noundef %140)
  call void @exit(i32 noundef 1) #7
  unreachable

142:                                              ; preds = %129, %88, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  ret i32 51
}

; 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 zeroext i8 @_Z10tensorIs4d10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #4

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

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

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

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

attributes #0 = { 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 #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 = { nounwind }
attributes #7 = { 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}


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