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

; 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.SliceParamSpec = type { [8 x i32], i32, 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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9slice_cpu10TensorDescPv14SliceParamSpecRSt6vectorIS_SaIS_EERS2_IS0_SaIS0_EE(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr noundef byval(%struct.SliceParamSpec) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #0 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %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 i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %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 ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  store ptr %4, ptr %9, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = icmp eq ptr null, %46
  br i1 %47, label %48, label %64

48:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  store i32 1, ptr %10, align 4, !tbaa !9
  %49 = load i32, ptr %10, align 4, !tbaa !9
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %63

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

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

64:                                               ; preds = %63, %5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = call noundef i64 @_ZNKSt6vectorI10TensorDescSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %65) #8
  %67 = trunc i64 %66 to i32
  store i32 %67, ptr %12, align 4, !tbaa !11
  %68 = load i32, ptr %12, align 4, !tbaa !11
  %69 = icmp ult i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  store i32 2, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %421

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  %72 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 2
  %73 = load i32, ptr %72, align 8, !tbaa !13
  store i32 %73, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %74 = getelementptr inbounds %struct.SliceParamSpec, ptr %2, i32 0, i32 2
  %75 = load i32, ptr %74, align 4, !tbaa !17
  %76 = load i32, ptr %14, align 4, !tbaa !11
  %77 = add nsw i32 %75, %76
  %78 = load i32, ptr %14, align 4, !tbaa !11
  %79 = srem i32 %77, %78
  store i32 %79, ptr %15, align 4, !tbaa !11
  %80 = load i32, ptr %14, align 4, !tbaa !11
  %81 = sub nsw i32 %80, 1
  %82 = load i32, ptr %15, align 4, !tbaa !11
  %83 = sub nsw i32 %81, %82
  store i32 %83, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  %84 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 0
  %85 = load i32, ptr %84, align 8, !tbaa !19
  %86 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %85)
  store i32 %86, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %87

87:                                               ; preds = %100, %71
  %88 = load i32, ptr %17, align 4, !tbaa !11
  %89 = load i32, ptr %15, align 4, !tbaa !11
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  br label %103

92:                                               ; preds = %87
  %93 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 3
  %94 = load i32, ptr %17, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds [20 x i32], ptr %93, i64 0, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !11
  %98 = load i32, ptr %16, align 4, !tbaa !11
  %99 = mul i32 %98, %97
  store i32 %99, ptr %16, align 4, !tbaa !11
  br label %100

100:                                              ; preds = %92
  %101 = load i32, ptr %17, align 4, !tbaa !11
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %17, align 4, !tbaa !11
  br label %87, !llvm.loop !20

103:                                              ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  store i32 1, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %104 = load i32, ptr %15, align 4, !tbaa !11
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %19, align 4, !tbaa !11
  br label %106

106:                                              ; preds = %119, %103
  %107 = load i32, ptr %19, align 4, !tbaa !11
  %108 = load i32, ptr %14, align 4, !tbaa !11
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  br label %122

111:                                              ; preds = %106
  %112 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 3
  %113 = load i32, ptr %19, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [20 x i32], ptr %112, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !11
  %117 = load i32, ptr %18, align 4, !tbaa !11
  %118 = mul i32 %117, %116
  store i32 %118, ptr %18, align 4, !tbaa !11
  br label %119

119:                                              ; preds = %111
  %120 = load i32, ptr %19, align 4, !tbaa !11
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %19, align 4, !tbaa !11
  br label %106, !llvm.loop !22

122:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #8
  store i8 1, ptr %20, align 1, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %123

123:                                              ; preds = %141, %122
  %124 = load i32, ptr %21, align 4, !tbaa !11
  %125 = load i32, ptr %12, align 4, !tbaa !11
  %126 = icmp ult i32 %124, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %123
  store i32 8, ptr %13, align 4
  br label %144

128:                                              ; preds = %123
  %129 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !25
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = load i32, ptr %21, align 4, !tbaa !11
  %133 = zext i32 %132 to i64
  %134 = call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #8
  %135 = getelementptr inbounds %struct.TensorDesc, ptr %134, i32 0, i32 1
  %136 = load i32, ptr %135, align 4, !tbaa !25
  %137 = call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %130, i32 noundef %136)
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %140, label %139

139:                                              ; preds = %128
  store i8 0, ptr %20, align 1, !tbaa !23
  store i32 8, ptr %13, align 4
  br label %144

140:                                              ; preds = %128
  br label %141

141:                                              ; preds = %140
  %142 = load i32, ptr %21, align 4, !tbaa !11
  %143 = add i32 %142, 1
  store i32 %143, ptr %21, align 4, !tbaa !11
  br label %123, !llvm.loop !26

144:                                              ; preds = %139, %127
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %145

145:                                              ; preds = %144
  %146 = load i8, ptr %20, align 1, !tbaa !23, !range !27, !noundef !28
  %147 = trunc i8 %146 to i1
  br i1 %147, label %148, label %163

148:                                              ; preds = %145
  %149 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !25
  %151 = icmp eq i32 %150, 2
  br i1 %151, label %152, label %163

152:                                              ; preds = %148
  %153 = load i32, ptr %15, align 4, !tbaa !11
  %154 = load i32, ptr %14, align 4, !tbaa !11
  %155 = sub nsw i32 %154, 2
  %156 = icmp slt i32 %153, %155
  br i1 %156, label %157, label %162

157:                                              ; preds = %152
  %158 = load i32, ptr %16, align 4, !tbaa !11
  %159 = mul i32 %158, 8
  store i32 %159, ptr %16, align 4, !tbaa !11
  %160 = load i32, ptr %18, align 4, !tbaa !11
  %161 = udiv i32 %160, 8
  store i32 %161, ptr %18, align 4, !tbaa !11
  br label %162

162:                                              ; preds = %157, %152
  br label %163

163:                                              ; preds = %162, %148, %145
  %164 = load i8, ptr %20, align 1, !tbaa !23, !range !27, !noundef !28
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %243

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #8
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %167, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %168

168:                                              ; preds = %239, %166
  %169 = load i32, ptr %23, align 4, !tbaa !11
  %170 = load i32, ptr %18, align 4, !tbaa !11
  %171 = icmp ult i32 %169, %170
  br i1 %171, label %173, label %172

172:                                              ; preds = %168
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %242

173:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %174

174:                                              ; preds = %235, %173
  %175 = load i32, ptr %24, align 4, !tbaa !11
  %176 = load i32, ptr %12, align 4, !tbaa !11
  %177 = icmp ult i32 %175, %176
  br i1 %177, label %179, label %178

178:                                              ; preds = %174
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %238

179:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %180 = load ptr, ptr %8, align 8, !tbaa !5
  %181 = load i32, ptr %24, align 4, !tbaa !11
  %182 = zext i32 %181 to i64
  %183 = call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #8
  %184 = getelementptr inbounds %struct.TensorDesc, ptr %183, i32 0, i32 3
  %185 = load i32, ptr %15, align 4, !tbaa !11
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds [20 x i32], ptr %184, i64 0, i64 %186
  %188 = load i32, ptr %187, align 4, !tbaa !11
  %189 = load i32, ptr %16, align 4, !tbaa !11
  %190 = mul i32 %188, %189
  store i32 %190, ptr %25, align 4, !tbaa !11
  %191 = load i32, ptr %25, align 4, !tbaa !11
  %192 = icmp ugt i32 %191, 0
  br i1 %192, label %193, label %216

193:                                              ; preds = %179
  %194 = load ptr, ptr %9, align 8, !tbaa !5
  %195 = load i32, ptr %24, align 4, !tbaa !11
  %196 = zext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #8
  %198 = load ptr, ptr %197, align 8, !tbaa !5
  %199 = icmp eq ptr null, %198
  br i1 %199, label %200, label %216

200:                                              ; preds = %193
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  store i32 1, ptr %26, align 4, !tbaa !9
  %201 = load i32, ptr %26, align 4, !tbaa !9
  %202 = icmp ne i32 %201, 0
  br i1 %202, label %203, label %215

203:                                              ; preds = %200
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  %204 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %205 = trunc i64 %204 to i32
  store i32 %205, ptr %27, align 4, !tbaa !11
  %206 = load i32, ptr %27, align 4, !tbaa !11
  %207 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %206)
  %208 = load ptr, ptr @stdout, align 8, !tbaa !5
  %209 = call i32 @fflush(ptr noundef %208)
  %210 = load i32, ptr %26, align 4, !tbaa !9
  %211 = call ptr @ee2str(i32 noundef %210)
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %211)
  %213 = load ptr, ptr @stdout, align 8, !tbaa !5
  %214 = call i32 @fflush(ptr noundef %213)
  call void @exit(i32 noundef 1) #9
  unreachable

215:                                              ; preds = %200
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  br label %216

216:                                              ; preds = %215, %193, %179
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load i32, ptr %24, align 4, !tbaa !11
  %219 = zext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %217, i64 noundef %219) #8
  %221 = load ptr, ptr %220, align 8, !tbaa !5
  %222 = load i32, ptr %23, align 4, !tbaa !11
  %223 = load i32, ptr %25, align 4, !tbaa !11
  %224 = mul i32 %222, %223
  %225 = zext i32 %224 to i64
  %226 = getelementptr inbounds i8, ptr %221, i64 %225
  store ptr %226, ptr %28, align 8, !tbaa !5
  %227 = load ptr, ptr %28, align 8, !tbaa !5
  %228 = load ptr, ptr %22, align 8, !tbaa !5
  %229 = load i32, ptr %25, align 4, !tbaa !11
  %230 = zext i32 %229 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %227, ptr noundef %228, i64 noundef %230)
  %231 = load i32, ptr %25, align 4, !tbaa !11
  %232 = load ptr, ptr %22, align 8, !tbaa !5
  %233 = zext i32 %231 to i64
  %234 = getelementptr inbounds i8, ptr %232, i64 %233
  store ptr %234, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %235

235:                                              ; preds = %216
  %236 = load i32, ptr %24, align 4, !tbaa !11
  %237 = add i32 %236, 1
  store i32 %237, ptr %24, align 4, !tbaa !11
  br label %174, !llvm.loop !29

238:                                              ; preds = %178
  br label %239

239:                                              ; preds = %238
  %240 = load i32, ptr %23, align 4, !tbaa !11
  %241 = add i32 %240, 1
  store i32 %241, ptr %23, align 4, !tbaa !11
  br label %168, !llvm.loop !30

242:                                              ; preds = %172
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #8
  br label %419

243:                                              ; preds = %163
  %244 = load i32, ptr %15, align 4, !tbaa !11
  %245 = load i32, ptr %14, align 4, !tbaa !11
  %246 = sub nsw i32 %245, 2
  %247 = icmp ne i32 %244, %246
  br i1 %247, label %248, label %264

248:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  store i32 51, ptr %29, align 4, !tbaa !9
  %249 = load i32, ptr %29, align 4, !tbaa !9
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %263

