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

@libxsmm_mcopy_mbytes = external dso_local global i32, align 64
@libxsmm_mcopy_nscale = external dso_local global float, align 64
@libxsmm_mzero_mbytes = external dso_local global i32, align 64
@libxsmm_mzero_nscale = external dso_local global float, align 64
@libxsmm_tcopy_mbytes = external dso_local global i32, align 64
@libxsmm_tcopy_nscale = external dso_local global float, align 64
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@libxsmm_xcopy_jit = external dso_local global i32, align 64
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@libxsmm_xcopy_taskscale = external dso_local global i32, align 64

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_xcopy_init(i32 noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca float, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca float, align 4
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  store i32 %0, ptr %2, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = icmp sle i32 1101, %20
  br i1 %21, label %22, label %23

22:                                               ; preds = %1
  store i32 0, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  store i32 0, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  store i32 32768, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  br label %24

23:                                               ; preds = %1
  store i32 0, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  store i32 8192, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  store i32 4096, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  br label %24

24:                                               ; preds = %23, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %25 = call ptr @getenv(ptr noundef @.str) #4
  store ptr %25, ptr %3, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %26 = call ptr @getenv(ptr noundef @.str.1) #4
  store ptr %26, ptr %4, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %27 = load ptr, ptr %3, align 8, !tbaa !11
  %28 = icmp eq ptr null, %27
  br i1 %28, label %34, label %29

29:                                               ; preds = %24
  %30 = load ptr, ptr %3, align 8, !tbaa !11
  %31 = load i8, ptr %30, align 1, !tbaa !13
  %32 = sext i8 %31 to i32
  %33 = icmp eq i32 0, %32
  br i1 %33, label %34, label %35

34:                                               ; preds = %29, %24
  br label %38

35:                                               ; preds = %29
  %36 = load ptr, ptr %3, align 8, !tbaa !11
  %37 = call i32 @atoi(ptr noundef %36) #5
  br label %38

38:                                               ; preds = %35, %34
  %39 = phi i32 [ 0, %34 ], [ %37, %35 ]
  store i32 %39, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %40 = load ptr, ptr %4, align 8, !tbaa !11
  %41 = icmp eq ptr null, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %38
  %43 = load ptr, ptr %4, align 8, !tbaa !11
  %44 = load i8, ptr %43, align 1, !tbaa !13
  %45 = sext i8 %44 to i32
  %46 = icmp eq i32 0, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %42, %38
  br label %51

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !11
  %50 = call i32 @atoi(ptr noundef %49) #5
  br label %51

51:                                               ; preds = %48, %47
  %52 = phi i32 [ 0, %47 ], [ %50, %48 ]
  store i32 %52, ptr %6, align 4, !tbaa !5
  %53 = load i32, ptr %5, align 4, !tbaa !5
  %54 = icmp slt i32 0, %53
  br i1 %54, label %55, label %64

55:                                               ; preds = %51
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = icmp slt i32 %56, 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  br label %61

59:                                               ; preds = %55
  %60 = load i32, ptr %5, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %59, %58
  %62 = phi i32 [ 1, %58 ], [ %60, %59 ]
  %63 = mul nsw i32 %62, 8
  store i32 %63, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  br label %64

64:                                               ; preds = %61, %51
  %65 = load i32, ptr %6, align 4, !tbaa !5
  %66 = icmp slt i32 0, %65
  br i1 %66, label %67, label %77

67:                                               ; preds = %64
  %68 = load i32, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %69 = icmp ne i32 0, %68
  br i1 %69, label %70, label %77

70:                                               ; preds = %67
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = mul nsw i32 %71, 8
  %73 = sitofp i32 %72 to float
  %74 = load i32, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %75 = uitofp i32 %74 to float
  %76 = fdiv float %73, %75
  store float %76, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  br label %77

77:                                               ; preds = %70, %67, %64
  %78 = load i32, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %79 = icmp ne i32 0, %78
  br i1 %79, label %80, label %103

80:                                               ; preds = %77
  %81 = load float, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  %82 = fcmp une float 0.000000e+00, %81
  br i1 %82, label %83, label %103

83:                                               ; preds = %80
  %84 = load float, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  %85 = load i32, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %86 = uitofp i32 %85 to float
  %87 = fmul float %84, %86
  %88 = fcmp ogt float 1.000000e+00, %87
  br i1 %88, label %89, label %102

89:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %90 = load i32, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %91 = uitofp i32 %90 to float
  %92 = fdiv float 1.000000e+00, %91
  store float %92, ptr %7, align 4, !tbaa !9
  %93 = load float, ptr %7, align 4, !tbaa !9
  %94 = load float, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  %95 = fcmp olt float %93, %94
  br i1 %95, label %96, label %98

96:                                               ; preds = %89
  %97 = load float, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  br label %100

98:                                               ; preds = %89
  %99 = load float, ptr %7, align 4, !tbaa !9
  br label %100

100:                                              ; preds = %98, %96
  %101 = phi float [ %97, %96 ], [ %99, %98 ]
  store float %101, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %102

102:                                              ; preds = %100, %83
  br label %103

103:                                              ; preds = %102, %80, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %104 = call ptr @getenv(ptr noundef @.str.2) #4
  store ptr %104, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %105 = call ptr @getenv(ptr noundef @.str.3) #4
  store ptr %105, ptr %9, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %106 = load ptr, ptr %8, align 8, !tbaa !11
  %107 = icmp eq ptr null, %106
  br i1 %107, label %113, label %108

108:                                              ; preds = %103
  %109 = load ptr, ptr %8, align 8, !tbaa !11
  %110 = load i8, ptr %109, align 1, !tbaa !13
  %111 = sext i8 %110 to i32
  %112 = icmp eq i32 0, %111
  br i1 %112, label %113, label %114

113:                                              ; preds = %108, %103
  br label %117

114:                                              ; preds = %108
  %115 = load ptr, ptr %8, align 8, !tbaa !11
  %116 = call i32 @atoi(ptr noundef %115) #5
  br label %117

117:                                              ; preds = %114, %113
  %118 = phi i32 [ 0, %113 ], [ %116, %114 ]
  store i32 %118, ptr %10, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %119 = load ptr, ptr %9, align 8, !tbaa !11
  %120 = icmp eq ptr null, %119
  br i1 %120, label %126, label %121

121:                                              ; preds = %117
  %122 = load ptr, ptr %9, align 8, !tbaa !11
  %123 = load i8, ptr %122, align 1, !tbaa !13
  %124 = sext i8 %123 to i32
  %125 = icmp eq i32 0, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %121, %117
  br label %130

127:                                              ; preds = %121
  %128 = load ptr, ptr %9, align 8, !tbaa !11
  %129 = call i32 @atoi(ptr noundef %128) #5
  br label %130

130:                                              ; preds = %127, %126
  %131 = phi i32 [ 0, %126 ], [ %129, %127 ]
  store i32 %131, ptr %11, align 4, !tbaa !5
  %132 = load i32, ptr %10, align 4, !tbaa !5
  %133 = icmp slt i32 0, %132
  br i1 %133, label %134, label %143

134:                                              ; preds = %130
  %135 = load i32, ptr %10, align 4, !tbaa !5
  %136 = icmp slt i32 %135, 1
  br i1 %136, label %137, label %138

137:                                              ; preds = %134
  br label %140

138:                                              ; preds = %134
  %139 = load i32, ptr %10, align 4, !tbaa !5
  br label %140

140:                                              ; preds = %138, %137
  %141 = phi i32 [ 1, %137 ], [ %139, %138 ]
  %142 = mul nsw i32 %141, 8
  store i32 %142, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  br label %143

143:                                              ; preds = %140, %130
  %144 = load i32, ptr %11, align 4, !tbaa !5
  %145 = icmp slt i32 0, %144
  br i1 %145, label %146, label %156

146:                                              ; preds = %143
  %147 = load i32, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  %148 = icmp ne i32 0, %147
  br i1 %148, label %149, label %156

149:                                              ; preds = %146
  %150 = load i32, ptr %11, align 4, !tbaa !5
  %151 = mul nsw i32 %150, 8
  %152 = sitofp i32 %151 to float
  %153 = load i32, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  %154 = uitofp i32 %153 to float
  %155 = fdiv float %152, %154
  store float %155, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  br label %156

156:                                              ; preds = %149, %146, %143
  %157 = load i32, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  %158 = icmp ne i32 0, %157
  br i1 %158, label %159, label %182

159:                                              ; preds = %156
  %160 = load float, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  %161 = fcmp une float 0.000000e+00, %160
  br i1 %161, label %162, label %182

162:                                              ; preds = %159
  %163 = load float, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  %164 = load i32, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  %165 = uitofp i32 %164 to float
  %166 = fmul float %163, %165
  %167 = fcmp ogt float 1.000000e+00, %166
  br i1 %167, label %168, label %181

168:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %169 = load i32, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  %170 = uitofp i32 %169 to float
  %171 = fdiv float 1.000000e+00, %170
  store float %171, ptr %12, align 4, !tbaa !9
  %172 = load float, ptr %12, align 4, !tbaa !9
  %173 = load float, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  %174 = fcmp olt float %172, %173
  br i1 %174, label %175, label %177

175:                                              ; preds = %168
  %176 = load float, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  br label %179

177:                                              ; preds = %168
  %178 = load float, ptr %12, align 4, !tbaa !9
  br label %179

179:                                              ; preds = %177, %175
  %180 = phi float [ %176, %175 ], [ %178, %177 ]
  store float %180, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %181

181:                                              ; preds = %179, %162
  br label %182

182:                                              ; preds = %181, %159, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %183 = call ptr @getenv(ptr noundef @.str.4) #4
  store ptr %183, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %184 = call ptr @getenv(ptr noundef @.str.5) #4
  store ptr %184, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %185 = load ptr, ptr %13, align 8, !tbaa !11
  %186 = icmp eq ptr null, %185
  br i1 %186, label %192, label %187

187:                                              ; preds = %182
  %188 = load ptr, ptr %13, align 8, !tbaa !11
  %189 = load i8, ptr %188, align 1, !tbaa !13
  %190 = sext i8 %189 to i32
  %191 = icmp eq i32 0, %190
  br i1 %191, label %192, label %193

192:                                              ; preds = %187, %182
  br label %196

193:                                              ; preds = %187
  %194 = load ptr, ptr %13, align 8, !tbaa !11
  %195 = call i32 @atoi(ptr noundef %194) #5
  br label %196

196:                                              ; preds = %193, %192
  %197 = phi i32 [ 0, %192 ], [ %195, %193 ]
  store i32 %197, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %198 = load ptr, ptr %14, align 8, !tbaa !11
  %199 = icmp eq ptr null, %198
  br i1 %199, label %205, label %200

200:                                              ; preds = %196
  %201 = load ptr, ptr %14, align 8, !tbaa !11
  %202 = load i8, ptr %201, align 1, !tbaa !13
  %203 = sext i8 %202 to i32
  %204 = icmp eq i32 0, %203
  br i1 %204, label %205, label %206

205:                                              ; preds = %200, %196
  br label %209

206:                                              ; preds = %200
  %207 = load ptr, ptr %14, align 8, !tbaa !11
  %208 = call i32 @atoi(ptr noundef %207) #5
  br label %209

209:                                              ; preds = %206, %205
  %210 = phi i32 [ 0, %205 ], [ %208, %206 ]
  store i32 %210, ptr %16, align 4, !tbaa !5
  %211 = load i32, ptr %15, align 4, !tbaa !5
  %212 = icmp slt i32 0, %211
  br i1 %212, label %213, label %222

213:                                              ; preds = %209
  %214 = load i32, ptr %15, align 4, !tbaa !5
  %215 = icmp slt i32 %214, 1
  br i1 %215, label %216, label %217

216:                                              ; preds = %213
  br label %219

217:                                              ; preds = %213
  %218 = load i32, ptr %15, align 4, !tbaa !5
  br label %219

219:                                              ; preds = %217, %216
  %220 = phi i32 [ 1, %216 ], [ %218, %217 ]
  %221 = mul nsw i32 %220, 8
  store i32 %221, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  br label %222

222:                                              ; preds = %219, %209
  %223 = load i32, ptr %16, align 4, !tbaa !5
  %224 = icmp slt i32 0, %223
  br i1 %224, label %225, label %235

225:                                              ; preds = %222
  %226 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %227 = icmp ne i32 0, %226
  br i1 %227, label %228, label %235

228:                                              ; preds = %225
  %229 = load i32, ptr %16, align 4, !tbaa !5
  %230 = mul nsw i32 %229, 8
  %231 = sitofp i32 %230 to float
  %232 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %233 = uitofp i32 %232 to float
  %234 = fdiv float %231, %233
  store float %234, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  br label %235

235:                                              ; preds = %228, %225, %222
  %236 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %237 = icmp ne i32 0, %236
  br i1 %237, label %238, label %261

238:                                              ; preds = %235
  %239 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  %240 = fcmp une float 0.000000e+00, %239
  br i1 %240, label %241, label %261

241:                                              ; preds = %238
  %242 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  %243 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %244 = uitofp i32 %243 to float
  %245 = fmul float %242, %244
  %246 = fcmp ogt float 1.000000e+00, %245
  br i1 %246, label %247, label %260

247:                                              ; preds = %241
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %248 = load i32, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  %249 = uitofp i32 %248 to float
  %250 = fdiv float 1.000000e+00, %249
  store float %250, ptr %17, align 4, !tbaa !9
  %251 = load float, ptr %17, align 4, !tbaa !9
  %252 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  %253 = fcmp olt float %251, %252
  br i1 %253, label %254, label %256

254:                                              ; preds = %247
  %255 = load float, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  br label %258

256:                                              ; preds = %247
  %257 = load float, ptr %17, align 4, !tbaa !9
  br label %258

258:                                              ; preds = %256, %254
  %259 = phi float [ %255, %254 ], [ %257, %256 ]
  store float %259, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %260

260:                                              ; preds = %258, %241
  br label %261

261:                                              ; preds = %260, %238, %235
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %262 = call ptr @getenv(ptr noundef @.str.6) #4
  store ptr %262, ptr %18, align 8, !tbaa !11
  %263 = load ptr, ptr %18, align 8, !tbaa !11
  %264 = icmp eq ptr null, %263
  br i1 %264, label %270, label %265

265:                                              ; preds = %261
  %266 = load ptr, ptr %18, align 8, !tbaa !11
  %267 = load i8, ptr %266, align 1, !tbaa !13
  %268 = sext i8 %267 to i32
  %269 = icmp eq i32 0, %268
  br i1 %269, label %270, label %271

270:                                              ; preds = %265, %261
  br label %274

271:                                              ; preds = %265
  %272 = load ptr, ptr %18, align 8, !tbaa !11
  %273 = call i32 @atoi(ptr noundef %272) #5
  br label %274

274:                                              ; preds = %271, %270
  %275 = phi i32 [ 0, %270 ], [ %273, %271 ]
  store i32 %275, ptr @libxsmm_xcopy_jit, align 64, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %276 = call ptr @getenv(ptr noundef @.str.7) #4
  store ptr %276, ptr %19, align 8, !tbaa !11
  %277 = load ptr, ptr %19, align 8, !tbaa !11
  %278 = icmp eq ptr null, %277
  br i1 %278, label %284, label %279

279:                                              ; preds = %274
  %280 = load ptr, ptr %19, align 8, !tbaa !11
  %281 = load i8, ptr %280, align 1, !tbaa !13
  %282 = sext i8 %281 to i32
  %283 = icmp eq i32 0, %282
  br i1 %283, label %284, label %285

284:                                              ; preds = %279, %274
  br label %289

285:                                              ; preds = %279
  %286 = load ptr, ptr %19, align 8, !tbaa !11
  %287 = call i32 @atoi(ptr noundef %286) #5
  %288 = mul nsw i32 2, %287
  br label %289

289:                                              ; preds = %285, %284
  %290 = phi i32 [ 0, %284 ], [ %288, %285 ]
  store i32 %290, ptr @libxsmm_xcopy_taskscale, align 64, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  ret void
}

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

; Function Attrs: nounwind
declare ptr @getenv(ptr noundef) #2

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr noundef nonnull) #3

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

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

!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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!7, !7, i64 0}


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

@libxsmm_mcopy_mbytes = external dso_local local_unnamed_addr global i32, align 64
@libxsmm_mcopy_nscale = external dso_local local_unnamed_addr global float, align 64
@libxsmm_mzero_mbytes = external dso_local local_unnamed_addr global i32, align 64
@libxsmm_mzero_nscale = external dso_local local_unnamed_addr global float, align 64
@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
@.str = external hidden unnamed_addr constant [16 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1
@libxsmm_xcopy_jit = external dso_local local_unnamed_addr global i32, align 64
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@libxsmm_xcopy_taskscale = external dso_local local_unnamed_addr global i32, align 64

; Function Attrs: nofree nounwind memory(readwrite, argmem: read, inaccessiblemem: read) uwtable
define dso_local void @libxsmm_xcopy_init(i32 noundef %0) local_unnamed_addr #0 {
  %2 = icmp sgt i32 %0, 1100
  %. = select i1 %2, i32 0, i32 8192
  %.79 = select i1 %2, i32 32768, i32 4096
  store i32 0, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  store i32 %., ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  store i32 %.79, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  store float 0.000000e+00, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  %3 = tail call ptr @getenv(ptr noundef nonnull @.str) #3
  %4 = tail call ptr @getenv(ptr noundef nonnull @.str.1) #3
  %5 = icmp eq ptr %3, null
  br i1 %5, label %11, label %6

6:                                                ; preds = %1
  %7 = load i8, ptr %3, align 1, !tbaa !11
  %8 = icmp eq i8 %7, 0
  br i1 %8, label %11, label %9

9:                                                ; preds = %6
  %10 = tail call i32 @atoi(ptr nocapture noundef %3) #4
  br label %11

11:                                               ; preds = %1, %6, %9
  %12 = phi i32 [ %10, %9 ], [ 0, %6 ], [ 0, %1 ]
  %13 = icmp eq ptr %4, null
  br i1 %13, label %19, label %14

14:                                               ; preds = %11
  %15 = load i8, ptr %4, align 1, !tbaa !11
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %19, label %17

17:                                               ; preds = %14
  %18 = tail call i32 @atoi(ptr nocapture noundef %4) #4
  br label %19

19:                                               ; preds = %11, %14, %17
  %20 = phi i32 [ %18, %17 ], [ 0, %14 ], [ 0, %11 ]
  %21 = icmp sgt i32 %12, 0
  br i1 %21, label %22, label %.thread82

22:                                               ; preds = %19
  %23 = shl nsw i32 %12, 3
  store i32 %23, ptr @libxsmm_mcopy_mbytes, align 64, !tbaa !5
  %24 = icmp sgt i32 %20, 0
  br i1 %24, label %25, label %.thread82

25:                                               ; preds = %22
  %26 = shl nsw i32 %20, 3
  %27 = uitofp nneg i32 %26 to float
  %28 = uitofp i32 %23 to float
  %29 = fdiv float %27, %28
  store float %29, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  %30 = fcmp une float %29, 0.000000e+00
  br i1 %30, label %31, label %.thread82

31:                                               ; preds = %25
  %32 = uitofp i32 %23 to float
  %33 = fmul float %29, %32
  %34 = fcmp olt float %33, 1.000000e+00
  br i1 %34, label %35, label %.thread82

35:                                               ; preds = %31
  %36 = fdiv float 1.000000e+00, %32
  %37 = fcmp olt float %36, %29
  %38 = select i1 %37, float %29, float %36
  store float %38, ptr @libxsmm_mcopy_nscale, align 64, !tbaa !9
  br label %.thread82

.thread82:                                        ; preds = %19, %22, %31, %35, %25
  %39 = tail call ptr @getenv(ptr noundef nonnull @.str.2) #3
  %40 = tail call ptr @getenv(ptr noundef nonnull @.str.3) #3
  %41 = icmp eq ptr %39, null
  br i1 %41, label %47, label %42

42:                                               ; preds = %.thread82
  %43 = load i8, ptr %39, align 1, !tbaa !11
  %44 = icmp eq i8 %43, 0
  br i1 %44, label %47, label %45

45:                                               ; preds = %42
  %46 = tail call i32 @atoi(ptr nocapture noundef %39) #4
  br label %47

47:                                               ; preds = %.thread82, %42, %45
  %48 = phi i32 [ %46, %45 ], [ 0, %42 ], [ 0, %.thread82 ]
  %49 = icmp eq ptr %40, null
  br i1 %49, label %55, label %50

50:                                               ; preds = %47
  %51 = load i8, ptr %40, align 1, !tbaa !11
  %52 = icmp eq i8 %51, 0
  br i1 %52, label %55, label %53

53:                                               ; preds = %50
  %54 = tail call i32 @atoi(ptr nocapture noundef %40) #4
  br label %55

55:                                               ; preds = %47, %50, %53
  %56 = phi i32 [ %54, %53 ], [ 0, %50 ], [ 0, %47 ]
  %57 = icmp sgt i32 %48, 0
  br i1 %57, label %58, label %60

58:                                               ; preds = %55
  %59 = shl nsw i32 %48, 3
  store i32 %59, ptr @libxsmm_mzero_mbytes, align 64, !tbaa !5
  br label %60

60:                                               ; preds = %58, %55
  %61 = phi i32 [ %59, %58 ], [ %., %55 ]
  %62 = icmp sgt i32 %56, 0
  %63 = icmp ne i32 %61, 0
  %or.cond5 = select i1 %62, i1 %63, i1 false
  br i1 %or.cond5, label %64, label %.thread84

64:                                               ; preds = %60
  %65 = shl nsw i32 %56, 3
  %66 = uitofp nneg i32 %65 to float
  %67 = uitofp i32 %61 to float
  %68 = fdiv float %66, %67
  store float %68, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  %69 = fcmp une float %68, 0.000000e+00
  br i1 %69, label %70, label %.thread84

70:                                               ; preds = %64
  %71 = uitofp i32 %61 to float
  %72 = fmul float %68, %71
  %73 = fcmp olt float %72, 1.000000e+00
  br i1 %73, label %74, label %.thread84

74:                                               ; preds = %70
  %75 = fdiv float 1.000000e+00, %71
  %76 = fcmp olt float %75, %68
  %77 = select i1 %76, float %68, float %75
  store float %77, ptr @libxsmm_mzero_nscale, align 64, !tbaa !9
  br label %.thread84

.thread84:                                        ; preds = %60, %70, %74, %64
  %78 = tail call ptr @getenv(ptr noundef nonnull @.str.4) #3
  %79 = tail call ptr @getenv(ptr noundef nonnull @.str.5) #3
  %80 = icmp eq ptr %78, null
  br i1 %80, label %86, label %81

81:                                               ; preds = %.thread84
  %82 = load i8, ptr %78, align 1, !tbaa !11
  %83 = icmp eq i8 %82, 0
  br i1 %83, label %86, label %84

84:                                               ; preds = %81
  %85 = tail call i32 @atoi(ptr nocapture noundef %78) #4
  br label %86

86:                                               ; preds = %.thread84, %81, %84
  %87 = phi i32 [ %85, %84 ], [ 0, %81 ], [ 0, %.thread84 ]
  %88 = icmp eq ptr %79, null
  br i1 %88, label %94, label %89

89:                                               ; preds = %86
  %90 = load i8, ptr %79, align 1, !tbaa !11
  %91 = icmp eq i8 %90, 0
  br i1 %91, label %94, label %92

92:                                               ; preds = %89
  %93 = tail call i32 @atoi(ptr nocapture noundef %79) #4
  br label %94

94:                                               ; preds = %86, %89, %92
  %95 = phi i32 [ %93, %92 ], [ 0, %89 ], [ 0, %86 ]
  %96 = icmp sgt i32 %87, 0
  br i1 %96, label %97, label %99

97:                                               ; preds = %94
  %98 = shl nsw i32 %87, 3
  store i32 %98, ptr @libxsmm_tcopy_mbytes, align 64, !tbaa !5
  br label %99

99:                                               ; preds = %97, %94
  %100 = phi i32 [ %98, %97 ], [ %.79, %94 ]
  %101 = icmp sgt i32 %95, 0
  br i1 %101, label %102, label %.thread86

102:                                              ; preds = %99
  %103 = shl nsw i32 %95, 3
  %104 = uitofp nneg i32 %103 to float
  %105 = uitofp i32 %100 to float
  %106 = fdiv float %104, %105
  store float %106, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  %107 = fcmp une float %106, 0.000000e+00
  br i1 %107, label %108, label %.thread86

108:                                              ; preds = %102
  %109 = uitofp i32 %100 to float
  %110 = fmul float %106, %109
  %111 = fcmp olt float %110, 1.000000e+00
  br i1 %111, label %112, label %.thread86

112:                                              ; preds = %108
  %113 = fdiv float 1.000000e+00, %109
  %114 = fcmp olt float %113, %106
  %115 = select i1 %114, float %106, float %113
  store float %115, ptr @libxsmm_tcopy_nscale, align 64, !tbaa !9
  br label %.thread86

.thread86:                                        ; preds = %99, %108, %112, %102
  %116 = tail call ptr @getenv(ptr noundef nonnull @.str.6) #3
  %117 = icmp eq ptr %116, null
  br i1 %117, label %123, label %118

118:                                              ; preds = %.thread86
  %119 = load i8, ptr %116, align 1, !tbaa !11
  %120 = icmp eq i8 %119, 0
  br i1 %120, label %123, label %121

121:                                              ; preds = %118
  %122 = tail call i32 @atoi(ptr nocapture noundef %116) #4
  br label %123

123:                                              ; preds = %.thread86, %118, %121
  %124 = phi i32 [ %122, %121 ], [ 0, %118 ], [ 0, %.thread86 ]
  store i32 %124, ptr @libxsmm_xcopy_jit, align 64, !tbaa !5
  %125 = tail call ptr @getenv(ptr noundef nonnull @.str.7) #3
  %126 = icmp eq ptr %125, null
  br i1 %126, label %133, label %127

127:                                              ; preds = %123
  %128 = load i8, ptr %125, align 1, !tbaa !11
  %129 = icmp eq i8 %128, 0
  br i1 %129, label %133, label %130

130:                                              ; preds = %127
  %131 = tail call i32 @atoi(ptr nocapture noundef %125) #4
  %132 = shl nsw i32 %131, 1
  br label %133

133:                                              ; preds = %123, %127, %130
  %134 = phi i32 [ %132, %130 ], [ 0, %127 ], [ 0, %123 ]
  store i32 %134, ptr @libxsmm_xcopy_taskscale, align 64, !tbaa !5
  ret void
}

; Function Attrs: nofree nounwind memory(read)
declare noundef ptr @getenv(ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare i32 @atoi(ptr nocapture noundef nonnull) local_unnamed_addr #2

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

!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, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!7, !7, i64 0}


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