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

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

@__func__.libxsmm_generator_transform_x86_microkernel = external hidden unnamed_addr constant [44 x i8], align 1
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_x86_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %13 = alloca %struct.libxsmm_meltw_descriptor, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %14, i32 0, i32 6
  %16 = load i32, ptr %15, align 4, !tbaa !9
  %17 = icmp uge i32 %16, 1101
  br i1 %17, label %18, label %23

18:                                               ; preds = %5
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = icmp ult i32 %21, 1999
  br i1 %22, label %93, label %23

23:                                               ; preds = %18, %5
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %24, i32 0, i32 6
  %26 = load i32, ptr %25, align 4, !tbaa !9
  %27 = icmp uge i32 %26, 1051
  br i1 %27, label %28, label %99

28:                                               ; preds = %23
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = icmp ult i32 %31, 1101
  br i1 %32, label %33, label %99

33:                                               ; preds = %28
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %34, i32 0, i32 10
  %36 = load i16, ptr %35, align 1, !tbaa !12
  %37 = zext i16 %36 to i32
  %38 = icmp eq i32 %37, 54
  br i1 %38, label %69, label %39

39:                                               ; preds = %33
  %40 = load ptr, ptr %10, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %40, i32 0, i32 10
  %42 = load i16, ptr %41, align 1, !tbaa !12
  %43 = zext i16 %42 to i32
  %44 = icmp eq i32 %43, 57
  br i1 %44, label %69, label %45

45:                                               ; preds = %39
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %46, i32 0, i32 10
  %48 = load i16, ptr %47, align 1, !tbaa !12
  %49 = zext i16 %48 to i32
  %50 = icmp eq i32 %49, 55
  br i1 %50, label %69, label %51

51:                                               ; preds = %45
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %52, i32 0, i32 10
  %54 = load i16, ptr %53, align 1, !tbaa !12
  %55 = zext i16 %54 to i32
  %56 = icmp eq i32 %55, 71
  br i1 %56, label %69, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr %10, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %58, i32 0, i32 10
  %60 = load i16, ptr %59, align 1, !tbaa !12
  %61 = zext i16 %60 to i32
  %62 = icmp eq i32 %61, 74
  br i1 %62, label %69, label %63

63:                                               ; preds = %57
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %64, i32 0, i32 10
  %66 = load i16, ptr %65, align 1, !tbaa !12
  %67 = zext i16 %66 to i32
  %68 = icmp eq i32 %67, 72
  br i1 %68, label %69, label %99

69:                                               ; preds = %63, %57, %51, %45, %39, %33
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %70, i32 noundef 0)
  %72 = icmp eq i32 10, %71
  br i1 %72, label %73, label %77

73:                                               ; preds = %69
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %74, i32 noundef 3)
  %76 = icmp eq i32 10, %75
  br i1 %76, label %93, label %77

77:                                               ; preds = %73, %69
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %78, i32 noundef 0)
  %80 = icmp eq i32 3, %79
  br i1 %80, label %81, label %85

81:                                               ; preds = %77
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %82, i32 noundef 3)
  %84 = icmp eq i32 3, %83
  br i1 %84, label %93, label %85

85:                                               ; preds = %81, %77
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %86, i32 noundef 0)
  %88 = icmp eq i32 2, %87
  br i1 %88, label %89, label %99

89:                                               ; preds = %85
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %90, i32 noundef 3)
  %92 = icmp eq i32 2, %91
  br i1 %92, label %93, label %99

93:                                               ; preds = %89, %81, %73, %18
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = load ptr, ptr %8, align 8, !tbaa !5
  %97 = load ptr, ptr %9, align 8, !tbaa !5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_transform_avx512_microkernel(ptr noundef %94, ptr noundef %95, ptr noundef %96, ptr noundef %97, ptr noundef %98)
  br label %158

99:                                               ; preds = %89, %85, %63, %28, %23
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %100, i32 0, i32 6
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp uge i32 %102, 1051
  br i1 %103, label %104, label %124

104:                                              ; preds = %99
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %106, align 4, !tbaa !9
  %108 = icmp ult i32 %107, 1101
  br i1 %108, label %109, label %124

109:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %110 = load ptr, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %110, i32 0, i32 6
  %112 = load i32, ptr %111, align 4, !tbaa !9
  store i32 %112, ptr %11, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 516, ptr %12) #4
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 4 %113, i64 516, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #4
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %13, ptr align 1 %114, i64 32, i1 false), !tbaa.struct !18
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %115, i32 0, i32 6
  store i32 1006, ptr %116, align 4, !tbaa !9
  %117 = load ptr, ptr %6, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_update_micro_kernel_config_dtype_aluinstr(ptr noundef %117, ptr noundef %12, ptr noundef %13)
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = load ptr, ptr %8, align 8, !tbaa !5
  call void @libxsmm_generator_transform_avx_microkernel(ptr noundef %118, ptr noundef %119, ptr noundef %120, ptr noundef %12, ptr noundef %13)
  %121 = load i32, ptr %11, align 4, !tbaa !15
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %122, i32 0, i32 6
  store i32 %121, ptr %123, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 516, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %157

124:                                              ; preds = %104, %99
  %125 = load ptr, ptr %6, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %125, i32 0, i32 6
  %127 = load i32, ptr %126, align 4, !tbaa !9
  %128 = icmp uge i32 %127, 1005
  br i1 %128, label %129, label %135

129:                                              ; preds = %124
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = load ptr, ptr %8, align 8, !tbaa !5
  %133 = load ptr, ptr %9, align 8, !tbaa !5
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_transform_avx_microkernel(ptr noundef %130, ptr noundef %131, ptr noundef %132, ptr noundef %133, ptr noundef %134)
  br label %156

135:                                              ; preds = %124
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = icmp uge i32 %138, 1002
  br i1 %139, label %140, label %146

140:                                              ; preds = %135
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = load ptr, ptr %8, align 8, !tbaa !5
  %144 = load ptr, ptr %9, align 8, !tbaa !5
  %145 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_transform_sse_microkernel(ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145)
  br label %155

146:                                              ; preds = %135
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %149 = icmp ult i32 1, %148
  br i1 %149, label %150, label %152

150:                                              ; preds = %146
  %151 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !15
  br label %153

152:                                              ; preds = %146
  br label %153

153:                                              ; preds = %152, %150
  %154 = phi i32 [ %151, %150 ], [ 1, %152 ]
  call void @libxsmm_handle_error(ptr noundef %147, i32 noundef 90000, ptr noundef @__func__.libxsmm_generator_transform_x86_microkernel, ptr noundef @.str, i32 noundef 52, i32 noundef %154)
  br label %158

155:                                              ; preds = %140
  br label %156

156:                                              ; preds = %155, %129
  br label %157

157:                                              ; preds = %156, %109
  br label %158

158:                                              ; preds = %157, %153, %93
  ret void
}

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

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

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

; 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) #3

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

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

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

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

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

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


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

%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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>

@__func__.libxsmm_generator_transform_x86_microkernel = external hidden unnamed_addr constant [44 x i8], align 1
@.str = external hidden unnamed_addr constant [93 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_x86_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #0 {
  %6 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %7 = alloca %struct.libxsmm_meltw_descriptor, align 1
  %8 = getelementptr inbounds i8, ptr %0, i64 28
  %9 = load i32, ptr %8, align 4, !tbaa !5
  %10 = add i32 %9, -1101
  %or.cond = icmp ult i32 %10, 898
  br i1 %or.cond, label %34, label %11

11:                                               ; preds = %5
  %12 = add i32 %9, -1051
  %or.cond49 = icmp ult i32 %12, 50
  br i1 %or.cond49, label %13, label %35

13:                                               ; preds = %11
  %14 = getelementptr inbounds i8, ptr %4, i64 29
  %15 = load i16, ptr %14, align 1, !tbaa !11
  switch i16 %15, label %35 [
    i16 54, label %16
    i16 57, label %16
    i16 55, label %16
    i16 71, label %16
    i16 74, label %16
    i16 72, label %16
  ]

16:                                               ; preds = %13, %13, %13, %13, %13, %13
  %17 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 0) #4
  %18 = icmp eq i32 %17, 10
  br i1 %18, label %19, label %22

19:                                               ; preds = %16
  %20 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 3) #4
  %21 = icmp eq i32 %20, 10
  br i1 %21, label %34, label %22

22:                                               ; preds = %19, %16
  %23 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 0) #4
  %24 = icmp eq i32 %23, 3
  br i1 %24, label %25, label %28

25:                                               ; preds = %22
  %26 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 3) #4
  %27 = icmp eq i32 %26, 3
  br i1 %27, label %34, label %28

28:                                               ; preds = %25, %22
  %29 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 0) #4
  %30 = icmp eq i32 %29, 2
  br i1 %30, label %31, label %35

31:                                               ; preds = %28
  %32 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %4, i32 noundef 3) #4
  %33 = icmp eq i32 %32, 2
  br i1 %33, label %34, label %35

34:                                               ; preds = %5, %31, %25, %19
  tail call void @libxsmm_generator_transform_avx512_microkernel(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4
  br label %50

35:                                               ; preds = %13, %31, %28, %11
  %36 = load i32, ptr %8, align 4, !tbaa !5
  %37 = add i32 %36, -1051
  %or.cond50 = icmp ult i32 %37, 50
  br i1 %or.cond50, label %38, label %39

38:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 516, ptr nonnull %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(516) %6, ptr noundef nonnull align 4 dereferenceable(516) %3, i64 516, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(32) %7, ptr noundef nonnull align 1 dereferenceable(32) %4, i64 32, i1 false), !tbaa.struct !17
  store i32 1006, ptr %8, align 4, !tbaa !5
  call void @libxsmm_generator_mateltwise_update_micro_kernel_config_dtype_aluinstr(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  call void @libxsmm_generator_transform_avx_microkernel(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef nonnull %6, ptr noundef nonnull %7) #4
  store i32 %36, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 516, ptr nonnull %6) #4
  br label %50

39:                                               ; preds = %35
  %40 = icmp ugt i32 %36, 1004
  br i1 %40, label %41, label %42

41:                                               ; preds = %39
  tail call void @libxsmm_generator_transform_avx_microkernel(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4
  br label %50

42:                                               ; preds = %39
  %43 = icmp ugt i32 %36, 1001
  br i1 %43, label %44, label %45

44:                                               ; preds = %42
  tail call void @libxsmm_generator_transform_sse_microkernel(ptr noundef nonnull %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #4
  br label %50

45:                                               ; preds = %42
  %46 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %47 = icmp ugt i32 %46, 1
  %48 = load i32, ptr @libxsmm_verbosity, align 4
  %49 = select i1 %47, i32 %48, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_generator_transform_x86_microkernel, ptr noundef nonnull @.str, i32 noundef 52, i32 noundef %49) #4
  br label %50

50:                                               ; preds = %38, %44, %41, %45, %34
  ret void
}

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

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

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

; 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) #3

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

declare void @libxsmm_generator_transform_avx_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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) #2

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

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

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


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