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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_matequation_kernel_config_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [32 x i32], i32, i32, i32, i32, ptr, ptr, i32, i32, i32, [64 x i32], [64 x i32], %struct.libxsmm_mateltwise_kernel_config_struct, %struct.libxsmm_micro_kernel_config }
%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_micro_kernel_config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [2 x %struct.libxsmm_blocking_info_t], %struct.libxsmm_tile_config, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef, i32 noundef) #0

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

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

declare void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef) #2

declare void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_mateqn_compute_binary_op_2d_reg_block(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) #0 {
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %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 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 i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i8, align 1
  store ptr %0, ptr %10, align 8, !tbaa !5
  store ptr %1, ptr %11, align 8, !tbaa !5
  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 i32 %7, ptr %17, align 4, !tbaa !9
  store i32 %8, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  %30 = load ptr, ptr %11, align 8, !tbaa !5
  %31 = load i32, ptr %14, align 4, !tbaa !9
  %32 = call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %30, i32 noundef %31)
  store i32 %32, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %33, i32 noundef %34)
  store i32 %35, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %36 = load ptr, ptr %11, align 8, !tbaa !5
  %37 = load i32, ptr %16, align 4, !tbaa !9
  %38 = call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %36, i32 noundef %37)
  store i32 %38, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %39 = load i32, ptr %12, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 0
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 1, i32 0
  store i32 %42, ptr %28, align 4, !tbaa !9
  %43 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %43, label %79 [
    i32 1, label %44
    i32 2, label %49
    i32 3, label %54
    i32 4, label %59
    i32 9, label %64
    i32 10, label %69
    i32 7, label %74
  ]

44:                                               ; preds = %9
  %45 = load i32, ptr %28, align 4, !tbaa !9
  %46 = icmp ugt i32 %45, 0
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, i32 814028376, i32 805574232
  store i32 %48, ptr %27, align 4, !tbaa !9
  br label %80

49:                                               ; preds = %9
  %50 = load i32, ptr %28, align 4, !tbaa !9
  %51 = icmp ugt i32 %50, 0
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, i32 814028377, i32 805574233
  store i32 %53, ptr %27, align 4, !tbaa !9
  br label %80

54:                                               ; preds = %9
  %55 = load i32, ptr %28, align 4, !tbaa !9
  %56 = icmp ugt i32 %55, 0
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i32 814028380, i32 805574236
  store i32 %58, ptr %27, align 4, !tbaa !9
  br label %80

59:                                               ; preds = %9
  %60 = load i32, ptr %28, align 4, !tbaa !9
  %61 = icmp ugt i32 %60, 0
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, i32 814028382, i32 805574238
  store i32 %63, ptr %27, align 4, !tbaa !9
  br label %80

64:                                               ; preds = %9
  %65 = load i32, ptr %28, align 4, !tbaa !9
  %66 = icmp ugt i32 %65, 0
  %67 = zext i1 %66 to i64
  %68 = select i1 %66, i32 814028383, i32 805574239
  store i32 %68, ptr %27, align 4, !tbaa !9
  br label %80

69:                                               ; preds = %9
  %70 = load i32, ptr %28, align 4, !tbaa !9
  %71 = icmp ugt i32 %70, 0
  %72 = zext i1 %71 to i64
  %73 = select i1 %71, i32 814028381, i32 805573981
  store i32 %73, ptr %27, align 4, !tbaa !9
  br label %80

74:                                               ; preds = %9
  %75 = load i32, ptr %28, align 4, !tbaa !9
  %76 = icmp ugt i32 %75, 0
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 814032568, i32 805643960
  store i32 %78, ptr %27, align 4, !tbaa !9
  br label %80

79:                                               ; preds = %9
  br label %80

80:                                               ; preds = %79, %74, %69, %64, %59, %54, %49, %44
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %164, %80
  %82 = load i32, ptr %23, align 4, !tbaa !9
  %83 = load i32, ptr %18, align 4, !tbaa !9
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %85, label %167

85:                                               ; preds = %81
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %160, %85
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = icmp ult i32 %87, %88
  br i1 %89, label %90, label %163

90:                                               ; preds = %86
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = load i32, ptr %23, align 4, !tbaa !9
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = mul i32 %92, %93
  %95 = add i32 %91, %94
  %96 = load i32, ptr %22, align 4, !tbaa !9
  %97 = add i32 %95, %96
  store i32 %97, ptr %24, align 4, !tbaa !9
  %98 = load i32, ptr %20, align 4, !tbaa !9
  %99 = load i32, ptr %23, align 4, !tbaa !9
  %100 = load i32, ptr %17, align 4, !tbaa !9
  %101 = mul i32 %99, %100
  %102 = add i32 %98, %101
  %103 = load i32, ptr %22, align 4, !tbaa !9
  %104 = add i32 %102, %103
  store i32 %104, ptr %25, align 4, !tbaa !9
  %105 = load i32, ptr %21, align 4, !tbaa !9
  %106 = load i32, ptr %23, align 4, !tbaa !9
  %107 = load i32, ptr %17, align 4, !tbaa !9
  %108 = mul i32 %106, %107
  %109 = add i32 %105, %108
  %110 = load i32, ptr %22, align 4, !tbaa !9
  %111 = add i32 %109, %110
  store i32 %111, ptr %26, align 4, !tbaa !9
  %112 = load i32, ptr %13, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 7
  br i1 %113, label %114, label %118

114:                                              ; preds = %90
  %115 = load ptr, ptr %11, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_matequation_kernel_config_struct, ptr %115, i32 0, i32 45
  %117 = load i32, ptr %116, align 4, !tbaa !11
  store i32 %117, ptr %26, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %114, %90
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = icmp eq i32 %119, 26
  br i1 %120, label %121, label %150

121:                                              ; preds = %118
  call void @llvm.lifetime.start.p0(i64 1, ptr %29) #3
  %122 = load ptr, ptr %10, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %122, i32 0, i32 6
  %124 = load i32, ptr %123, align 4, !tbaa !17
  %125 = icmp uge i32 %124, 1101
  %126 = zext i1 %125 to i64
  %127 = select i1 %125, i32 122, i32 121
  %128 = trunc i32 %127 to i8
  store i8 %128, ptr %29, align 1, !tbaa !19
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = load i8, ptr %29, align 1, !tbaa !19
  %131 = load i32, ptr %25, align 4, !tbaa !9
  %132 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %129, i32 noundef 537208115, i8 noundef signext %130, i32 noundef %131, i32 noundef %132)
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load i8, ptr %29, align 1, !tbaa !19
  %135 = load i32, ptr %24, align 4, !tbaa !9
  %136 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %133, i32 noundef 537208115, i8 noundef signext %134, i32 noundef %135, i32 noundef %136)
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_matequation_kernel_config_struct, ptr %138, i32 0, i32 18
  %140 = load i8, ptr %139, align 8, !tbaa !20
  %141 = load i32, ptr %25, align 4, !tbaa !9
  %142 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %137, i32 noundef 611128946, i8 noundef signext %140, i32 noundef %141, i32 noundef %142, i32 noundef 16)
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.libxsmm_matequation_kernel_config_struct, ptr %144, i32 0, i32 18
  %146 = load i8, ptr %145, align 8, !tbaa !20
  %147 = load i32, ptr %25, align 4, !tbaa !9
  %148 = load i32, ptr %24, align 4, !tbaa !9
  %149 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %143, i32 noundef 805639915, i8 noundef signext %146, i32 noundef %147, i32 noundef %148, i32 noundef %149)
  call void @llvm.lifetime.end.p0(i64 1, ptr %29) #3
  br label %159

150:                                              ; preds = %118
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = load i32, ptr %27, align 4, !tbaa !9
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_matequation_kernel_config_struct, ptr %153, i32 0, i32 18
  %155 = load i8, ptr %154, align 8, !tbaa !20
  %156 = load i32, ptr %25, align 4, !tbaa !9
  %157 = load i32, ptr %24, align 4, !tbaa !9
  %158 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %151, i32 noundef %152, i8 noundef signext %155, i32 noundef %156, i32 noundef %157, i32 noundef %158)
  br label %159

159:                                              ; preds = %150, %121
  br label %160

160:                                              ; preds = %159
  %161 = load i32, ptr %22, align 4, !tbaa !9
  %162 = add i32 %161, 1
  store i32 %162, ptr %22, align 4, !tbaa !9
  br label %86, !llvm.loop !21

163:                                              ; preds = %86
  br label %164

164:                                              ; preds = %163
  %165 = load i32, ptr %23, align 4, !tbaa !9
  %166 = add i32 %165, 1
  store i32 %166, ptr %23, align 4, !tbaa !9
  br label %81, !llvm.loop !23

167:                                              ; preds = %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  ret void
}

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 180}
!12 = !{!"libxsmm_matequation_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, !7, 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, !7, i64 188, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !6, i64 336, !6, i64 344, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 364, !7, i64 620, !13, i64 876, !14, i64 1392}
!13 = !{!"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}
!14 = !{!"libxsmm_micro_kernel_config", !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, !7, 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, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !10, i64 460, !7, i64 464, !15, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !6, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!15 = !{!"libxsmm_tile_config", !7, i64 0, !16, i64 2, !7, i64 4, !16, i64 6, !7, i64 8, !16, i64 10, !7, i64 12, !16, i64 14, !7, i64 16, !16, i64 18, !7, i64 20, !16, i64 22, !7, i64 24, !16, i64 26, !7, i64 28, !16, i64 30, !7, i64 32}
!16 = !{!"short", !7, i64 0}
!17 = !{!18, !10, i64 28}
!18 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!19 = !{!7, !7, i64 0}
!20 = !{!12, !7, i64 72}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef, i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_mateqn_compute_binary_op_2d_reg_block(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #0 {
  %10 = tail call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %1, i32 noundef %4)
  %11 = tail call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %1, i32 noundef %5)
  %12 = tail call i32 @libxsmm_generator_matequation_regblocks_get_start_of_register_block(ptr noundef %1, i32 noundef %6)
  %13 = icmp eq i32 %2, 0
  switch i32 %3, label %28 [
    i32 1, label %14
    i32 2, label %16
    i32 3, label %18
    i32 4, label %20
    i32 9, label %22
    i32 10, label %24
    i32 7, label %26
  ]

14:                                               ; preds = %9
  %15 = select i1 %13, i32 814028376, i32 805574232
  br label %28

16:                                               ; preds = %9
  %17 = select i1 %13, i32 814028377, i32 805574233
  br label %28

18:                                               ; preds = %9
  %19 = select i1 %13, i32 814028380, i32 805574236
  br label %28

20:                                               ; preds = %9
  %21 = select i1 %13, i32 814028382, i32 805574238
  br label %28

22:                                               ; preds = %9
  %23 = select i1 %13, i32 814028383, i32 805574239
  br label %28

24:                                               ; preds = %9
  %25 = select i1 %13, i32 814028381, i32 805573981
  br label %28

26:                                               ; preds = %9
  %27 = select i1 %13, i32 814032568, i32 805643960
  br label %28

28:                                               ; preds = %9, %26, %24, %22, %20, %18, %16, %14
  %.060 = phi i32 [ 0, %9 ], [ %27, %26 ], [ %25, %24 ], [ %23, %22 ], [ %21, %20 ], [ %19, %18 ], [ %17, %16 ], [ %15, %14 ]
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge70, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %28
  %.not80 = icmp eq i32 %7, 0
  %29 = getelementptr inbounds i8, ptr %0, i64 28
  %30 = getelementptr inbounds i8, ptr %1, i64 72
  %31 = getelementptr inbounds i8, ptr %1, i64 180
  br i1 %.not80, label %._crit_edge70, label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  switch i32 %3, label %.preheader.us [
    i32 7, label %.preheader.us.us
    i32 26, label %.preheader.us.us76
  ]

.preheader.us.us:                                 ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.us.us.us
  %.05969.us.us = phi i32 [ %40, %._crit_edge.split.us.us.us ], [ 0, %.preheader.lr.ph.split.us ]
  %32 = mul i32 %.05969.us.us, %7
  %33 = add i32 %32, %10
  %34 = add i32 %32, %11
  br label %.thread.us.us.us

.thread.us.us.us:                                 ; preds = %.thread.us.us.us, %.preheader.us.us
  %.065.us.us.us = phi i32 [ 0, %.preheader.us.us ], [ %39, %.thread.us.us.us ]
  %35 = add i32 %33, %.065.us.us.us
  %36 = add i32 %34, %.065.us.us.us
  %37 = load i32, ptr %31, align 4, !tbaa !5
  %38 = load i8, ptr %30, align 8, !tbaa !15
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %.060, i8 noundef signext %38, i32 noundef %36, i32 noundef %35, i32 noundef %37) #2
  %39 = add nuw i32 %.065.us.us.us, 1
  %exitcond85.not = icmp eq i32 %39, %7
  br i1 %exitcond85.not, label %._crit_edge.split.us.us.us, label %.thread.us.us.us, !llvm.loop !16

._crit_edge.split.us.us.us:                       ; preds = %.thread.us.us.us
  %40 = add nuw i32 %.05969.us.us, 1
  %exitcond86.not = icmp eq i32 %40, %8
  br i1 %exitcond86.not, label %._crit_edge70, label %.preheader.us.us, !llvm.loop !18

.preheader.us.us76:                               ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.split.us.us.us
  %.05969.us.us77 = phi i32 [ %55, %._crit_edge.split.split.us.us.us ], [ 0, %.preheader.lr.ph.split.us ]
  %41 = mul i32 %.05969.us.us77, %7
  %42 = add i32 %41, %10
  %43 = add i32 %41, %11
  %44 = add i32 %41, %12
  br label %45

45:                                               ; preds = %45, %.preheader.us.us76
  %.065.us67.us.us = phi i32 [ 0, %.preheader.us.us76 ], [ %54, %45 ]
  %46 = add i32 %42, %.065.us67.us.us
  %47 = add i32 %43, %.065.us67.us.us
  %48 = add i32 %44, %.065.us67.us.us
  %49 = load i32, ptr %29, align 4, !tbaa !19
  %50 = icmp ugt i32 %49, 1100
  %51 = select i1 %50, i8 122, i8 121
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208115, i8 noundef signext %51, i32 noundef %47, i32 noundef %47) #2
  tail call void @libxsmm_x86_instruction_vec_compute_2reg(ptr noundef %0, i32 noundef 537208115, i8 noundef signext %51, i32 noundef %46, i32 noundef %46) #2
  %52 = load i8, ptr %30, align 8, !tbaa !15
  tail call void @libxsmm_x86_instruction_vec_compute_2reg_imm8(ptr noundef %0, i32 noundef 611128946, i8 noundef signext %52, i32 noundef %47, i32 noundef %47, i32 noundef 16) #2
  %53 = load i8, ptr %30, align 8, !tbaa !15
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef 805639915, i8 noundef signext %53, i32 noundef %47, i32 noundef %46, i32 noundef %48) #2
  %54 = add nuw i32 %.065.us67.us.us, 1
  %exitcond.not = icmp eq i32 %54, %7
  br i1 %exitcond.not, label %._crit_edge.split.split.us.us.us, label %45, !llvm.loop !16

._crit_edge.split.split.us.us.us:                 ; preds = %45
  %55 = add nuw i32 %.05969.us.us77, 1
  %exitcond84.not = icmp eq i32 %55, %8
  br i1 %exitcond84.not, label %._crit_edge70, label %.preheader.us.us76, !llvm.loop !18

.preheader.us:                                    ; preds = %.preheader.lr.ph.split.us, %._crit_edge.split.split.us72
  %.05969.us = phi i32 [ %66, %._crit_edge.split.split.us72 ], [ 0, %.preheader.lr.ph.split.us ]
  %56 = mul i32 %.05969.us, %7
  %57 = add i32 %56, %10
  %58 = add i32 %56, %11
  %59 = add i32 %56, %12
  br label %60

60:                                               ; preds = %.preheader.us, %60
  %.065.us71 = phi i32 [ 0, %.preheader.us ], [ %65, %60 ]
  %61 = add i32 %57, %.065.us71
  %62 = add i32 %58, %.065.us71
  %63 = add i32 %59, %.065.us71
  %64 = load i8, ptr %30, align 8, !tbaa !15
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %0, i32 noundef %.060, i8 noundef signext %64, i32 noundef %62, i32 noundef %61, i32 noundef %63) #2
  %65 = add nuw i32 %.065.us71, 1
  %exitcond87.not = icmp eq i32 %65, %7
  br i1 %exitcond87.not, label %._crit_edge.split.split.us72, label %60, !llvm.loop !16

._crit_edge.split.split.us72:                     ; preds = %60
  %66 = add nuw i32 %.05969.us, 1
  %exitcond88.not = icmp eq i32 %66, %8
  br i1 %exitcond88.not, label %._crit_edge70, label %.preheader.us, !llvm.loop !18

._crit_edge70:                                    ; preds = %._crit_edge.split.split.us.us.us, %._crit_edge.split.us.us.us, %._crit_edge.split.split.us72, %.preheader.lr.ph, %28
  ret void
}

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 = { 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 180}
!6 = !{!"libxsmm_matequation_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, !8, 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, !8, i64 188, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !10, i64 336, !10, i64 344, !7, i64 352, !7, i64 356, !7, i64 360, !8, i64 364, !8, i64 620, !11, i64 876, !12, i64 1392}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"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}
!12 = !{!"libxsmm_micro_kernel_config", !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, !8, 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, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !7, i64 460, !8, i64 464, !13, i64 520, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !10, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !10, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !7, i64 644, !7, i64 648, !7, i64 652, !7, i64 656, !7, i64 660, !7, i64 664, !7, i64 668, !7, i64 672, !7, i64 676, !7, i64 680}
!13 = !{!"libxsmm_tile_config", !8, i64 0, !14, i64 2, !8, i64 4, !14, i64 6, !8, i64 8, !14, i64 10, !8, i64 12, !14, i64 14, !8, i64 16, !14, i64 18, !8, i64 20, !14, i64 22, !8, i64 24, !14, i64 26, !8, i64 28, !14, i64 30, !8, i64 32}
!14 = !{!"short", !8, i64 0}
!15 = !{!6, !8, i64 72}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!20, !7, i64 28}
!20 = !{!"libxsmm_generated_code", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}


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