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

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

@.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
@.str.2 = external hidden unnamed_addr constant [18 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: nounwind
declare i64 @syscall(i64 noundef, ...) #2

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

declare i32 @fflush(ptr noundef) #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z30transformNCHWC8ToNCHWC8ByGroup10TensorDescPKviS_Pv(ptr noundef byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, i32 noundef %2, ptr noundef byval(%struct.TensorDesc) align 8 %3, ptr noundef %4) #7 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %struct.TensorDesc, align 8
  %12 = alloca i32, align 4
  %13 = alloca %struct.TensorDesc, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %struct.TensorDesc, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca %struct.TensorDesc, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %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
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %4, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !11
  %54 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %11)
  store i32 %54, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 8 %3, i64 92, i1 false), !tbaa.struct !11
  %55 = call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef byval(%struct.TensorDesc) align 8 %13)
  store i32 %55, ptr %12, align 4, !tbaa !9
  %56 = load i32, ptr %8, align 4, !tbaa !9
  %57 = icmp sle i32 %56, 1
  br i1 %57, label %62, label %58

58:                                               ; preds = %5
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = icmp eq i32 %59, %60
  br i1 %61, label %62, label %72

62:                                               ; preds = %58, %5
  %63 = load ptr, ptr %7, align 8, !tbaa !5
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = icmp ne ptr %63, %64
  br i1 %65, label %66, label %71

66:                                               ; preds = %62
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = zext i32 %69 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %67, ptr noundef %68, i64 noundef %70)
  br label %71

71:                                               ; preds = %66, %62
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  br label %285

72:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 8, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %29, ptr align 8 %0, i64 92, i1 false), !tbaa.struct !11
  %73 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %29, ptr noundef %16, ptr noundef %18, ptr noundef %20, ptr noundef %21, ptr noundef %22, ptr noundef %23)
  store i32 %73, ptr %28, align 4, !tbaa !17
  %74 = load i32, ptr %28, align 4, !tbaa !17
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %76, label %88

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

88:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %32, ptr align 8 %3, i64 92, i1 false), !tbaa.struct !11
  %89 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef byval(%struct.TensorDesc) align 8 %32, ptr noundef %17, ptr noundef %19, ptr noundef %24, ptr noundef %25, ptr noundef %26, ptr noundef %27)
  store i32 %89, ptr %31, align 4, !tbaa !17
  %90 = load i32, ptr %31, align 4, !tbaa !17
  %91 = icmp ne i32 %90, 0
  br i1 %91, label %92, label %104

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %93 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %94 = trunc i64 %93 to i32
  store i32 %94, ptr %33, align 4, !tbaa !9
  %95 = load i32, ptr %33, align 4, !tbaa !9
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %95)
  %97 = load ptr, ptr @stdout, align 8, !tbaa !5
  %98 = call i32 @fflush(ptr noundef %97)
  %99 = load i32, ptr %31, align 4, !tbaa !17
  %100 = call ptr @ee2str(i32 noundef %99)
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %100)
  %102 = load ptr, ptr @stdout, align 8, !tbaa !5
  %103 = call i32 @fflush(ptr noundef %102)
  call void @exit(i32 noundef 1) #9
  unreachable

104:                                              ; preds = %88
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #8
  %105 = load i32, ptr %16, align 4, !tbaa !12
  %106 = load i32, ptr %17, align 4, !tbaa !12
  %107 = icmp eq i32 %105, %106
  br i1 %107, label %118, label %108

108:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %109 = call i64 (i64, ...) @syscall(i64 noundef 186) #8
  %110 = trunc i64 %109 to i32
  store i32 %110, ptr %34, align 4, !tbaa !9
  %111 = load i32, ptr %34, align 4, !tbaa !9
  %112 = call i32 (ptr, ...) @printf(ptr noundef @.str, i32 noundef %111)
  %113 = load ptr, ptr @stdout, align 8, !tbaa !5
  %114 = call i32 @fflush(ptr noundef %113)
  %115 = call i32 (ptr, ...) @printf(ptr noundef @.str.1)
  %116 = load ptr, ptr @stdout, align 8, !tbaa !5
  %117 = call i32 @fflush(ptr noundef %116)
  call void @exit(i32 noundef 1) #9
  unreachable

118:                                              ; preds = %104
  %119 = load i32, ptr %18, align 4, !tbaa !14
  %120 = icmp eq i32 %119, 2
  br i1 %120, label %121, label %124

121:                                              ; preds = %118
  %122 = load i32, ptr %19, align 4, !tbaa !14
  %123 = icmp eq i32 %122, 2
  br i1 %123, label %134, label %124

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

134:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #8
  %135 = load i32, ptr %21, align 4, !tbaa !9
  %136 = load i32, ptr %8, align 4, !tbaa !9
  %137 = udiv i32 %135, %136
  store i32 %137, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #8
  %138 = load i32, ptr %25, align 4, !tbaa !9
  %139 = load i32, ptr %8, align 4, !tbaa !9
  %140 = udiv i32 %138, %139
  store i32 %140, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = udiv i32 %141, %142
  store i32 %143, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #8
  %144 = load i32, ptr %25, align 4, !tbaa !9
  %145 = load i32, ptr %15, align 4, !tbaa !9
  %146 = udiv i32 %144, %145
  store i32 %146, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #8
  %147 = load i32, ptr %16, align 4, !tbaa !12
  %148 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %147)
  store i32 %148, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #8
  store i32 0, ptr %41, align 4, !tbaa !9
  br label %149

149:                                              ; preds = %281, %134
  %150 = load i32, ptr %41, align 4, !tbaa !9
  %151 = load i32, ptr %20, align 4, !tbaa !9
  %152 = icmp ult i32 %150, %151
  br i1 %152, label %154, label %153

153:                                              ; preds = %149
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #8
  br label %284

154:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #8
  store i32 0, ptr %42, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %277, %154
  %156 = load i32, ptr %42, align 4, !tbaa !9
  %157 = load i32, ptr %8, align 4, !tbaa !9
  %158 = icmp slt i32 %156, %157
  br i1 %158, label %160, label %159

159:                                              ; preds = %155
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #8
  br label %280

160:                                              ; preds = %155
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #8
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %161

161:                                              ; preds = %273, %160
  %162 = load i32, ptr %43, align 4, !tbaa !9
  %163 = load i32, ptr %37, align 4, !tbaa !9
  %164 = icmp ult i32 %162, %163
  br i1 %164, label %166, label %165

165:                                              ; preds = %161
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #8
  br label %276

166:                                              ; preds = %161
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #8
  %167 = load i32, ptr %42, align 4, !tbaa !9
  %168 = load i32, ptr %36, align 4, !tbaa !9
  %169 = mul i32 %167, %168
  %170 = load i32, ptr %43, align 4, !tbaa !9
  %171 = add i32 %169, %170
  store i32 %171, ptr %44, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #8
  %172 = load i32, ptr %42, align 4, !tbaa !9
  %173 = load i32, ptr %37, align 4, !tbaa !9
  %174 = mul i32 %172, %173
  %175 = load i32, ptr %43, align 4, !tbaa !9
  %176 = add i32 %174, %175
  store i32 %176, ptr %45, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #8
  %177 = load i32, ptr %44, align 4, !tbaa !9
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = udiv i32 %177, %178
  store i32 %179, ptr %46, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #8
  %180 = load i32, ptr %45, align 4, !tbaa !9
  %181 = load i32, ptr %15, align 4, !tbaa !9
  %182 = udiv i32 %180, %181
  store i32 %182, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #8
  %183 = load i32, ptr %44, align 4, !tbaa !9
  %184 = load i32, ptr %15, align 4, !tbaa !9
  %185 = urem i32 %183, %184
  store i32 %185, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #8
  %186 = load i32, ptr %45, align 4, !tbaa !9
  %187 = load i32, ptr %15, align 4, !tbaa !9
  %188 = urem i32 %186, %187
  store i32 %188, ptr %49, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #8
  store i32 0, ptr %50, align 4, !tbaa !9
  br label %189

189:                                              ; preds = %269, %166
  %190 = load i32, ptr %50, align 4, !tbaa !9
  %191 = load i32, ptr %26, align 4, !tbaa !9
  %192 = icmp ult i32 %190, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %189
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #8
  br label %272

194:                                              ; preds = %189
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #8
  store i32 0, ptr %51, align 4, !tbaa !9
  br label %195

195:                                              ; preds = %265, %194
  %196 = load i32, ptr %51, align 4, !tbaa !9
  %197 = load i32, ptr %27, align 4, !tbaa !9
  %198 = icmp ult i32 %196, %197
  br i1 %198, label %200, label %199

199:                                              ; preds = %195
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #8
  br label %268

200:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #8
  %201 = load i32, ptr %41, align 4, !tbaa !9
  %202 = load i32, ptr %39, align 4, !tbaa !9
  %203 = mul i32 %201, %202
  %204 = load i32, ptr %47, align 4, !tbaa !9
  %205 = add i32 %203, %204
  %206 = load i32, ptr %26, align 4, !tbaa !9
  %207 = mul i32 %205, %206
  %208 = load i32, ptr %50, align 4, !tbaa !9
  %209 = add i32 %207, %208
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = mul i32 %209, %210
  %212 = load i32, ptr %51, align 4, !tbaa !9
  %213 = add i32 %211, %212
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = mul i32 %213, %214
  %216 = load i32, ptr %49, align 4, !tbaa !9
  %217 = add i32 %215, %216
  %218 = load i32, ptr %40, align 4, !tbaa !9
  %219 = mul i32 %217, %218
  store i32 %219, ptr %52, align 4, !tbaa !9
  %220 = load i32, ptr %50, align 4, !tbaa !9
  %221 = load i32, ptr %22, align 4, !tbaa !9
  %222 = icmp ult i32 %220, %221
  br i1 %222, label %223, label %257

223:                                              ; preds = %200
  %224 = load i32, ptr %51, align 4, !tbaa !9
  %225 = load i32, ptr %23, align 4, !tbaa !9
  %226 = icmp ult i32 %224, %225
  br i1 %226, label %227, label %257

227:                                              ; preds = %223
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #8
  %228 = load i32, ptr %41, align 4, !tbaa !9
  %229 = load i32, ptr %38, align 4, !tbaa !9
  %230 = mul i32 %228, %229
  %231 = load i32, ptr %46, align 4, !tbaa !9
  %232 = add i32 %230, %231
  %233 = load i32, ptr %22, align 4, !tbaa !9
  %234 = mul i32 %232, %233
  %235 = load i32, ptr %50, align 4, !tbaa !9
  %236 = add i32 %234, %235
  %237 = load i32, ptr %23, align 4, !tbaa !9
  %238 = mul i32 %236, %237
  %239 = load i32, ptr %51, align 4, !tbaa !9
  %240 = add i32 %238, %239
  %241 = load i32, ptr %15, align 4, !tbaa !9
  %242 = mul i32 %240, %241
  %243 = load i32, ptr %48, align 4, !tbaa !9
  %244 = add i32 %242, %243
  %245 = load i32, ptr %40, align 4, !tbaa !9
  %246 = mul i32 %244, %245
  store i32 %246, ptr %53, align 4, !tbaa !9
  %247 = load ptr, ptr %9, align 8, !tbaa !5
  %248 = load i32, ptr %52, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = getelementptr inbounds i8, ptr %247, i64 %249
  %251 = load ptr, ptr %7, align 8, !tbaa !5
  %252 = load i32, ptr %53, align 4, !tbaa !9
  %253 = zext i32 %252 to i64
  %254 = getelementptr inbounds i8, ptr %251, i64 %253
  %255 = load i32, ptr %40, align 4, !tbaa !9
  %256 = zext i32 %255 to i64
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %250, ptr noundef %254, i64 noundef %256)
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #8
  br label %264

257:                                              ; preds = %223, %200
  %258 = load ptr, ptr %9, align 8, !tbaa !5
  %259 = load i32, ptr %52, align 4, !tbaa !9
  %260 = zext i32 %259 to i64
  %261 = getelementptr inbounds i8, ptr %258, i64 %260
  %262 = load i32, ptr %40, align 4, !tbaa !9
  %263 = zext i32 %262 to i64
  call void @_Z10UNI_MEMSETPvim(ptr noundef %261, i32 noundef 0, i64 noundef %263)
  br label %264

264:                                              ; preds = %257, %227
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #8
  br label %265

265:                                              ; preds = %264
  %266 = load i32, ptr %51, align 4, !tbaa !9
  %267 = add i32 %266, 1
  store i32 %267, ptr %51, align 4, !tbaa !9
  br label %195, !llvm.loop !19

268:                                              ; preds = %199
  br label %269

269:                                              ; preds = %268
  %270 = load i32, ptr %50, align 4, !tbaa !9
  %271 = add i32 %270, 1
  store i32 %271, ptr %50, align 4, !tbaa !9
  br label %189, !llvm.loop !21

272:                                              ; preds = %193
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #8
  br label %273

273:                                              ; preds = %272
  %274 = load i32, ptr %43, align 4, !tbaa !9
  %275 = add i32 %274, 1
  store i32 %275, ptr %43, align 4, !tbaa !9
  br label %161, !llvm.loop !22

276:                                              ; preds = %165
  br label %277

277:                                              ; preds = %276
  %278 = load i32, ptr %42, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %42, align 4, !tbaa !9
  br label %155, !llvm.loop !23

280:                                              ; preds = %159
  br label %281

281:                                              ; preds = %280
  %282 = load i32, ptr %41, align 4, !tbaa !9
  %283 = add i32 %282, 1
  store i32 %283, ptr %41, align 4, !tbaa !9
  br label %149, !llvm.loop !24

284:                                              ; preds = %153
  store i32 0, ptr %6, align 4
  store i32 1, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %285

285:                                              ; preds = %284, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  %286 = load i32, ptr %6, align 4
  ret i32 %286
}

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 = { 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 = { 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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 4, !12, i64 4, i64 4, !14, i64 8, i64 4, !9, i64 12, i64 80, !16}
!12 = !{!13, !13, i64 0}
!13 = !{!"_ZTS8DataType", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"_ZTS10DataFormat", !7, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"_ZTS2EE", !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.TensorDesc = type { i32, i32, i32, [20 x i32] }

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10UNI_MEMCPYPvPKvm(ptr noundef, ptr noundef, i64 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: inlinehint mustprogress nounwind uwtable
declare dso_local ptr @ee2str(i32 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_Z10UNI_MEMSETPvim(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z30transformNCHWC8ToNCHWC8ByGroup10TensorDescPKviS_Pv(ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %0, ptr noundef %1, i32 noundef %2, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %3, ptr noundef %4) local_unnamed_addr #6 {
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = tail call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0)
  %19 = tail call noundef i32 @_Z14tensorNumBytes10TensorDesc(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %3)
  %20 = icmp slt i32 %2, 2
  %21 = icmp eq i32 %18, %19
  %or.cond89 = or i1 %20, %21
  br i1 %or.cond89, label %22, label %25

22:                                               ; preds = %5
  %.not88 = icmp eq ptr %1, %4
  br i1 %.not88, label %164, label %23

23:                                               ; preds = %22
  %24 = zext i32 %19 to i64
  tail call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %4, ptr noundef %1, i64 noundef %24)
  br label %164

25:                                               ; preds = %5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %26 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %0, ptr noundef nonnull %6, ptr noundef nonnull %8, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %37, label %27

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

37:                                               ; preds = %25
  %38 = call noundef i32 @_Z11tensor4dGet10TensorDescP8DataTypeP10DataFormatPjS4_S4_S4_(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %3, ptr noundef nonnull %7, ptr noundef nonnull %9, ptr noundef nonnull %14, ptr noundef nonnull %15, ptr noundef nonnull %16, ptr noundef nonnull %17)
  %.not87 = icmp eq i32 %38, 0
  br i1 %.not87, label %49, label %39

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

49:                                               ; preds = %37
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = icmp eq i32 %50, %51
  br i1 %52, label %62, label %53

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

62:                                               ; preds = %49
  %63 = load i32, ptr %8, align 4, !tbaa !11
  %64 = icmp eq i32 %63, 2
  %65 = load i32, ptr %9, align 4
  %66 = icmp eq i32 %65, 2
  %or.cond = select i1 %64, i1 %66, i1 false
  br i1 %or.cond, label %76, label %67

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

76:                                               ; preds = %62
  %77 = load i32, ptr %11, align 4, !tbaa !13
  %78 = udiv i32 %77, %2
  %79 = load i32, ptr %15, align 4, !tbaa !13
  %80 = udiv i32 %79, %2
  %81 = lshr i32 %77, 3
  %82 = lshr i32 %79, 3
  %83 = call noundef i32 @_Z7bytesOf8DataType(i32 noundef %50)
  %84 = load i32, ptr %10, align 4, !tbaa !13
  %.not119 = icmp eq i32 %84, 0
  br i1 %.not119, label %._crit_edge, label %.preheader91.lr.ph.split.us

.preheader91.lr.ph.split.us:                      ; preds = %76
  %85 = zext i32 %83 to i64
  %.not120 = icmp ult i32 %79, %2
  %86 = load i32, ptr %16, align 4
  %.not121 = icmp eq i32 %86, 0
  %or.cond140 = select i1 %.not120, i1 true, i1 %.not121
  br i1 %or.cond140, label %._crit_edge, label %.preheader91.us.us

.preheader91.us.us:                               ; preds = %.preheader91.lr.ph.split.us, %._crit_edge100.split.us.us.us
  %87 = phi i32 [ %157, %._crit_edge100.split.us.us.us ], [ %84, %.preheader91.lr.ph.split.us ]
  %88 = phi i32 [ %158, %._crit_edge100.split.us.us.us ], [ %86, %.preheader91.lr.ph.split.us ]
  %89 = phi i32 [ %159, %._crit_edge100.split.us.us.us ], [ %86, %.preheader91.lr.ph.split.us ]
  %90 = phi i32 [ %160, %._crit_edge100.split.us.us.us ], [ %86, %.preheader91.lr.ph.split.us ]
  %91 = phi i32 [ %161, %._crit_edge100.split.us.us.us ], [ 1, %.preheader91.lr.ph.split.us ]
  %.075108.us.us = phi i32 [ %162, %._crit_edge100.split.us.us.us ], [ 0, %.preheader91.lr.ph.split.us ]
  %92 = mul i32 %.075108.us.us, %82
  %93 = mul i32 %.075108.us.us, %81
  %.not122 = icmp eq i32 %91, 0
  br i1 %.not122, label %._crit_edge100.split.us.us.us, label %.preheader90.us.us113.us

.preheader90.us.us113.us:                         ; preds = %.preheader91.us.us, %._crit_edge98.us.us.us
  %94 = phi i32 [ %153, %._crit_edge98.us.us.us ], [ %88, %.preheader91.us.us ]
  %95 = phi i32 [ %154, %._crit_edge98.us.us.us ], [ %89, %.preheader91.us.us ]
  %96 = phi i32 [ %155, %._crit_edge98.us.us.us ], [ %90, %.preheader91.us.us ]
  %.07699.us.us114.us = phi i32 [ %156, %._crit_edge98.us.us.us ], [ 0, %.preheader91.us.us ]
  %97 = mul i32 %.07699.us.us114.us, %78
  %98 = mul i32 %.07699.us.us114.us, %80
  %.not123 = icmp eq i32 %96, 0
  br i1 %.not123, label %._crit_edge98.us.us.us, label %.lr.ph97.split.us107.us.us

.lr.ph97.split.us107.us.us:                       ; preds = %.preheader90.us.us113.us, %._crit_edge95.us.us.us
  %99 = phi i32 [ %105, %._crit_edge95.us.us.us ], [ %94, %.preheader90.us.us113.us ]
  %100 = phi i32 [ %106, %._crit_edge95.us.us.us ], [ %95, %.preheader90.us.us113.us ]
  %.07796.us101.us.us = phi i32 [ %107, %._crit_edge95.us.us.us ], [ 0, %.preheader90.us.us113.us ]
  %101 = add i32 %.07796.us101.us.us, %97
  %102 = add i32 %.07796.us101.us.us, %98
  %103 = and i32 %101, 7
  %104 = and i32 %102, 7
  %.not124 = icmp eq i32 %100, 0
  br i1 %.not124, label %._crit_edge95.us.us.us, label %.preheader.lr.ph.us.us.us

._crit_edge95.us.us.us:                           ; preds = %._crit_edge.us.us.us, %.preheader.lr.ph.us.us.us, %.lr.ph97.split.us107.us.us
  %105 = phi i32 [ %99, %.lr.ph97.split.us107.us.us ], [ %99, %.preheader.lr.ph.us.us.us ], [ %109, %._crit_edge.us.us.us ]
  %106 = phi i32 [ 0, %.lr.ph97.split.us107.us.us ], [ %100, %.preheader.lr.ph.us.us.us ], [ %109, %._crit_edge.us.us.us ]
  %107 = add nuw nsw i32 %.07796.us101.us.us, 1
  %108 = icmp ult i32 %107, %80
  br i1 %108, label %.lr.ph97.split.us107.us.us, label %._crit_edge98.us.us.us, !llvm.loop !15

._crit_edge.us.us.us.loopexit:                    ; preds = %142
  %.pre = load i32, ptr %16, align 4, !tbaa !13
  br label %._crit_edge.us.us.us

._crit_edge.us.us.us:                             ; preds = %._crit_edge.us.us.us.loopexit, %.preheader.us102.us.us
  %109 = phi i32 [ %.pre, %._crit_edge.us.us.us.loopexit ], [ %146, %.preheader.us102.us.us ]
  %110 = phi i32 [ %144, %._crit_edge.us.us.us.loopexit ], [ 0, %.preheader.us102.us.us ]
  %111 = add nuw i32 %.07494.us103.us.us, 1
  %112 = icmp ult i32 %111, %109
  br i1 %112, label %.preheader.us102.us.us, label %._crit_edge95.us.us.us, !llvm.loop !18

.lr.ph.us.us.us:                                  ; preds = %.preheader.us102.us.us, %142
  %113 = phi i32 [ %144, %142 ], [ %147, %.preheader.us102.us.us ]
  %.07392.us.us.us = phi i32 [ %143, %142 ], [ 0, %.preheader.us102.us.us ]
  %114 = load i32, ptr %16, align 4, !tbaa !13
  %115 = mul i32 %114, %150
  %116 = add i32 %115, %.07494.us103.us.us
  %117 = mul i32 %116, %113
  %118 = add i32 %117, %.07392.us.us.us
  %119 = shl i32 %118, 3
  %120 = or disjoint i32 %119, %104
  %121 = mul i32 %120, %83
  %122 = load i32, ptr %12, align 4, !tbaa !13
  %123 = icmp ult i32 %.07494.us103.us.us, %122
  br i1 %123, label %124, label %127

124:                                              ; preds = %.lr.ph.us.us.us
  %125 = load i32, ptr %13, align 4, !tbaa !13
  %126 = icmp ult i32 %.07392.us.us.us, %125
  br i1 %126, label %130, label %127

127:                                              ; preds = %124, %.lr.ph.us.us.us
  %128 = zext i32 %121 to i64
  %129 = getelementptr inbounds i8, ptr %4, i64 %128
  call void @_Z10UNI_MEMSETPvim(ptr noundef %129, i32 noundef 0, i64 noundef %85)
  br label %142

130:                                              ; preds = %124
  %131 = mul i32 %122, %151
  %132 = add i32 %131, %.07494.us103.us.us
  %133 = mul i32 %125, %132
  %134 = add i32 %133, %.07392.us.us.us
  %135 = shl i32 %134, 3
  %136 = or disjoint i32 %135, %103
  %137 = mul i32 %136, %83
  %138 = zext i32 %121 to i64
  %139 = getelementptr inbounds i8, ptr %4, i64 %138
  %140 = zext i32 %137 to i64
  %141 = getelementptr inbounds i8, ptr %1, i64 %140
  call void @_Z10UNI_MEMCPYPvPKvm(ptr noundef %139, ptr noundef %141, i64 noundef %85)
  br label %142

142:                                              ; preds = %130, %127
  %143 = add nuw i32 %.07392.us.us.us, 1
  %144 = load i32, ptr %17, align 4, !tbaa !13
  %145 = icmp ult i32 %143, %144
  br i1 %145, label %.lr.ph.us.us.us, label %._crit_edge.us.us.us.loopexit, !llvm.loop !19

.preheader.us102.us.us:                           ; preds = %.preheader.lr.ph.us.us.us, %._crit_edge.us.us.us
  %146 = phi i32 [ %109, %._crit_edge.us.us.us ], [ %99, %.preheader.lr.ph.us.us.us ]
  %147 = phi i32 [ %110, %._crit_edge.us.us.us ], [ %152, %.preheader.lr.ph.us.us.us ]
  %.07494.us103.us.us = phi i32 [ %111, %._crit_edge.us.us.us ], [ 0, %.preheader.lr.ph.us.us.us ]
  %.not126 = icmp eq i32 %147, 0
  br i1 %.not126, label %._crit_edge.us.us.us, label %.lr.ph.us.us.us

.preheader.lr.ph.us.us.us:                        ; preds = %.lr.ph97.split.us107.us.us
  %148 = lshr i32 %102, 3
  %149 = lshr i32 %101, 3
  %150 = add i32 %148, %92
  %151 = add i32 %149, %93
  %152 = load i32, ptr %17, align 4, !tbaa !13
  %.not125 = icmp eq i32 %152, 0
  br i1 %.not125, label %._crit_edge95.us.us.us, label %.preheader.us102.us.us

._crit_edge98.us.us.us:                           ; preds = %._crit_edge95.us.us.us, %.preheader90.us.us113.us
  %153 = phi i32 [ %94, %.preheader90.us.us113.us ], [ %105, %._crit_edge95.us.us.us ]
  %154 = phi i32 [ %95, %.preheader90.us.us113.us ], [ %106, %._crit_edge95.us.us.us ]
  %155 = phi i32 [ 0, %.preheader90.us.us113.us ], [ %106, %._crit_edge95.us.us.us ]
  %156 = add nuw nsw i32 %.07699.us.us114.us, 1
  %exitcond.not = icmp eq i32 %156, %2
  br i1 %exitcond.not, label %._crit_edge100.split.us.us.us.loopexit130, label %.preheader90.us.us113.us, !llvm.loop !20

._crit_edge100.split.us.us.us.loopexit130:        ; preds = %._crit_edge98.us.us.us
  %.pre133 = load i32, ptr %10, align 4, !tbaa !13
  br label %._crit_edge100.split.us.us.us

._crit_edge100.split.us.us.us:                    ; preds = %.preheader91.us.us, %._crit_edge100.split.us.us.us.loopexit130
  %157 = phi i32 [ %.pre133, %._crit_edge100.split.us.us.us.loopexit130 ], [ %87, %.preheader91.us.us ]
  %158 = phi i32 [ %153, %._crit_edge100.split.us.us.us.loopexit130 ], [ %88, %.preheader91.us.us ]
  %159 = phi i32 [ %154, %._crit_edge100.split.us.us.us.loopexit130 ], [ %89, %.preheader91.us.us ]
  %160 = phi i32 [ %155, %._crit_edge100.split.us.us.us.loopexit130 ], [ %90, %.preheader91.us.us ]
  %161 = phi i32 [ %155, %._crit_edge100.split.us.us.us.loopexit130 ], [ 0, %.preheader91.us.us ]
  %162 = add nuw i32 %.075108.us.us, 1
  %163 = icmp ult i32 %162, %157
  br i1 %163, label %.preheader91.us.us, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %._crit_edge100.split.us.us.us, %.preheader91.lr.ph.split.us, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  br label %164

164:                                              ; preds = %22, %23, %._crit_edge
  ret i32 0
}

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

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

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


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