; LLVM IR from libxsmm/libxsmm :: src (generator_packed_spgemm_csr_asparse_avx_avx2_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_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_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_gp_reg_mapping_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 }

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %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
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !5
  store ptr %7, ptr %19, align 8, !tbaa !5
  store i32 %8, ptr %20, align 4, !tbaa !9
  store i32 %9, ptr %21, align 4, !tbaa !9
  store i32 %10, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 0, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  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
  store i32 0, ptr %28, align 4, !tbaa !9
  %29 = load ptr, ptr %17, align 8, !tbaa !5
  %30 = load ptr, ptr %13, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %31, align 1, !tbaa !11
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds i32, ptr %29, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !9
  %36 = load ptr, ptr %13, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 1, !tbaa !11
  %39 = load ptr, ptr %13, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %39, i32 0, i32 2
  %41 = load i32, ptr %40, align 1, !tbaa !15
  %42 = mul i32 %38, %41
  %43 = icmp eq i32 %35, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %11
  store i32 1, ptr %23, align 4, !tbaa !9
  store i32 1, ptr %24, align 4, !tbaa !9
  br label %49

45:                                               ; preds = %11
  %46 = load ptr, ptr %13, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 1, !tbaa !11
  store i32 %48, ptr %23, align 4, !tbaa !9
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %45, %44
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %50, i32 0, i32 1
  %52 = load i32, ptr %51, align 1, !tbaa !16
  %53 = load i32, ptr %20, align 4, !tbaa !9
  %54 = urem i32 %52, %53
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %62

56:                                               ; preds = %49
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %57, i32 0, i32 1
  %59 = load i32, ptr %58, align 1, !tbaa !16
  %60 = load i32, ptr %20, align 4, !tbaa !9
  %61 = udiv i32 %59, %60
  br label %69

62:                                               ; preds = %49
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %63, i32 0, i32 1
  %65 = load i32, ptr %64, align 1, !tbaa !16
  %66 = load i32, ptr %20, align 4, !tbaa !9
  %67 = udiv i32 %65, %66
  %68 = add i32 %67, 1
  br label %69

69:                                               ; preds = %62, %56
  %70 = phi i32 [ %61, %56 ], [ %68, %62 ]
  store i32 %70, ptr %25, align 4, !tbaa !9
  %71 = load ptr, ptr %13, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 1, !tbaa !16
  %74 = load i32, ptr %25, align 4, !tbaa !9
  %75 = urem i32 %73, %74
  %76 = icmp eq i32 %75, 0
  br i1 %76, label %77, label %83

77:                                               ; preds = %69
  %78 = load ptr, ptr %13, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %78, i32 0, i32 1
  %80 = load i32, ptr %79, align 1, !tbaa !16
  %81 = load i32, ptr %25, align 4, !tbaa !9
  %82 = udiv i32 %80, %81
  br label %90

83:                                               ; preds = %69
  %84 = load ptr, ptr %13, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 1, !tbaa !16
  %87 = load i32, ptr %25, align 4, !tbaa !9
  %88 = udiv i32 %86, %87
  %89 = add i32 %88, 1
  br label %90

90:                                               ; preds = %83, %77
  %91 = phi i32 [ %82, %77 ], [ %89, %83 ]
  store i32 %91, ptr %26, align 4, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 1, !tbaa !16
  %95 = load i32, ptr %26, align 4, !tbaa !9
  %96 = urem i32 %94, %95
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %104, label %98

98:                                               ; preds = %90
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 1, !tbaa !16
  %102 = load i32, ptr %20, align 4, !tbaa !9
  %103 = icmp ule i32 %101, %102
  br label %104

104:                                              ; preds = %98, %90
  %105 = phi i1 [ true, %90 ], [ %103, %98 ]
  %106 = zext i1 %105 to i64
  %107 = select i1 %105, i32 0, i32 1
  store i32 %107, ptr %27, align 4, !tbaa !9
  %108 = load i32, ptr %27, align 4, !tbaa !9
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %114

110:                                              ; preds = %104
  %111 = load i32, ptr %25, align 4, !tbaa !9
  %112 = load i32, ptr %26, align 4, !tbaa !9
  %113 = mul i32 %111, %112
  br label %119

114:                                              ; preds = %104
  %115 = load i32, ptr %25, align 4, !tbaa !9
  %116 = sub i32 %115, 1
  %117 = load i32, ptr %26, align 4, !tbaa !9
  %118 = mul i32 %116, %117
  br label %119

119:                                              ; preds = %114, %110
  %120 = phi i32 [ %113, %110 ], [ %118, %114 ]
  store i32 %120, ptr %28, align 4, !tbaa !9
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load ptr, ptr %15, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %122, i32 0, i32 20
  %124 = load i32, ptr %123, align 8, !tbaa !17
  %125 = load ptr, ptr %16, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %125, i32 0, i32 11
  %127 = load i32, ptr %126, align 4, !tbaa !20
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %121, i32 noundef %124, i32 noundef %127, i64 noundef 0)
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %128, ptr noundef %129)
  %130 = load ptr, ptr %12, align 8, !tbaa !5
  %131 = load ptr, ptr %15, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %131, i32 0, i32 16
  %133 = load i32, ptr %132, align 8, !tbaa !22
  %134 = load ptr, ptr %16, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %134, i32 0, i32 11
  %136 = load i32, ptr %135, align 4, !tbaa !20
  %137 = load i32, ptr %26, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %130, i32 noundef %133, i32 noundef %136, i64 noundef %138)
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = load ptr, ptr %16, align 8, !tbaa !5
  %144 = load ptr, ptr %17, align 8, !tbaa !5
  %145 = load ptr, ptr %18, align 8, !tbaa !5
  %146 = load ptr, ptr %19, align 8, !tbaa !5
  %147 = load i32, ptr %23, align 4, !tbaa !9
  %148 = load i32, ptr %24, align 4, !tbaa !9
  %149 = load i32, ptr %26, align 4, !tbaa !9
  %150 = load i32, ptr %21, align 4, !tbaa !9
  %151 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef %139, ptr noundef %140, ptr noundef %141, ptr noundef %142, ptr noundef %143, ptr noundef %144, ptr noundef %145, ptr noundef %146, i32 noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef %150, i32 noundef %151)
  %152 = load ptr, ptr %12, align 8, !tbaa !5
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %153, i32 0, i32 16
  %155 = load i32, ptr %154, align 8, !tbaa !22
  %156 = load ptr, ptr %16, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %156, i32 0, i32 3
  %158 = load i32, ptr %157, align 4, !tbaa !23
  %159 = load ptr, ptr %15, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %159, i32 0, i32 3
  %161 = load i32, ptr %160, align 4, !tbaa !24
  %162 = zext i32 %161 to i64
  %163 = load i32, ptr %21, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = mul nsw i64 %162, %164
  %166 = load i32, ptr %26, align 4, !tbaa !9
  %167 = zext i32 %166 to i64
  %168 = mul nsw i64 %165, %167
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %152, i32 noundef %155, i32 noundef %158, i64 noundef %168)
  %169 = load ptr, ptr %13, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %169, i32 0, i32 7
  %171 = load i8, ptr %170, align 1, !tbaa !25
  %172 = zext i8 %171 to i32
  %173 = and i32 %172, 2
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %175, label %211

175:                                              ; preds = %119
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load ptr, ptr %15, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %177, i32 0, i32 17
  %179 = load i32, ptr %178, align 4, !tbaa !26
  %180 = load ptr, ptr %16, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %180, i32 0, i32 8
  %182 = load i32, ptr %181, align 4, !tbaa !27
  %183 = load ptr, ptr %15, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %183, i32 0, i32 3
  %185 = load i32, ptr %184, align 4, !tbaa !24
  %186 = zext i32 %185 to i64
  %187 = load i32, ptr %21, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = mul nsw i64 %186, %188
  %190 = load ptr, ptr %13, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %190, i32 0, i32 4
  %192 = load i32, ptr %191, align 1, !tbaa !28
  %193 = zext i32 %192 to i64
  %194 = mul nsw i64 %189, %193
  %195 = load ptr, ptr %13, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %195, i32 0, i32 0
  %197 = load i32, ptr %196, align 1, !tbaa !11
  %198 = zext i32 %197 to i64
  %199 = mul nsw i64 %194, %198
  %200 = load ptr, ptr %15, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %200, i32 0, i32 3
  %202 = load i32, ptr %201, align 4, !tbaa !24
  %203 = zext i32 %202 to i64
  %204 = load i32, ptr %21, align 4, !tbaa !9
  %205 = zext i32 %204 to i64
  %206 = mul nsw i64 %203, %205
  %207 = load i32, ptr %26, align 4, !tbaa !9
  %208 = zext i32 %207 to i64
  %209 = mul nsw i64 %206, %208
  %210 = sub nsw i64 %199, %209
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %176, i32 noundef %179, i32 noundef %182, i64 noundef %210)
  br label %211

211:                                              ; preds = %175, %119
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = load ptr, ptr %15, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %213, i32 0, i32 17
  %215 = load i32, ptr %214, align 4, !tbaa !26
  %216 = load ptr, ptr %16, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %216, i32 0, i32 5
  %218 = load i32, ptr %217, align 4, !tbaa !29
  %219 = load ptr, ptr %15, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %219, i32 0, i32 5
  %221 = load i32, ptr %220, align 4, !tbaa !30
  %222 = zext i32 %221 to i64
  %223 = load i32, ptr %21, align 4, !tbaa !9
  %224 = zext i32 %223 to i64
  %225 = mul nsw i64 %222, %224
  %226 = load ptr, ptr %13, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %226, i32 0, i32 5
  %228 = load i32, ptr %227, align 1, !tbaa !31
  %229 = zext i32 %228 to i64
  %230 = mul nsw i64 %225, %229
  %231 = load ptr, ptr %13, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %231, i32 0, i32 0
  %233 = load i32, ptr %232, align 1, !tbaa !11
  %234 = zext i32 %233 to i64
  %235 = mul nsw i64 %230, %234
  %236 = load ptr, ptr %15, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %236, i32 0, i32 5
  %238 = load i32, ptr %237, align 4, !tbaa !30
  %239 = zext i32 %238 to i64
  %240 = load i32, ptr %21, align 4, !tbaa !9
  %241 = zext i32 %240 to i64
  %242 = mul nsw i64 %239, %241
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = zext i32 %243 to i64
  %245 = mul nsw i64 %242, %244
  %246 = sub nsw i64 %235, %245
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %212, i32 noundef %215, i32 noundef %218, i64 noundef %246)
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = load ptr, ptr %15, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %248, i32 0, i32 18
  %250 = load i32, ptr %249, align 8, !tbaa !32
  %251 = load ptr, ptr %16, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %251, i32 0, i32 11
  %253 = load i32, ptr %252, align 4, !tbaa !20
  %254 = load i32, ptr %28, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %247, i32 noundef %250, i32 noundef %253, i64 noundef %255)
  %256 = load ptr, ptr %12, align 8, !tbaa !5
  %257 = load ptr, ptr %15, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %257, i32 0, i32 19
  %259 = load i32, ptr %258, align 4, !tbaa !33
  %260 = load ptr, ptr %14, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_jump_back_to_label(ptr noundef %256, i32 noundef %259, ptr noundef %260)
  %261 = load i32, ptr %27, align 4, !tbaa !9
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %284

263:                                              ; preds = %211
  %264 = load ptr, ptr %12, align 8, !tbaa !5
  %265 = load ptr, ptr %13, align 8, !tbaa !5
  %266 = load ptr, ptr %14, align 8, !tbaa !5
  %267 = load ptr, ptr %15, align 8, !tbaa !5
  %268 = load ptr, ptr %16, align 8, !tbaa !5
  %269 = load ptr, ptr %17, align 8, !tbaa !5
  %270 = load ptr, ptr %18, align 8, !tbaa !5
  %271 = load ptr, ptr %19, align 8, !tbaa !5
  %272 = load i32, ptr %23, align 4, !tbaa !9
  %273 = load i32, ptr %24, align 4, !tbaa !9
  %274 = load ptr, ptr %13, align 8, !tbaa !5
  %275 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %274, i32 0, i32 1
  %276 = load i32, ptr %275, align 1, !tbaa !16
  %277 = load i32, ptr %26, align 4, !tbaa !9
  %278 = load i32, ptr %25, align 4, !tbaa !9
  %279 = sub i32 %278, 1
  %280 = mul i32 %277, %279
  %281 = sub i32 %276, %280
  %282 = load i32, ptr %21, align 4, !tbaa !9
  %283 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef %264, ptr noundef %265, ptr noundef %266, ptr noundef %267, ptr noundef %268, ptr noundef %269, ptr noundef %270, ptr noundef %271, i32 noundef %272, i32 noundef %273, i32 noundef %281, i32 noundef %282, i32 noundef %283)
  br label %284

