; LLVM IR from huawei-noah/bolt :: common/uni/src/tensor_transpose.ll (Z15array_transposejPjPKvS_PvS_ii)

; 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"

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15array_transposejPjPKvS_PvS_ii(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7) #2 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %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 i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store ptr %2, ptr %11, align 8, !tbaa !9
  store ptr %3, ptr %12, align 8, !tbaa !9
  store ptr %4, ptr %13, align 8, !tbaa !9
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !5
  store i32 %7, ptr %16, align 4, !tbaa !5
  %39 = load i32, ptr %15, align 4, !tbaa !5
  %40 = load i32, ptr %16, align 4, !tbaa !5
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %42, label %58

42:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  %43 = load i32, ptr %9, align 4, !tbaa !5
  %44 = load ptr, ptr %10, align 8, !tbaa !9
  %45 = load ptr, ptr %11, align 8, !tbaa !9
  %46 = load ptr, ptr %13, align 8, !tbaa !9
  %47 = load ptr, ptr %14, align 8, !tbaa !9
  %48 = load i32, ptr %15, align 4, !tbaa !5
  %49 = call noundef zeroext i1 @_ZL16accTransposeCasejPjPKvPvS_i(i32 noundef %43, ptr noundef %44, ptr noundef %45, ptr noundef %46, ptr noundef %47, i32 noundef %48)
  %50 = zext i1 %49 to i8
  store i8 %50, ptr %17, align 1, !tbaa !11
  %51 = load i8, ptr %17, align 1, !tbaa !11, !range !13, !noundef !14
  %52 = trunc i8 %51 to i1
  br i1 %52, label %53, label %54

53:                                               ; preds = %42
  store i32 1, ptr %18, align 4
  br label %55

54:                                               ; preds = %42
  store i32 0, ptr %18, align 4
  br label %55

55:                                               ; preds = %54, %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  %56 = load i32, ptr %18, align 4
  switch i32 %56, label %351 [
    i32 0, label %57
    i32 1, label %350
  ]

57:                                               ; preds = %55
  br label %58

58:                                               ; preds = %57, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store i32 0, ptr %20, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %59 = load i32, ptr %16, align 4, !tbaa !5
  %60 = sub nsw i32 %59, 1
  store i32 %60, ptr %21, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %88, %58
  %62 = load i32, ptr %21, align 4, !tbaa !5
  %63 = icmp sge i32 %62, 0
  br i1 %63, label %65, label %64

64:                                               ; preds = %61
  store i32 2, ptr %18, align 4
  br label %91

65:                                               ; preds = %61
  %66 = load ptr, ptr %14, align 8, !tbaa !9
  %67 = load i32, ptr %21, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = load i32, ptr %21, align 4, !tbaa !5
  %72 = icmp eq i32 %70, %71
  br i1 %72, label %73, label %86

73:                                               ; preds = %65
  %74 = load ptr, ptr %10, align 8, !tbaa !9
  %75 = load i32, ptr %15, align 4, !tbaa !5
  %76 = sub nsw i32 %75, 1
  %77 = load i32, ptr %21, align 4, !tbaa !5
  %78 = sub nsw i32 %76, %77
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i32, ptr %74, i64 %79
  %81 = load i32, ptr %80, align 4, !tbaa !5
  %82 = load i32, ptr %19, align 4, !tbaa !5
  %83 = mul i32 %82, %81
  store i32 %83, ptr %19, align 4, !tbaa !5
  %84 = load i32, ptr %20, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %20, align 4, !tbaa !5
  br label %87

86:                                               ; preds = %65
  store i32 2, ptr %18, align 4
  br label %91

87:                                               ; preds = %73
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %21, align 4, !tbaa !5
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr %21, align 4, !tbaa !5
  br label %61, !llvm.loop !15

91:                                               ; preds = %86, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %92

92:                                               ; preds = %91
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = load i32, ptr %19, align 4, !tbaa !5
  %95 = mul i32 %93, %94
  store i32 %95, ptr %22, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %96 = load ptr, ptr %10, align 8, !tbaa !9
  %97 = load i32, ptr %15, align 4, !tbaa !5
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %96, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  store i32 %101, ptr %23, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  %102 = load i32, ptr %16, align 4, !tbaa !5
  %103 = load i32, ptr %20, align 4, !tbaa !5
  %104 = sub nsw i32 %102, %103
  %105 = icmp eq i32 %104, 3
  br i1 %105, label %106, label %134

106:                                              ; preds = %92
  %107 = load ptr, ptr %14, align 8, !tbaa !9
  %108 = getelementptr inbounds i32, ptr %107, i64 0
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %134

111:                                              ; preds = %106
  %112 = load ptr, ptr %14, align 8, !tbaa !9
  %113 = getelementptr inbounds i32, ptr %112, i64 1
  %114 = load i32, ptr %113, align 4, !tbaa !5
  %115 = icmp eq i32 %114, 2
  br i1 %115, label %116, label %134

116:                                              ; preds = %111
  %117 = load ptr, ptr %14, align 8, !tbaa !9
  %118 = getelementptr inbounds i32, ptr %117, i64 2
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = icmp eq i32 %119, 1
  br i1 %120, label %121, label %134

121:                                              ; preds = %116
  %122 = load ptr, ptr %10, align 8, !tbaa !9
  %123 = load i32, ptr %15, align 4, !tbaa !5
  %124 = sub nsw i32 %123, 2
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i32, ptr %122, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !5
  store i32 %127, ptr %25, align 4, !tbaa !5
  %128 = load ptr, ptr %10, align 8, !tbaa !9
  %129 = load i32, ptr %15, align 4, !tbaa !5
  %130 = sub nsw i32 %129, 3
  %131 = sext i32 %130 to i64
  %132 = getelementptr inbounds i32, ptr %128, i64 %131
  %133 = load i32, ptr %132, align 4, !tbaa !5
  store i32 %133, ptr %24, align 4, !tbaa !5
  br label %134

134:                                              ; preds = %121, %116, %111, %106, %92
  %135 = load i32, ptr %16, align 4, !tbaa !5
  %136 = load i32, ptr %20, align 4, !tbaa !5
  %137 = sub nsw i32 %135, %136
  %138 = icmp eq i32 %137, 4
  br i1 %138, label %139, label %179

139:                                              ; preds = %134
  %140 = load ptr, ptr %14, align 8, !tbaa !9
  %141 = getelementptr inbounds i32, ptr %140, i64 0
  %142 = load i32, ptr %141, align 4, !tbaa !5
  %143 = icmp eq i32 %142, 0
  br i1 %143, label %144, label %179

144:                                              ; preds = %139
  %145 = load ptr, ptr %14, align 8, !tbaa !9
  %146 = getelementptr inbounds i32, ptr %145, i64 1
  %147 = load i32, ptr %146, align 4, !tbaa !5
  %148 = icmp eq i32 %147, 2
  br i1 %148, label %149, label %179

149:                                              ; preds = %144
  %150 = load ptr, ptr %14, align 8, !tbaa !9
  %151 = getelementptr inbounds i32, ptr %150, i64 2
  %152 = load i32, ptr %151, align 4, !tbaa !5
  %153 = icmp eq i32 %152, 3
  br i1 %153, label %154, label %179

154:                                              ; preds = %149
  %155 = load ptr, ptr %14, align 8, !tbaa !9
  %156 = getelementptr inbounds i32, ptr %155, i64 3
  %157 = load i32, ptr %156, align 4, !tbaa !5
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %179

159:                                              ; preds = %154
  %160 = load ptr, ptr %10, align 8, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !5
  %162 = sub nsw i32 %161, 2
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i32, ptr %160, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !5
  store i32 %165, ptr %25, align 4, !tbaa !5
  %166 = load ptr, ptr %10, align 8, !tbaa !9
  %167 = load i32, ptr %15, align 4, !tbaa !5
  %168 = sub nsw i32 %167, 3
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %166, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !5
  %172 = load ptr, ptr %10, align 8, !tbaa !9
  %173 = load i32, ptr %15, align 4, !tbaa !5
  %174 = sub nsw i32 %173, 4
  %175 = sext i32 %174 to i64
  %176 = getelementptr inbounds i32, ptr %172, i64 %175
  %177 = load i32, ptr %176, align 4, !tbaa !5
  %178 = mul i32 %171, %177
  store i32 %178, ptr %24, align 4, !tbaa !5
  br label %179

179:                                              ; preds = %159, %154, %149, %144, %139, %134
  %180 = load i32, ptr %25, align 4, !tbaa !5
  %181 = icmp sgt i32 %180, 0
  br i1 %181, label %182, label %248

182:                                              ; preds = %179
  %183 = load i32, ptr %24, align 4, !tbaa !5
  %184 = icmp sgt i32 %183, 0
  br i1 %184, label %185, label %248

185:                                              ; preds = %182
  %186 = load ptr, ptr %11, align 8, !tbaa !9
  %187 = load ptr, ptr %13, align 8, !tbaa !9
  %188 = icmp ne ptr %186, %187
  br i1 %188, label %189, label %248

189:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %190

190:                                              ; preds = %244, %189
  %191 = load i32, ptr %26, align 4, !tbaa !5
  %192 = load i32, ptr %23, align 4, !tbaa !5
  %193 = load i32, ptr %24, align 4, !tbaa !5
  %194 = mul nsw i32 %192, %193
  %195 = icmp slt i32 %191, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %190
  store i32 5, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %247

197:                                              ; preds = %190
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %198 = load i32, ptr %26, align 4, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !5
  %200 = sdiv i32 %198, %199
  store i32 %200, ptr %27, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %201 = load i32, ptr %26, align 4, !tbaa !5
  %202 = load i32, ptr %24, align 4, !tbaa !5
  %203 = srem i32 %201, %202
  store i32 %203, ptr %28, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %204 = load ptr, ptr %13, align 8, !tbaa !9
  %205 = load i32, ptr %26, align 4, !tbaa !5
  %206 = load i32, ptr %25, align 4, !tbaa !5
  %207 = mul nsw i32 %205, %206
  %208 = load i32, ptr %22, align 4, !tbaa !5
  %209 = mul nsw i32 %207, %208
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds i8, ptr %204, i64 %210
  store ptr %211, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 0, ptr %30, align 4, !tbaa !5
  br label %212

212:                                              ; preds = %236, %197
  %213 = load i32, ptr %30, align 4, !tbaa !5
  %214 = load i32, ptr %25, align 4, !tbaa !5
  %215 = icmp slt i32 %213, %214
  br i1 %215, label %217, label %216

216:                                              ; preds = %212
  store i32 8, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %243

217:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #6
  %218 = load ptr, ptr %11, align 8, !tbaa !9
  %219 = load i32, ptr %27, align 4, !tbaa !5
  %220 = load i32, ptr %25, align 4, !tbaa !5
  %221 = mul nsw i32 %219, %220
  %222 = load i32, ptr %30, align 4, !tbaa !5
  %223 = add nsw i32 %221, %222
  %224 = load i32, ptr %24, align 4, !tbaa !5
  %225 = mul nsw i32 %223, %224
  %226 = load i32, ptr %28, align 4, !tbaa !5
  %227 = add nsw i32 %225, %226
  %228 = load i32, ptr %22, align 4, !tbaa !5
  %229 = mul nsw i32 %227, %228
  %230 = sext i32 %229 to i64
  %231 = getelementptr inbounds i8, ptr %218, i64 %230
  store ptr %231, ptr %31, align 8, !tbaa !9
  %232 = load ptr, ptr %29, align 8, !tbaa !9
  %233 = load ptr, ptr %31, align 8, !tbaa !9
  %234 = load i32, ptr %22, align 4, !tbaa !5
  %235 = sext i32 %234 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %232, ptr noundef %233, i64 noundef %235)
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #6
  br label %236

236:                                              ; preds = %217
  %237 = load i32, ptr %30, align 4, !tbaa !5
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %30, align 4, !tbaa !5
  %239 = load i32, ptr %22, align 4, !tbaa !5
  %240 = load ptr, ptr %29, align 8, !tbaa !9
  %241 = sext i32 %239 to i64
  %242 = getelementptr inbounds i8, ptr %240, i64 %241
  store ptr %242, ptr %29, align 8, !tbaa !9
  br label %212, !llvm.loop !17

243:                                              ; preds = %216
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %244

244:                                              ; preds = %243
  %245 = load i32, ptr %26, align 4, !tbaa !5
  %246 = add nsw i32 %245, 1
  store i32 %246, ptr %26, align 4, !tbaa !5
  br label %190, !llvm.loop !18

247:                                              ; preds = %196
  store i32 1, ptr %18, align 4
  br label %348

248:                                              ; preds = %185, %182, %179
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 1, ptr %32, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 1, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !5
  br label %249

249:                                              ; preds = %262, %248
  %250 = load i32, ptr %34, align 4, !tbaa !5
  %251 = load i32, ptr %15, align 4, !tbaa !5
  %252 = icmp slt i32 %250, %251
  br i1 %252, label %254, label %253

253:                                              ; preds = %249
  store i32 11, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %265

