; 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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%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 }

; 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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni2_08bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8) #2 {
  %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 i32, align 4
  %16 = alloca i32, align 4
  %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
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !9
  store i32 %5, ptr %15, align 4, !tbaa !9
  store i32 %6, ptr %16, align 4, !tbaa !9
  store 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
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %22 = load i32, ptr %16, align 4, !tbaa !9
  %23 = udiv i32 %22, 4
  store i32 %23, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  store i32 0, ptr %21, align 4, !tbaa !9
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %50, %9
  %25 = load i32, ptr %19, align 4, !tbaa !9
  %26 = load i32, ptr %16, align 4, !tbaa !9
  %27 = udiv i32 %26, 4
  %28 = icmp ult i32 %25, %27
  br i1 %28, label %29, label %53

29:                                               ; preds = %24
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %32, align 4, !tbaa !11
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = load i32, ptr %19, align 4, !tbaa !9
  %36 = load ptr, ptr %18, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 1, !tbaa !13
  %39 = mul i32 %35, %38
  %40 = mul i32 %39, 4
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %41, i32 0, i32 2
  %43 = load i32, ptr %42, align 4, !tbaa !16
  %44 = mul i32 %40, %43
  %45 = load ptr, ptr %17, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %45, i32 0, i32 128
  %47 = load i8, ptr %46, align 4, !tbaa !18
  %48 = load i32, ptr %19, align 4, !tbaa !9
  %49 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %30, i32 noundef %33, i32 noundef 537138704, i32 noundef %34, i32 noundef 127, i32 noundef 0, i32 noundef %44, i8 noundef signext %47, i32 noundef %48, i32 noundef %49, i32 noundef 1, i32 noundef 0)
  br label %50

50:                                               ; preds = %29
  %51 = load i32, ptr %19, align 4, !tbaa !9
  %52 = add i32 %51, 1
  store i32 %52, ptr %19, align 4, !tbaa !9
  br label %24, !llvm.loop !19

53:                                               ; preds = %24
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  %55 = load i32, ptr %11, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = mul nsw i64 %57, 4
  %59 = load ptr, ptr %17, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %59, i32 0, i32 2
  %61 = load i32, ptr %60, align 4, !tbaa !16
  %62 = zext i32 %61 to i64
  %63 = mul nsw i64 %58, %62
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %54, i32 noundef 30000, i32 noundef %55, i64 noundef %63)
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %150, %53
  %65 = load i32, ptr %19, align 4, !tbaa !9
  %66 = load i32, ptr %16, align 4, !tbaa !9
  %67 = udiv i32 %66, 4
  %68 = icmp ult i32 %65, %67
  br i1 %68, label %69, label %153

69:                                               ; preds = %64
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load ptr, ptr %17, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %71, i32 0, i32 128
  %73 = load i8, ptr %72, align 4, !tbaa !18
  %74 = load i32, ptr %19, align 4, !tbaa !9
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %70, i32 noundef -259709299, i8 noundef signext %73, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024)
  %77 = load i32, ptr %15, align 4, !tbaa !9
  %78 = urem i32 %77, 16
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %80, label %109

80:                                               ; preds = %69
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %105, %80
  %82 = load i32, ptr %21, align 4, !tbaa !9
  %83 = icmp ult i32 %82, 2
  br i1 %83, label %84, label %108

84:                                               ; preds = %81
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load ptr, ptr %17, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %86, i32 0, i32 128
  %88 = load i8, ptr %87, align 4, !tbaa !18
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = load i32, ptr %21, align 4, !tbaa !9
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = mul i32 2, %91
  %93 = add i32 %90, %92
  %94 = mul i32 %93, 2
  %95 = load ptr, ptr %18, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %95, i32 0, i32 3
  %97 = load i32, ptr %96, align 1, !tbaa !21
  %98 = mul i32 %94, %97
  %99 = load ptr, ptr %17, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %99, i32 0, i32 5
  %101 = load i32, ptr %100, align 4, !tbaa !22
  %102 = mul i32 %98, %101
  %103 = load i32, ptr %19, align 4, !tbaa !9
  %104 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_mem_2reg_mask_imm8(ptr noundef %85, i32 noundef -401785541, i8 noundef signext %88, i32 noundef %89, i32 noundef 127, i32 noundef 0, i32 noundef %102, i32 noundef 0, i32 noundef 255, i32 noundef %103, i32 noundef 0, i32 noundef 0, i32 noundef %104)
  br label %105

105:                                              ; preds = %84
  %106 = load i32, ptr %21, align 4, !tbaa !9
  %107 = add i32 %106, 1
  store i32 %107, ptr %21, align 4, !tbaa !9
  br label %81, !llvm.loop !23

108:                                              ; preds = %81
  br label %149

109:                                              ; preds = %69
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %145, %109
  %111 = load i32, ptr %21, align 4, !tbaa !9
  %112 = icmp ult i32 %111, 2
  br i1 %112, label %113, label %148

113:                                              ; preds = %110
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %17, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %115, i32 0, i32 128
  %117 = load i8, ptr %116, align 4, !tbaa !18
  %118 = load i32, ptr %19, align 4, !tbaa !9
  %119 = load i32, ptr %20, align 4, !tbaa !9
  %120 = load i32, ptr %21, align 4, !tbaa !9
  %121 = add i32 %119, %120
  %122 = load i32, ptr %21, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %114, i32 noundef -401785541, i8 noundef signext %117, i32 noundef %118, i32 noundef 255, i32 noundef %121, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef %122)
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %125, align 4, !tbaa !11
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = load i32, ptr %21, align 4, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = mul i32 2, %129
  %131 = add i32 %128, %130
  %132 = mul i32 %131, 2
  %133 = load ptr, ptr %18, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 1, !tbaa !21
  %136 = mul i32 %132, %135
  %137 = load ptr, ptr %17, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %137, i32 0, i32 5
  %139 = load i32, ptr %138, align 4, !tbaa !22
  %140 = mul i32 %136, %139
  %141 = load i32, ptr %20, align 4, !tbaa !9
  %142 = load i32, ptr %21, align 4, !tbaa !9
  %143 = add i32 %141, %142
  %144 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %123, i32 noundef %126, i32 noundef -528017809, i32 noundef %127, i32 noundef 127, i32 noundef 0, i32 noundef %140, i8 noundef signext 121, i32 noundef %143, i32 noundef %144, i32 noundef 0, i32 noundef 1)
  br label %145

145:                                              ; preds = %113
  %146 = load i32, ptr %21, align 4, !tbaa !9
  %147 = add i32 %146, 1
  store i32 %147, ptr %21, align 4, !tbaa !9
  br label %110, !llvm.loop !24

148:                                              ; preds = %110
  br label %149

149:                                              ; preds = %148, %108
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %19, align 4, !tbaa !9
  %152 = add i32 %151, 1
  store i32 %152, ptr %19, align 4, !tbaa !9
  br label %64, !llvm.loop !25

153:                                              ; preds = %64
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load i32, ptr %12, align 4, !tbaa !9
  %156 = load i32, ptr %15, align 4, !tbaa !9
  %157 = zext i32 %156 to i64
  %158 = mul nsw i64 2, %157
  %159 = load ptr, ptr %17, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %159, i32 0, i32 5
  %161 = load i32, ptr %160, align 4, !tbaa !22
  %162 = zext i32 %161 to i64
  %163 = mul nsw i64 %158, %162
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %154, i32 noundef 30000, i32 noundef %155, i64 noundef %163)
  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
}

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 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!14, !10, i64 8}
!14 = !{!"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, !15, i64 27, !15, i64 29, !7, i64 31}
!15 = !{!"short", !7, i64 0}
!16 = !{!17, !10, i64 8}
!17 = !{!"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}
!18 = !{!17, !7, i64 512}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !10, i64 12}
!22 = !{!17, !10, i64 20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}


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

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 #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 #0

declare void @libxsmm_x86_instruction_vec_compute_mem_2reg_mask_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni4_to_vnni2_08bit_avx512_mnblock_micro_kernel(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8) local_unnamed_addr #1 {
  %10 = lshr i32 %6, 2
  %.not = icmp ult i32 %6, 4
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %9
  %11 = getelementptr inbounds i8, ptr %0, i64 28
  %12 = getelementptr inbounds i8, ptr %8, i64 8
  %13 = getelementptr inbounds i8, ptr %7, i64 8
  %14 = getelementptr inbounds i8, ptr %7, i64 512
  br label %15

15:                                               ; preds = %.lr.ph, %15
  %.05863 = phi i32 [ 0, %.lr.ph ], [ %23, %15 ]
  %16 = load i32, ptr %11, align 4, !tbaa !5
  %17 = load i32, ptr %12, align 1, !tbaa !11
  %18 = load i32, ptr %13, align 4, !tbaa !14
  %19 = shl i32 %.05863, 2
  %20 = mul i32 %19, %17
  %21 = mul i32 %20, %18
  %22 = load i8, ptr %14, align 4, !tbaa !16
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %16, i32 noundef 537138704, i32 noundef %1, i32 noundef 127, i32 noundef 0, i32 noundef %21, i8 noundef signext %22, i32 noundef %.05863, i32 noundef %3, i32 noundef 1, i32 noundef 0) #2
  %23 = add nuw nsw i32 %.05863, 1
  %exitcond.not = icmp eq i32 %23, %10
  br i1 %exitcond.not, label %._crit_edge, label %15, !llvm.loop !17

._crit_edge:                                      ; preds = %15, %9
  %24 = zext i32 %5 to i64
  %25 = shl nuw nsw i64 %24, 2
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  %27 = load i32, ptr %26, align 4, !tbaa !14
  %28 = zext i32 %27 to i64
  %29 = mul nuw nsw i64 %25, %28
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %1, i64 noundef %29) #2
  br i1 %.not, label %._crit_edge69, label %.lr.ph68

.lr.ph68:                                         ; preds = %._crit_edge
  %30 = getelementptr inbounds i8, ptr %7, i64 512
  %31 = and i32 %5, 15
  %32 = icmp eq i32 %31, 0
  %33 = getelementptr inbounds i8, ptr %0, i64 28
  %34 = getelementptr inbounds i8, ptr %8, i64 12
  %35 = getelementptr inbounds i8, ptr %7, i64 20
  br i1 %32, label %.preheader.us, label %.preheader61.preheader

.preheader61.preheader:                           ; preds = %.lr.ph68
  %36 = add nuw nsw i32 %10, 1
  br label %.preheader61

.preheader.us:                                    ; preds = %.lr.ph68, %.preheader.us
  %.15966.us = phi i32 [ %50, %.preheader.us ], [ 0, %.lr.ph68 ]
  %37 = load i8, ptr %30, align 4, !tbaa !16
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -259709299, i8 noundef signext %37, i32 noundef %.15966.us, i32 noundef %4, i32 noundef %.15966.us, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024) #2
  %38 = shl i32 %.15966.us, 2
  %39 = load i8, ptr %30, align 4, !tbaa !16
  %40 = load i32, ptr %34, align 1, !tbaa !19
  %41 = mul i32 %40, %38
  %42 = load i32, ptr %35, align 4, !tbaa !20
  %43 = mul i32 %41, %42
  tail call void @libxsmm_x86_instruction_vec_compute_mem_2reg_mask_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %39, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %43, i32 noundef 0, i32 noundef 255, i32 noundef %.15966.us, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
  %44 = load i8, ptr %30, align 4, !tbaa !16
  %45 = or disjoint i32 %38, 2
  %46 = load i32, ptr %34, align 1, !tbaa !19
  %47 = mul i32 %46, %45
  %48 = load i32, ptr %35, align 4, !tbaa !20
  %49 = mul i32 %47, %48
  tail call void @libxsmm_x86_instruction_vec_compute_mem_2reg_mask_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %44, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %49, i32 noundef 0, i32 noundef 255, i32 noundef %.15966.us, i32 noundef 0, i32 noundef 0, i32 noundef 1) #2
  %50 = add nuw nsw i32 %.15966.us, 1
  %exitcond73.not = icmp eq i32 %50, %10
  br i1 %exitcond73.not, label %._crit_edge69, label %.preheader.us, !llvm.loop !21

.preheader61:                                     ; preds = %.preheader61.preheader, %.preheader61
  %.15966 = phi i32 [ %66, %.preheader61 ], [ 0, %.preheader61.preheader ]
  %51 = load i8, ptr %30, align 4, !tbaa !16
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -259709299, i8 noundef signext %51, i32 noundef %.15966, i32 noundef %4, i32 noundef %.15966, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1024) #2
  %52 = shl i32 %.15966, 2
  %53 = load i8, ptr %30, align 4, !tbaa !16
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %53, i32 noundef %.15966, i32 noundef 255, i32 noundef %10, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 0) #2
  %54 = load i32, ptr %33, align 4, !tbaa !5
  %55 = load i32, ptr %34, align 1, !tbaa !19
  %56 = mul i32 %55, %52
  %57 = load i32, ptr %35, align 4, !tbaa !20
  %58 = mul i32 %56, %57
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %54, i32 noundef -528017809, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %58, i8 noundef signext 121, i32 noundef %10, i32 noundef %3, i32 noundef 0, i32 noundef 1) #2
  %59 = load i8, ptr %30, align 4, !tbaa !16
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef -401785541, i8 noundef signext %59, i32 noundef %.15966, i32 noundef 255, i32 noundef %36, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef 1) #2
  %60 = load i32, ptr %33, align 4, !tbaa !5
  %61 = or disjoint i32 %52, 2
  %62 = load i32, ptr %34, align 1, !tbaa !19
  %63 = mul i32 %62, %61
  %64 = load i32, ptr %35, align 4, !tbaa !20
  %65 = mul i32 %63, %64
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %60, i32 noundef -528017809, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef %65, i8 noundef signext 121, i32 noundef %36, i32 noundef %3, i32 noundef 0, i32 noundef 1) #2
  %66 = add nuw nsw i32 %.15966, 1
  %exitcond72.not = icmp eq i32 %66, %10
  br i1 %exitcond72.not, label %._crit_edge69, label %.preheader61, !llvm.loop !21

._crit_edge69:                                    ; preds = %.preheader61, %.preheader.us, %._crit_edge
  %67 = shl nuw nsw i64 %24, 1
  %68 = getelementptr inbounds i8, ptr %7, i64 20
  %69 = load i32, ptr %68, align 4, !tbaa !20
  %70 = zext i32 %69 to i64
  %71 = mul nuw nsw i64 %67, %70
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %71) #2
  ret void
}

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 = { 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, !10, i64 28}
!6 = !{!"libxsmm_generated_code", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, 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, !8, i64 24, !8, i64 25, !8, i64 26, !13, i64 27, !13, i64 29, !8, i64 31}
!13 = !{!"short", !8, i64 0}
!14 = !{!15, !10, i64 8}
!15 = !{!"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, !8, i64 512}
!16 = !{!15, !8, i64 512}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !10, i64 12}
!20 = !{!15, !10, i64 20}
!21 = distinct !{!21, !18}


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