284:                                              ; preds = %263, %211
  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
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !13, i64 33, !13, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!12, !10, i64 8}
!16 = !{!12, !10, i64 4}
!17 = !{!18, !10, i64 80}
!18 = !{!"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, !19, 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}
!19 = !{!"libxsmm_tile_config", !7, i64 0, !14, i64 2, !7, i64 4, !14, i64 6, !7, i64 8, !14, i64 10, !7, i64 12, !14, i64 14, !7, i64 16, !14, i64 18, !7, i64 20, !14, i64 22, !7, i64 24, !14, i64 26, !7, i64 28, !14, i64 30, !7, i64 32}
!20 = !{!21, !10, i64 44}
!21 = !{!"libxsmm_gp_reg_mapping_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}
!22 = !{!18, !10, i64 64}
!23 = !{!21, !10, i64 12}
!24 = !{!18, !10, i64 12}
!25 = !{!12, !7, i64 28}
!26 = !{!18, !10, i64 68}
!27 = !{!21, !10, i64 32}
!28 = !{!12, !10, i64 16}
!29 = !{!21, !10, i64 20}
!30 = !{!18, !10, i64 20}
!31 = !{!12, !10, i64 20}
!32 = !{!18, !10, i64 72}
!33 = !{!18, !10, i64 76}


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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) local_unnamed_addr #1 {
  %12 = load i32, ptr %1, align 1, !tbaa !5
  %13 = zext i32 %12 to i64
  %14 = getelementptr inbounds i32, ptr %5, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %1, i64 8
  %17 = load i32, ptr %16, align 1, !tbaa !13
  %18 = mul i32 %17, %12
  %19 = icmp eq i32 %15, %18
  %. = select i1 %19, i32 1, i32 %12
  %.98 = zext i1 %19 to i32
  %20 = getelementptr inbounds i8, ptr %1, i64 4
  %21 = load i32, ptr %20, align 1, !tbaa !14
  %22 = urem i32 %21, %8
  %23 = icmp ne i32 %22, 0
  %24 = udiv i32 %21, %8
  %25 = zext i1 %23 to i32
  %26 = add i32 %24, %25
  %27 = urem i32 %21, %26
  %28 = icmp ne i32 %27, 0
  %29 = udiv i32 %21, %26
  %30 = zext i1 %28 to i32
  %31 = add i32 %29, %30
  %32 = urem i32 %21, %31
  %33 = icmp eq i32 %32, 0
  %34 = icmp ule i32 %21, %8
  %spec.select = or i1 %34, %33
  %35 = add i32 %26, -1
  %.pn = select i1 %spec.select, i32 %26, i32 %35
  %36 = mul i32 %.pn, %31
  %37 = getelementptr inbounds i8, ptr %3, i64 80
  %38 = load i32, ptr %37, align 8, !tbaa !15
  %39 = getelementptr inbounds i8, ptr %4, i64 44
  %40 = load i32, ptr %39, align 4, !tbaa !19
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %38, i32 noundef %40, i64 noundef 0) #2
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %2) #2
  %41 = getelementptr inbounds i8, ptr %3, i64 64
  %42 = load i32, ptr %41, align 8, !tbaa !21
  %43 = load i32, ptr %39, align 4, !tbaa !19
  %44 = zext i32 %31 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %42, i32 noundef %43, i64 noundef %44) #2
  tail call void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7, i32 noundef %., i32 noundef %.98, i32 noundef %31, i32 noundef %9, i32 noundef %10)
  %45 = load i32, ptr %41, align 8, !tbaa !21
  %46 = getelementptr inbounds i8, ptr %4, i64 12
  %47 = load i32, ptr %46, align 4, !tbaa !22
  %48 = getelementptr inbounds i8, ptr %3, i64 12
  %49 = load i32, ptr %48, align 4, !tbaa !23
  %50 = zext i32 %49 to i64
  %51 = zext i32 %9 to i64
  %52 = mul nuw i64 %44, %51
  %53 = mul i64 %52, %50
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %45, i32 noundef %47, i64 noundef %53) #2
  %54 = getelementptr inbounds i8, ptr %1, i64 28
  %55 = load i8, ptr %54, align 1, !tbaa !24
  %56 = and i8 %55, 2
  %.not = icmp eq i8 %56, 0
  br i1 %.not, label %74, label %57

57:                                               ; preds = %11
  %58 = getelementptr inbounds i8, ptr %3, i64 68
  %59 = load i32, ptr %58, align 4, !tbaa !25
  %60 = getelementptr inbounds i8, ptr %4, i64 32
  %61 = load i32, ptr %60, align 4, !tbaa !26
  %62 = load i32, ptr %48, align 4, !tbaa !23
  %63 = zext i32 %62 to i64
  %64 = mul nuw nsw i64 %63, %51
  %65 = getelementptr inbounds i8, ptr %1, i64 16
  %66 = load i32, ptr %65, align 1, !tbaa !27
  %67 = zext i32 %66 to i64
  %68 = mul nuw nsw i64 %64, %67
  %69 = load i32, ptr %1, align 1, !tbaa !5
  %70 = zext i32 %69 to i64
  %71 = mul nuw nsw i64 %68, %70
  %72 = mul nuw nsw i64 %64, %44
  %73 = sub nsw i64 %71, %72
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %59, i32 noundef %61, i64 noundef %73) #2
  br label %74

74:                                               ; preds = %57, %11
  %75 = getelementptr inbounds i8, ptr %3, i64 68
  %76 = load i32, ptr %75, align 4, !tbaa !25
  %77 = getelementptr inbounds i8, ptr %4, i64 20
  %78 = load i32, ptr %77, align 4, !tbaa !28
  %79 = getelementptr inbounds i8, ptr %3, i64 20
  %80 = load i32, ptr %79, align 4, !tbaa !29
  %81 = zext i32 %80 to i64
  %82 = mul nuw nsw i64 %81, %51
  %83 = getelementptr inbounds i8, ptr %1, i64 20
  %84 = load i32, ptr %83, align 1, !tbaa !30
  %85 = zext i32 %84 to i64
  %86 = mul nuw nsw i64 %82, %85
  %87 = load i32, ptr %1, align 1, !tbaa !5
  %88 = zext i32 %87 to i64
  %89 = mul nuw nsw i64 %86, %88
  %90 = mul nuw nsw i64 %82, %44
  %91 = sub nsw i64 %89, %90
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %76, i32 noundef %78, i64 noundef %91) #2
  %92 = getelementptr inbounds i8, ptr %3, i64 72
  %93 = load i32, ptr %92, align 8, !tbaa !31
  %94 = load i32, ptr %39, align 4, !tbaa !19
  %95 = zext i32 %36 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %93, i32 noundef %94, i64 noundef %95) #2
  %96 = getelementptr inbounds i8, ptr %3, i64 76
  %97 = load i32, ptr %96, align 4, !tbaa !32
  tail call void @libxsmm_x86_instruction_jump_back_to_label(ptr noundef %0, i32 noundef %97, ptr noundef %2) #2
  br i1 %spec.select, label %102, label %98

98:                                               ; preds = %74
  %99 = load i32, ptr %20, align 1, !tbaa !14
  %100 = mul i32 %31, %35
  %101 = sub i32 %99, %100
  tail call void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef %0, ptr noundef nonnull %1, ptr noundef %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef %6, ptr noundef %7, i32 noundef %., i32 noundef %.98, i32 noundef %101, i32 noundef %9, i32 noundef %10)
  br label %102

102:                                              ; preds = %98, %74
  ret void
}

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_packed_spgemm_csr_asparse_avx_avx2_avx512_m_loop(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!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 = !{!7, !7, i64 0}
!13 = !{!6, !7, i64 8}
!14 = !{!6, !7, i64 4}
!15 = !{!16, !7, i64 80}
!16 = !{!"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, !17, 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, !18, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !18, 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}
!17 = !{!"libxsmm_tile_config", !8, i64 0, !11, i64 2, !8, i64 4, !11, i64 6, !8, i64 8, !11, i64 10, !8, i64 12, !11, i64 14, !8, i64 16, !11, i64 18, !8, i64 20, !11, i64 22, !8, i64 24, !11, i64 26, !8, i64 28, !11, i64 30, !8, i64 32}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!20, !7, i64 44}
!20 = !{!"libxsmm_gp_reg_mapping_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}
!21 = !{!16, !7, i64 64}
!22 = !{!20, !7, i64 12}
!23 = !{!16, !7, i64 12}
!24 = !{!6, !8, i64 28}
!25 = !{!16, !7, i64 68}
!26 = !{!20, !7, i64 32}
!27 = !{!6, !7, i64 16}
!28 = !{!20, !7, i64 20}
!29 = !{!16, !7, i64 20}
!30 = !{!6, !7, i64 20}
!31 = !{!16, !7, i64 72}
!32 = !{!16, !7, i64 76}


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