251:                                              ; preds = %248
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %252 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %253 = trunc i64 %252 to i32
  store i32 %253, ptr %30, align 4, !tbaa !11
  %254 = load i32, ptr %30, align 4, !tbaa !11
  %255 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %254)
  %256 = load ptr, ptr @stdout, align 8, !tbaa !5
  %257 = call i32 @fflush(ptr noundef %256)
  %258 = load i32, ptr %29, align 4, !tbaa !9
  %259 = call ptr @ee2str(i32 noundef %258)
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %259)
  %261 = load ptr, ptr @stdout, align 8, !tbaa !5
  %262 = call i32 @fflush(ptr noundef %261)
  call void @exit(i32 noundef 1) #9
  unreachable

263:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %420

264:                                              ; preds = %243
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #8
  %265 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %265, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #8
  %266 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 0
  %267 = load i32, ptr %266, align 8, !tbaa !19
  %268 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %267)
  store i32 %268, ptr %32, align 4, !tbaa !11
  %269 = load i32, ptr %32, align 4, !tbaa !11
  %270 = load i32, ptr %16, align 4, !tbaa !11
  %271 = udiv i32 %270, %269
  store i32 %271, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  store i32 0, ptr %33, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  store i32 0, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #8
  store i32 0, ptr %35, align 4, !tbaa !11
  br label %272

272:                                              ; preds = %410, %264
  %273 = load i32, ptr %35, align 4, !tbaa !11
  %274 = load i32, ptr %12, align 4, !tbaa !11
  %275 = icmp ult i32 %273, %274
  br i1 %275, label %277, label %276

276:                                              ; preds = %272
  store i32 17, ptr %13, align 4
  br label %413

277:                                              ; preds = %272
  %278 = load ptr, ptr %8, align 8, !tbaa !5
  %279 = load i32, ptr %35, align 4, !tbaa !11
  %280 = zext i32 %279 to i64
  %281 = call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %278, i64 noundef %280) #8
  %282 = getelementptr inbounds %struct.TensorDesc, ptr %281, i32 0, i32 3
  %283 = load i32, ptr %15, align 4, !tbaa !11
  %284 = sext i32 %283 to i64
  %285 = getelementptr inbounds [20 x i32], ptr %282, i64 0, i64 %284
  %286 = load i32, ptr %285, align 4, !tbaa !11
  %287 = load i32, ptr %34, align 4, !tbaa !11
  %288 = add i32 %287, %286
  store i32 %288, ptr %34, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #8
  %289 = load ptr, ptr %9, align 8, !tbaa !5
  %290 = load i32, ptr %35, align 4, !tbaa !11
  %291 = zext i32 %290 to i64
  %292 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %289, i64 noundef %291) #8
  %293 = load ptr, ptr %292, align 8, !tbaa !5
  store ptr %293, ptr %36, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 1
  %295 = load i32, ptr %294, align 4, !tbaa !25
  %296 = icmp eq i32 %295, 2
  br i1 %296, label %297, label %389

297:                                              ; preds = %277
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = load i32, ptr %35, align 4, !tbaa !11
  %300 = zext i32 %299 to i64
  %301 = call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %298, i64 noundef %300) #8
  %302 = getelementptr inbounds %struct.TensorDesc, ptr %301, i32 0, i32 1
  %303 = load i32, ptr %302, align 4, !tbaa !25
  %304 = icmp ne i32 %303, 2
  br i1 %304, label %305, label %389

305:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  store i32 0, ptr %37, align 4, !tbaa !11
  br label %306

306:                                              ; preds = %385, %305
  %307 = load i32, ptr %37, align 4, !tbaa !11
  %308 = load i32, ptr %18, align 4, !tbaa !11
  %309 = icmp ult i32 %307, %308
  br i1 %309, label %311, label %310

310:                                              ; preds = %306
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  br label %388

311:                                              ; preds = %306
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %312 = load i32, ptr %33, align 4, !tbaa !11
  store i32 %312, ptr %38, align 4, !tbaa !11
  br label %313

313:                                              ; preds = %381, %311
  %314 = load i32, ptr %38, align 4, !tbaa !11
  %315 = load i32, ptr %34, align 4, !tbaa !11
  %316 = icmp ult i32 %314, %315
  br i1 %316, label %318, label %317

317:                                              ; preds = %313
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %384

318:                                              ; preds = %313
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %319 = load i32, ptr %38, align 4, !tbaa !11
  %320 = urem i32 %319, 8
  store i32 %320, ptr %39, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %321 = load i32, ptr %38, align 4, !tbaa !11
  %322 = load i32, ptr %39, align 4, !tbaa !11
  %323 = sub i32 %321, %322
  store i32 %323, ptr %40, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !11
  br label %324

324:                                              ; preds = %377, %318
  %325 = load i32, ptr %41, align 4, !tbaa !11
  %326 = load i32, ptr %16, align 4, !tbaa !11
  %327 = icmp ult i32 %325, %326
  br i1 %327, label %329, label %328

328:                                              ; preds = %324
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %380

329:                                              ; preds = %324
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  %330 = load i32, ptr %37, align 4, !tbaa !11
  %331 = load i32, ptr %16, align 4, !tbaa !11
  %332 = mul i32 %330, %331
  %333 = load i32, ptr %34, align 4, !tbaa !11
  %334 = load i32, ptr %33, align 4, !tbaa !11
  %335 = sub i32 %333, %334
  %336 = mul i32 %332, %335
  %337 = load i32, ptr %38, align 4, !tbaa !11
  %338 = load i32, ptr %33, align 4, !tbaa !11
  %339 = sub i32 %337, %338
  %340 = load i32, ptr %16, align 4, !tbaa !11
  %341 = mul i32 %339, %340
  %342 = add i32 %336, %341
  %343 = load i32, ptr %41, align 4, !tbaa !11
  %344 = add i32 %342, %343
  store i32 %344, ptr %42, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  %345 = load i32, ptr %37, align 4, !tbaa !11
  %346 = load i32, ptr %16, align 4, !tbaa !11
  %347 = mul i32 %345, %346
  %348 = getelementptr inbounds %struct.TensorDesc, ptr %0, i32 0, i32 3
  %349 = load i32, ptr %15, align 4, !tbaa !11
  %350 = sext i32 %349 to i64
  %351 = getelementptr inbounds [20 x i32], ptr %348, i64 0, i64 %350
  %352 = load i32, ptr %351, align 4, !tbaa !11
  %353 = mul i32 %347, %352
  %354 = load i32, ptr %40, align 4, !tbaa !11
  %355 = load i32, ptr %16, align 4, !tbaa !11
  %356 = mul i32 %354, %355
  %357 = add i32 %353, %356
  %358 = load i32, ptr %41, align 4, !tbaa !11
  %359 = mul i32 %358, 8
  %360 = add i32 %357, %359
  %361 = load i32, ptr %39, align 4, !tbaa !11
  %362 = add i32 %360, %361
  store i32 %362, ptr %43, align 4, !tbaa !11
  %363 = load ptr, ptr %36, align 8, !tbaa !5
  %364 = load i32, ptr %42, align 4, !tbaa !11
  %365 = load i32, ptr %32, align 4, !tbaa !11
  %366 = mul i32 %364, %365
  %367 = zext i32 %366 to i64
  %368 = getelementptr inbounds i8, ptr %363, i64 %367
  %369 = load ptr, ptr %31, align 8, !tbaa !5
  %370 = load i32, ptr %43, align 4, !tbaa !11
  %371 = load i32, ptr %32, align 4, !tbaa !11
  %372 = mul i32 %370, %371
  %373 = zext i32 %372 to i64
  %374 = getelementptr inbounds i8, ptr %369, i64 %373
  %375 = load i32, ptr %32, align 4, !tbaa !11
  %376 = zext i32 %375 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %368, ptr noundef %374, i64 noundef %376)
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %377

377:                                              ; preds = %329
  %378 = load i32, ptr %41, align 4, !tbaa !11
  %379 = add i32 %378, 1
  store i32 %379, ptr %41, align 4, !tbaa !11
  br label %324, !llvm.loop !31

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

381:                                              ; preds = %380
  %382 = load i32, ptr %38, align 4, !tbaa !11
  %383 = add i32 %382, 1
  store i32 %383, ptr %38, align 4, !tbaa !11
  br label %313, !llvm.loop !32

384:                                              ; preds = %317
  br label %385

385:                                              ; preds = %384
  %386 = load i32, ptr %37, align 4, !tbaa !11
  %387 = add i32 %386, 1
  store i32 %387, ptr %37, align 4, !tbaa !11
  br label %306, !llvm.loop !33

388:                                              ; preds = %310
  br label %405

389:                                              ; preds = %297, %277
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  store i32 51, ptr %44, align 4, !tbaa !9
  %390 = load i32, ptr %44, align 4, !tbaa !9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %404

392:                                              ; preds = %389
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %393 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %394 = trunc i64 %393 to i32
  store i32 %394, ptr %45, align 4, !tbaa !11
  %395 = load i32, ptr %45, align 4, !tbaa !11
  %396 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %395)
  %397 = load ptr, ptr @stdout, align 8, !tbaa !5
  %398 = call i32 @fflush(ptr noundef %397)
  %399 = load i32, ptr %44, align 4, !tbaa !9
  %400 = call ptr @ee2str(i32 noundef %399)
  %401 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, ptr noundef %400)
  %402 = load ptr, ptr @stdout, align 8, !tbaa !5
  %403 = call i32 @fflush(ptr noundef %402)
  call void @exit(i32 noundef 1) #9
  unreachable

404:                                              ; preds = %389
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  store i32 51, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %407

405:                                              ; preds = %388
  %406 = load i32, ptr %34, align 4, !tbaa !11
  store i32 %406, ptr %33, align 4, !tbaa !11
  store i32 0, ptr %13, align 4
  br label %407

407:                                              ; preds = %405, %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #8
  %408 = load i32, ptr %13, align 4
  switch i32 %408, label %413 [
    i32 0, label %409
  ]

409:                                              ; preds = %407
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %35, align 4, !tbaa !11
  %412 = add i32 %411, 1
  store i32 %412, ptr %35, align 4, !tbaa !11
  br label %272, !llvm.loop !34

413:                                              ; preds = %407, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #8
  %414 = load i32, ptr %13, align 4
  switch i32 %414, label %416 [
    i32 17, label %415
  ]

415:                                              ; preds = %413
  store i32 0, ptr %13, align 4
  br label %416

416:                                              ; preds = %415, %413
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  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 8, ptr %31) #8
  %417 = load i32, ptr %13, align 4
  switch i32 %417, label %420 [
    i32 0, label %418
  ]

418:                                              ; preds = %416
  br label %419

419:                                              ; preds = %418, %242
  store i32 0, ptr %6, align 4
  store i32 1, ptr %13, align 4
  br label %420

420:                                              ; preds = %419, %416, %263
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #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
  br label %421

421:                                              ; preds = %420, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  %422 = load i32, ptr %6, align 4
  ret i32 %422
}

; 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: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10TensorDescSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #6 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS2EE", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 8}
!14 = !{!"_ZTS10TensorDesc", !15, i64 0, !16, i64 4, !12, i64 8, !7, i64 12}
!15 = !{!"_ZTS8DataType", !7, i64 0}
!16 = !{!"_ZTS10DataFormat", !7, i64 0}
!17 = !{!18, !12, i64 36}
!18 = !{!"_ZTS14SliceParamSpec", !7, i64 0, !12, i64 32, !12, i64 36}
!19 = !{!14, !15, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{!14, !16, i64 4}
!26 = distinct !{!26, !21}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}
!34 = distinct !{!34, !21}


; 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.SliceParamSpec = type { [8 x i32], i32, 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

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 3) i32 @_Z9slice_cpu10TensorDescPv14SliceParamSpecRSt6vectorIS_SaIS_EERS2_IS0_SaIS0_EE(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, ptr nocapture noundef readonly byval(%struct.SliceParamSpec) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %4) local_unnamed_addr #0 {
  %6 = icmp eq ptr %1, null
  br i1 %6, label %7, label %17

7:                                                ; preds = %5
  %8 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %9 = trunc i64 %8 to i32
  %10 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %9)
  %11 = load ptr, ptr @stdout, align 8, !tbaa !5
  %12 = tail call i32 @fflush(ptr noundef %11)
  %13 = tail call ptr @ee2str(i32 noundef 1)
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %13)
  %15 = load ptr, ptr @stdout, align 8, !tbaa !5
  %16 = tail call i32 @fflush(ptr noundef %15)
  tail call void @exit(i32 noundef 1) #9
  unreachable

17:                                               ; preds = %5
  %18 = tail call noundef i64 @_ZNKSt6vectorI10TensorDescSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #8
  %19 = trunc i64 %18 to i32
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %.loopexit, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = load i32, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds i8, ptr %2, i64 36
  %25 = load i32, ptr %24, align 4, !tbaa !14
  %26 = add nsw i32 %25, %23
  %27 = srem i32 %26, %23
  %28 = xor i32 %27, -1
  %29 = add i32 %23, %28
  %30 = load i32, ptr %0, align 8, !tbaa !16
  %31 = tail call noundef i32 @_Z7bytesOf8DataType(i32 noundef %30)
  %32 = icmp sgt i32 %29, 0
  br i1 %32, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %21
  %33 = getelementptr inbounds i8, ptr %0, i64 12
  %wide.trip.count = zext nneg i32 %29 to i64
  %min.iters.check = icmp ult i32 %29, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %.0125161.ph = phi i32 [ %31, %.lr.ph ], [ %40, %middle.block ]
  br label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph
  %n.vec = and i64 %wide.trip.count, 2147483640
  %34 = insertelement <4 x i32> <i32 poison, i32 1, i32 1, i32 1>, i32 %31, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %34, %vector.ph ], [ %37, %vector.body ]
  %vec.phi262 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %38, %vector.body ]
  %35 = getelementptr inbounds [20 x i32], ptr %33, i64 0, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %wide.load = load <4 x i32>, ptr %35, align 4, !tbaa !17
  %wide.load263 = load <4 x i32>, ptr %36, align 4, !tbaa !17
  %37 = mul <4 x i32> %wide.load, %vec.phi
  %38 = mul <4 x i32> %wide.load263, %vec.phi262
  %index.next = add nuw i64 %index, 8
  %39 = icmp eq i64 %index.next, %n.vec
  br i1 %39, label %middle.block, label %vector.body, !llvm.loop !18

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %38, %37
  %40 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %21
  %.0125.lcssa = phi i32 [ %31, %21 ], [ %40, %middle.block ], [ %54, %scalar.ph ]
  %41 = sub i32 %23, %27
  %42 = icmp slt i32 %41, %23
  br i1 %42, label %.lr.ph165, label %.preheader158

.lr.ph165:                                        ; preds = %._crit_edge
  %43 = getelementptr inbounds i8, ptr %0, i64 12
  %44 = sext i32 %41 to i64
  %wide.trip.count213 = sext i32 %23 to i64
  %45 = sub nsw i64 %wide.trip.count213, %44
  %min.iters.check266 = icmp ult i64 %45, 8
  br i1 %min.iters.check266, label %scalar.ph265.preheader, label %vector.ph267

scalar.ph265.preheader:                           ; preds = %middle.block264, %.lr.ph165
  %indvars.iv210.ph = phi i64 [ %44, %.lr.ph165 ], [ %ind.end, %middle.block264 ]
  %.0129163.ph = phi i32 [ 1, %.lr.ph165 ], [ %51, %middle.block264 ]
  br label %scalar.ph265

vector.ph267:                                     ; preds = %.lr.ph165
  %n.vec269 = and i64 %45, -8
  %ind.end = add nsw i64 %n.vec269, %44
  br label %vector.body271

vector.body271:                                   ; preds = %vector.body271, %vector.ph267
  %index272 = phi i64 [ 0, %vector.ph267 ], [ %index.next277, %vector.body271 ]
  %vec.phi273 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph267 ], [ %48, %vector.body271 ]
  %vec.phi274 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph267 ], [ %49, %vector.body271 ]
  %offset.idx = add i64 %index272, %44
  %46 = getelementptr inbounds [20 x i32], ptr %43, i64 0, i64 %offset.idx
  %47 = getelementptr inbounds i8, ptr %46, i64 16
  %wide.load275 = load <4 x i32>, ptr %46, align 4, !tbaa !17
  %wide.load276 = load <4 x i32>, ptr %47, align 4, !tbaa !17
  %48 = mul <4 x i32> %wide.load275, %vec.phi273
  %49 = mul <4 x i32> %wide.load276, %vec.phi274
  %index.next277 = add nuw i64 %index272, 8
  %50 = icmp eq i64 %index.next277, %n.vec269
  br i1 %50, label %middle.block264, label %vector.body271, !llvm.loop !22

middle.block264:                                  ; preds = %vector.body271
  %bin.rdx278 = mul <4 x i32> %49, %48
  %51 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx278)
  %cmp.n279 = icmp eq i64 %45, %n.vec269
  br i1 %cmp.n279, label %.preheader158, label %scalar.ph265.preheader

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.0125161 = phi i32 [ %54, %scalar.ph ], [ %.0125161.ph, %scalar.ph.preheader ]
  %52 = getelementptr inbounds [20 x i32], ptr %33, i64 0, i64 %indvars.iv
  %53 = load i32, ptr %52, align 4, !tbaa !17
  %54 = mul i32 %53, %.0125161
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !23

.preheader158:                                    ; preds = %scalar.ph265, %middle.block264, %._crit_edge
  %.0129.lcssa = phi i32 [ 1, %._crit_edge ], [ %51, %middle.block264 ], [ %64, %scalar.ph265 ]
  %55 = getelementptr inbounds i8, ptr %0, i64 4
  %56 = load i32, ptr %55, align 4
  %.fr198 = freeze i32 %56
  %57 = and i64 %18, 4294967295
  %umax = tail call i32 @llvm.umax.i32(i32 %19, i32 1)
  %wide.trip.count217 = zext i32 %umax to i64
  %58 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %59 = getelementptr inbounds i8, ptr %58, i64 4
  %60 = load i32, ptr %59, align 4, !tbaa !24
  %61 = tail call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %.fr198, i32 noundef %60)
  %.not256 = icmp eq i32 %61, 0
  br i1 %.not256, label %._crit_edge259, label %.lr.ph258

scalar.ph265:                                     ; preds = %scalar.ph265.preheader, %scalar.ph265
  %indvars.iv210 = phi i64 [ %indvars.iv.next211, %scalar.ph265 ], [ %indvars.iv210.ph, %scalar.ph265.preheader ]
  %.0129163 = phi i32 [ %64, %scalar.ph265 ], [ %.0129163.ph, %scalar.ph265.preheader ]
  %62 = getelementptr inbounds [20 x i32], ptr %43, i64 0, i64 %indvars.iv210
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = mul i32 %63, %.0129163
  %indvars.iv.next211 = add nsw i64 %indvars.iv210, 1
  %exitcond214.not = icmp eq i64 %indvars.iv.next211, %wide.trip.count213
  br i1 %exitcond214.not, label %.preheader158, label %scalar.ph265, !llvm.loop !25

.lr.ph258:                                        ; preds = %.preheader158, %65
  %indvars.iv215257 = phi i64 [ %indvars.iv.next216, %65 ], [ 0, %.preheader158 ]
  %indvars.iv.next216 = add nuw nsw i64 %indvars.iv215257, 1
  %exitcond218 = icmp eq i64 %indvars.iv.next216, %wide.trip.count217
  br i1 %exitcond218, label %._crit_edge259.loopexit, label %65, !llvm.loop !26

65:                                               ; preds = %.lr.ph258
  %66 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv.next216) #8
  %67 = getelementptr inbounds i8, ptr %66, i64 4
  %68 = load i32, ptr %67, align 4, !tbaa !24
  %69 = tail call noundef i32 @_Z16isSameDataFormat10DataFormatS_(i32 noundef %.fr198, i32 noundef %68)
  %.not = icmp eq i32 %69, 0
  br i1 %.not, label %._crit_edge259.loopexit, label %.lr.ph258, !llvm.loop !26

._crit_edge259.loopexit:                          ; preds = %65, %.lr.ph258
  %70 = icmp uge i64 %indvars.iv.next216, %57
  br label %._crit_edge259

._crit_edge259:                                   ; preds = %._crit_edge259.loopexit, %.preheader158
  %.lcssa = phi i1 [ false, %.preheader158 ], [ %70, %._crit_edge259.loopexit ]
  %71 = icmp eq i32 %.fr198, 2
  %or.cond = and i1 %.lcssa, %71
  %72 = add nsw i32 %23, -2
  %73 = icmp slt i32 %29, %72
  %or.cond153 = select i1 %or.cond, i1 %73, i1 false
  %74 = shl i32 %.0125.lcssa, 3
  %75 = lshr i32 %.0129.lcssa, 3
  %.1130 = select i1 %or.cond153, i32 %75, i32 %.0129.lcssa
  %.1130.fr = freeze i32 %.1130
  %.1126 = select i1 %or.cond153, i32 %74, i32 %.0125.lcssa
  br i1 %.lcssa, label %.preheader154, label %107

.preheader154:                                    ; preds = %._crit_edge259
  %.not200 = icmp eq i32 %.1130.fr, 0
  br i1 %.not200, label %.loopexit, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader154
  %76 = sext i32 %29 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %77
  %.0140196 = phi ptr [ %1, %.preheader.lr.ph ], [ %106, %77 ]
  %.0142195 = phi i32 [ 0, %.preheader.lr.ph ], [ %78, %77 ]
  br label %79

77:                                               ; preds = %99
  %78 = add nuw i32 %.0142195, 1
  %exitcond242.not = icmp eq i32 %78, %.1130.fr
  br i1 %exitcond242.not, label %.loopexit, label %.preheader, !llvm.loop !27

79:                                               ; preds = %.preheader, %99
  %indvars.iv236 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next237, %99 ]
  %.1141194 = phi ptr [ %.0140196, %.preheader ], [ %106, %99 ]
  %80 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv236) #8
  %81 = getelementptr inbounds i8, ptr %80, i64 12
  %82 = getelementptr inbounds [20 x i32], ptr %81, i64 0, i64 %76
  %83 = load i32, ptr %82, align 4, !tbaa !17
  %84 = mul i32 %83, %.1126
  %.not151 = icmp eq i32 %84, 0
  br i1 %.not151, label %99, label %85

85:                                               ; preds = %79
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv236) #8
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = icmp eq ptr %87, null
  br i1 %88, label %89, label %99

89:                                               ; preds = %85
  %90 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %91 = trunc i64 %90 to i32
  %92 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %91)
  %93 = load ptr, ptr @stdout, align 8, !tbaa !5
  %94 = tail call i32 @fflush(ptr noundef %93)
  %95 = tail call ptr @ee2str(i32 noundef 1)
  %96 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %95)
  %97 = load ptr, ptr @stdout, align 8, !tbaa !5
  %98 = tail call i32 @fflush(ptr noundef %97)
  tail call void @exit(i32 noundef 1) #9
  unreachable

99:                                               ; preds = %85, %79
  %100 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv236) #8
  %101 = load ptr, ptr %100, align 8, !tbaa !5
  %102 = mul i32 %84, %.0142195
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds i8, ptr %101, i64 %103
  %105 = zext i32 %84 to i64
  tail call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %104, ptr noundef %.1141194, i64 noundef %105)
  %106 = getelementptr inbounds i8, ptr %.1141194, i64 %105
  %indvars.iv.next237 = add nuw nsw i64 %indvars.iv236, 1
  %exitcond241.not = icmp eq i64 %indvars.iv.next237, %wide.trip.count217
  br i1 %exitcond241.not, label %77, label %79, !llvm.loop !28

107:                                              ; preds = %._crit_edge259
  %.not149 = icmp eq i32 %27, 1
  br i1 %.not149, label %118, label %108

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

118:                                              ; preds = %107
  %119 = tail call noundef i32 @_Z7bytesOf8DataType(i32 noundef %30)
  %120 = udiv i32 %.1126, %119
  %121 = sext i32 %29 to i64
  %.not197 = icmp ugt i32 %119, %.1126
  %122 = getelementptr inbounds i8, ptr %0, i64 12
  %123 = getelementptr inbounds [20 x i32], ptr %122, i64 0, i64 %121
  %124 = zext i32 %119 to i64
  br i1 %71, label %.split.us, label %.split

.split.us:                                        ; preds = %118
  %.not199 = icmp eq i32 %.1130.fr, 0
  br i1 %.not199, label %.split.us.split, label %.split.us.split.us.preheader

.split.us.split.us.preheader:                     ; preds = %.split.us
  %125 = zext i32 %120 to i64
  br label %.split.us.split.us

.split.us.split.us:                               ; preds = %.split.us.split.us.preheader, %._crit_edge176.us.us
  %indvars.iv224 = phi i64 [ 0, %.split.us.split.us.preheader ], [ %indvars.iv.next225, %._crit_edge176.us.us ]
  %.0135180.us.us = phi i32 [ 0, %.split.us.split.us.preheader ], [ %130, %._crit_edge176.us.us ]
  %126 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv224) #8
  %127 = getelementptr inbounds i8, ptr %126, i64 12
  %128 = getelementptr inbounds [20 x i32], ptr %127, i64 0, i64 %121
  %129 = load i32, ptr %128, align 4, !tbaa !17
  %130 = add i32 %129, %.0135180.us.us
  %131 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv224) #8
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  %133 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv224) #8
  %134 = getelementptr inbounds i8, ptr %133, i64 4
  %135 = load i32, ptr %134, align 4, !tbaa !24
  %.not150.us.us = icmp eq i32 %135, 2
  br i1 %.not150.us.us, label %.split191.us, label %.preheader156.us.us

.preheader156.us.us:                              ; preds = %.split.us.split.us
  %136 = icmp uge i32 %.0135180.us.us, %130
  %brmerge = select i1 %136, i1 true, i1 %.not197
  br i1 %brmerge, label %._crit_edge176.us.us, label %.preheader155.lr.ph.split.us.split.us.us.us

._crit_edge176.us.us:                             ; preds = %._crit_edge174.split.us.us.us.us.us, %.preheader156.us.us
  %indvars.iv.next225 = add nuw nsw i64 %indvars.iv224, 1
  %exitcond229.not = icmp eq i64 %indvars.iv.next225, %wide.trip.count217
  br i1 %exitcond229.not, label %.loopexit, label %.split.us.split.us, !llvm.loop !29

.preheader155.lr.ph.split.us.split.us.us.us:      ; preds = %.preheader156.us.us
  %137 = load i32, ptr %123, align 4, !tbaa !17
  br label %.preheader155.us.us.us.us

.preheader155.us.us.us.us:                        ; preds = %._crit_edge174.split.us.us.us.us.us, %.preheader155.lr.ph.split.us.split.us.us.us
  %.0132175.us.us.us.us = phi i32 [ 0, %.preheader155.lr.ph.split.us.split.us.us.us ], [ %162, %._crit_edge174.split.us.us.us.us.us ]
  %138 = mul i32 %.0132175.us.us.us.us, %120
  %139 = mul i32 %138, %129
  %140 = mul i32 %137, %138
  br label %.lr.ph170.us.us.us.us.us

.lr.ph170.us.us.us.us.us:                         ; preds = %._crit_edge171.us.us.us.us.us, %.preheader155.us.us.us.us
  %.0131172.us.us.us.us.us = phi i32 [ %.0135180.us.us, %.preheader155.us.us.us.us ], [ %161, %._crit_edge171.us.us.us.us.us ]
  %141 = and i32 %.0131172.us.us.us.us.us, 7
  %142 = and i32 %.0131172.us.us.us.us.us, -8
  %143 = sub nuw i32 %.0131172.us.us.us.us.us, %.0135180.us.us
  %144 = mul i32 %143, %120
  %145 = add i32 %144, %139
  %146 = mul i32 %142, %120
  %147 = or disjoint i32 %146, %141
  br label %148

148:                                              ; preds = %148, %.lr.ph170.us.us.us.us.us
  %indvars.iv219 = phi i64 [ %indvars.iv.next220, %148 ], [ 0, %.lr.ph170.us.us.us.us.us ]
  %149 = trunc nuw i64 %indvars.iv219 to i32
  %150 = add i32 %145, %149
  %151 = shl i32 %149, 3
  %152 = add i32 %147, %151
  %153 = add i32 %152, %140
  %154 = mul i32 %150, %119
  %155 = zext i32 %154 to i64
  %156 = getelementptr inbounds i8, ptr %132, i64 %155
  %157 = mul i32 %153, %119
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds i8, ptr %1, i64 %158
  tail call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %156, ptr noundef nonnull %159, i64 noundef %124)
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %160 = icmp ult i64 %indvars.iv.next220, %125
  br i1 %160, label %148, label %._crit_edge171.us.us.us.us.us, !llvm.loop !30

._crit_edge171.us.us.us.us.us:                    ; preds = %148
  %161 = add nuw i32 %.0131172.us.us.us.us.us, 1
  %exitcond222.not = icmp eq i32 %161, %130
  br i1 %exitcond222.not, label %._crit_edge174.split.us.us.us.us.us, label %.lr.ph170.us.us.us.us.us, !llvm.loop !31

._crit_edge174.split.us.us.us.us.us:              ; preds = %._crit_edge171.us.us.us.us.us
  %162 = add nuw i32 %.0132175.us.us.us.us, 1
  %exitcond223.not = icmp eq i32 %162, %.1130.fr
  br i1 %exitcond223.not, label %._crit_edge176.us.us, label %.preheader155.us.us.us.us, !llvm.loop !32

.split.us.split:                                  ; preds = %.split.us, %.preheader156.us
  %indvars.iv230 = phi i64 [ %indvars.iv.next231, %.preheader156.us ], [ 0, %.split.us ]
  %163 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv230) #8
  %164 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv230) #8
  %165 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv230) #8
  %166 = getelementptr inbounds i8, ptr %165, i64 4
  %167 = load i32, ptr %166, align 4, !tbaa !24
  %.not150.us = icmp eq i32 %167, 2
  br i1 %.not150.us, label %.split191.us, label %.preheader156.us

.preheader156.us:                                 ; preds = %.split.us.split
  %indvars.iv.next231 = add nuw nsw i64 %indvars.iv230, 1
  %exitcond235.not = icmp eq i64 %indvars.iv.next231, %wide.trip.count217
  br i1 %exitcond235.not, label %.loopexit, label %.split.us.split, !llvm.loop !29

.split:                                           ; preds = %118
  %168 = tail call noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #8
  %169 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #8
  br label %.split191.us

.split191.us:                                     ; preds = %.split.us.split.us, %.split.us.split, %.split
  %170 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %171 = trunc i64 %170 to i32
  %172 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %171)
  %173 = load ptr, ptr @stdout, align 8, !tbaa !5
  %174 = tail call i32 @fflush(ptr noundef %173)
  %175 = tail call ptr @ee2str(i32 noundef 51)
  %176 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, ptr noundef %175)
  %177 = load ptr, ptr @stdout, align 8, !tbaa !5
  %178 = tail call i32 @fflush(ptr noundef %177)
  tail call void @exit(i32 noundef 1) #9
  unreachable

.loopexit:                                        ; preds = %._crit_edge176.us.us, %.preheader156.us, %77, %.preheader154, %17
  %.4 = phi i32 [ 2, %17 ], [ 0, %.preheader154 ], [ 0, %77 ], [ 0, %.preheader156.us ], [ 0, %._crit_edge176.us.us ]
  ret i32 %.4
}

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10TensorDescSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(92) ptr @_ZNSt6vectorI10TensorDescSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPvSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.mul.v4i32(<4 x i32>) #7

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !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 = !{!15, !13, i64 36}
!15 = !{!"_ZTS14SliceParamSpec", !7, i64 0, !13, i64 32, !13, i64 36}
!16 = !{!10, !11, i64 0}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19, !20, !21}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!"llvm.loop.isvectorized", i32 1}
!21 = !{!"llvm.loop.unroll.runtime.disable"}
!22 = distinct !{!22, !19, !20, !21}
!23 = distinct !{!23, !19, !21, !20}
!24 = !{!10, !12, i64 4}
!25 = distinct !{!25, !19, !21, !20}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}
!29 = distinct !{!29, !19}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass