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

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

@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #1

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csc_asparse_innerloop_four_vector(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5) #3 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca [512 x i8], align 16
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store i32 %2, ptr %9, align 4, !tbaa !9
  store i32 %3, ptr %10, align 4, !tbaa !9
  store ptr %4, ptr %11, align 8, !tbaa !5
  store ptr %5, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 511, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !9
  %18 = load ptr, ptr %8, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %18, i32 0, i32 8
  %20 = getelementptr inbounds [3 x i8], ptr %19, i64 0, i64 0
  %21 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %20)
  %22 = icmp eq i32 0, %21
  br i1 %22, label %23, label %215

23:                                               ; preds = %6
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %24 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %24, ptr %17, align 4, !tbaa !9
  %25 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = sext i32 %26 to i64
  %28 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %25, i64 noundef %27, ptr noundef @.str.2) #4
  store i32 %28, ptr %15, align 4, !tbaa !9
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %31 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %29, ptr noundef %30, i32 noundef %31)
  %32 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = load i32, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %10, align 4, !tbaa !9
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %37, i32 0, i32 5
  %39 = load i32, ptr %38, align 1, !tbaa !11
  %40 = load ptr, ptr %11, align 8, !tbaa !5
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds i32, ptr %41, i64 %43
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = load i32, ptr %10, align 4, !tbaa !9
  %47 = add i32 %45, %46
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds i32, ptr %40, i64 %48
  %50 = load i32, ptr %49, align 4, !tbaa !9
  %51 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %32, i64 noundef %34, ptr noundef @.str.21, i32 noundef %35, i32 noundef %36, i32 noundef %39, i32 noundef %50) #4
  store i32 %51, ptr %15, align 4, !tbaa !9
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %54 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %52, ptr noundef %53, i32 noundef %54)
  %55 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %56 = load i32, ptr %14, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = load i32, ptr %10, align 4, !tbaa !9
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %60, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = add i32 %64, %65
  %67 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %55, i64 noundef %57, ptr noundef @.str.22, i32 noundef %58, i32 noundef %59, i32 noundef %66) #4
  store i32 %67, ptr %15, align 4, !tbaa !9
  %68 = load ptr, ptr %7, align 8, !tbaa !5
  %69 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %70 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %68, ptr noundef %69, i32 noundef %70)
  %71 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = load i32, ptr %9, align 4, !tbaa !9
  %75 = load i32, ptr %10, align 4, !tbaa !9
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = load i32, ptr %10, align 4, !tbaa !9
  %78 = load i32, ptr %9, align 4, !tbaa !9
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %71, i64 noundef %73, ptr noundef @.str.23, i32 noundef %74, i32 noundef %75, i32 noundef %76, i32 noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80) #4
  store i32 %81, ptr %15, align 4, !tbaa !9
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %84 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %82, ptr noundef %83, i32 noundef %84)
  %85 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %88, i32 0, i32 5
  %90 = load i32, ptr %89, align 1, !tbaa !11
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds i32, ptr %92, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = add i32 %96, %97
  %99 = zext i32 %98 to i64
  %100 = getelementptr inbounds i32, ptr %91, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  %103 = load i32, ptr %10, align 4, !tbaa !9
  %104 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %85, i64 noundef %87, ptr noundef @.str.24, i32 noundef %90, i32 noundef %101, i32 noundef %102, i32 noundef %103) #4
  store i32 %104, ptr %15, align 4, !tbaa !9
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  %106 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %107 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %105, ptr noundef %106, i32 noundef %107)
  %108 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %109 = load i32, ptr %14, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %108, i64 noundef %110, ptr noundef @.str.4) #4
  store i32 %111, ptr %15, align 4, !tbaa !9
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %114 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %112, ptr noundef %113, i32 noundef %114)
  %115 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %116 = load i32, ptr %14, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %115, i64 noundef %117, ptr noundef @.str.5) #4
  store i32 %118, ptr %15, align 4, !tbaa !9
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %121 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %119, ptr noundef %120, i32 noundef %121)
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %204, %23
  %123 = load i32, ptr %16, align 4, !tbaa !9
  %124 = icmp ult i32 %123, 2
  br i1 %124, label %125, label %207

125:                                              ; preds = %122
  %126 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = load i32, ptr %9, align 4, !tbaa !9
  %130 = load i32, ptr %17, align 4, !tbaa !9
  %131 = load ptr, ptr %8, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %131, i32 0, i32 5
  %133 = load i32, ptr %132, align 1, !tbaa !11
  %134 = load ptr, ptr %11, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load i32, ptr %9, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %135, i64 %137
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = load i32, ptr %17, align 4, !tbaa !9
  %141 = add i32 %139, %140
  %142 = zext i32 %141 to i64
  %143 = getelementptr inbounds i32, ptr %134, i64 %142
  %144 = load i32, ptr %143, align 4, !tbaa !9
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %126, i64 noundef %128, ptr noundef @.str.12, i32 noundef %129, i32 noundef %130, i32 noundef %133, i32 noundef %144) #4
  store i32 %145, ptr %15, align 4, !tbaa !9
  %146 = load ptr, ptr %7, align 8, !tbaa !5
  %147 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %148 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %146, ptr noundef %147, i32 noundef %148)
  %149 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %150 = load i32, ptr %14, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %17, align 4, !tbaa !9
  %154 = load ptr, ptr %12, align 8, !tbaa !5
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = getelementptr inbounds i32, ptr %154, i64 %156
  %158 = load i32, ptr %157, align 4, !tbaa !9
  %159 = load i32, ptr %17, align 4, !tbaa !9
  %160 = add i32 %158, %159
  %161 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %149, i64 noundef %151, ptr noundef @.str.13, i32 noundef %152, i32 noundef %153, i32 noundef %160) #4
  store i32 %161, ptr %15, align 4, !tbaa !9
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %164 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %162, ptr noundef %163, i32 noundef %164)
  %165 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %166 = load i32, ptr %14, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = load i32, ptr %9, align 4, !tbaa !9
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = load i32, ptr %9, align 4, !tbaa !9
  %171 = load i32, ptr %17, align 4, !tbaa !9
  %172 = load i32, ptr %9, align 4, !tbaa !9
  %173 = load i32, ptr %17, align 4, !tbaa !9
  %174 = load i32, ptr %9, align 4, !tbaa !9
  %175 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %165, i64 noundef %167, ptr noundef @.str.15, i32 noundef %168, i32 noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172, i32 noundef %173, i32 noundef %174) #4
  store i32 %175, ptr %15, align 4, !tbaa !9
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %178 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %176, ptr noundef %177, i32 noundef %178)
  %179 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %180 = load i32, ptr %14, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = load ptr, ptr %8, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %182, i32 0, i32 5
  %184 = load i32, ptr %183, align 1, !tbaa !11
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load ptr, ptr %12, align 8, !tbaa !5
  %187 = load i32, ptr %9, align 4, !tbaa !9
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds i32, ptr %186, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !9
  %191 = load i32, ptr %17, align 4, !tbaa !9
  %192 = add i32 %190, %191
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %185, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = load i32, ptr %17, align 4, !tbaa !9
  %198 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %179, i64 noundef %181, ptr noundef @.str.16, i32 noundef %184, i32 noundef %195, i32 noundef %196, i32 noundef %197) #4
  store i32 %198, ptr %15, align 4, !tbaa !9
  %199 = load ptr, ptr %7, align 8, !tbaa !5
  %200 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %201 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %199, ptr noundef %200, i32 noundef %201)
  %202 = load i32, ptr %17, align 4, !tbaa !9
  %203 = add i32 %202, 2
  store i32 %203, ptr %17, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %125
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = add i32 %205, 1
  store i32 %206, ptr %16, align 4, !tbaa !9
  br label %122, !llvm.loop !15

207:                                              ; preds = %122
  %208 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %209 = load i32, ptr %14, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  %211 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %208, i64 noundef %210, ptr noundef @.str.4) #4
  store i32 %211, ptr %15, align 4, !tbaa !9
  %212 = load ptr, ptr %7, align 8, !tbaa !5
  %213 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %214 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %212, ptr noundef %213, i32 noundef %214)
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  br label %292

215:                                              ; preds = %6
  %216 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %217 = load i32, ptr %14, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = load i32, ptr %9, align 4, !tbaa !9
  %220 = load i32, ptr %10, align 4, !tbaa !9
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %221, i32 0, i32 5
  %223 = load i32, ptr %222, align 1, !tbaa !11
  %224 = load ptr, ptr %11, align 8, !tbaa !5
  %225 = load ptr, ptr %12, align 8, !tbaa !5
  %226 = load i32, ptr %9, align 4, !tbaa !9
  %227 = zext i32 %226 to i64
  %228 = getelementptr inbounds i32, ptr %225, i64 %227
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = load i32, ptr %10, align 4, !tbaa !9
  %231 = add i32 %229, %230
  %232 = zext i32 %231 to i64
  %233 = getelementptr inbounds i32, ptr %224, i64 %232
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %216, i64 noundef %218, ptr noundef @.str.25, i32 noundef %219, i32 noundef %220, i32 noundef %223, i32 noundef %234) #4
  store i32 %235, ptr %15, align 4, !tbaa !9
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %238 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %236, ptr noundef %237, i32 noundef %238)
  %239 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %240 = load i32, ptr %14, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = load i32, ptr %9, align 4, !tbaa !9
  %243 = load i32, ptr %10, align 4, !tbaa !9
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = zext i32 %245 to i64
  %247 = getelementptr inbounds i32, ptr %244, i64 %246
  %248 = load i32, ptr %247, align 4, !tbaa !9
  %249 = load i32, ptr %10, align 4, !tbaa !9
  %250 = add i32 %248, %249
  %251 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %239, i64 noundef %241, ptr noundef @.str.26, i32 noundef %242, i32 noundef %243, i32 noundef %250) #4
  store i32 %251, ptr %15, align 4, !tbaa !9
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %254 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %252, ptr noundef %253, i32 noundef %254)
  %255 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %256 = load i32, ptr %14, align 4, !tbaa !9
  %257 = sext i32 %256 to i64
  %258 = load i32, ptr %9, align 4, !tbaa !9
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = load i32, ptr %9, align 4, !tbaa !9
  %261 = load i32, ptr %10, align 4, !tbaa !9
  %262 = load i32, ptr %9, align 4, !tbaa !9
  %263 = load i32, ptr %10, align 4, !tbaa !9
  %264 = load i32, ptr %9, align 4, !tbaa !9
  %265 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %255, i64 noundef %257, ptr noundef @.str.19, i32 noundef %258, i32 noundef %259, i32 noundef %260, i32 noundef %261, i32 noundef %262, i32 noundef %263, i32 noundef %264) #4
  store i32 %265, ptr %15, align 4, !tbaa !9
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %268 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %266, ptr noundef %267, i32 noundef %268)
  %269 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %270 = load i32, ptr %14, align 4, !tbaa !9
  %271 = sext i32 %270 to i64
  %272 = load ptr, ptr %8, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %272, i32 0, i32 5
  %274 = load i32, ptr %273, align 1, !tbaa !11
  %275 = load ptr, ptr %11, align 8, !tbaa !5
  %276 = load ptr, ptr %12, align 8, !tbaa !5
  %277 = load i32, ptr %9, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = getelementptr inbounds i32, ptr %276, i64 %278
  %280 = load i32, ptr %279, align 4, !tbaa !9
  %281 = load i32, ptr %10, align 4, !tbaa !9
  %282 = add i32 %280, %281
  %283 = zext i32 %282 to i64
  %284 = getelementptr inbounds i32, ptr %275, i64 %283
  %285 = load i32, ptr %284, align 4, !tbaa !9
  %286 = load i32, ptr %9, align 4, !tbaa !9
  %287 = load i32, ptr %10, align 4, !tbaa !9
  %288 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %269, i64 noundef %271, ptr noundef @.str.27, i32 noundef %274, i32 noundef %285, i32 noundef %286, i32 noundef %287) #4
  store i32 %288, ptr %15, align 4, !tbaa !9
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds [512 x i8], ptr %13, i64 0, i64 0
  %291 = load i32, ptr %15, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %289, ptr noundef %290, i32 noundef %291)
  br label %292

292:                                              ; preds = %215, %207
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %13) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "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 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 20}
!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 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


; 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.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [45 x i8], align 1

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csc_asparse_innerloop_four_vector(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, ptr nocapture noundef readonly %4, ptr nocapture noundef readonly %5) local_unnamed_addr #3 {
  %7 = alloca [512 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %7) #4
  %8 = getelementptr inbounds i8, ptr %1, i64 29
  %9 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %8) #4
  %10 = icmp eq i32 %9, 0
  br i1 %10, label %11, label %74

11:                                               ; preds = %6
  %12 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.2) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %12) #4
  %13 = getelementptr inbounds i8, ptr %1, i64 20
  %14 = load i32, ptr %13, align 1, !tbaa !5
  %15 = zext i32 %2 to i64
  %16 = getelementptr inbounds i32, ptr %5, i64 %15
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = add i32 %17, %3
  %19 = zext i32 %18 to i64
  %20 = getelementptr inbounds i32, ptr %4, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !12
  %22 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.21, i32 noundef %2, i32 noundef %3, i32 noundef %14, i32 noundef %21) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %22) #4
  %23 = load i32, ptr %16, align 4, !tbaa !12
  %24 = add i32 %23, %3
  %25 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.22, i32 noundef %2, i32 noundef %3, i32 noundef %24) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %25) #4
  %26 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.23, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %26) #4
  %27 = load i32, ptr %13, align 1, !tbaa !5
  %28 = load i32, ptr %16, align 4, !tbaa !12
  %29 = add i32 %28, %3
  %30 = zext i32 %29 to i64
  %31 = getelementptr inbounds i32, ptr %4, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !12
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.24, i32 noundef %27, i32 noundef %32, i32 noundef %2, i32 noundef %3) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %33) #4
  %34 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.4) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %34) #4
  %35 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.5) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %35) #4
  %36 = load i32, ptr %13, align 1, !tbaa !5
  %37 = load i32, ptr %16, align 4, !tbaa !12
  %38 = add i32 %37, %3
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds i32, ptr %4, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !12
  %42 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.12, i32 noundef %2, i32 noundef %3, i32 noundef %36, i32 noundef %41) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %42) #4
  %43 = load i32, ptr %16, align 4, !tbaa !12
  %44 = add i32 %43, %3
  %45 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.13, i32 noundef %2, i32 noundef %3, i32 noundef %44) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %45) #4
  %46 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.15, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %46) #4
  %47 = load i32, ptr %13, align 1, !tbaa !5
  %48 = load i32, ptr %16, align 4, !tbaa !12
  %49 = add i32 %48, %3
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i32, ptr %4, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !12
  %53 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.16, i32 noundef %47, i32 noundef %52, i32 noundef %2, i32 noundef %3) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %53) #4
  %54 = add i32 %3, 2
  %55 = load i32, ptr %13, align 1, !tbaa !5
  %56 = load i32, ptr %16, align 4, !tbaa !12
  %57 = add i32 %56, %54
  %58 = zext i32 %57 to i64
  %59 = getelementptr inbounds i32, ptr %4, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !12
  %61 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.12, i32 noundef %2, i32 noundef %54, i32 noundef %55, i32 noundef %60) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %61) #4
  %62 = load i32, ptr %16, align 4, !tbaa !12
  %63 = add i32 %62, %54
  %64 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.13, i32 noundef %2, i32 noundef %54, i32 noundef %63) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %64) #4
  %65 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.15, i32 noundef %2, i32 noundef %54, i32 noundef %2, i32 noundef %54, i32 noundef %2, i32 noundef %54, i32 noundef %2) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %65) #4
  %66 = load i32, ptr %13, align 1, !tbaa !5
  %67 = load i32, ptr %16, align 4, !tbaa !12
  %68 = add i32 %67, %54
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %4, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !12
  %72 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.16, i32 noundef %66, i32 noundef %71, i32 noundef %2, i32 noundef %54) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %72) #4
  %73 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.4) #4
  br label %96

74:                                               ; preds = %6
  %75 = getelementptr inbounds i8, ptr %1, i64 20
  %76 = load i32, ptr %75, align 1, !tbaa !5
  %77 = zext i32 %2 to i64
  %78 = getelementptr inbounds i32, ptr %5, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !12
  %80 = add i32 %79, %3
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds i32, ptr %4, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !12
  %84 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.25, i32 noundef %2, i32 noundef %3, i32 noundef %76, i32 noundef %83) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %84) #4
  %85 = load i32, ptr %78, align 4, !tbaa !12
  %86 = add i32 %85, %3
  %87 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.26, i32 noundef %2, i32 noundef %3, i32 noundef %86) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %87) #4
  %88 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.19, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2, i32 noundef %3, i32 noundef %2) #4
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %88) #4
  %89 = load i32, ptr %75, align 1, !tbaa !5
  %90 = load i32, ptr %78, align 4, !tbaa !12
  %91 = add i32 %90, %3
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds i32, ptr %4, i64 %92
  %94 = load i32, ptr %93, align 4, !tbaa !12
  %95 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %7, i64 noundef 511, ptr noundef nonnull @.str.27, i32 noundef %89, i32 noundef %94, i32 noundef %2, i32 noundef %3) #4
  br label %96

96:                                               ; preds = %74, %11
  %.sink = phi i32 [ %95, %74 ], [ %73, %11 ]
  call void @libxsmm_append_code_as_string(ptr noundef %0, ptr noundef nonnull %7, i32 noundef %.sink) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %7) #4
  ret void
}

attributes #0 = { mustprogress 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 = { 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 #3 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 20}
!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}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass