; LLVM IR from huawei-noah/bolt :: compute/image/src (convert_color)

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

@.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 @_Z31convert_color_infer_output_sizeP6Tensor21ConvertColorParamSpecS0_P8ArchInfo(ptr noundef %0, i64 %1, i32 %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca %struct.ConvertColorParamSpec, align 4
  %8 = alloca { i64, i32 }, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.TensorDesc, 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 %struct.TensorDesc, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca %struct.TensorDesc, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %struct.TensorDesc, align 4
  %34 = alloca %struct.TensorDesc, align 4
  %35 = alloca %struct.TensorDesc, align 4
  %36 = alloca %struct.TensorDesc, align 8
  %37 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 0
  store i64 %1, ptr %37, align 4
  %38 = getelementptr inbounds { i64, i32 }, ptr %8, i32 0, i32 1
  store i32 %2, ptr %38, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %7, ptr align 4 %8, i64 12, i1 false)
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = icmp eq ptr %39, null
  br i1 %40, label %44, label %41

41:                                               ; preds = %5
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %41, %5
  store i32 1, ptr %6, align 4
  br label %276

45:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 92, ptr %12) #7
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %12, ptr noundef nonnull align 8 dereferenceable(32) %46)
  %47 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 4
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %275

51:                                               ; preds = %45
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %52 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 1
  %53 = load i32, ptr %52, align 4, !tbaa !14
  %54 = icmp eq i32 %53, 24
  br i1 %54, label %55, label %72

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %56 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %25, ptr noundef %14, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20)
  store i32 %56, ptr %24, align 4, !tbaa !20
  %57 = load i32, ptr %24, align 4, !tbaa !20
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %71

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

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

72:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %12, i64 92, i1 false), !tbaa.struct !15
  %73 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %28, ptr noundef %14, ptr noundef %16, ptr noundef %17, ptr noundef %19, ptr noundef %20, ptr noundef %18)
  store i32 %73, ptr %27, align 4, !tbaa !20
  %74 = load i32, ptr %27, align 4, !tbaa !20
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %88

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

88:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %89

89:                                               ; preds = %88, %71
  %90 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 2
  %91 = load i32, ptr %90, align 4, !tbaa !22
  store i32 %91, ptr %15, align 4, !tbaa !16
  %92 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %93 = load i32, ptr %92, align 4, !tbaa !25
  %94 = icmp eq i32 %93, 41
  br i1 %94, label %95, label %149

95:                                               ; preds = %89
  %96 = load i32, ptr %18, align 4, !tbaa !18
  %97 = icmp eq i32 %96, 1
  br i1 %97, label %108, label %98

98:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %99 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %100 = trunc i64 %99 to i32
  store i32 %100, ptr %30, align 4, !tbaa !18
  %101 = load i32, ptr %30, align 4, !tbaa !18
  %102 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %101)
  %103 = load ptr, ptr @stdout, align 8, !tbaa !5
  %104 = call i32 @fflush(ptr noundef %103)
  %105 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %106 = load ptr, ptr @stdout, align 8, !tbaa !5
  %107 = call i32 @fflush(ptr noundef %106)
  call void @exit(i32 noundef 1) #8
  unreachable

108:                                              ; preds = %95
  %109 = load i32, ptr %19, align 4, !tbaa !18
  %110 = udiv i32 %109, 3
  %111 = mul i32 %110, 2
  store i32 %111, ptr %22, align 4, !tbaa !18
  %112 = load i32, ptr %20, align 4, !tbaa !18
  store i32 %112, ptr %23, align 4, !tbaa !18
  %113 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !26
  %115 = icmp eq i32 %114, 10
  br i1 %115, label %128, label %116

116:                                              ; preds = %108
  %117 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %118 = load i32, ptr %117, align 4, !tbaa !26
  %119 = icmp eq i32 %118, 11
  br i1 %119, label %128, label %120

120:                                              ; preds = %116
  %121 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %122 = load i32, ptr %121, align 4, !tbaa !26
  %123 = icmp eq i32 %122, 12
  br i1 %123, label %128, label %124

124:                                              ; preds = %120
  %125 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !26
  %127 = icmp eq i32 %126, 13
  br i1 %127, label %128, label %129

128:                                              ; preds = %124, %120, %116, %108
  store i32 3, ptr %21, align 4, !tbaa !18
  br label %148

129:                                              ; preds = %124
  %130 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %131 = load i32, ptr %130, align 4, !tbaa !26
  %132 = icmp eq i32 %131, 20
  br i1 %132, label %145, label %133

133:                                              ; preds = %129
  %134 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %135 = load i32, ptr %134, align 4, !tbaa !26
  %136 = icmp eq i32 %135, 21
  br i1 %136, label %145, label %137

137:                                              ; preds = %133
  %138 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %139 = load i32, ptr %138, align 4, !tbaa !26
  %140 = icmp eq i32 %139, 22
  br i1 %140, label %145, label %141

141:                                              ; preds = %137
  %142 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %143 = load i32, ptr %142, align 4, !tbaa !26
  %144 = icmp eq i32 %143, 23
  br i1 %144, label %145, label %146

145:                                              ; preds = %141, %137, %133, %129
  store i32 4, ptr %21, align 4, !tbaa !18
  br label %147

146:                                              ; preds = %141
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %274

147:                                              ; preds = %145
  br label %148

148:                                              ; preds = %147, %128
  br label %254

149:                                              ; preds = %89
  %150 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %151 = load i32, ptr %150, align 4, !tbaa !25
  %152 = icmp eq i32 %151, 10
  br i1 %152, label %181, label %153

153:                                              ; preds = %149
  %154 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %155 = load i32, ptr %154, align 4, !tbaa !25
  %156 = icmp eq i32 %155, 11
  br i1 %156, label %181, label %157

157:                                              ; preds = %153
  %158 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %159 = load i32, ptr %158, align 4, !tbaa !25
  %160 = icmp eq i32 %159, 12
  br i1 %160, label %181, label %161

161:                                              ; preds = %157
  %162 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %163 = load i32, ptr %162, align 4, !tbaa !25
  %164 = icmp eq i32 %163, 13
  br i1 %164, label %181, label %165

165:                                              ; preds = %161
  %166 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %167 = load i32, ptr %166, align 4, !tbaa !25
  %168 = icmp eq i32 %167, 20
  br i1 %168, label %181, label %169

169:                                              ; preds = %165
  %170 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !25
  %172 = icmp eq i32 %171, 21
  br i1 %172, label %181, label %173

173:                                              ; preds = %169
  %174 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %175 = load i32, ptr %174, align 4, !tbaa !25
  %176 = icmp eq i32 %175, 22
  br i1 %176, label %181, label %177

177:                                              ; preds = %173
  %178 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %179 = load i32, ptr %178, align 4, !tbaa !25
  %180 = icmp eq i32 %179, 13
  br i1 %180, label %181, label %252

181:                                              ; preds = %177, %173, %169, %165, %161, %157, %153, %149
  %182 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %183 = load i32, ptr %182, align 4, !tbaa !25
  %184 = icmp eq i32 %183, 10
  br i1 %184, label %197, label %185

185:                                              ; preds = %181
  %186 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %187 = load i32, ptr %186, align 4, !tbaa !25
  %188 = icmp eq i32 %187, 11
  br i1 %188, label %197, label %189

189:                                              ; preds = %185
  %190 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %191 = load i32, ptr %190, align 4, !tbaa !25
  %192 = icmp eq i32 %191, 12
  br i1 %192, label %197, label %193

193:                                              ; preds = %189
  %194 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %195 = load i32, ptr %194, align 4, !tbaa !25
  %196 = icmp eq i32 %195, 13
  br i1 %196, label %197, label %211

197:                                              ; preds = %193, %189, %185, %181
  %198 = load i32, ptr %18, align 4, !tbaa !18
  %199 = icmp eq i32 %198, 3
  br i1 %199, label %210, label %200

200:                                              ; preds = %197
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #7
  %201 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %202 = trunc i64 %201 to i32
  store i32 %202, ptr %31, align 4, !tbaa !18
  %203 = load i32, ptr %31, align 4, !tbaa !18
  %204 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %203)
  %205 = load ptr, ptr @stdout, align 8, !tbaa !5
  %206 = call i32 @fflush(ptr noundef %205)
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %208 = load ptr, ptr @stdout, align 8, !tbaa !5
  %209 = call i32 @fflush(ptr noundef %208)
  call void @exit(i32 noundef 1) #8
  unreachable

210:                                              ; preds = %197
  br label %211

211:                                              ; preds = %210, %193
  %212 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %213 = load i32, ptr %212, align 4, !tbaa !25
  %214 = icmp eq i32 %213, 20
  br i1 %214, label %227, label %215

215:                                              ; preds = %211
  %216 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %217 = load i32, ptr %216, align 4, !tbaa !25
  %218 = icmp eq i32 %217, 21
  br i1 %218, label %227, label %219

219:                                              ; preds = %215
  %220 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %221 = load i32, ptr %220, align 4, !tbaa !25
  %222 = icmp eq i32 %221, 22
  br i1 %222, label %227, label %223

223:                                              ; preds = %219
  %224 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 0
  %225 = load i32, ptr %224, align 4, !tbaa !25
  %226 = icmp eq i32 %225, 23
  br i1 %226, label %227, label %241

227:                                              ; preds = %223, %219, %215, %211
  %228 = load i32, ptr %18, align 4, !tbaa !18
  %229 = icmp eq i32 %228, 4
  br i1 %229, label %240, label %230

230:                                              ; preds = %227
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #7
  %231 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %232 = trunc i64 %231 to i32
  store i32 %232, ptr %32, align 4, !tbaa !18
  %233 = load i32, ptr %32, align 4, !tbaa !18
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %233)
  %235 = load ptr, ptr @stdout, align 8, !tbaa !5
  %236 = call i32 @fflush(ptr noundef %235)
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  %238 = load ptr, ptr @stdout, align 8, !tbaa !5
  %239 = call i32 @fflush(ptr noundef %238)
  call void @exit(i32 noundef 1) #8
  unreachable

240:                                              ; preds = %227
  br label %241

241:                                              ; preds = %240, %223
  %242 = getelementptr inbounds %struct.ConvertColorParamSpec, ptr %7, i32 0, i32 1
  %243 = load i32, ptr %242, align 4, !tbaa !26
  %244 = icmp eq i32 %243, 41
  br i1 %244, label %245, label %250

245:                                              ; preds = %241
  store i32 0, ptr %15, align 4, !tbaa !16
  %246 = load i32, ptr %19, align 4, !tbaa !18
  %247 = udiv i32 %246, 2
  %248 = mul i32 %247, 3
  store i32 %248, ptr %22, align 4, !tbaa !18
  %249 = load i32, ptr %20, align 4, !tbaa !18
  store i32 %249, ptr %23, align 4, !tbaa !18
  store i32 1, ptr %21, align 4, !tbaa !18
  br label %251

250:                                              ; preds = %241
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %274

251:                                              ; preds = %245
  br label %253

252:                                              ; preds = %177
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %274

253:                                              ; preds = %251
  br label %254

254:                                              ; preds = %253, %148
  call void @llvm.lifetime.start.p0(i64 92, ptr %33) #7
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %33) #7
  %255 = getelementptr inbounds %struct.TensorDesc, ptr %12, i32 0, i32 1
  %256 = load i32, ptr %255, align 4, !tbaa !14
  %257 = icmp eq i32 %256, 24
  br i1 %257, label %258, label %265

258:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 92, ptr %34) #7
  %259 = load i32, ptr %15, align 4, !tbaa !16
  %260 = load i32, ptr %16, align 4, !tbaa !17
  %261 = load i32, ptr %17, align 4, !tbaa !18
  %262 = load i32, ptr %21, align 4, !tbaa !18
  %263 = load i32, ptr %22, align 4, !tbaa !18
  %264 = load i32, ptr %23, align 4, !tbaa !18
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %34, i32 noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %34, i64 92, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 92, ptr %34) #7
  br label %272

265:                                              ; preds = %254
  call void @llvm.lifetime.start.p0(i64 92, ptr %35) #7
  %266 = load i32, ptr %15, align 4, !tbaa !16
  %267 = load i32, ptr %16, align 4, !tbaa !17
  %268 = load i32, ptr %17, align 4, !tbaa !18
  %269 = load i32, ptr %22, align 4, !tbaa !18
  %270 = load i32, ptr %23, align 4, !tbaa !18
  %271 = load i32, ptr %21, align 4, !tbaa !18
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %35, i32 noundef %266, i32 noundef %267, i32 noundef %268, i32 noundef %269, i32 noundef %270, i32 noundef %271)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %33, ptr align 4 %35, i64 92, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 92, ptr %35) #7
  br label %272

272:                                              ; preds = %265, %258
  %273 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 4 %33, i64 92, i1 false), !tbaa.struct !15
  call void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %273, ptr noundef byval(%struct.TensorDesc) align 8 %36)
  store i32 0, ptr %6, align 4
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 92, ptr %33) #7
  br label %274

274:                                              ; preds = %272, %252, %250, %146
  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
  br label %275

275:                                              ; preds = %274, %50
  call void @llvm.lifetime.end.p0(i64 92, ptr %12) #7
  br label %276

276:                                              ; preds = %275, %44
  %277 = load i32, ptr %6, align 4
  ret i32 %277
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) #0 align 2

; 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: nounwind
declare i64 @syscall(i64 noundef, ...) #4

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

declare i32 @fflush(ptr noundef) #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) #0 align 2

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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { "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 = { 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 #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, !13, i64 8}
!10 = !{!"_ZTS10TensorDesc", !11, i64 0, !12, i64 4, !13, i64 8, !7, i64 12}
!11 = !{!"_ZTS8DataType", !7, i64 0}
!12 = !{!"_ZTS10DataFormat", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!10, !12, i64 4}
!15 = !{i64 0, i64 4, !16, i64 4, i64 4, !17, i64 8, i64 4, !18, i64 12, i64 80, !19}
!16 = !{!11, !11, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!13, !13, i64 0}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"_ZTS2EE", !7, i64 0}
!22 = !{!23, !11, i64 8}
!23 = !{!"_ZTS21ConvertColorParamSpec", !24, i64 0, !24, i64 4, !11, i64 8}
!24 = !{!"_ZTS10ColorSpace", !7, i64 0}
!25 = !{!23, !24, i64 0}
!26 = !{!23, !24, i64 4}


; 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 uwtable
define dso_local noundef range(i32 0, 52) i32 @_Z31convert_color_infer_output_sizeP6Tensor21ConvertColorParamSpecS0_P8ArchInfo(ptr noundef %0, i64 %1, i32 %2, ptr noundef %3, ptr nocapture noundef readnone %4) local_unnamed_addr #0 {
  %6 = alloca %struct.TensorDesc, align 8
  %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 %struct.TensorDesc, align 8
  %14 = alloca %struct.TensorDesc, align 4
  %15 = alloca %struct.TensorDesc, align 4
  %.sroa.082.0.extract.trunc = trunc i64 %1 to i32
  %16 = icmp eq ptr %0, null
  %17 = icmp eq ptr %3, null
  %or.cond = or i1 %16, %17
  br i1 %or.cond, label %114, label %18

18:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %6) #7
  call void @_ZN6Tensor8get_descEv(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %6, ptr noundef nonnull align 8 dereferenceable(32) %0)
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = load i32, ptr %19, align 8, !tbaa !5
  %.not = icmp eq i32 %20, 4
  br i1 %.not, label %21, label %113

21:                                               ; preds = %18
  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
  %22 = getelementptr inbounds i8, ptr %6, i64 4
  %23 = load i32, ptr %22, align 4, !tbaa !12
  %24 = icmp eq i32 %23, 24
  br i1 %24, label %25, label %37

25:                                               ; preds = %21
  %26 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12)
  %.not117 = icmp eq i32 %26, 0
  br i1 %.not117, label %49, label %27

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

37:                                               ; preds = %21
  %38 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %6, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef nonnull %9, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %10)
  %.not116 = icmp eq i32 %38, 0
  br i1 %.not116, label %49, label %39

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

49:                                               ; preds = %37, %25
  switch i32 %.sroa.082.0.extract.trunc, label %112 [
    i32 41, label %50
    i32 22, label %69
    i32 21, label %69
    i32 20, label %69
    i32 13, label %69
    i32 12, label %69
    i32 11, label %69
    i32 10, label %69
  ]

50:                                               ; preds = %49
  %51 = load i32, ptr %10, align 4, !tbaa !15
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %62, label %53

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

62:                                               ; preds = %50
  %63 = load i32, ptr %11, align 4, !tbaa !15
  %64 = udiv i32 %63, 3
  %65 = shl nuw i32 %64, 1
  %66 = load i32, ptr %12, align 4, !tbaa !15
  %67 = add i64 %1, -42949672960
  %68 = lshr i64 %67, 33
  switch i64 %68, label %112 [
    i64 1, label %102
    i64 0, label %102
    i64 6, label %.fold.split
    i64 5, label %.fold.split
  ]

69:                                               ; preds = %49, %49, %49, %49, %49, %49, %49
  %70 = and i32 %.sroa.082.0.extract.trunc, -2
  %or.cond22 = icmp eq i32 %70, 10
  %71 = icmp eq i32 %70, 12
  %or.cond28 = or i1 %or.cond22, %71
  %72 = load i32, ptr %10, align 4
  %73 = icmp ne i32 %72, 3
  %or.cond60.not = select i1 %or.cond28, i1 %73, i1 false
  br i1 %or.cond60.not, label %74, label %83

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

83:                                               ; preds = %69
  %84 = and i32 %.sroa.082.0.extract.trunc, 28
  %or.cond58.not120 = icmp ne i32 %84, 20
  %85 = icmp eq i32 %72, 4
  %or.cond62 = select i1 %or.cond58.not120, i1 true, i1 %85
  br i1 %or.cond62, label %95, label %86

86:                                               ; preds = %83
  %87 = call i64 (i64, ...) @syscall(i64 noundef 186) #7
  %88 = trunc i64 %87 to i32
  %89 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %88)
  %90 = load ptr, ptr @stdout, align 8, !tbaa !13
  %91 = call i32 @fflush(ptr noundef %90)
  %92 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !13
  %94 = call i32 @fflush(ptr noundef %93)
  call void @exit(i32 noundef 1) #8
  unreachable

95:                                               ; preds = %83
  %.sroa.18.0.extract.shift.mask = and i64 %1, -4294967296
  %96 = icmp eq i64 %.sroa.18.0.extract.shift.mask, 176093659136
  br i1 %96, label %97, label %112

97:                                               ; preds = %95
  %98 = load i32, ptr %11, align 4, !tbaa !15
  %99 = lshr i32 %98, 1
  %100 = mul i32 %99, 3
  %101 = load i32, ptr %12, align 4, !tbaa !15
  br label %102

.fold.split:                                      ; preds = %62, %62
  br label %102

102:                                              ; preds = %62, %62, %.fold.split, %97
  %.0111 = phi i32 [ %101, %97 ], [ %66, %62 ], [ %66, %62 ], [ %66, %.fold.split ]
  %.0110 = phi i32 [ %100, %97 ], [ %65, %62 ], [ %65, %62 ], [ %65, %.fold.split ]
  %.0109 = phi i32 [ 1, %97 ], [ 3, %62 ], [ 3, %62 ], [ 4, %.fold.split ]
  %.0108 = phi i32 [ 0, %97 ], [ %2, %62 ], [ %2, %62 ], [ %2, %.fold.split ]
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %13) #7
  call void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92) %13) #7
  %103 = load i32, ptr %22, align 4, !tbaa !12
  %104 = icmp eq i32 %103, 24
  br i1 %104, label %105, label %108

105:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %14) #7
  %106 = load i32, ptr %8, align 4, !tbaa !16
  %107 = load i32, ptr %9, align 4, !tbaa !15
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %14, i32 noundef %.0108, i32 noundef %106, i32 noundef %107, i32 noundef %.0109, i32 noundef %.0110, i32 noundef %.0111)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %13, ptr noundef nonnull align 4 dereferenceable(92) %14, i64 92, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %14) #7
  br label %111

108:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %15) #7
  %109 = load i32, ptr %8, align 4, !tbaa !16
  %110 = load i32, ptr %9, align 4, !tbaa !15
  call void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %15, i32 noundef %.0108, i32 noundef %109, i32 noundef %110, i32 noundef %.0110, i32 noundef %.0111, i32 noundef %.0109)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(92) %13, ptr noundef nonnull align 4 dereferenceable(92) %15, i64 92, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %15) #7
  br label %111

111:                                              ; preds = %108, %105
  call void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %13)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #7
  br label %112

112:                                              ; preds = %49, %62, %95, %111
  %.0 = phi i32 [ 0, %111 ], [ 51, %95 ], [ 51, %62 ], [ 51, %49 ]
  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
  br label %113

113:                                              ; preds = %18, %112
  %.1 = phi i32 [ %.0, %112 ], [ 51, %18 ]
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %6) #7
  br label %114

114:                                              ; preds = %5, %113
  %.2 = phi i32 [ %.1, %113 ], [ 1, %5 ]
  ret i32 %.2
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor8get_descEv(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #0 align 2

; 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: nounwind
declare i64 @syscall(i64 noundef, ...) local_unnamed_addr #4

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10TensorDescC2Ev(ptr noundef nonnull align 4 dereferenceable(92)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z9tensor4df8DataType10DataFormatjjjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Tensor6resizeE10TensorDesc(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef byval(%struct.TensorDesc) align 8) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 #6 = { 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 #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, !11, i64 8}
!6 = !{!"_ZTS10TensorDesc", !7, i64 0, !10, i64 4, !11, i64 8, !8, i64 12}
!7 = !{!"_ZTS8DataType", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS10DataFormat", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !10, i64 4}
!13 = !{!14, !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!10, !10, i64 0}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !16, i64 8, i64 4, !15, i64 12, i64 80, !19}
!18 = !{!7, !7, i64 0}
!19 = !{!8, !8, i64 0}


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