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

; 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_mateltwise_kernel_config_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

; 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

declare i32 @libxsmm_meltw_getenum_precision(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_setup_input_output_masks(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  store ptr %2, ptr %12, align 8, !tbaa !5
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store ptr %5, ptr %15, align 8, !tbaa !5
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  store ptr %8, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %32 = load ptr, ptr %11, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %32, i32 0, i32 120
  %34 = load i32, ptr %33, align 4, !tbaa !11
  store i32 %34, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  %35 = load ptr, ptr %11, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %35, i32 0, i32 123
  %37 = load i32, ptr %36, align 4, !tbaa !13
  store i32 %37, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %38 = load ptr, ptr %11, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %38, i32 0, i32 19
  %40 = load i32, ptr %39, align 4, !tbaa !14
  store i32 %40, ptr %27, align 4, !tbaa !9
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i32, ptr %14, align 4, !tbaa !9
  %43 = load i32, ptr %25, align 4, !tbaa !9
  %44 = urem i32 %42, %43
  %45 = icmp eq i32 %44, 0
  %46 = zext i1 %45 to i64
  %47 = select i1 %45, i32 0, i32 1
  store i32 %47, ptr %23, align 4, !tbaa !9
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = load i32, ptr %26, align 4, !tbaa !9
  %50 = urem i32 %48, %49
  %51 = icmp eq i32 %50, 0
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, i32 0, i32 1
  store i32 %53, ptr %24, align 4, !tbaa !9
  %54 = load i32, ptr %23, align 4, !tbaa !9
  %55 = icmp eq i32 %54, 1
  br i1 %55, label %56, label %160

56:                                               ; preds = %9
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = icmp uge i32 %59, 1051
  br i1 %60, label %61, label %100

61:                                               ; preds = %56
  %62 = load ptr, ptr %10, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %62, i32 0, i32 6
  %64 = load i32, ptr %63, align 4, !tbaa !15
  %65 = icmp ult i32 %64, 1101
  br i1 %65, label %66, label %100

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 15, ptr %28, align 4, !tbaa !9
  %67 = load i32, ptr %25, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 32
  br i1 %68, label %69, label %70

69:                                               ; preds = %66
  store i32 12, ptr %28, align 4, !tbaa !9
  br label %86

70:                                               ; preds = %66
  %71 = load i32, ptr %25, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 16
  br i1 %72, label %73, label %74

73:                                               ; preds = %70
  store i32 10, ptr %28, align 4, !tbaa !9
  br label %85

74:                                               ; preds = %70
  %75 = load i32, ptr %25, align 4, !tbaa !9
  %76 = icmp eq i32 %75, 8
  br i1 %76, label %77, label %78

77:                                               ; preds = %74
  store i32 8, ptr %28, align 4, !tbaa !9
  br label %84

78:                                               ; preds = %74
  %79 = load i32, ptr %25, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 4
  br i1 %80, label %81, label %82

81:                                               ; preds = %78
  store i32 6, ptr %28, align 4, !tbaa !9
  br label %83

82:                                               ; preds = %78
  br label %83

83:                                               ; preds = %82, %81
  br label %84

84:                                               ; preds = %83, %77
  br label %85

85:                                               ; preds = %84, %73
  br label %86

86:                                               ; preds = %85, %69
  %87 = load i32, ptr %25, align 4, !tbaa !9
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %25, align 4, !tbaa !9
  %90 = urem i32 %88, %89
  %91 = sub i32 %87, %90
  store i32 %91, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %92, ptr %21, align 4, !tbaa !9
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = load i32, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %21, align 4, !tbaa !9
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = load i32, ptr %28, align 4, !tbaa !9
  call void @libxsmm_generator_initialize_avx512_mask(ptr noundef %93, i32 noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef %97)
  %98 = load i32, ptr %27, align 4, !tbaa !9
  %99 = add i32 %98, 1
  store i32 %99, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  br label %159

100:                                              ; preds = %61, %56
  %101 = load ptr, ptr %10, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %101, i32 0, i32 6
  %103 = load i32, ptr %102, align 4, !tbaa !15
  %104 = icmp uge i32 %103, 1101
  br i1 %104, label %105, label %144

105:                                              ; preds = %100
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %106, i32 0, i32 6
  %108 = load i32, ptr %107, align 4, !tbaa !15
  %109 = icmp ule i32 %108, 1999
  br i1 %109, label %110, label %144

110:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  store i32 15, ptr %29, align 4, !tbaa !9
  %111 = load i32, ptr %25, align 4, !tbaa !9
  %112 = icmp eq i32 %111, 64
  br i1 %112, label %113, label %114

113:                                              ; preds = %110
  store i32 12, ptr %29, align 4, !tbaa !9
  br label %130

114:                                              ; preds = %110
  %115 = load i32, ptr %25, align 4, !tbaa !9
  %116 = icmp eq i32 %115, 32
  br i1 %116, label %117, label %118

117:                                              ; preds = %114
  store i32 10, ptr %29, align 4, !tbaa !9
  br label %129

118:                                              ; preds = %114
  %119 = load i32, ptr %25, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 16
  br i1 %120, label %121, label %122

121:                                              ; preds = %118
  store i32 8, ptr %29, align 4, !tbaa !9
  br label %128

122:                                              ; preds = %118
  %123 = load i32, ptr %25, align 4, !tbaa !9
  %124 = icmp eq i32 %123, 8
  br i1 %124, label %125, label %126

125:                                              ; preds = %122
  store i32 6, ptr %29, align 4, !tbaa !9
  br label %127

126:                                              ; preds = %122
  br label %127

127:                                              ; preds = %126, %125
  br label %128

128:                                              ; preds = %127, %121
  br label %129

129:                                              ; preds = %128, %117
  br label %130

130:                                              ; preds = %129, %113
  %131 = load i32, ptr %25, align 4, !tbaa !9
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = load i32, ptr %25, align 4, !tbaa !9
  %134 = urem i32 %132, %133
  %135 = sub i32 %131, %134
  store i32 %135, ptr %19, align 4, !tbaa !9
  %136 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %136, ptr %21, align 4, !tbaa !9
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %21, align 4, !tbaa !9
  %140 = load i32, ptr %19, align 4, !tbaa !9
  %141 = load i32, ptr %29, align 4, !tbaa !9
  call void @libxsmm_generator_initialize_avx512_mask(ptr noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef %140, i32 noundef %141)
  %142 = load i32, ptr %27, align 4, !tbaa !9
  %143 = add i32 %142, 1
  store i32 %143, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  br label %158

144:                                              ; preds = %105, %100
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %145, i32 0, i32 28
  %147 = load i32, ptr %146, align 4, !tbaa !17
  store i32 %147, ptr %21, align 4, !tbaa !9
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %21, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = load i32, ptr %25, align 4, !tbaa !9
  %152 = urem i32 %150, %151
  %153 = load ptr, ptr %12, align 8, !tbaa !5
  %154 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %153, i32 noundef 4)
  %155 = icmp eq i32 1, %154
  %156 = zext i1 %155 to i64
  %157 = select i1 %155, i32 1, i32 0
  call void @libxsmm_generator_initialize_avx_mask(ptr noundef %148, i32 noundef %149, i32 noundef %152, i32 noundef %157)
  br label %158

158:                                              ; preds = %144, %130
  br label %159

159:                                              ; preds = %158, %86
  br label %160

160:                                              ; preds = %159, %9
  %161 = load i32, ptr %24, align 4, !tbaa !9
  %162 = icmp eq i32 %161, 1
  br i1 %162, label %163, label %280

163:                                              ; preds = %160
  %164 = load i32, ptr %25, align 4, !tbaa !9
  %165 = load i32, ptr %26, align 4, !tbaa !9
  %166 = icmp eq i32 %164, %165
  br i1 %166, label %167, label %169

167:                                              ; preds = %163
  %168 = load i32, ptr %21, align 4, !tbaa !9
  store i32 %168, ptr %22, align 4, !tbaa !9
  br label %279

169:                                              ; preds = %163
  %170 = load ptr, ptr %10, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %170, i32 0, i32 6
  %172 = load i32, ptr %171, align 4, !tbaa !15
  %173 = icmp uge i32 %172, 1051
  br i1 %173, label %174, label %213

174:                                              ; preds = %169
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %175, i32 0, i32 6
  %177 = load i32, ptr %176, align 4, !tbaa !15
  %178 = icmp ult i32 %177, 1101
  br i1 %178, label %179, label %213

179:                                              ; preds = %174
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  store i32 15, ptr %30, align 4, !tbaa !9
  %180 = load i32, ptr %26, align 4, !tbaa !9
  %181 = icmp eq i32 %180, 64
  br i1 %181, label %182, label %183

182:                                              ; preds = %179
  store i32 12, ptr %30, align 4, !tbaa !9
  br label %199

183:                                              ; preds = %179
  %184 = load i32, ptr %26, align 4, !tbaa !9
  %185 = icmp eq i32 %184, 32
  br i1 %185, label %186, label %187

186:                                              ; preds = %183
  store i32 10, ptr %30, align 4, !tbaa !9
  br label %198

187:                                              ; preds = %183
  %188 = load i32, ptr %26, align 4, !tbaa !9
  %189 = icmp eq i32 %188, 16
  br i1 %189, label %190, label %191

190:                                              ; preds = %187
  store i32 8, ptr %30, align 4, !tbaa !9
  br label %197

191:                                              ; preds = %187
  %192 = load i32, ptr %26, align 4, !tbaa !9
  %193 = icmp eq i32 %192, 8
  br i1 %193, label %194, label %195

194:                                              ; preds = %191
  store i32 6, ptr %30, align 4, !tbaa !9
  br label %196

195:                                              ; preds = %191
  br label %196

196:                                              ; preds = %195, %194
  br label %197

197:                                              ; preds = %196, %190
  br label %198

198:                                              ; preds = %197, %186
  br label %199

199:                                              ; preds = %198, %182
  %200 = load i32, ptr %26, align 4, !tbaa !9
  %201 = load i32, ptr %14, align 4, !tbaa !9
  %202 = load i32, ptr %26, align 4, !tbaa !9
  %203 = urem i32 %201, %202
  %204 = sub i32 %200, %203
  store i32 %204, ptr %20, align 4, !tbaa !9
  %205 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %205, ptr %22, align 4, !tbaa !9
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i32, ptr %13, align 4, !tbaa !9
  %208 = load i32, ptr %22, align 4, !tbaa !9
  %209 = load i32, ptr %20, align 4, !tbaa !9
  %210 = load i32, ptr %30, align 4, !tbaa !9
  call void @libxsmm_generator_initialize_avx512_mask(ptr noundef %206, i32 noundef %207, i32 noundef %208, i32 noundef %209, i32 noundef %210)
  %211 = load i32, ptr %27, align 4, !tbaa !9
  %212 = add i32 %211, 1
  store i32 %212, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  br label %278

213:                                              ; preds = %174, %169
  %214 = load ptr, ptr %10, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %214, i32 0, i32 6
  %216 = load i32, ptr %215, align 4, !tbaa !15
  %217 = icmp uge i32 %216, 1101
  br i1 %217, label %218, label %257

218:                                              ; preds = %213
  %219 = load ptr, ptr %10, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %219, i32 0, i32 6
  %221 = load i32, ptr %220, align 4, !tbaa !15
  %222 = icmp ule i32 %221, 1999
  br i1 %222, label %223, label %257

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  store i32 15, ptr %31, align 4, !tbaa !9
  %224 = load i32, ptr %26, align 4, !tbaa !9
  %225 = icmp eq i32 %224, 64
  br i1 %225, label %226, label %227

226:                                              ; preds = %223
  store i32 12, ptr %31, align 4, !tbaa !9
  br label %243

227:                                              ; preds = %223
  %228 = load i32, ptr %26, align 4, !tbaa !9
  %229 = icmp eq i32 %228, 32
  br i1 %229, label %230, label %231

230:                                              ; preds = %227
  store i32 10, ptr %31, align 4, !tbaa !9
  br label %242

231:                                              ; preds = %227
  %232 = load i32, ptr %26, align 4, !tbaa !9
  %233 = icmp eq i32 %232, 16
  br i1 %233, label %234, label %235

234:                                              ; preds = %231
  store i32 8, ptr %31, align 4, !tbaa !9
  br label %241

235:                                              ; preds = %231
  %236 = load i32, ptr %26, align 4, !tbaa !9
  %237 = icmp eq i32 %236, 8
  br i1 %237, label %238, label %239

238:                                              ; preds = %235
  store i32 6, ptr %31, align 4, !tbaa !9
  br label %240

239:                                              ; preds = %235
  br label %240

240:                                              ; preds = %239, %238
  br label %241

241:                                              ; preds = %240, %234
  br label %242

242:                                              ; preds = %241, %230
  br label %243

243:                                              ; preds = %242, %226
  %244 = load i32, ptr %26, align 4, !tbaa !9
  %245 = load i32, ptr %14, align 4, !tbaa !9
  %246 = load i32, ptr %26, align 4, !tbaa !9
  %247 = urem i32 %245, %246
  %248 = sub i32 %244, %247
  store i32 %248, ptr %20, align 4, !tbaa !9
  %249 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %249, ptr %22, align 4, !tbaa !9
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = load i32, ptr %22, align 4, !tbaa !9
  %253 = load i32, ptr %20, align 4, !tbaa !9
  %254 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_generator_initialize_avx512_mask(ptr noundef %250, i32 noundef %251, i32 noundef %252, i32 noundef %253, i32 noundef %254)
  %255 = load i32, ptr %27, align 4, !tbaa !9
  %256 = add i32 %255, 1
  store i32 %256, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  br label %277

257:                                              ; preds = %218, %213
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %258, i32 0, i32 18
  %260 = load i32, ptr %259, align 4, !tbaa !18
  store i32 %260, ptr %22, align 4, !tbaa !9
  %261 = load ptr, ptr %11, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %261, i32 0, i32 18
  %263 = load i32, ptr %262, align 4, !tbaa !18
  %264 = add i32 %263, 1
  %265 = load ptr, ptr %11, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %265, i32 0, i32 18
  store i32 %264, ptr %266, align 4, !tbaa !18
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  %268 = load i32, ptr %22, align 4, !tbaa !9
  %269 = load i32, ptr %14, align 4, !tbaa !9
  %270 = load i32, ptr %26, align 4, !tbaa !9
  %271 = urem i32 %269, %270
  %272 = load ptr, ptr %12, align 8, !tbaa !5
  %273 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %272, i32 noundef 4)
  %274 = icmp eq i32 1, %273
  %275 = zext i1 %274 to i64
  %276 = select i1 %274, i32 1, i32 0
  call void @libxsmm_generator_initialize_avx_mask(ptr noundef %267, i32 noundef %268, i32 noundef %271, i32 noundef %276)
  br label %277

277:                                              ; preds = %257, %243
  br label %278

278:                                              ; preds = %277, %199
  br label %279

279:                                              ; preds = %278, %167
  br label %280

280:                                              ; preds = %279, %160
  %281 = load i32, ptr %27, align 4, !tbaa !9
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %282, i32 0, i32 19
  store i32 %281, ptr %283, align 4, !tbaa !14
  %284 = load i32, ptr %21, align 4, !tbaa !9
  %285 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %284, ptr %285, align 4, !tbaa !9
  %286 = load i32, ptr %23, align 4, !tbaa !9
  %287 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %286, ptr %287, align 4, !tbaa !9
  %288 = load i32, ptr %22, align 4, !tbaa !9
  %289 = load ptr, ptr %18, align 8, !tbaa !5
  store i32 %288, ptr %289, align 4, !tbaa !9
  %290 = load i32, ptr %24, align 4, !tbaa !9
  %291 = load ptr, ptr %17, align 8, !tbaa !5
  store i32 %290, ptr %291, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  ret void
}

declare void @libxsmm_generator_initialize_avx512_mask(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_generator_initialize_avx_mask(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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, !10, i64 480}
!12 = !{!"libxsmm_mateltwise_kernel_config_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512}
!13 = !{!12, !10, i64 492}
!14 = !{!12, !10, i64 76}
!15 = !{!16, !10, i64 28}
!16 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!17 = !{!12, !10, i64 112}
!18 = !{!12, !10, i64 72}


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

@switch.table.libxsmm_setup_input_output_masks.3 = private unnamed_addr constant [8 x i32] [i32 6, i32 8, i32 15, i32 10, i32 15, i32 15, i32 15, i32 12], align 4

declare i32 @libxsmm_meltw_getenum_precision(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_setup_input_output_masks(ptr noundef %0, ptr nocapture noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8) local_unnamed_addr #1 {
  %10 = getelementptr inbounds i8, ptr %1, i64 480
  %11 = load i32, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %1, i64 492
  %13 = load i32, ptr %12, align 4, !tbaa !10
  %14 = getelementptr inbounds i8, ptr %1, i64 76
  %15 = load i32, ptr %14, align 4, !tbaa !11
  %16 = urem i32 %4, %11
  %17 = icmp ne i32 %16, 0
  %18 = urem i32 %4, %13
  %19 = icmp ne i32 %18, 0
  br i1 %17, label %20, label %46

20:                                               ; preds = %9
  %21 = getelementptr inbounds i8, ptr %0, i64 28
  %22 = load i32, ptr %21, align 4, !tbaa !12
  %23 = add i32 %22, -1051
  %or.cond = icmp ult i32 %23, 50
  br i1 %or.cond, label %24, label %31

24:                                               ; preds = %20
  %25 = add i32 %11, -4
  %26 = tail call i32 @llvm.fshl.i32(i32 %25, i32 %25, i32 30)
  %27 = icmp ult i32 %26, 8
  br i1 %27, label %switch.lookup, label %.fold.split

switch.lookup:                                    ; preds = %24
  %28 = zext nneg i32 %26 to i64
  %switch.gep = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_setup_input_output_masks.3, i64 0, i64 %28
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %.fold.split

.fold.split:                                      ; preds = %24, %switch.lookup
  %.0102 = phi i32 [ %switch.load, %switch.lookup ], [ 15, %24 ]
  %29 = sub i32 %11, %16
  tail call void @libxsmm_generator_initialize_avx512_mask(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %15, i32 noundef %29, i32 noundef %.0102) #3
  %30 = add i32 %15, 1
  br label %46

31:                                               ; preds = %20
  %32 = add i32 %22, -1101
  %or.cond112 = icmp ult i32 %32, 899
  br i1 %or.cond112, label %33, label %40

33:                                               ; preds = %31
  %34 = add i32 %11, -8
  %35 = tail call i32 @llvm.fshl.i32(i32 %34, i32 %34, i32 29)
  %36 = icmp ult i32 %35, 8
  br i1 %36, label %switch.lookup118, label %.fold.split113

switch.lookup118:                                 ; preds = %33
  %37 = zext nneg i32 %35 to i64
  %switch.gep119 = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_setup_input_output_masks.3, i64 0, i64 %37
  %switch.load120 = load i32, ptr %switch.gep119, align 4
  br label %.fold.split113

.fold.split113:                                   ; preds = %33, %switch.lookup118
  %.0101 = phi i32 [ %switch.load120, %switch.lookup118 ], [ 15, %33 ]
  %38 = sub i32 %11, %16
  tail call void @libxsmm_generator_initialize_avx512_mask(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %15, i32 noundef %38, i32 noundef %.0101) #3
  %39 = add i32 %15, 1
  br label %46

40:                                               ; preds = %31
  %41 = getelementptr inbounds i8, ptr %1, i64 112
  %42 = load i32, ptr %41, align 4, !tbaa !15
  %43 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef %2, i32 noundef 4) #3
  %44 = icmp eq i32 %43, 1
  %45 = zext i1 %44 to i32
  tail call void @libxsmm_generator_initialize_avx_mask(ptr noundef nonnull %0, i32 noundef %42, i32 noundef %16, i32 noundef %45) #3
  br label %46

46:                                               ; preds = %.fold.split, %40, %.fold.split113, %9
  %.0104 = phi i32 [ %15, %.fold.split ], [ %15, %.fold.split113 ], [ %42, %40 ], [ 0, %9 ]
  %.0103 = phi i32 [ %30, %.fold.split ], [ %39, %.fold.split113 ], [ %15, %40 ], [ %15, %9 ]
  br i1 %19, label %47, label %76

47:                                               ; preds = %46
  %48 = icmp eq i32 %11, %13
  br i1 %48, label %76, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %0, i64 28
  %51 = load i32, ptr %50, align 4, !tbaa !12
  %52 = add i32 %51, -1051
  %or.cond114 = icmp ult i32 %52, 50
  br i1 %or.cond114, label %53, label %60

53:                                               ; preds = %49
  %54 = add i32 %13, -8
  %55 = tail call i32 @llvm.fshl.i32(i32 %54, i32 %54, i32 29)
  %56 = icmp ult i32 %55, 8
  br i1 %56, label %switch.lookup121, label %.fold.split115

switch.lookup121:                                 ; preds = %53
  %57 = zext nneg i32 %55 to i64
  %switch.gep122 = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_setup_input_output_masks.3, i64 0, i64 %57
  %switch.load123 = load i32, ptr %switch.gep122, align 4
  br label %.fold.split115

.fold.split115:                                   ; preds = %53, %switch.lookup121
  %.0100 = phi i32 [ %switch.load123, %switch.lookup121 ], [ 15, %53 ]
  %58 = sub i32 %13, %18
  tail call void @libxsmm_generator_initialize_avx512_mask(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %.0103, i32 noundef %58, i32 noundef %.0100) #3
  %59 = add i32 %.0103, 1
  br label %76

60:                                               ; preds = %49
  %61 = add i32 %51, -1101
  %or.cond116 = icmp ult i32 %61, 899
  br i1 %or.cond116, label %62, label %69

62:                                               ; preds = %60
  %63 = add i32 %13, -8
  %64 = tail call i32 @llvm.fshl.i32(i32 %63, i32 %63, i32 29)
  %65 = icmp ult i32 %64, 8
  br i1 %65, label %switch.lookup124, label %.fold.split117

switch.lookup124:                                 ; preds = %62
  %66 = zext nneg i32 %64 to i64
  %switch.gep125 = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_setup_input_output_masks.3, i64 0, i64 %66
  %switch.load126 = load i32, ptr %switch.gep125, align 4
  br label %.fold.split117

.fold.split117:                                   ; preds = %62, %switch.lookup124
  %.0 = phi i32 [ %switch.load126, %switch.lookup124 ], [ 15, %62 ]
  %67 = sub i32 %13, %18
  tail call void @libxsmm_generator_initialize_avx512_mask(ptr noundef nonnull %0, i32 noundef %3, i32 noundef %.0103, i32 noundef %67, i32 noundef %.0) #3
  %68 = add i32 %.0103, 1
  br label %76

69:                                               ; preds = %60
  %70 = getelementptr inbounds i8, ptr %1, i64 72
  %71 = load i32, ptr %70, align 4, !tbaa !16
  %72 = add i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !16
  %73 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef %2, i32 noundef 4) #3
  %74 = icmp eq i32 %73, 1
  %75 = zext i1 %74 to i32
  tail call void @libxsmm_generator_initialize_avx_mask(ptr noundef nonnull %0, i32 noundef %71, i32 noundef %18, i32 noundef %75) #3
  br label %76

76:                                               ; preds = %47, %.fold.split117, %69, %.fold.split115, %46
  %.0105 = phi i32 [ %.0103, %.fold.split115 ], [ %.0103, %.fold.split117 ], [ %71, %69 ], [ 0, %46 ], [ %.0104, %47 ]
  %.1 = phi i32 [ %59, %.fold.split115 ], [ %68, %.fold.split117 ], [ %.0103, %69 ], [ %.0103, %46 ], [ %.0103, %47 ]
  %77 = zext i1 %19 to i32
  %78 = zext i1 %17 to i32
  store i32 %.1, ptr %14, align 4, !tbaa !11
  store i32 %.0104, ptr %6, align 4, !tbaa !17
  store i32 %78, ptr %5, align 4, !tbaa !17
  store i32 %.0105, ptr %8, align 4, !tbaa !17
  store i32 %77, ptr %7, align 4, !tbaa !17
  ret void
}

declare void @libxsmm_generator_initialize_avx512_mask(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_generator_initialize_avx_mask(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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, !7, i64 480}
!6 = !{!"libxsmm_mateltwise_kernel_config_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !8, i64 512}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!6, !7, i64 492}
!11 = !{!6, !7, i64 76}
!12 = !{!13, !7, i64 28}
!13 = !{!"libxsmm_generated_code", !14, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!6, !7, i64 112}
!16 = !{!6, !7, i64 72}
!17 = !{!7, !7, i64 0}


; Effective O3 passes: ConstantMergePass,CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass