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

; 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_gemm_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__func__.libxsmm_generator_spgemm_csr_reg_kernel = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_spgemm_csr_reg_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %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
  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
  %11 = load ptr, ptr %7, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %11, i32 0, i32 3
  %13 = load i32, ptr %12, align 1, !tbaa !9
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %119

15:                                               ; preds = %5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %16, i32 0, i32 4
  %18 = load i32, ptr %17, align 1, !tbaa !14
  %19 = icmp ugt i32 %18, 0
  br i1 %19, label %20, label %119

20:                                               ; preds = %15
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %21, i32 0, i32 5
  %23 = load i32, ptr %22, align 1, !tbaa !15
  %24 = icmp ugt i32 %23, 0
  br i1 %24, label %25, label %119

25:                                               ; preds = %20
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %26, i32 0, i32 4
  %28 = load i32, ptr %27, align 1, !tbaa !14
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 1, !tbaa !16
  %32 = icmp ult i32 %28, %31
  br i1 %32, label %33, label %42

33:                                               ; preds = %25
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %36 = icmp ult i32 1, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %33
  %38 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %40

39:                                               ; preds = %33
  br label %40

40:                                               ; preds = %39, %37
  %41 = phi i32 [ %38, %37 ], [ 1, %39 ]
  call void @libxsmm_handle_error(ptr noundef %34, i32 noundef 90008, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 113, i32 noundef %41)
  br label %188

42:                                               ; preds = %25
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %43, i32 0, i32 5
  %45 = load i32, ptr %44, align 1, !tbaa !15
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 1, !tbaa !16
  %49 = icmp ult i32 %45, %48
  br i1 %49, label %50, label %59

50:                                               ; preds = %42
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %53 = icmp ult i32 1, %52
  br i1 %53, label %54, label %56

54:                                               ; preds = %50
  %55 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %57

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %56, %54
  %58 = phi i32 [ %55, %54 ], [ 1, %56 ]
  call void @libxsmm_handle_error(ptr noundef %51, i32 noundef 90009, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 118, i32 noundef %58)
  br label %188

59:                                               ; preds = %42
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %60, i32 0, i32 6
  %62 = load i32, ptr %61, align 4, !tbaa !18
  %63 = icmp uge i32 %62, 1002
  br i1 %63, label %64, label %75

64:                                               ; preds = %59
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = icmp ule i32 %67, 1999
  br i1 %68, label %69, label %75

69:                                               ; preds = %64
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load ptr, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_spgemm_csr_asparse_reg_x86(ptr noundef %70, ptr noundef %71, ptr noundef %72, ptr noundef %73, ptr noundef %74)
  br label %118

75:                                               ; preds = %64, %59
  %76 = load ptr, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %76, i32 0, i32 6
  %78 = load i32, ptr %77, align 4, !tbaa !18
  %79 = icmp uge i32 %78, 2001
  br i1 %79, label %80, label %91

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %81, i32 0, i32 6
  %83 = load i32, ptr %82, align 4, !tbaa !18
  %84 = icmp ult i32 %83, 2201
  br i1 %84, label %85, label %91

85:                                               ; preds = %80
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_neon(ptr noundef %86, ptr noundef %87, ptr noundef %88, ptr noundef %89, ptr noundef %90)
  br label %117

91:                                               ; preds = %80, %75
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %92, i32 0, i32 6
  %94 = load i32, ptr %93, align 4, !tbaa !18
  %95 = icmp uge i32 %94, 2201
  br i1 %95, label %96, label %107

96:                                               ; preds = %91
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %97, i32 0, i32 6
  %99 = load i32, ptr %98, align 4, !tbaa !18
  %100 = icmp ule i32 %99, 2999
  br i1 %100, label %101, label %107

101:                                              ; preds = %96
  %102 = load ptr, ptr %6, align 8, !tbaa !5
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_sve(ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106)
  br label %116

107:                                              ; preds = %96, %91
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %110 = icmp ult i32 1, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %114

113:                                              ; preds = %107
  br label %114

114:                                              ; preds = %113, %111
  %115 = phi i32 [ %112, %111 ], [ 1, %113 ]
  call void @libxsmm_handle_error(ptr noundef %108, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 138, i32 noundef %115)
  br label %188

116:                                              ; preds = %101
  br label %117

117:                                              ; preds = %116, %85
  br label %118

118:                                              ; preds = %117, %69
  br label %188

119:                                              ; preds = %20, %15, %5
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 1, !tbaa !9
  %123 = icmp ugt i32 %122, 0
  br i1 %123, label %124, label %179

124:                                              ; preds = %119
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %125, i32 0, i32 4
  %127 = load i32, ptr %126, align 1, !tbaa !14
  %128 = icmp eq i32 %127, 0
  br i1 %128, label %129, label %179

129:                                              ; preds = %124
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %130, i32 0, i32 5
  %132 = load i32, ptr %131, align 1, !tbaa !15
  %133 = icmp ugt i32 %132, 0
  br i1 %133, label %134, label %179

134:                                              ; preds = %129
  %135 = load ptr, ptr %7, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %135, i32 0, i32 3
  %137 = load i32, ptr %136, align 1, !tbaa !9
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %138, i32 0, i32 2
  %140 = load i32, ptr %139, align 1, !tbaa !20
  %141 = icmp ult i32 %137, %140
  br i1 %141, label %142, label %151

142:                                              ; preds = %134
  %143 = load ptr, ptr %6, align 8, !tbaa !5
  %144 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %145 = icmp ult i32 1, %144
  br i1 %145, label %146, label %148

146:                                              ; preds = %142
  %147 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %149

148:                                              ; preds = %142
  br label %149

149:                                              ; preds = %148, %146
  %150 = phi i32 [ %147, %146 ], [ 1, %148 ]
  call void @libxsmm_handle_error(ptr noundef %143, i32 noundef 90007, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 145, i32 noundef %150)
  br label %188

151:                                              ; preds = %134
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %152, i32 0, i32 5
  %154 = load i32, ptr %153, align 1, !tbaa !15
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %155, i32 0, i32 1
  %157 = load i32, ptr %156, align 1, !tbaa !16
  %158 = icmp ult i32 %154, %157
  br i1 %158, label %159, label %168

159:                                              ; preds = %151
  %160 = load ptr, ptr %6, align 8, !tbaa !5
  %161 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %162 = icmp ult i32 1, %161
  br i1 %162, label %163, label %165

163:                                              ; preds = %159
  %164 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %166

165:                                              ; preds = %159
  br label %166

166:                                              ; preds = %165, %163
  %167 = phi i32 [ %164, %163 ], [ 1, %165 ]
  call void @libxsmm_handle_error(ptr noundef %160, i32 noundef 90009, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 150, i32 noundef %167)
  br label %188

168:                                              ; preds = %151
  %169 = load ptr, ptr @stderr, align 8, !tbaa !5
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.1) #3
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %173 = icmp ult i32 1, %172
  br i1 %173, label %174, label %176

174:                                              ; preds = %168
  %175 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %177

176:                                              ; preds = %168
  br label %177

177:                                              ; preds = %176, %174
  %178 = phi i32 [ %175, %174 ], [ 1, %176 ]
  call void @libxsmm_handle_error(ptr noundef %171, i32 noundef 90000, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 155, i32 noundef %178)
  br label %188

179:                                              ; preds = %129, %124, %119
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !17
  %182 = icmp ult i32 1, %181
  br i1 %182, label %183, label %185

183:                                              ; preds = %179
  %184 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !17
  br label %186

185:                                              ; preds = %179
  br label %186

186:                                              ; preds = %185, %183
  %187 = phi i32 [ %184, %183 ], [ 1, %185 ]
  call void @libxsmm_handle_error(ptr noundef %180, i32 noundef 90010, ptr noundef @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef @.str, i32 noundef 159, i32 noundef %187)
  br label %188

188:                                              ; preds = %186, %177, %166, %149, %118, %114, %57, %40
  ret void
}

declare void @libxsmm_generator_spgemm_csr_asparse_reg_x86(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_neon(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_sve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

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 "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, !11, i64 12}
!10 = !{!"libxsmm_gemm_descriptor", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !12, i64 33, !12, i64 41, !7, i64 49, !11, i64 50, !11, i64 54, !11, i64 58, !13, i64 62, !13, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !13, i64 70, !13, i64 72, !13, i64 74, !13, i64 76, !13, i64 78, !13, i64 80, !11, i64 82, !11, i64 86, !11, i64 90, !7, i64 94}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!10, !11, i64 16}
!15 = !{!10, !11, i64 20}
!16 = !{!10, !11, i64 4}
!17 = !{!11, !11, i64 0}
!18 = !{!19, !11, i64 28}
!19 = !{!"libxsmm_generated_code", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!20 = !{!10, !11, i64 8}


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

@.str = external hidden unnamed_addr constant [72 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [76 x i8], align 1
@__func__.libxsmm_generator_spgemm_csr_reg_kernel = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_spgemm_csr_reg_kernel(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = getelementptr inbounds i8, ptr %1, i64 12
  %7 = load i32, ptr %6, align 1, !tbaa !5
  %8 = icmp eq i32 %7, 0
  %9 = getelementptr inbounds i8, ptr %1, i64 16
  %10 = load i32, ptr %9, align 1, !tbaa !12
  %.not = icmp eq i32 %10, 0
  br i1 %8, label %11, label %47

11:                                               ; preds = %5
  br i1 %.not, label %.thread, label %12

12:                                               ; preds = %11
  %13 = getelementptr inbounds i8, ptr %1, i64 20
  %14 = load i32, ptr %13, align 1, !tbaa !13
  %.not49 = icmp eq i32 %14, 0
  br i1 %.not49, label %.thread, label %15

15:                                               ; preds = %12
  %16 = getelementptr inbounds i8, ptr %1, i64 4
  %17 = load i32, ptr %16, align 1, !tbaa !14
  %18 = icmp ult i32 %10, %17
  br i1 %18, label %19, label %24

19:                                               ; preds = %15
  %20 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %21 = icmp ugt i32 %20, 1
  %22 = load i32, ptr @libxsmm_verbosity, align 4
  %23 = select i1 %21, i32 %22, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90008, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 113, i32 noundef %23) #3
  br label %80

24:                                               ; preds = %15
  %25 = icmp ult i32 %14, %17
  br i1 %25, label %26, label %31

26:                                               ; preds = %24
  %27 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %28 = icmp ugt i32 %27, 1
  %29 = load i32, ptr @libxsmm_verbosity, align 4
  %30 = select i1 %28, i32 %29, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90009, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 118, i32 noundef %30) #3
  br label %80

31:                                               ; preds = %24
  %32 = getelementptr inbounds i8, ptr %0, i64 28
  %33 = load i32, ptr %32, align 4, !tbaa !16
  %34 = add i32 %33, -1002
  %or.cond = icmp ult i32 %34, 998
  br i1 %or.cond, label %35, label %36

35:                                               ; preds = %31
  tail call void @libxsmm_generator_spgemm_csr_asparse_reg_x86(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3
  br label %80

36:                                               ; preds = %31
  %37 = add i32 %33, -2001
  %or.cond52 = icmp ult i32 %37, 200
  br i1 %or.cond52, label %38, label %39

38:                                               ; preds = %36
  tail call void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_neon(ptr noundef nonnull %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #3
  br label %80

39:                                               ; preds = %36
  %40 = add i32 %33, -2201
  %or.cond53 = icmp ult i32 %40, 799
  br i1 %or.cond53, label %41, label %42

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

42:                                               ; preds = %39
  %43 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %44 = icmp ugt i32 %43, 1
  %45 = load i32, ptr @libxsmm_verbosity, align 4
  %46 = select i1 %44, i32 %45, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 138, i32 noundef %46) #3
  br label %80

47:                                               ; preds = %5
  br i1 %.not, label %48, label %.thread

48:                                               ; preds = %47
  %49 = getelementptr inbounds i8, ptr %1, i64 20
  %50 = load i32, ptr %49, align 1, !tbaa !13
  %.not51 = icmp eq i32 %50, 0
  br i1 %.not51, label %.thread, label %51

51:                                               ; preds = %48
  %52 = getelementptr inbounds i8, ptr %1, i64 8
  %53 = load i32, ptr %52, align 1, !tbaa !19
  %54 = icmp ult i32 %7, %53
  br i1 %54, label %55, label %60

55:                                               ; preds = %51
  %56 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %57 = icmp ugt i32 %56, 1
  %58 = load i32, ptr @libxsmm_verbosity, align 4
  %59 = select i1 %57, i32 %58, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90007, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 145, i32 noundef %59) #3
  br label %80

60:                                               ; preds = %51
  %61 = getelementptr inbounds i8, ptr %1, i64 4
  %62 = load i32, ptr %61, align 1, !tbaa !14
  %63 = icmp ult i32 %50, %62
  br i1 %63, label %64, label %69

64:                                               ; preds = %60
  %65 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %66 = icmp ugt i32 %65, 1
  %67 = load i32, ptr @libxsmm_verbosity, align 4
  %68 = select i1 %66, i32 %67, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90009, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 150, i32 noundef %68) #3
  br label %80

69:                                               ; preds = %60
  %70 = load ptr, ptr @stderr, align 8, !tbaa !20
  %71 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str.1) #4
  %72 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %73 = icmp ugt i32 %72, 1
  %74 = load i32, ptr @libxsmm_verbosity, align 4
  %75 = select i1 %73, i32 %74, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 155, i32 noundef %75) #3
  br label %80

.thread:                                          ; preds = %11, %12, %48, %47
  %76 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !15
  %77 = icmp ugt i32 %76, 1
  %78 = load i32, ptr @libxsmm_verbosity, align 4
  %79 = select i1 %77, i32 %78, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90010, ptr noundef nonnull @__func__.libxsmm_generator_spgemm_csr_reg_kernel, ptr noundef nonnull @.str, i32 noundef 159, i32 noundef %79) #3
  br label %80

80:                                               ; preds = %35, %41, %38, %.thread, %69, %64, %55, %42, %26, %19
  ret void
}

declare void @libxsmm_generator_spgemm_csr_asparse_reg_x86(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_neon(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare void @libxsmm_generator_spgemm_csr_asparse_reg_aarch64_sve(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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 = { nofree nounwind "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 }
attributes #4 = { cold 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 12}
!6 = !{!"libxsmm_gemm_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !10, i64 33, !10, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !11, i64 62, !11, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !11, i64 70, !11, i64 72, !11, i64 74, !11, i64 76, !11, i64 78, !11, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!6, !7, i64 16}
!13 = !{!6, !7, i64 20}
!14 = !{!6, !7, i64 4}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !7, i64 28}
!17 = !{!"libxsmm_generated_code", !18, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!6, !7, i64 8}
!20 = !{!18, !18, i64 0}


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