254:                                              ; preds = %249
  %255 = load ptr, ptr %10, align 8, !tbaa !9
  %256 = load i32, ptr %34, align 4, !tbaa !5
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i32, ptr %255, i64 %257
  %259 = load i32, ptr %258, align 4, !tbaa !5
  %260 = load i32, ptr %32, align 4, !tbaa !5
  %261 = mul i32 %260, %259
  store i32 %261, ptr %32, align 4, !tbaa !5
  br label %262

262:                                              ; preds = %254
  %263 = load i32, ptr %34, align 4, !tbaa !5
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %34, align 4, !tbaa !5
  br label %249, !llvm.loop !19

265:                                              ; preds = %253
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !5
  br label %266

266:                                              ; preds = %279, %265
  %267 = load i32, ptr %35, align 4, !tbaa !5
  %268 = load i32, ptr %16, align 4, !tbaa !5
  %269 = icmp slt i32 %267, %268
  br i1 %269, label %271, label %270

270:                                              ; preds = %266
  store i32 14, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %282

271:                                              ; preds = %266
  %272 = load ptr, ptr %12, align 8, !tbaa !9
  %273 = load i32, ptr %35, align 4, !tbaa !5
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds i32, ptr %272, i64 %274
  %276 = load i32, ptr %275, align 4, !tbaa !5
  %277 = load i32, ptr %33, align 4, !tbaa !5
  %278 = mul i32 %277, %276
  store i32 %278, ptr %33, align 4, !tbaa !5
  br label %279

279:                                              ; preds = %271
  %280 = load i32, ptr %35, align 4, !tbaa !5
  %281 = add nsw i32 %280, 1
  store i32 %281, ptr %35, align 4, !tbaa !5
  br label %266, !llvm.loop !20

282:                                              ; preds = %270
  %283 = load i32, ptr %32, align 4, !tbaa !5
  %284 = load i32, ptr %33, align 4, !tbaa !5
  %285 = icmp eq i32 %283, %284
  br i1 %285, label %296, label %286

286:                                              ; preds = %282
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %287 = call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %288 = trunc i64 %287 to i32
  store i32 %288, ptr %36, align 4, !tbaa !5
  %289 = load i32, ptr %36, align 4, !tbaa !5
  %290 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %289)
  %291 = load ptr, ptr @stdout, align 8, !tbaa !9
  %292 = call i32 @fflush(ptr noundef %291)
  %293 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %294 = load ptr, ptr @stdout, align 8, !tbaa !9
  %295 = call i32 @fflush(ptr noundef %294)
  call void @exit(i32 noundef 1) #7
  unreachable

296:                                              ; preds = %282
  %297 = load i32, ptr %33, align 4, !tbaa !5
  %298 = load i32, ptr %19, align 4, !tbaa !5
  %299 = udiv i32 %297, %298
  store i32 %299, ptr %33, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #6
  %300 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %300, ptr %37, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %301 = load ptr, ptr %13, align 8, !tbaa !9
  store ptr %301, ptr %38, align 8, !tbaa !9
  %302 = load i32, ptr %19, align 4, !tbaa !5
  %303 = icmp eq i32 %302, 1
  br i1 %303, label %304, label %318

304:                                              ; preds = %296
  %305 = load i32, ptr %9, align 4, !tbaa !5
  %306 = icmp eq i32 %305, 4
  br i1 %306, label %307, label %318

307:                                              ; preds = %304
  %308 = load i32, ptr %9, align 4, !tbaa !5
  %309 = load ptr, ptr %10, align 8, !tbaa !9
  %310 = load ptr, ptr %11, align 8, !tbaa !9
  %311 = load ptr, ptr %12, align 8, !tbaa !9
  %312 = load ptr, ptr %13, align 8, !tbaa !9
  %313 = load ptr, ptr %14, align 8, !tbaa !9
  %314 = load i32, ptr %15, align 4, !tbaa !5
  %315 = load i32, ptr %16, align 4, !tbaa !5
  %316 = load i32, ptr %33, align 4, !tbaa !5
  %317 = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZL24inner_transpose_templateILi0EjEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef %308, ptr noundef %309, ptr noundef %310, ptr noundef %311, ptr noundef %312, ptr noundef %313, i32 noundef %314, i32 noundef %315, i32 noundef %316, i32 noundef %317)
  br label %347

318:                                              ; preds = %304, %296
  %319 = load i32, ptr %19, align 4, !tbaa !5
  %320 = icmp eq i32 %319, 1
  br i1 %320, label %321, label %335

321:                                              ; preds = %318
  %322 = load i32, ptr %9, align 4, !tbaa !5
  %323 = icmp eq i32 %322, 2
  br i1 %323, label %324, label %335

324:                                              ; preds = %321
  %325 = load i32, ptr %9, align 4, !tbaa !5
  %326 = load ptr, ptr %10, align 8, !tbaa !9
  %327 = load ptr, ptr %11, align 8, !tbaa !9
  %328 = load ptr, ptr %12, align 8, !tbaa !9
  %329 = load ptr, ptr %13, align 8, !tbaa !9
  %330 = load ptr, ptr %14, align 8, !tbaa !9
  %331 = load i32, ptr %15, align 4, !tbaa !5
  %332 = load i32, ptr %16, align 4, !tbaa !5
  %333 = load i32, ptr %33, align 4, !tbaa !5
  %334 = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZL24inner_transpose_templateILi0EtEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef %325, ptr noundef %326, ptr noundef %327, ptr noundef %328, ptr noundef %329, ptr noundef %330, i32 noundef %331, i32 noundef %332, i32 noundef %333, i32 noundef %334)
  br label %346

335:                                              ; preds = %321, %318
  %336 = load i32, ptr %22, align 4, !tbaa !5
  %337 = load ptr, ptr %10, align 8, !tbaa !9
  %338 = load ptr, ptr %11, align 8, !tbaa !9
  %339 = load ptr, ptr %12, align 8, !tbaa !9
  %340 = load ptr, ptr %13, align 8, !tbaa !9
  %341 = load ptr, ptr %14, align 8, !tbaa !9
  %342 = load i32, ptr %15, align 4, !tbaa !5
  %343 = load i32, ptr %16, align 4, !tbaa !5
  %344 = load i32, ptr %33, align 4, !tbaa !5
  %345 = load i32, ptr %20, align 4, !tbaa !5
  call void @_ZL24inner_transpose_templateILi1EhEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef %336, ptr noundef %337, ptr noundef %338, ptr noundef %339, ptr noundef %340, ptr noundef %341, i32 noundef %342, i32 noundef %343, i32 noundef %344, i32 noundef %345)
  br label %346

346:                                              ; preds = %335, %324
  br label %347

347:                                              ; preds = %346, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  store i32 0, ptr %18, align 4
  br label %348

348:                                              ; preds = %347, %247
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %349 = load i32, ptr %18, align 4
  switch i32 %349, label %351 [
    i32 0, label %350
    i32 1, label %350
  ]

350:                                              ; preds = %348, %348, %55
  ret void

351:                                              ; preds = %348, %55
  unreachable
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL16accTransposeCasejPjPKvPvS_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) #2

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

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

declare i32 @fflush(ptr noundef) #4

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi0EjEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi0EtEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi1EhEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


; 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"

@.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 [23 x i8], align 1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z15array_transposejPjPKvS_PvS_ii(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = icmp eq i32 %6, %7
  br i1 %9, label %10, label %12

10:                                               ; preds = %8
  %11 = tail call noundef zeroext i1 @_ZL16accTransposeCasejPjPKvPvS_i(i32 noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %4, ptr noundef %5, i32 noundef %6)
  br i1 %11, label %.loopexit, label %12

12:                                               ; preds = %10, %8
  %13 = icmp sgt i32 %7, 0
  br i1 %13, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %12
  %14 = zext nneg i32 %7 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %19
  %indvars.iv = phi i64 [ %14, %.lr.ph.preheader ], [ %indvars.iv.next, %19 ]
  %.0134165 = phi i32 [ 1, %.lr.ph.preheader ], [ %25, %19 ]
  %.0135164 = phi i32 [ 0, %.lr.ph.preheader ], [ %26, %19 ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %15 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %17 = zext i32 %16 to i64
  %18 = icmp eq i64 %indvars.iv.next, %17
  br i1 %18, label %19, label %._crit_edge

19:                                               ; preds = %.lr.ph
  %20 = trunc nuw nsw i64 %indvars.iv to i32
  %21 = sub i32 %6, %20
  %22 = sext i32 %21 to i64
  %23 = getelementptr inbounds i32, ptr %1, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !5
  %25 = mul i32 %24, %.0134165
  %26 = add nuw nsw i32 %.0135164, 1
  %exitcond.not = icmp eq i32 %26, %7
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

._crit_edge:                                      ; preds = %19, %.lr.ph, %12
  %.0135.lcssa = phi i32 [ 0, %12 ], [ %.0135164, %.lr.ph ], [ %7, %19 ]
  %.0134.lcssa = phi i32 [ 1, %12 ], [ %.0134165, %.lr.ph ], [ %25, %19 ]
  %27 = mul i32 %.0134.lcssa, %0
  %28 = sext i32 %6 to i64
  %29 = getelementptr i32, ptr %1, i64 %28
  %30 = getelementptr i8, ptr %29, i64 -4
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = sub nsw i32 %7, %.0135.lcssa
  switch i32 %32, label %.preheader160 [
    i32 3, label %33
    i32 4, label %47
  ]

33:                                               ; preds = %._crit_edge
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %.preheader160

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %5, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp eq i32 %38, 2
  br i1 %39, label %40, label %.preheader160

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %5, i64 8
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %44, label %.preheader160

44:                                               ; preds = %40
  %45 = getelementptr i8, ptr %29, i64 -12
  %46 = load i32, ptr %45, align 4, !tbaa !5
  br label %.thread

47:                                               ; preds = %._crit_edge
  %48 = load i32, ptr %5, align 4, !tbaa !5
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %.preheader160

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %5, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = icmp eq i32 %52, 2
  br i1 %53, label %54, label %.preheader160

54:                                               ; preds = %50
  %55 = getelementptr inbounds i8, ptr %5, i64 8
  %56 = load i32, ptr %55, align 4, !tbaa !5
  %57 = icmp eq i32 %56, 3
  br i1 %57, label %58, label %.preheader160

58:                                               ; preds = %54
  %59 = getelementptr inbounds i8, ptr %5, i64 12
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = icmp eq i32 %60, 1
  br i1 %61, label %62, label %.preheader160

62:                                               ; preds = %58
  %63 = getelementptr i8, ptr %29, i64 -12
  %64 = load i32, ptr %63, align 4, !tbaa !5
  %65 = getelementptr i8, ptr %29, i64 -16
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = mul i32 %66, %64
  br label %.thread

.thread:                                          ; preds = %44, %62
  %.1 = phi i32 [ %67, %62 ], [ %46, %44 ]
  %.1145.in = getelementptr i8, ptr %29, i64 -8
  %.1145 = load i32, ptr %.1145.in, align 4, !tbaa !5
  %68 = icmp slt i32 %.1145, 1
  %69 = icmp slt i32 %.1, 1
  %or.cond.not159 = select i1 %68, i1 true, i1 %69
  %.not = icmp eq ptr %2, %4
  %or.cond154 = or i1 %.not, %or.cond.not159
  br i1 %or.cond154, label %.preheader160, label %.preheader161

.preheader161:                                    ; preds = %.thread
  %70 = mul nsw i32 %.1, %31
  %71 = icmp sgt i32 %70, 0
  br i1 %71, label %.lr.ph174.us.preheader, label %.loopexit

.lr.ph174.us.preheader:                           ; preds = %.preheader161
  %72 = mul i32 %.1145, %27
  %73 = sext i32 %27 to i64
  %74 = zext nneg i32 %.1 to i64
  %wide.trip.count197 = zext nneg i32 %70 to i64
  %wide.trip.count = zext nneg i32 %.1145 to i64
  br label %.lr.ph174.us

.lr.ph174.us:                                     ; preds = %.lr.ph174.us.preheader, %._crit_edge175.us
  %indvars.iv194 = phi i64 [ 0, %.lr.ph174.us.preheader ], [ %indvars.iv.next195, %._crit_edge175.us ]
  %75 = trunc nuw nsw i64 %indvars.iv194 to i32
  %76 = udiv i32 %75, %.1
  %77 = urem i32 %75, %.1
  %78 = mul i32 %72, %75
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds i8, ptr %4, i64 %79
  %81 = mul nuw nsw i32 %76, %.1145
  %82 = sext i32 %81 to i64
  %83 = zext nneg i32 %77 to i64
  br label %84

84:                                               ; preds = %.lr.ph174.us, %84
  %indvars.iv190 = phi i64 [ 0, %.lr.ph174.us ], [ %indvars.iv.next191, %84 ]
  %.0142171.us = phi ptr [ %80, %.lr.ph174.us ], [ %90, %84 ]
  %85 = add nuw nsw i64 %indvars.iv190, %82
  %86 = mul nuw nsw i64 %85, %74
  %87 = add nuw nsw i64 %86, %83
  %88 = mul nsw i64 %87, %73
  %89 = getelementptr inbounds i8, ptr %2, i64 %88
  tail call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %.0142171.us, ptr noundef %89, i64 noundef %73)
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %90 = getelementptr inbounds i8, ptr %.0142171.us, i64 %73
  %exitcond193.not = icmp eq i64 %indvars.iv.next191, %wide.trip.count
  br i1 %exitcond193.not, label %._crit_edge175.us, label %84, !llvm.loop !11

._crit_edge175.us:                                ; preds = %84
  %indvars.iv.next195 = add nuw nsw i64 %indvars.iv194, 1
  %exitcond198.not = icmp eq i64 %indvars.iv.next195, %wide.trip.count197
  br i1 %exitcond198.not, label %.loopexit, label %.lr.ph174.us, !llvm.loop !12

.preheader160:                                    ; preds = %._crit_edge, %40, %36, %33, %47, %50, %54, %58, %.thread
  %91 = icmp sgt i32 %6, 0
  br i1 %91, label %.lr.ph180.preheader, label %.preheader

.lr.ph180.preheader:                              ; preds = %.preheader160
  %wide.trip.count202 = zext nneg i32 %6 to i64
  %min.iters.check = icmp ult i32 %6, 8
  br i1 %min.iters.check, label %.lr.ph180.preheader238, label %vector.ph

.lr.ph180.preheader238:                           ; preds = %middle.block, %.lr.ph180.preheader
  %indvars.iv199.ph = phi i64 [ 0, %.lr.ph180.preheader ], [ %n.vec, %middle.block ]
  %.0139178.ph = phi i32 [ 1, %.lr.ph180.preheader ], [ %97, %middle.block ]
  br label %.lr.ph180

vector.ph:                                        ; preds = %.lr.ph180.preheader
  %n.vec = and i64 %wide.trip.count202, 2147483640
  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> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %94, %vector.body ]
  %vec.phi216 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph ], [ %95, %vector.body ]
  %92 = getelementptr inbounds i32, ptr %1, i64 %index
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  %wide.load = load <4 x i32>, ptr %92, align 4, !tbaa !5
  %wide.load217 = load <4 x i32>, ptr %93, align 4, !tbaa !5
  %94 = mul <4 x i32> %wide.load, %vec.phi
  %95 = mul <4 x i32> %wide.load217, %vec.phi216
  %index.next = add nuw i64 %index, 8
  %96 = icmp eq i64 %index.next, %n.vec
  br i1 %96, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %bin.rdx = mul <4 x i32> %95, %94
  %97 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count202
  br i1 %cmp.n, label %.preheader, label %.lr.ph180.preheader238

.preheader:                                       ; preds = %.lr.ph180, %middle.block, %.preheader160
  %.0139.lcssa = phi i32 [ 1, %.preheader160 ], [ %97, %middle.block ], [ %106, %.lr.ph180 ]
  br i1 %13, label %.lr.ph184.preheader, label %._crit_edge185

.lr.ph184.preheader:                              ; preds = %.preheader
  %wide.trip.count207 = zext nneg i32 %7 to i64
  %min.iters.check220 = icmp ult i32 %7, 8
  br i1 %min.iters.check220, label %.lr.ph184.preheader235, label %vector.ph221

.lr.ph184.preheader235:                           ; preds = %middle.block218, %.lr.ph184.preheader
  %indvars.iv204.ph = phi i64 [ 0, %.lr.ph184.preheader ], [ %n.vec223, %middle.block218 ]
  %.0138182.ph = phi i32 [ 1, %.lr.ph184.preheader ], [ %103, %middle.block218 ]
  br label %.lr.ph184

vector.ph221:                                     ; preds = %.lr.ph184.preheader
  %n.vec223 = and i64 %wide.trip.count207, 2147483640
  br label %vector.body225

vector.body225:                                   ; preds = %vector.body225, %vector.ph221
  %index226 = phi i64 [ 0, %vector.ph221 ], [ %index.next231, %vector.body225 ]
  %vec.phi227 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph221 ], [ %100, %vector.body225 ]
  %vec.phi228 = phi <4 x i32> [ <i32 1, i32 1, i32 1, i32 1>, %vector.ph221 ], [ %101, %vector.body225 ]
  %98 = getelementptr inbounds i32, ptr %3, i64 %index226
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %wide.load229 = load <4 x i32>, ptr %98, align 4, !tbaa !5
  %wide.load230 = load <4 x i32>, ptr %99, align 4, !tbaa !5
  %100 = mul <4 x i32> %wide.load229, %vec.phi227
  %101 = mul <4 x i32> %wide.load230, %vec.phi228
  %index.next231 = add nuw i64 %index226, 8
  %102 = icmp eq i64 %index.next231, %n.vec223
  br i1 %102, label %middle.block218, label %vector.body225, !llvm.loop !16

middle.block218:                                  ; preds = %vector.body225
  %bin.rdx232 = mul <4 x i32> %101, %100
  %103 = tail call i32 @llvm.vector.reduce.mul.v4i32(<4 x i32> %bin.rdx232)
  %cmp.n233 = icmp eq i64 %n.vec223, %wide.trip.count207
  br i1 %cmp.n233, label %._crit_edge185, label %.lr.ph184.preheader235

.lr.ph180:                                        ; preds = %.lr.ph180.preheader238, %.lr.ph180
  %indvars.iv199 = phi i64 [ %indvars.iv.next200, %.lr.ph180 ], [ %indvars.iv199.ph, %.lr.ph180.preheader238 ]
  %.0139178 = phi i32 [ %106, %.lr.ph180 ], [ %.0139178.ph, %.lr.ph180.preheader238 ]
  %104 = getelementptr inbounds i32, ptr %1, i64 %indvars.iv199
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = mul i32 %105, %.0139178
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %.preheader, label %.lr.ph180, !llvm.loop !17

._crit_edge185:                                   ; preds = %.lr.ph184, %middle.block218, %.preheader
  %.0138.lcssa = phi i32 [ 1, %.preheader ], [ %103, %middle.block218 ], [ %110, %.lr.ph184 ]
  %107 = icmp eq i32 %.0139.lcssa, %.0138.lcssa
  br i1 %107, label %120, label %111

.lr.ph184:                                        ; preds = %.lr.ph184.preheader235, %.lr.ph184
  %indvars.iv204 = phi i64 [ %indvars.iv.next205, %.lr.ph184 ], [ %indvars.iv204.ph, %.lr.ph184.preheader235 ]
  %.0138182 = phi i32 [ %110, %.lr.ph184 ], [ %.0138182.ph, %.lr.ph184.preheader235 ]
  %108 = getelementptr inbounds i32, ptr %3, i64 %indvars.iv204
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = mul i32 %109, %.0138182
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %._crit_edge185, label %.lr.ph184, !llvm.loop !18

111:                                              ; preds = %._crit_edge185
  %112 = tail call i64 (i64, ...) @syscall(i64 noundef 186) #6
  %113 = trunc i64 %112 to i32
  %114 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i32 noundef %113)
  %115 = load ptr, ptr @stdout, align 8, !tbaa !19
  %116 = tail call i32 @fflush(ptr noundef %115)
  %117 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %118 = load ptr, ptr @stdout, align 8, !tbaa !19
  %119 = tail call i32 @fflush(ptr noundef %118)
  tail call void @exit(i32 noundef 1) #7
  unreachable

120:                                              ; preds = %._crit_edge185
  %121 = udiv i32 %.0139.lcssa, %.0134.lcssa
  %122 = icmp eq i32 %.0134.lcssa, 1
  %123 = icmp eq i32 %0, 4
  %or.cond3 = and i1 %123, %122
  br i1 %or.cond3, label %124, label %125

124:                                              ; preds = %120
  tail call void @_ZL24inner_transpose_templateILi0EjEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef 4, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %121, i32 noundef %.0135.lcssa)
  br label %.loopexit

125:                                              ; preds = %120
  %126 = icmp eq i32 %0, 2
  %or.cond5 = and i1 %126, %122
  br i1 %or.cond5, label %127, label %128

127:                                              ; preds = %125
  tail call void @_ZL24inner_transpose_templateILi0EtEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef 2, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %121, i32 noundef %.0135.lcssa)
  br label %.loopexit

128:                                              ; preds = %125
  tail call void @_ZL24inner_transpose_templateILi1EhEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef %27, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %121, i32 noundef %.0135.lcssa)
  br label %.loopexit

.loopexit:                                        ; preds = %._crit_edge175.us, %.preheader161, %10, %127, %128, %124
  ret void
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZL16accTransposeCasejPjPKvPvS_i(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi0EjEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi0EtEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL24inner_transpose_templateILi1EhEvjPjPKT0_S0_PS1_S0_iiji(i32 noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !14, !15}
!17 = distinct !{!17, !10, !15, !14}
!18 = distinct !{!18, !10, !15, !14}
!19 = !{!20, !20, i64 0}
!20 = !{!"any pointer", !7, i64 0}


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