; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_transform_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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%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 }

@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel.perm_table = external hidden unnamed_addr constant [16 x i16], align 16

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

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #1

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) #1

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

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

declare void @libxsmm_x86_instruction_full_vec_load_of_constants(ptr noundef, ptr noundef, ptr noundef, i8 noundef signext, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [16 x i16], align 16
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %23 = load ptr, ptr %16, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %23, i32 0, i32 2
  %25 = load i32, ptr %24, align 1, !tbaa !11
  %26 = mul i32 %25, 4
  store i32 %26, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %27 = load ptr, ptr %16, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %27, i32 0, i32 3
  %29 = load i32, ptr %28, align 1, !tbaa !14
  %30 = mul i32 %29, 4
  store i32 %30, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  store i32 31, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 16, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %22, ptr align 16 @__const.libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel.perm_table, i64 32, i1 false)
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds [16 x i16], ptr %22, i64 0, i64 0
  %33 = load ptr, ptr %15, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %33, i32 0, i32 128
  %35 = load i8, ptr %34, align 4, !tbaa !15
  %36 = load i32, ptr %20, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_full_vec_load_of_constants(ptr noundef %31, ptr noundef %32, ptr noundef @.str.15, i8 noundef signext %35, i32 noundef %36)
  br label %37

37:                                               ; preds = %44, %8
  %38 = load i32, ptr %21, align 4, !tbaa !9
  %39 = mul i32 %38, 4
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %40, i32 0, i32 0
  %42 = load i32, ptr %41, align 1, !tbaa !17
  %43 = icmp ugt i32 %39, %42
  br i1 %43, label %44, label %47

44:                                               ; preds = %37
  %45 = load i32, ptr %21, align 4, !tbaa !9
  %46 = add i32 %45, -1
  store i32 %46, ptr %21, align 4, !tbaa !9
  br label %37, !llvm.loop !18

47:                                               ; preds = %37
  br label %48

48:                                               ; preds = %56, %47
  %49 = load ptr, ptr %16, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 1, !tbaa !17
  %52 = load i32, ptr %21, align 4, !tbaa !9
  %53 = mul i32 %52, 4
  %54 = urem i32 %51, %53
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %59

56:                                               ; preds = %48
  %57 = load i32, ptr %21, align 4, !tbaa !9
  %58 = add i32 %57, -1
  store i32 %58, ptr %21, align 4, !tbaa !9
  br label %48, !llvm.loop !20

59:                                               ; preds = %48
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %15, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %61, i32 0, i32 14
  %63 = load i32, ptr %62, align 4, !tbaa !21
  %64 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %60, i32 noundef %63, i32 noundef %64, i64 noundef 0)
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %65, ptr noundef %66)
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %67, i32 noundef 30000, i32 noundef %68, i64 noundef 4)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load ptr, ptr %15, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %70, i32 0, i32 14
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %69, i32 noundef %72, i32 noundef %73, i64 noundef 0)
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %74, ptr noundef %75)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load i32, ptr %13, align 4, !tbaa !9
  %78 = load i32, ptr %21, align 4, !tbaa !9
  %79 = mul i32 4, %78
  %80 = zext i32 %79 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %76, i32 noundef 30000, i32 noundef %77, i64 noundef %80)
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %104, %59
  %82 = load i32, ptr %19, align 4, !tbaa !9
  %83 = load i32, ptr %21, align 4, !tbaa !9
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %85, label %107

85:                                               ; preds = %81
  %86 = load ptr, ptr %9, align 8, !tbaa !5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %87, i32 0, i32 6
  %89 = load i32, ptr %88, align 4, !tbaa !22
  %90 = load ptr, ptr %15, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %90, i32 0, i32 6
  %92 = load i32, ptr %91, align 4, !tbaa !24
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = load i32, ptr %19, align 4, !tbaa !9
  %95 = mul i32 %94, 16
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %96, i32 0, i32 2
  %98 = load i32, ptr %97, align 4, !tbaa !25
  %99 = mul i32 %95, %98
  %100 = load ptr, ptr %15, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %100, i32 0, i32 128
  %102 = load i8, ptr %101, align 4, !tbaa !15
  %103 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %86, i32 noundef %89, i32 noundef %92, i32 noundef %93, i32 noundef 127, i32 noundef 0, i32 noundef %99, i8 noundef signext %102, i32 noundef %103, i32 noundef 0, i32 noundef 1, i32 noundef 0)
  br label %104

104:                                              ; preds = %85
  %105 = load i32, ptr %19, align 4, !tbaa !9
  %106 = add i32 %105, 1
  store i32 %106, ptr %19, align 4, !tbaa !9
  br label %81, !llvm.loop !26

107:                                              ; preds = %81
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %120, %107
  %109 = load i32, ptr %19, align 4, !tbaa !9
  %110 = load i32, ptr %21, align 4, !tbaa !9
  %111 = icmp ult i32 %109, %110
  br i1 %111, label %112, label %123

112:                                              ; preds = %108
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load ptr, ptr %15, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %114, i32 0, i32 128
  %116 = load i8, ptr %115, align 4, !tbaa !15
  %117 = load i32, ptr %19, align 4, !tbaa !9
  %118 = load i32, ptr %20, align 4, !tbaa !9
  %119 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %113, i32 noundef -259709299, i8 noundef signext %116, i32 noundef %117, i32 noundef %118, i32 noundef %119, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024)
  br label %120

120:                                              ; preds = %112
  %121 = load i32, ptr %19, align 4, !tbaa !9
  %122 = add i32 %121, 1
  store i32 %122, ptr %19, align 4, !tbaa !9
  br label %108, !llvm.loop !27

123:                                              ; preds = %108
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %148, %123
  %125 = load i32, ptr %19, align 4, !tbaa !9
  %126 = load i32, ptr %21, align 4, !tbaa !9
  %127 = icmp ult i32 %125, %126
  br i1 %127, label %128, label %151

128:                                              ; preds = %124
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %130, i32 0, i32 6
  %132 = load i32, ptr %131, align 4, !tbaa !22
  %133 = load ptr, ptr %15, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %133, i32 0, i32 9
  %135 = load i32, ptr %134, align 4, !tbaa !28
  %136 = load i32, ptr %12, align 4, !tbaa !9
  %137 = load i32, ptr %19, align 4, !tbaa !9
  %138 = load i32, ptr %18, align 4, !tbaa !9
  %139 = mul i32 %137, %138
  %140 = load ptr, ptr %15, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %140, i32 0, i32 5
  %142 = load i32, ptr %141, align 4, !tbaa !29
  %143 = mul i32 %139, %142
  %144 = load ptr, ptr %15, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %144, i32 0, i32 128
  %146 = load i8, ptr %145, align 4, !tbaa !15
  %147 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %129, i32 noundef %132, i32 noundef %135, i32 noundef %136, i32 noundef 127, i32 noundef 0, i32 noundef %143, i8 noundef signext %146, i32 noundef %147, i32 noundef 0, i32 noundef 1, i32 noundef 1)
  br label %148

148:                                              ; preds = %128
  %149 = load i32, ptr %19, align 4, !tbaa !9
  %150 = add i32 %149, 1
  store i32 %150, ptr %19, align 4, !tbaa !9
  br label %124, !llvm.loop !30

151:                                              ; preds = %124
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load i32, ptr %21, align 4, !tbaa !9
  %155 = zext i32 %154 to i64
  %156 = mul nsw i64 16, %155
  %157 = load ptr, ptr %15, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %157, i32 0, i32 2
  %159 = load i32, ptr %158, align 4, !tbaa !25
  %160 = zext i32 %159 to i64
  %161 = mul nsw i64 %156, %160
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %152, i32 noundef 30000, i32 noundef %153, i64 noundef %161)
  %162 = load ptr, ptr %9, align 8, !tbaa !5
  %163 = load i32, ptr %12, align 4, !tbaa !9
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = load i32, ptr %21, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = mul nsw i64 %165, %167
  %169 = load ptr, ptr %15, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %169, i32 0, i32 5
  %171 = load i32, ptr %170, align 4, !tbaa !29
  %172 = zext i32 %171 to i64
  %173 = mul nsw i64 %168, %172
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %162, i32 noundef 30000, i32 noundef %163, i64 noundef %173)
  %174 = load ptr, ptr %9, align 8, !tbaa !5
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  %177 = load i32, ptr %13, align 4, !tbaa !9
  %178 = load ptr, ptr %16, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %178, i32 0, i32 0
  %180 = load i32, ptr %179, align 1, !tbaa !17
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %174, ptr noundef %175, ptr noundef %176, i32 noundef %177, i32 noundef %180)
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = load i32, ptr %11, align 4, !tbaa !9
  %183 = load i32, ptr %17, align 4, !tbaa !9
  %184 = load ptr, ptr %16, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %184, i32 0, i32 0
  %186 = load i32, ptr %185, align 1, !tbaa !17
  %187 = mul i32 4, %186
  %188 = sub i32 %183, %187
  %189 = zext i32 %188 to i64
  %190 = load ptr, ptr %15, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %190, i32 0, i32 2
  %192 = load i32, ptr %191, align 4, !tbaa !25
  %193 = zext i32 %192 to i64
  %194 = mul nsw i64 %189, %193
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %181, i32 noundef 30000, i32 noundef %182, i64 noundef %194)
  %195 = load ptr, ptr %9, align 8, !tbaa !5
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = load i32, ptr %18, align 4, !tbaa !9
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %198, i32 0, i32 0
  %200 = load i32, ptr %199, align 1, !tbaa !17
  %201 = udiv i32 %200, 4
  %202 = mul i32 %197, %201
  %203 = sub i32 %202, 16
  %204 = zext i32 %203 to i64
  %205 = load ptr, ptr %15, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %205, i32 0, i32 5
  %207 = load i32, ptr %206, align 4, !tbaa !29
  %208 = zext i32 %207 to i64
  %209 = mul nsw i64 %204, %208
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %195, i32 noundef 30008, i32 noundef %196, i64 noundef %209)
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = load ptr, ptr %10, align 8, !tbaa !5
  %212 = load ptr, ptr %15, align 8, !tbaa !5
  %213 = load i32, ptr %14, align 4, !tbaa !9
  %214 = load ptr, ptr %16, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %214, i32 0, i32 1
  %216 = load i32, ptr %215, align 1, !tbaa !31
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %210, ptr noundef %211, ptr noundef %212, i32 noundef %213, i32 noundef %216)
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  ret void
}

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 8}
!12 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !13, i64 29, !7, i64 31}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !10, i64 12}
!15 = !{!16, !7, i64 512}
!16 = !{!"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}
!17 = !{!12, !10, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!16, !10, i64 56}
!22 = !{!23, !10, i64 28}
!23 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!24 = !{!16, !10, i64 24}
!25 = !{!16, !10, i64 8}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = !{!16, !10, i64 36}
!29 = !{!16, !10, i64 20}
!30 = distinct !{!30, !19}
!31 = !{!12, !10, i64 4}


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

@.str.15 = external hidden unnamed_addr constant [12 x i8], align 1
@__const.libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel.perm_table = external hidden unnamed_addr constant [16 x i16], align 16

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

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #1

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

declare void @libxsmm_x86_instruction_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @libxsmm_x86_instruction_full_vec_load_of_constants(ptr noundef, ptr noundef, ptr noundef, i8 noundef signext, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #3 {
  %9 = alloca [16 x i16], align 16
  %10 = getelementptr inbounds i8, ptr %7, i64 8
  %11 = load i32, ptr %10, align 1, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %7, i64 12
  %13 = load i32, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %9, ptr noundef nonnull align 16 dereferenceable(32) @__const.libxsmm_generator_transform_vnni4_to_vnni4t_16bit_avx512_vl256_microkernel.perm_table, i64 32, i1 false)
  %14 = getelementptr inbounds i8, ptr %6, i64 512
  %15 = load i8, ptr %14, align 4, !tbaa !12
  call void @libxsmm_x86_instruction_full_vec_load_of_constants(ptr noundef %0, ptr noundef nonnull %9, ptr noundef nonnull @.str.15, i8 noundef signext %15, i32 noundef 31) #4
  %16 = load i32, ptr %7, align 1, !tbaa !14
  br label %17

17:                                               ; preds = %17, %8
  %.0 = phi i32 [ 16, %8 ], [ %20, %17 ]
  %18 = shl i32 %.0, 2
  %19 = icmp ugt i32 %18, %16
  %20 = add i32 %.0, -1
  br i1 %19, label %17, label %.preheader88, !llvm.loop !15

.preheader88:                                     ; preds = %17, %.preheader88
  %.1 = phi i32 [ %23, %.preheader88 ], [ %.0, %17 ]
  %21 = shl i32 %.1, 2
  %22 = urem i32 %16, %21
  %.not = icmp eq i32 %22, 0
  %23 = add i32 %.1, -1
  br i1 %.not, label %24, label %.preheader88, !llvm.loop !17

24:                                               ; preds = %.preheader88
  %25 = shl i32 %13, 2
  %26 = getelementptr inbounds i8, ptr %6, i64 56
  %27 = load i32, ptr %26, align 4, !tbaa !18
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %27, i32 noundef %5, i64 noundef 0) #4
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #4
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %5, i64 noundef 4) #4
  %28 = load i32, ptr %26, align 4, !tbaa !18
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %28, i32 noundef %4, i64 noundef 0) #4
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #4
  %29 = zext i32 %21 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %4, i64 noundef %29) #4
  %.not95 = icmp eq i32 %.1, 0
  br i1 %.not95, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %24
  %30 = getelementptr inbounds i8, ptr %0, i64 28
  %31 = getelementptr inbounds i8, ptr %6, i64 24
  %32 = getelementptr inbounds i8, ptr %6, i64 8
  br label %33

33:                                               ; preds = %.lr.ph, %33
  %.08590 = phi i32 [ 0, %.lr.ph ], [ %40, %33 ]
  %34 = load i32, ptr %30, align 4, !tbaa !19
  %35 = load i32, ptr %31, align 4, !tbaa !22
  %36 = shl i32 %.08590, 4
  %37 = load i32, ptr %32, align 4, !tbaa !23
  %38 = mul i32 %36, %37
  %39 = load i8, ptr %14, align 4, !tbaa !12
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %34, i32 noundef %35, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %38, i8 noundef signext %39, i32 noundef %.08590, i32 noundef 0, i32 noundef 1, i32 noundef 0) #4
  %40 = add nuw i32 %.08590, 1
  %41 = icmp ult i32 %40, %.1
  br i1 %41, label %33, label %.lr.ph92, !llvm.loop !24

.lr.ph94:                                         ; preds = %.lr.ph92
  %42 = getelementptr inbounds i8, ptr %0, i64 28
  %43 = getelementptr inbounds i8, ptr %6, i64 36
  %44 = getelementptr inbounds i8, ptr %6, i64 20
  br label %48

.lr.ph92:                                         ; preds = %33, %.lr.ph92
  %.18691 = phi i32 [ %46, %.lr.ph92 ], [ 0, %33 ]
  %45 = load i8, ptr %14, align 4, !tbaa !12
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -259709299, i8 noundef signext %45, i32 noundef %.18691, i32 noundef 31, i32 noundef %.18691, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024) #4
  %46 = add nuw i32 %.18691, 1
  %47 = icmp ult i32 %46, %.1
  br i1 %47, label %.lr.ph92, label %.lr.ph94, !llvm.loop !25

48:                                               ; preds = %.lr.ph94, %48
  %.293 = phi i32 [ 0, %.lr.ph94 ], [ %55, %48 ]
  %49 = load i32, ptr %42, align 4, !tbaa !19
  %50 = load i32, ptr %43, align 4, !tbaa !26
  %51 = mul i32 %.293, %25
  %52 = load i32, ptr %44, align 4, !tbaa !27
  %53 = mul i32 %51, %52
  %54 = load i8, ptr %14, align 4, !tbaa !12
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %49, i32 noundef %50, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef %53, i8 noundef signext %54, i32 noundef %.293, i32 noundef 0, i32 noundef 1, i32 noundef 1) #4
  %55 = add nuw i32 %.293, 1
  %56 = icmp ult i32 %55, %.1
  br i1 %56, label %48, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %48, %24
  %57 = zext i32 %.1 to i64
  %58 = shl nuw nsw i64 %57, 4
  %59 = getelementptr inbounds i8, ptr %6, i64 8
  %60 = load i32, ptr %59, align 4, !tbaa !23
  %61 = zext i32 %60 to i64
  %62 = mul nuw nsw i64 %58, %61
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %62) #4
  %63 = zext i32 %25 to i64
  %64 = mul nuw nsw i64 %57, %63
  %65 = getelementptr inbounds i8, ptr %6, i64 20
  %66 = load i32, ptr %65, align 4, !tbaa !27
  %67 = zext i32 %66 to i64
  %68 = mul nuw nsw i64 %64, %67
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %68) #4
  %69 = load i32, ptr %7, align 1, !tbaa !14
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %4, i32 noundef %69) #4
  %70 = load i32, ptr %7, align 1, !tbaa !14
  %71 = sub i32 %11, %70
  %72 = shl i32 %71, 2
  %73 = zext i32 %72 to i64
  %74 = load i32, ptr %59, align 4, !tbaa !23
  %75 = zext i32 %74 to i64
  %76 = mul nuw nsw i64 %73, %75
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %76) #4
  %77 = load i32, ptr %7, align 1, !tbaa !14
  %78 = lshr i32 %77, 2
  %79 = mul i32 %78, %25
  %80 = add i32 %79, -16
  %81 = zext i32 %80 to i64
  %82 = load i32, ptr %65, align 4, !tbaa !27
  %83 = zext i32 %82 to i64
  %84 = mul nuw nsw i64 %81, %83
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef %3, i64 noundef %84) #4
  %85 = getelementptr inbounds i8, ptr %7, i64 4
  %86 = load i32, ptr %85, align 1, !tbaa !29
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %5, i32 noundef %86) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #4
  ret void
}

attributes #0 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 8}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 12}
!12 = !{!13, !8, i64 512}
!13 = !{!"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}
!14 = !{!6, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = !{!13, !7, i64 56}
!19 = !{!20, !7, i64 28}
!20 = !{!"libxsmm_generated_code", !21, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!13, !7, i64 24}
!23 = !{!13, !7, i64 8}
!24 = distinct !{!24, !16}
!25 = distinct !{!25, !16}
!26 = !{!13, !7, i64 36}
!27 = !{!13, !7, i64 20}
!28 = distinct !{!28, !16}
!29 = !{!6, !7, i64 4}


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