; LLVM IR from libxsmm/libxsmm :: src (libxsmm_xcopy)

; 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.libxsmm_meltw_unary_shape = type { i32, i32, i32, i32, i32, i32, i32 }
%union.libxsmm_xcopykernel = type { ptr }
%struct.libxsmm_meltw_unary_param = type { %struct.libxsmm_matrix_op_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_op_arg = type { ptr, ptr, ptr, ptr }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }

@libxsmm_tcopy_mbytes = external dso_local global i32, align 64
@libxsmm_tcopy_nscale = external dso_local global float, align 64
@libxsmm_xcopy_jit = external dso_local global i32, align 64
@.str.9 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [32 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@libxsmm_otrans_task.error_once = external hidden global i32, align 4
@__PRETTY_FUNCTION__.libxsmm_otrans_task = external hidden unnamed_addr constant [139 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [71 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: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_otrans_task_internal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64, i32 noundef, i32 noundef) #2

declare void @libxsmm_init() #3

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

declare i32 @libxsmm_isqrt_u32(i32 noundef) #3

declare void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare ptr @libxsmm_dispatch_meltw_unary(i32 noundef, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #5

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_otrans_task(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %union.libxsmm_xcopykernel, align 8
  %22 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %23 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %24 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %25 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %26 = alloca %struct.libxsmm_meltw_unary_param, align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %32 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %33 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %34 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store i32 %7, ptr %17, align 4, !tbaa !9
  store i32 %8, ptr %18, align 4, !tbaa !9
  %35 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %36 = icmp ugt i32 2, %35
  br i1 %36, label %37, label %38

37:                                               ; preds = %9
  call void @libxsmm_init()
  br label %38

38:                                               ; preds = %37, %9
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = icmp ult i32 0, %39
  br i1 %40, label %41, label %365

41:                                               ; preds = %38
  %42 = load i32, ptr %12, align 4, !tbaa !9
  %43 = icmp ugt i32 256, %42
  br i1 %43, label %44, label %365

44:                                               ; preds = %41
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = load i32, ptr %15, align 4, !tbaa !9
  %47 = icmp sle i32 %45, %46
  br i1 %47, label %48, label %365

48:                                               ; preds = %44
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = icmp sle i32 %49, %50
  br i1 %51, label %52, label %365

52:                                               ; preds = %48
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = icmp ne ptr null, %53
  br i1 %54, label %55, label %64

55:                                               ; preds = %52
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = icmp ne ptr null, %56
  br i1 %57, label %58, label %64

58:                                               ; preds = %55
  %59 = load i32, ptr %13, align 4, !tbaa !9
  %60 = icmp slt i32 0, %59
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load i32, ptr %14, align 4, !tbaa !9
  %63 = icmp slt i32 0, %62
  br i1 %63, label %70, label %64

64:                                               ; preds = %61, %58, %55, %52
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = icmp eq i32 0, %65
  br i1 %66, label %67, label %365

67:                                               ; preds = %64
  %68 = load i32, ptr %14, align 4, !tbaa !9
  %69 = icmp eq i32 0, %68
  br i1 %69, label %70, label %365

70:                                               ; preds = %67, %61
  %71 = load i32, ptr %17, align 4, !tbaa !9
  %72 = icmp sle i32 0, %71
  br i1 %72, label %73, label %365

73:                                               ; preds = %70
  %74 = load i32, ptr %17, align 4, !tbaa !9
  %75 = load i32, ptr %18, align 4, !tbaa !9
  %76 = icmp slt i32 %74, %75
  br i1 %76, label %77, label %365

77:                                               ; preds = %73
  %78 = load i32, ptr %13, align 4, !tbaa !9
  %79 = icmp slt i32 0, %78
  br i1 %79, label %80, label %364

80:                                               ; preds = %77
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = icmp slt i32 0, %81
  br i1 %82, label %83, label %364

83:                                               ; preds = %80
  %84 = load ptr, ptr %10, align 8, !tbaa !5
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = icmp ne ptr %84, %85
  br i1 %86, label %87, label %340

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %88 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = sub i32 %89, 1
  %91 = add i32 %88, %90
  %92 = load i32, ptr %12, align 4, !tbaa !9
  %93 = udiv i32 %91, %92
  store i32 %93, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %94 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !11
  %95 = load i32, ptr %19, align 4, !tbaa !9
  %96 = uitofp i32 %95 to float
  %97 = fmul float %94, %96
  %98 = fptoui float %97 to i32
  store i32 %98, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 8, i1 false)
  %99 = load i32, ptr %19, align 4, !tbaa !9
  %100 = icmp eq i32 0, %99
  br i1 %100, label %101, label %103

101:                                              ; preds = %87
  %102 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %102, ptr %19, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %101, %87
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = icmp eq i32 0, %104
  br i1 %105, label %106, label %114

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

109:                                              ; preds = %106
  br label %112

110:                                              ; preds = %106
  %111 = load i32, ptr %14, align 4, !tbaa !9
  br label %112

112:                                              ; preds = %110, %109
  %113 = phi i32 [ 2, %109 ], [ %111, %110 ]
  store i32 %113, ptr %20, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %112, %103
  %115 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !9
  %116 = icmp ne i32 0, %115
  br i1 %116, label %117, label %144

117:                                              ; preds = %114
  %118 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !11
  %119 = fcmp oeq float 0.000000e+00, %118
  br i1 %119, label %120, label %144

120:                                              ; preds = %117
  %121 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !9
  %122 = load i32, ptr %19, align 4, !tbaa !9
  %123 = load i32, ptr %20, align 4, !tbaa !9
  %124 = mul i32 %122, %123
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = mul i32 %124, %125
  %127 = icmp ult i32 %121, %126
  br i1 %127, label %128, label %144

128:                                              ; preds = %120
  %129 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !9
  %130 = load i32, ptr %20, align 4, !tbaa !9
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = mul i32 %130, %131
  %133 = udiv i32 %129, %132
  %134 = icmp ult i32 %133, 2
  br i1 %134, label %135, label %136

135:                                              ; preds = %128
  br label %142

136:                                              ; preds = %128
  %137 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !9
  %138 = load i32, ptr %20, align 4, !tbaa !9
  %139 = load i32, ptr %12, align 4, !tbaa !9
  %140 = mul i32 %138, %139
  %141 = udiv i32 %137, %140
  br label %142

142:                                              ; preds = %136, %135
  %143 = phi i32 [ 2, %135 ], [ %141, %136 ]
  store i32 %143, ptr %19, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %142, %120, %117, %114
  %145 = load i32, ptr @libxsmm_xcopy_jit, align 64, !tbaa !9
  %146 = and i32 4, %145
  %147 = icmp ne i32 0, %146
  br i1 %147, label %156, label %148

148:                                              ; preds = %144
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = load i32, ptr %19, align 4, !tbaa !9
  %151 = icmp ult i32 %149, %150
  br i1 %151, label %156, label %152

152:                                              ; preds = %148
  %153 = load i32, ptr %14, align 4, !tbaa !9
  %154 = load i32, ptr %20, align 4, !tbaa !9
  %155 = icmp ult i32 %153, %154
  br i1 %155, label %156, label %322

156:                                              ; preds = %152, %148, %144
  %157 = load i32, ptr %18, align 4, !tbaa !9
  %158 = icmp eq i32 1, %157
  br i1 %158, label %159, label %213

159:                                              ; preds = %156
  %160 = load i32, ptr @libxsmm_xcopy_jit, align 64, !tbaa !9
  %161 = and i32 1, %160
  %162 = icmp ne i32 0, %161
  br i1 %162, label %163, label %210

163:                                              ; preds = %159
  %164 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %164, label %189 [
    i32 8, label %165
    i32 4, label %171
    i32 2, label %177
    i32 1, label %183
  ]

165:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 28, ptr %22) #6
  %166 = load i32, ptr %13, align 4, !tbaa !9
  %167 = load i32, ptr %14, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %22, i32 noundef %166, i32 noundef %167, i32 noundef %168, i32 noundef %169, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %170 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %22, i32 noundef 0)
  store ptr %170, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %22) #6
  br label %189

171:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 28, ptr %23) #6
  %172 = load i32, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %14, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %23, i32 noundef %172, i32 noundef %173, i32 noundef %174, i32 noundef %175, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %176 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %23, i32 noundef 0)
  store ptr %176, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %23) #6
  br label %189

177:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 28, ptr %24) #6
  %178 = load i32, ptr %13, align 4, !tbaa !9
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = load i32, ptr %15, align 4, !tbaa !9
  %181 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %24, i32 noundef %178, i32 noundef %179, i32 noundef %180, i32 noundef %181, i32 noundef 10, i32 noundef 10, i32 noundef 10)
  %182 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %24, i32 noundef 0)
  store ptr %182, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %24) #6
  br label %189

183:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 28, ptr %25) #6
  %184 = load i32, ptr %13, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = load i32, ptr %15, align 4, !tbaa !9
  %187 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %25, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef 12, i32 noundef 12, i32 noundef 12)
  %188 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %25, i32 noundef 0)
  store ptr %188, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %25) #6
  br label %189

189:                                              ; preds = %183, %177, %171, %165, %163
  %190 = load ptr, ptr %21, align 8, !tbaa !13
  %191 = icmp ne ptr null, %190
  br i1 %191, label %192, label %209

192:                                              ; preds = %189
  br label %193

193:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 128, ptr %26) #6
  %194 = load ptr, ptr %11, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.libxsmm_meltw_unary_param, ptr %26, i32 0, i32 1
  %196 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %195, i32 0, i32 0
  store ptr %194, ptr %196, align 8, !tbaa !14
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_meltw_unary_param, ptr %26, i32 0, i32 2
  %199 = getelementptr inbounds %struct.libxsmm_matrix_arg, ptr %198, i32 0, i32 0
  store ptr %197, ptr %199, align 8, !tbaa !18
  %200 = load ptr, ptr %21, align 8, !tbaa !13
  %201 = icmp ne ptr null, %200
  br i1 %201, label %202, label %203

202:                                              ; preds = %193
  br label %204

203:                                              ; preds = %193
  call void @__assert_fail(ptr noundef @.str.18, ptr noundef @.str.9, i32 noundef 411, ptr noundef @__PRETTY_FUNCTION__.libxsmm_otrans_task) #7
  unreachable

204:                                              ; preds = %202
  %205 = load ptr, ptr %21, align 8, !tbaa !13
  call void %205(ptr noundef %26)
  %206 = load i32, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 128, ptr %26) #6
  br label %207

207:                                              ; preds = %204
  br label %208

208:                                              ; preds = %207
  store i32 1, ptr %27, align 4
  br label %337

209:                                              ; preds = %189
  br label %210

210:                                              ; preds = %209, %159
  %211 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %211, ptr %19, align 4, !tbaa !9
  %212 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %212, ptr %20, align 4, !tbaa !9
  br label %321

213:                                              ; preds = %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %214 = load i32, ptr %13, align 4, !tbaa !9
  %215 = load i32, ptr %14, align 4, !tbaa !9
  %216 = mul i32 %214, %215
  %217 = load i32, ptr %18, align 4, !tbaa !9
  %218 = sitofp i32 %217 to float
  %219 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !11
  %220 = fmul float %218, %219
  %221 = fptoui float %220 to i32
  %222 = udiv i32 %216, %221
  store i32 %222, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %223 = load i32, ptr %28, align 4, !tbaa !9
  %224 = call i32 @libxsmm_isqrt_u32(i32 noundef %223)
  store i32 %224, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %225 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !11
  %226 = load i32, ptr %29, align 4, !tbaa !9
  %227 = uitofp i32 %226 to float
  %228 = fmul float %225, %227
  %229 = fptoui float %228 to i32
  store i32 %229, ptr %30, align 4, !tbaa !9
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = icmp ult i32 1, %230
  br i1 %231, label %232, label %250

232:                                              ; preds = %213
  %233 = load i32, ptr %14, align 4, !tbaa !9
  %234 = load i32, ptr %29, align 4, !tbaa !9
  %235 = icmp ule i32 %233, %234
  br i1 %235, label %236, label %238

236:                                              ; preds = %232
  %237 = load i32, ptr %14, align 4, !tbaa !9
  br label %248

238:                                              ; preds = %232
  %239 = load i32, ptr %14, align 4, !tbaa !9
  %240 = load i32, ptr %29, align 4, !tbaa !9
  %241 = icmp ult i32 %239, %240
  br i1 %241, label %242, label %244

242:                                              ; preds = %238
  %243 = load i32, ptr %14, align 4, !tbaa !9
  br label %246

244:                                              ; preds = %238
  %245 = load i32, ptr %29, align 4, !tbaa !9
  br label %246

246:                                              ; preds = %244, %242
  %247 = phi i32 [ %243, %242 ], [ %245, %244 ]
  br label %248

248:                                              ; preds = %246, %236
  %249 = phi i32 [ %237, %236 ], [ %247, %246 ]
  br label %258

250:                                              ; preds = %213
  %251 = load i32, ptr %14, align 4, !tbaa !9
  %252 = icmp ult i32 1, %251
  br i1 %252, label %253, label %255

253:                                              ; preds = %250
  %254 = load i32, ptr %14, align 4, !tbaa !9
  br label %256

255:                                              ; preds = %250
  br label %256

256:                                              ; preds = %255, %253
  %257 = phi i32 [ %254, %253 ], [ 1, %255 ]
  br label %258

258:                                              ; preds = %256, %248
  %259 = phi i32 [ %249, %248 ], [ %257, %256 ]
  store i32 %259, ptr %20, align 4, !tbaa !9
  %260 = load i32, ptr %13, align 4, !tbaa !9
  %261 = icmp ult i32 1, %260
  br i1 %261, label %262, label %280

262:                                              ; preds = %258
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = load i32, ptr %30, align 4, !tbaa !9
  %265 = icmp ule i32 %263, %264
  br i1 %265, label %266, label %268

266:                                              ; preds = %262
  %267 = load i32, ptr %13, align 4, !tbaa !9
  br label %278

268:                                              ; preds = %262
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = load i32, ptr %30, align 4, !tbaa !9
  %271 = icmp ult i32 %269, %270
  br i1 %271, label %272, label %274

272:                                              ; preds = %268
  %273 = load i32, ptr %13, align 4, !tbaa !9
  br label %276

274:                                              ; preds = %268
  %275 = load i32, ptr %30, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %274, %272
  %277 = phi i32 [ %273, %272 ], [ %275, %274 ]
  br label %278

278:                                              ; preds = %276, %266
  %279 = phi i32 [ %267, %266 ], [ %277, %276 ]
  br label %288

280:                                              ; preds = %258
  %281 = load i32, ptr %13, align 4, !tbaa !9
  %282 = icmp ult i32 1, %281
  br i1 %282, label %283, label %285

283:                                              ; preds = %280
  %284 = load i32, ptr %13, align 4, !tbaa !9
  br label %286

285:                                              ; preds = %280
  br label %286

286:                                              ; preds = %285, %283
  %287 = phi i32 [ %284, %283 ], [ 1, %285 ]
  br label %288

288:                                              ; preds = %286, %278
  %289 = phi i32 [ %279, %278 ], [ %287, %286 ]
  store i32 %289, ptr %19, align 4, !tbaa !9
  %290 = load i32, ptr @libxsmm_xcopy_jit, align 64, !tbaa !9
  %291 = and i32 1, %290
  %292 = icmp ne i32 0, %291
  br i1 %292, label %293, label %320

293:                                              ; preds = %288
  %294 = load i32, ptr %12, align 4, !tbaa !9
  switch i32 %294, label %319 [
    i32 8, label %295
    i32 4, label %301
    i32 2, label %307
    i32 1, label %313
  ]

295:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 28, ptr %31) #6
  %296 = load i32, ptr %19, align 4, !tbaa !9
  %297 = load i32, ptr %20, align 4, !tbaa !9
  %298 = load i32, ptr %15, align 4, !tbaa !9
  %299 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %31, i32 noundef %296, i32 noundef %297, i32 noundef %298, i32 noundef %299, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %300 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %31, i32 noundef 0)
  store ptr %300, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %31) #6
  br label %319

301:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 28, ptr %32) #6
  %302 = load i32, ptr %19, align 4, !tbaa !9
  %303 = load i32, ptr %20, align 4, !tbaa !9
  %304 = load i32, ptr %15, align 4, !tbaa !9
  %305 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %32, i32 noundef %302, i32 noundef %303, i32 noundef %304, i32 noundef %305, i32 noundef 1, i32 noundef 1, i32 noundef 1)
  %306 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %32, i32 noundef 0)
  store ptr %306, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %32) #6
  br label %319

307:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 28, ptr %33) #6
  %308 = load i32, ptr %19, align 4, !tbaa !9
  %309 = load i32, ptr %20, align 4, !tbaa !9
  %310 = load i32, ptr %15, align 4, !tbaa !9
  %311 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %33, i32 noundef %308, i32 noundef %309, i32 noundef %310, i32 noundef %311, i32 noundef 10, i32 noundef 10, i32 noundef 10)
  %312 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %33, i32 noundef 0)
  store ptr %312, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %33) #6
  br label %319

313:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 28, ptr %34) #6
  %314 = load i32, ptr %19, align 4, !tbaa !9
  %315 = load i32, ptr %20, align 4, !tbaa !9
  %316 = load i32, ptr %15, align 4, !tbaa !9
  %317 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %34, i32 noundef %314, i32 noundef %315, i32 noundef %316, i32 noundef %317, i32 noundef 12, i32 noundef 12, i32 noundef 12)
  %318 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8 %34, i32 noundef 0)
  store ptr %318, ptr %21, align 8, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 28, ptr %34) #6
  br label %319

319:                                              ; preds = %313, %307, %301, %295, %293
  br label %320

320:                                              ; preds = %319, %288
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %321

321:                                              ; preds = %320, %210
  br label %322

322:                                              ; preds = %321, %152
  %323 = load ptr, ptr %10, align 8, !tbaa !5
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  %325 = load i32, ptr %12, align 4, !tbaa !9
  %326 = load i32, ptr %13, align 4, !tbaa !9
  %327 = load i32, ptr %14, align 4, !tbaa !9
  %328 = load i32, ptr %15, align 4, !tbaa !9
  %329 = load i32, ptr %16, align 4, !tbaa !9
  %330 = load i32, ptr %19, align 4, !tbaa !9
  %331 = load i32, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr %17, align 4, !tbaa !9
  %333 = load i32, ptr %18, align 4, !tbaa !9
  %334 = getelementptr inbounds %union.libxsmm_xcopykernel, ptr %21, i32 0, i32 0
  %335 = load ptr, ptr %334, align 8
  %336 = ptrtoint ptr %335 to i64
  call void @libxsmm_otrans_task_internal(ptr noundef %323, ptr noundef %324, i32 noundef %325, i32 noundef %326, i32 noundef %327, i32 noundef %328, i32 noundef %329, i32 noundef %330, i32 noundef %331, i64 %336, i32 noundef %332, i32 noundef %333)
  store i32 0, ptr %27, align 4
  br label %337

337:                                              ; preds = %322, %208
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %338 = load i32, ptr %27, align 4
  switch i32 %338, label %435 [
    i32 0, label %339
    i32 1, label %434
  ]

339:                                              ; preds = %337
  br label %363

340:                                              ; preds = %83
  %341 = load i32, ptr %15, align 4, !tbaa !9
  %342 = load i32, ptr %16, align 4, !tbaa !9
  %343 = icmp eq i32 %341, %342
  br i1 %343, label %344, label %351

344:                                              ; preds = %340
  %345 = load ptr, ptr %10, align 8, !tbaa !5
  %346 = load i32, ptr %12, align 4, !tbaa !9
  %347 = load i32, ptr %13, align 4, !tbaa !9
  %348 = load i32, ptr %14, align 4, !tbaa !9
  %349 = load i32, ptr %15, align 4, !tbaa !9
  %350 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_itrans(ptr noundef %345, i32 noundef %346, i32 noundef %347, i32 noundef %348, i32 noundef %349, i32 noundef %350)
  br label %362

351:                                              ; preds = %340
  %352 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %353 = icmp ne i32 0, %352
  br i1 %353, label %354, label %361

354:                                              ; preds = %351
  %355 = atomicrmw add ptr @libxsmm_otrans_task.error_once, i32 1 seq_cst, align 4
  %356 = add i32 %355, 1
  %357 = icmp eq i32 1, %356
  br i1 %357, label %358, label %361

358:                                              ; preds = %354
  %359 = load ptr, ptr @stderr, align 8, !tbaa !5
  %360 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %359, ptr noundef @.str.47) #6
  br label %361

361:                                              ; preds = %358, %354, %351
  br label %362

362:                                              ; preds = %361, %344
  br label %363

363:                                              ; preds = %362, %339
  br label %364

364:                                              ; preds = %363, %80, %77
  br label %434

365:                                              ; preds = %73, %70, %67, %64, %48, %44, %41, %38
  %366 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  %367 = icmp ne i32 0, %366
  br i1 %367, label %368, label %433

368:                                              ; preds = %365
  %369 = atomicrmw add ptr @libxsmm_otrans_task.error_once, i32 1 seq_cst, align 4
  %370 = add i32 %369, 1
  %371 = icmp eq i32 1, %370
  br i1 %371, label %372, label %433

372:                                              ; preds = %368
  %373 = load i32, ptr %17, align 4, !tbaa !9
  %374 = icmp sgt i32 0, %373
  br i1 %374, label %379, label %375

375:                                              ; preds = %372
  %376 = load i32, ptr %17, align 4, !tbaa !9
  %377 = load i32, ptr %18, align 4, !tbaa !9
  %378 = icmp sge i32 %376, %377
  br i1 %378, label %379, label %382

379:                                              ; preds = %375, %372
  %380 = load ptr, ptr @stderr, align 8, !tbaa !5
  %381 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %380, ptr noundef @.str.48) #6
  br label %432

382:                                              ; preds = %375
  %383 = load ptr, ptr %10, align 8, !tbaa !5
  %384 = icmp eq ptr null, %383
  br i1 %384, label %388, label %385

385:                                              ; preds = %382
  %386 = load ptr, ptr %11, align 8, !tbaa !5
  %387 = icmp eq ptr null, %386
  br i1 %387, label %388, label %391

388:                                              ; preds = %385, %382
  %389 = load ptr, ptr @stderr, align 8, !tbaa !5
  %390 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %389, ptr noundef @.str.49) #6
  br label %431

391:                                              ; preds = %385
  %392 = load ptr, ptr %10, align 8, !tbaa !5
  %393 = load ptr, ptr %11, align 8, !tbaa !5
  %394 = icmp eq ptr %392, %393
  br i1 %394, label %395, label %398

395:                                              ; preds = %391
  %396 = load ptr, ptr @stderr, align 8, !tbaa !5
  %397 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %396, ptr noundef @.str.47) #6
  br label %430

398:                                              ; preds = %391
  %399 = load i32, ptr %12, align 4, !tbaa !9
  %400 = icmp eq i32 0, %399
  br i1 %400, label %404, label %401

401:                                              ; preds = %398
  %402 = load i32, ptr %12, align 4, !tbaa !9
  %403 = icmp ule i32 256, %402
  br i1 %403, label %404, label %407

404:                                              ; preds = %401, %398
  %405 = load ptr, ptr @stderr, align 8, !tbaa !5
  %406 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %405, ptr noundef @.str.50) #6
  br label %429

407:                                              ; preds = %401
  %408 = load i32, ptr %15, align 4, !tbaa !9
  %409 = load i32, ptr %13, align 4, !tbaa !9
  %410 = icmp slt i32 %408, %409
  br i1 %410, label %415, label %411

411:                                              ; preds = %407
  %412 = load i32, ptr %16, align 4, !tbaa !9
  %413 = load i32, ptr %14, align 4, !tbaa !9
  %414 = icmp slt i32 %412, %413
  br i1 %414, label %415, label %418

415:                                              ; preds = %411, %407
  %416 = load ptr, ptr @stderr, align 8, !tbaa !5
  %417 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %416, ptr noundef @.str.51) #6
  br label %428

418:                                              ; preds = %411
  %419 = load i32, ptr %13, align 4, !tbaa !9
  %420 = icmp sgt i32 0, %419
  br i1 %420, label %424, label %421

421:                                              ; preds = %418
  %422 = load i32, ptr %14, align 4, !tbaa !9
  %423 = icmp sgt i32 0, %422
  br i1 %423, label %424, label %427

424:                                              ; preds = %421, %418
  %425 = load ptr, ptr @stderr, align 8, !tbaa !5
  %426 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %425, ptr noundef @.str.52) #6
  br label %427

427:                                              ; preds = %424, %421
  br label %428

428:                                              ; preds = %427, %415
  br label %429

429:                                              ; preds = %428, %404
  br label %430

430:                                              ; preds = %429, %395
  br label %431

431:                                              ; preds = %430, %388
  br label %432

432:                                              ; preds = %431, %379
  br label %433

433:                                              ; preds = %432, %368, %365
  br label %434

434:                                              ; preds = %433, %364, %337
  ret void

435:                                              ; preds = %337
  unreachable
}

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_itrans(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !6, i64 32}
!15 = !{!"libxsmm_meltw_unary_param", !16, i64 0, !17, i64 32, !17, i64 80}
!16 = !{!"libxsmm_matrix_op_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!17 = !{!"libxsmm_matrix_arg", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!18 = !{!15, !6, i64 80}


; 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.libxsmm_meltw_unary_shape = type { i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_meltw_unary_param = type { %struct.libxsmm_matrix_op_arg, %struct.libxsmm_matrix_arg, %struct.libxsmm_matrix_arg }
%struct.libxsmm_matrix_op_arg = type { ptr, ptr, ptr, ptr }
%struct.libxsmm_matrix_arg = type { ptr, ptr, ptr, ptr, ptr, ptr }

@libxsmm_tcopy_mbytes = external dso_local local_unnamed_addr global i32, align 64
@libxsmm_tcopy_nscale = external dso_local local_unnamed_addr global float, align 64
@libxsmm_xcopy_jit = external dso_local local_unnamed_addr global i32, align 64
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@libxsmm_otrans_task.error_once = external hidden global i32, align 4
@.str.47 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [71 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: nounwind uwtable
declare dso_local void @libxsmm_otrans_task_internal(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_init() local_unnamed_addr #2

declare i32 @libxsmm_isqrt_u32(i32 noundef) local_unnamed_addr #2

declare void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind writable sret(%struct.libxsmm_meltw_unary_shape) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @libxsmm_dispatch_meltw_unary(i32 noundef, ptr noundef byval(%struct.libxsmm_meltw_unary_shape) align 8, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_otrans_task(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #1 {
  %10 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %11 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %12 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %13 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %14 = alloca %struct.libxsmm_meltw_unary_param, align 8
  %15 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %16 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %17 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %18 = alloca %struct.libxsmm_meltw_unary_shape, align 8
  %19 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %20 = icmp ult i32 %19, 2
  br i1 %20, label %21, label %22

21:                                               ; preds = %9
  tail call void @libxsmm_init() #5
  br label %22

22:                                               ; preds = %21, %9
  %23 = add i32 %2, -1
  %or.cond = icmp ugt i32 %23, 254
  %.not = icmp sgt i32 %3, %5
  %or.cond200 = or i1 %or.cond, %.not
  %.not188 = icmp sgt i32 %4, %6
  %or.cond201 = or i1 %or.cond200, %.not188
  br i1 %or.cond201, label %116, label %24

24:                                               ; preds = %22
  %25 = icmp ne ptr %0, null
  %26 = icmp ne ptr %1, null
  %or.cond3 = and i1 %25, %26
  %27 = icmp sgt i32 %3, 0
  %or.cond5 = and i1 %or.cond3, %27
  %28 = icmp sgt i32 %4, 0
  %or.cond7 = and i1 %or.cond5, %28
  br i1 %or.cond7, label %33, label %29

29:                                               ; preds = %24
  %30 = or i32 %4, %3
  %or.cond9 = icmp eq i32 %30, 0
  %31 = icmp sgt i32 %7, -1
  %or.cond11 = and i1 %or.cond9, %31
  %32 = icmp slt i32 %7, %8
  %or.cond202 = and i1 %or.cond11, %32
  br i1 %or.cond202, label %34, label %116

33:                                               ; preds = %24
  %.old10 = icmp sgt i32 %7, -1
  %.old = icmp slt i32 %7, %8
  %or.cond203 = and i1 %.old10, %.old
  br i1 %or.cond203, label %34, label %116

34:                                               ; preds = %33, %29
  %or.cond14 = and i1 %27, %28
  br i1 %or.cond14, label %35, label %151

35:                                               ; preds = %34
  %.not191 = icmp eq ptr %0, %1
  br i1 %.not191, label %105, label %36

36:                                               ; preds = %35
  %37 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %38 = add i32 %37, %23
  %39 = udiv i32 %38, %2
  %40 = load float, ptr @libxsmm_tcopy_nscale, align 64
  %41 = uitofp i32 %39 to float
  %42 = fmul float %40, %41
  %43 = fptoui float %42 to i32
  %44 = icmp ult i32 %38, %2
  %spec.select = select i1 %44, i32 %3, i32 %39
  %45 = icmp eq i32 %43, 0
  %46 = tail call i32 @llvm.umin.i32(i32 %4, i32 2)
  %.0166 = select i1 %45, i32 %46, i32 %43
  %47 = icmp ne i32 %37, 0
  %48 = fcmp oeq float %40, 0.000000e+00
  %or.cond17 = select i1 %47, i1 %48, i1 false
  br i1 %or.cond17, label %49, label %55

49:                                               ; preds = %36
  %50 = mul i32 %.0166, %2
  %51 = mul i32 %50, %spec.select
  %52 = icmp ult i32 %37, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %49
  %54 = udiv i32 %37, %50
  %spec.select204 = tail call i32 @llvm.umax.i32(i32 %54, i32 2)
  br label %55

55:                                               ; preds = %53, %49, %36
  %.1 = phi i32 [ %spec.select204, %53 ], [ %spec.select, %49 ], [ %spec.select, %36 ]
  %56 = load i32, ptr @libxsmm_xcopy_jit, align 64, !tbaa !5
  %57 = and i32 %56, 4
  %.not193 = icmp ne i32 %57, 0
  %58 = icmp ugt i32 %.1, %3
  %or.cond206 = or i1 %58, %.not193
  %59 = icmp ugt i32 %.0166, %4
  %or.cond208 = select i1 %or.cond206, i1 true, i1 %59
  br i1 %or.cond208, label %60, label %.thread

60:                                               ; preds = %55
  %61 = icmp eq i32 %8, 1
  br i1 %61, label %62, label %77

62:                                               ; preds = %60
  %63 = and i32 %56, 1
  %.not197 = icmp eq i32 %63, 0
  br i1 %.not197, label %.thread, label %64

64:                                               ; preds = %62
  %trunc198 = trunc nuw i32 %2 to i8
  switch i8 %trunc198, label %.thread [
    i8 8, label %65
    i8 4, label %67
    i8 2, label %69
    i8 1, label %71
  ]

65:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %10) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %10, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 0, i32 noundef 0) #5
  %66 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %10, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %10) #5
  br label %73

67:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %11) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %11, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef 1, i32 noundef 1, i32 noundef 1) #5
  %68 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %11, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %11) #5
  br label %73

69:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %12) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %12, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef 10, i32 noundef 10, i32 noundef 10) #5
  %70 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %12, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %12) #5
  br label %73

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %13, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef 12, i32 noundef 12, i32 noundef 12) #5
  %72 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %13, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #5
  br label %73

73:                                               ; preds = %71, %69, %67, %65
  %.sroa.0.0 = phi ptr [ %72, %71 ], [ %70, %69 ], [ %68, %67 ], [ %66, %65 ]
  %.not199 = icmp eq ptr %.sroa.0.0, null
  br i1 %.not199, label %.thread, label %74

74:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %14) #5
  %75 = getelementptr inbounds i8, ptr %14, i64 32
  store ptr %1, ptr %75, align 8, !tbaa !9
  %76 = getelementptr inbounds i8, ptr %14, i64 80
  store ptr %0, ptr %76, align 8, !tbaa !14
  call void %.sroa.0.0(ptr noundef nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %14) #5
  br label %151

77:                                               ; preds = %60
  %78 = mul i32 %4, %3
  %79 = sitofp i32 %8 to float
  %80 = fmul float %40, %79
  %81 = fptoui float %80 to i32
  %82 = udiv i32 %78, %81
  %83 = tail call i32 @libxsmm_isqrt_u32(i32 noundef %82) #5
  %84 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !15
  %85 = uitofp i32 %83 to float
  %86 = fmul float %84, %85
  %87 = fptoui float %86 to i32
  %88 = icmp ugt i32 %4, 1
  %. = tail call i32 @llvm.umin.i32(i32 %83, i32 %4)
  %89 = select i1 %88, i32 %., i32 1
  %90 = icmp ugt i32 %3, 1
  %.209 = tail call i32 @llvm.umin.i32(i32 %87, i32 %3)
  %91 = select i1 %90, i32 %.209, i32 1
  %92 = load i32, ptr @libxsmm_xcopy_jit, align 64, !tbaa !5
  %93 = and i32 %92, 1
  %.not196 = icmp eq i32 %93, 0
  br i1 %.not196, label %103, label %94

94:                                               ; preds = %77
  %trunc = trunc nuw i32 %2 to i8
  switch i8 %trunc, label %103 [
    i8 8, label %95
    i8 4, label %97
    i8 2, label %99
    i8 1, label %101
  ]

95:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %15) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %15, i32 noundef %91, i32 noundef %89, i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 0, i32 noundef 0) #5
  %96 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %15, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %15) #5
  br label %103

97:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %16) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %16, i32 noundef %91, i32 noundef %89, i32 noundef %5, i32 noundef %6, i32 noundef 1, i32 noundef 1, i32 noundef 1) #5
  %98 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %16, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %16) #5
  br label %103

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %17) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %17, i32 noundef %91, i32 noundef %89, i32 noundef %5, i32 noundef %6, i32 noundef 10, i32 noundef 10, i32 noundef 10) #5
  %100 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %17, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %17) #5
  br label %103

101:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %18) #5
  call void @libxsmm_create_meltw_unary_shape(ptr dead_on_unwind nonnull writable sret(%struct.libxsmm_meltw_unary_shape) align 4 %18, i32 noundef %91, i32 noundef %89, i32 noundef %5, i32 noundef %6, i32 noundef 12, i32 noundef 12, i32 noundef 12) #5
  %102 = call ptr @libxsmm_dispatch_meltw_unary(i32 noundef 29, ptr noundef nonnull byval(%struct.libxsmm_meltw_unary_shape) align 8 %18, i32 noundef 0) #5
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %18) #5
  br label %103

103:                                              ; preds = %94, %95, %97, %99, %101, %77
  %.sroa.0.2 = phi ptr [ null, %94 ], [ %102, %101 ], [ %100, %99 ], [ %98, %97 ], [ %96, %95 ], [ null, %77 ]
  %104 = ptrtoint ptr %.sroa.0.2 to i64
  br label %.thread

.thread:                                          ; preds = %64, %62, %73, %55, %103
  %.sroa.0.3 = phi i64 [ %104, %103 ], [ 0, %55 ], [ 0, %73 ], [ 0, %62 ], [ 0, %64 ]
  %.1167 = phi i32 [ %89, %103 ], [ %.0166, %55 ], [ %4, %73 ], [ %4, %62 ], [ %4, %64 ]
  %.2 = phi i32 [ %91, %103 ], [ %.1, %55 ], [ %3, %73 ], [ %3, %62 ], [ %3, %64 ]
  call void @libxsmm_otrans_task_internal(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %.2, i32 noundef %.1167, i64 %.sroa.0.3, i32 noundef %7, i32 noundef %8)
  br label %151

105:                                              ; preds = %35
  %106 = icmp eq i32 %5, %6
  br i1 %106, label %107, label %108

107:                                              ; preds = %105
  tail call void @libxsmm_itrans(ptr noundef %0, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %5)
  br label %151

108:                                              ; preds = %105
  %109 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %.not192 = icmp eq i32 %109, 0
  br i1 %.not192, label %151, label %110

110:                                              ; preds = %108
  %111 = atomicrmw add ptr @libxsmm_otrans_task.error_once, i32 1 seq_cst, align 4
  %112 = icmp eq i32 %111, 0
  br i1 %112, label %113, label %151

113:                                              ; preds = %110
  %114 = load ptr, ptr @stderr, align 8, !tbaa !17
  %115 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef nonnull @.str.47) #6
  br label %151

116:                                              ; preds = %33, %29, %22
  %117 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !5
  %.not189 = icmp eq i32 %117, 0
  br i1 %.not189, label %151, label %118

118:                                              ; preds = %116
  %119 = atomicrmw add ptr @libxsmm_otrans_task.error_once, i32 1 seq_cst, align 4
  %120 = icmp eq i32 %119, 0
  br i1 %120, label %121, label %151

121:                                              ; preds = %118
  %122 = icmp sgt i32 %7, -1
  %.not190 = icmp slt i32 %7, %8
  %or.cond210 = and i1 %122, %.not190
  br i1 %or.cond210, label %126, label %123

123:                                              ; preds = %121
  %124 = load ptr, ptr @stderr, align 8, !tbaa !17
  %125 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %124, ptr noundef nonnull @.str.48) #6
  br label %151

126:                                              ; preds = %121
  %127 = icmp eq ptr %0, null
  %128 = icmp eq ptr %1, null
  %or.cond20 = or i1 %127, %128
  br i1 %or.cond20, label %129, label %132

129:                                              ; preds = %126
  %130 = load ptr, ptr @stderr, align 8, !tbaa !17
  %131 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef nonnull @.str.49) #6
  br label %151

132:                                              ; preds = %126
  %133 = icmp eq ptr %0, %1
  br i1 %133, label %134, label %137

134:                                              ; preds = %132
  %135 = load ptr, ptr @stderr, align 8, !tbaa !17
  %136 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull @.str.47) #6
  br label %151

137:                                              ; preds = %132
  %138 = add i32 %2, -256
  %or.cond23 = icmp ult i32 %138, -255
  br i1 %or.cond23, label %139, label %142

139:                                              ; preds = %137
  %140 = load ptr, ptr @stderr, align 8, !tbaa !17
  %141 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %140, ptr noundef nonnull @.str.50) #6
  br label %151

142:                                              ; preds = %137
  %or.cond212 = or i1 %.not, %.not188
  br i1 %or.cond212, label %143, label %146

143:                                              ; preds = %142
  %144 = load ptr, ptr @stderr, align 8, !tbaa !17
  %145 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %144, ptr noundef nonnull @.str.51) #6
  br label %151

146:                                              ; preds = %142
  %147 = or i32 %4, %3
  %or.cond26.not = icmp sgt i32 %147, -1
  br i1 %or.cond26.not, label %151, label %148

148:                                              ; preds = %146
  %149 = load ptr, ptr @stderr, align 8, !tbaa !17
  %150 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef nonnull @.str.52) #6
  br label %151

151:                                              ; preds = %74, %.thread, %116, %118, %129, %139, %148, %146, %143, %134, %123, %34, %107, %113, %110, %108
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_itrans(ptr noundef, i32 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.umin.i32(i32, i32) #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nounwind }
attributes #6 = { cold 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/C++ TBAA"}
!9 = !{!10, !12, i64 32}
!10 = !{!"libxsmm_meltw_unary_param", !11, i64 0, !13, i64 32, !13, i64 80}
!11 = !{!"libxsmm_matrix_op_arg", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"libxsmm_matrix_arg", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!14 = !{!10, !12, i64 80}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !12, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass