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

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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@__func__.libxsmm_sparse_csc_reader = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_sparse_csc_reader = external hidden unnamed_addr constant [164 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csc_reader(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %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 i32, align 4
  %19 = alloca [513 x i8], align 16
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca double, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 512, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 513, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  store ptr null, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  %30 = load ptr, ptr %10, align 8, !tbaa !5
  %31 = call noalias ptr @fopen(ptr noundef %30, ptr noundef @.str)
  store ptr %31, ptr %17, align 8, !tbaa !5
  %32 = load ptr, ptr %17, align 8, !tbaa !5
  %33 = icmp eq ptr %32, null
  br i1 %33, label %34, label %43

34:                                               ; preds = %8
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %37 = icmp ult i32 1, %36
  br i1 %37, label %38, label %40

38:                                               ; preds = %34
  %39 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %41

40:                                               ; preds = %34
  br label %41

41:                                               ; preds = %40, %38
  %42 = phi i32 [ %39, %38 ], [ 1, %40 ]
  call void @libxsmm_handle_error(ptr noundef %35, i32 noundef 90011, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 71, i32 noundef %42)
  store i32 1, ptr %23, align 4
  br label %378

43:                                               ; preds = %8
  br label %44

44:                                               ; preds = %312, %82, %43
  %45 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %46 = load ptr, ptr %17, align 8, !tbaa !5
  %47 = call ptr @fgets(ptr noundef %45, i32 noundef 512, ptr noundef %46)
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %313

49:                                               ; preds = %44
  %50 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %51 = call i64 @strlen(ptr noundef %50) #8
  %52 = icmp eq i64 %51, 512
  br i1 %52, label %53, label %77

53:                                               ; preds = %49
  %54 = load ptr, ptr %11, align 8, !tbaa !5
  %55 = load ptr, ptr %54, align 8, !tbaa !5
  call void @free(ptr noundef %55) #7
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  call void @free(ptr noundef %57) #7
  %58 = load ptr, ptr %13, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !5
  call void @free(ptr noundef %59) #7
  %60 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %60) #7
  %61 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %61, align 4, !tbaa !9
  %62 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %62, align 4, !tbaa !9
  %63 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %63, align 4, !tbaa !9
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %64, align 8, !tbaa !5
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %65, align 8, !tbaa !5
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %66, align 8, !tbaa !5
  %67 = load ptr, ptr %17, align 8, !tbaa !5
  %68 = call i32 @fclose(ptr noundef %67)
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %71 = icmp ult i32 1, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %53
  %73 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %75

74:                                               ; preds = %53
  br label %75

75:                                               ; preds = %74, %72
  %76 = phi i32 [ %73, %72 ], [ 1, %74 ]
  call void @libxsmm_handle_error(ptr noundef %69, i32 noundef 90012, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 81, i32 noundef %76)
  store i32 1, ptr %23, align 4
  br label %378

77:                                               ; preds = %49
  %78 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %79 = load i8, ptr %78, align 16, !tbaa !11
  %80 = sext i8 %79 to i32
  %81 = icmp eq i32 %80, 37
  br i1 %81, label %82, label %83

82:                                               ; preds = %77
  br label %44, !llvm.loop !12

83:                                               ; preds = %77
  %84 = load i32, ptr %20, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %227

86:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %87 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %88 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %87, ptr noundef @.str.2, ptr noundef %24, ptr noundef %25, ptr noundef %26) #7
  %89 = icmp eq i32 3, %88
  br i1 %89, label %90, label %212

90:                                               ; preds = %86
  %91 = load i32, ptr %24, align 4, !tbaa !9
  %92 = icmp ne i32 0, %91
  br i1 %92, label %93, label %212

93:                                               ; preds = %90
  %94 = load i32, ptr %25, align 4, !tbaa !9
  %95 = icmp ne i32 0, %94
  br i1 %95, label %96, label %212

96:                                               ; preds = %93
  %97 = load ptr, ptr %16, align 8, !tbaa !5
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = icmp ne i32 0, %98
  br i1 %99, label %100, label %212

100:                                              ; preds = %96
  %101 = load ptr, ptr %15, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = load i32, ptr %25, align 4, !tbaa !9
  %104 = icmp ult i32 %102, %103
  br i1 %104, label %105, label %107

105:                                              ; preds = %100
  %106 = load i32, ptr %25, align 4, !tbaa !9
  br label %110

107:                                              ; preds = %100
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i32, ptr %108, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %107, %105
  %111 = phi i32 [ %106, %105 ], [ %109, %107 ]
  %112 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 %111, ptr %112, align 4, !tbaa !9
  %113 = load ptr, ptr %14, align 8, !tbaa !5
  %114 = load i32, ptr %113, align 4, !tbaa !9
  %115 = load i32, ptr %24, align 4, !tbaa !9
  %116 = icmp ult i32 %114, %115
  br i1 %116, label %117, label %119

117:                                              ; preds = %110
  %118 = load i32, ptr %24, align 4, !tbaa !9
  br label %122

119:                                              ; preds = %110
  %120 = load ptr, ptr %14, align 8, !tbaa !5
  %121 = load i32, ptr %120, align 4, !tbaa !9
  br label %122

122:                                              ; preds = %119, %117
  %123 = phi i32 [ %118, %117 ], [ %121, %119 ]
  %124 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 %123, ptr %124, align 4, !tbaa !9
  %125 = load i32, ptr %26, align 4, !tbaa !9
  %126 = icmp ult i32 1, %125
  br i1 %126, label %127, label %129

127:                                              ; preds = %122
  %128 = load i32, ptr %26, align 4, !tbaa !9
  br label %130

129:                                              ; preds = %122
  br label %130

130:                                              ; preds = %129, %127
  %131 = phi i32 [ %128, %127 ], [ 1, %129 ]
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 %131, ptr %132, align 4, !tbaa !9
  %133 = load ptr, ptr %16, align 8, !tbaa !5
  %134 = load i32, ptr %133, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = call noalias ptr @calloc(i64 noundef %135, i64 noundef 4) #9
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %136, ptr %137, align 8, !tbaa !5
  %138 = load ptr, ptr %15, align 8, !tbaa !5
  %139 = load i32, ptr %138, align 4, !tbaa !9
  %140 = zext i32 %139 to i64
  %141 = add i64 %140, 1
  %142 = call noalias ptr @calloc(i64 noundef %141, i64 noundef 4) #9
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %142, ptr %143, align 8, !tbaa !5
  %144 = load ptr, ptr %16, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  %146 = zext i32 %145 to i64
  %147 = call noalias ptr @calloc(i64 noundef %146, i64 noundef 8) #9
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %147, ptr %148, align 8, !tbaa !5
  %149 = load ptr, ptr %15, align 8, !tbaa !5
  %150 = load i32, ptr %149, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = call noalias ptr @calloc(i64 noundef %151, i64 noundef 4) #9
  store ptr %152, ptr %21, align 8, !tbaa !5
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = icmp eq ptr %154, null
  br i1 %155, label %167, label %156

156:                                              ; preds = %130
  %157 = load ptr, ptr %12, align 8, !tbaa !5
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = icmp eq ptr %158, null
  br i1 %159, label %167, label %160

160:                                              ; preds = %156
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = icmp eq ptr %162, null
  br i1 %163, label %167, label %164

164:                                              ; preds = %160
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  %166 = icmp eq ptr %165, null
  br i1 %166, label %167, label %191

167:                                              ; preds = %164, %160, %156, %130
  %168 = load ptr, ptr %11, align 8, !tbaa !5
  %169 = load ptr, ptr %168, align 8, !tbaa !5
  call void @free(ptr noundef %169) #7
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  call void @free(ptr noundef %171) #7
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = load ptr, ptr %172, align 8, !tbaa !5
  call void @free(ptr noundef %173) #7
  %174 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %174) #7
  %175 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %175, align 4, !tbaa !9
  %176 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %176, align 4, !tbaa !9
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %177, align 4, !tbaa !9
  %178 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %178, align 8, !tbaa !5
  %179 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %179, align 8, !tbaa !5
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %180, align 8, !tbaa !5
  %181 = load ptr, ptr %17, align 8, !tbaa !5
  %182 = call i32 @fclose(ptr noundef %181)
  %183 = load ptr, ptr %9, align 8, !tbaa !5
  %184 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %185 = icmp ult i32 1, %184
  br i1 %185, label %186, label %188

186:                                              ; preds = %167
  %187 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %189

188:                                              ; preds = %167
  br label %189

189:                                              ; preds = %188, %186
  %190 = phi i32 [ %187, %186 ], [ 1, %188 ]
  call void @libxsmm_handle_error(ptr noundef %183, i32 noundef 90026, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 116, i32 noundef %190)
  store i32 1, ptr %23, align 4
  br label %224

191:                                              ; preds = %164
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %192

192:                                              ; preds = %205, %191
  %193 = load i32, ptr %22, align 4, !tbaa !9
  %194 = load ptr, ptr %15, align 8, !tbaa !5
  %195 = load i32, ptr %194, align 4, !tbaa !9
  %196 = icmp ule i32 %193, %195
  br i1 %196, label %197, label %208

197:                                              ; preds = %192
  %198 = load ptr, ptr %16, align 8, !tbaa !5
  %199 = load i32, ptr %198, align 4, !tbaa !9
  %200 = load ptr, ptr %12, align 8, !tbaa !5
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i32, ptr %22, align 4, !tbaa !9
  %203 = zext i32 %202 to i64
  %204 = getelementptr inbounds i32, ptr %201, i64 %203
  store i32 %199, ptr %204, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %197
  %206 = load i32, ptr %22, align 4, !tbaa !9
  %207 = add i32 %206, 1
  store i32 %207, ptr %22, align 4, !tbaa !9
  br label %192, !llvm.loop !14

208:                                              ; preds = %192
  %209 = load ptr, ptr %12, align 8, !tbaa !5
  %210 = load ptr, ptr %209, align 8, !tbaa !5
  %211 = getelementptr inbounds i32, ptr %210, i64 0
  store i32 0, ptr %211, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %223

212:                                              ; preds = %96, %93, %90, %86
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %215 = icmp ult i32 1, %214
  br i1 %215, label %216, label %218

216:                                              ; preds = %212
  %217 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %219

218:                                              ; preds = %212
  br label %219

219:                                              ; preds = %218, %216
  %220 = phi i32 [ %217, %216 ], [ 1, %218 ]
  call void @libxsmm_handle_error(ptr noundef %213, i32 noundef 90013, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 130, i32 noundef %220)
  %221 = load ptr, ptr %17, align 8, !tbaa !5
  %222 = call i32 @fclose(ptr noundef %221)
  store i32 1, ptr %23, align 4
  br label %224

223:                                              ; preds = %208
  store i32 0, ptr %23, align 4
  br label %224

224:                                              ; preds = %223, %219, %189
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %225 = load i32, ptr %23, align 4
  switch i32 %225, label %378 [
    i32 0, label %226
  ]

226:                                              ; preds = %224
  br label %311

227:                                              ; preds = %83
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  store i32 0, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  store i32 0, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  store double 0.000000e+00, ptr %29, align 8, !tbaa !15
  %228 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %229 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %228, ptr noundef @.str.3, ptr noundef %27, ptr noundef %28, ptr noundef %29) #7
  %230 = icmp ne i32 %229, 3
  br i1 %230, label %246, label %231

231:                                              ; preds = %227
  %232 = load i32, ptr %27, align 4, !tbaa !9
  %233 = load ptr, ptr %14, align 8, !tbaa !5
  %234 = load i32, ptr %233, align 4, !tbaa !9
  %235 = icmp ugt i32 %232, %234
  br i1 %235, label %246, label %236

236:                                              ; preds = %231
  %237 = load i32, ptr %28, align 4, !tbaa !9
  %238 = load ptr, ptr %15, align 8, !tbaa !5
  %239 = load i32, ptr %238, align 4, !tbaa !9
  %240 = icmp ugt i32 %237, %239
  br i1 %240, label %246, label %241

241:                                              ; preds = %236
  %242 = load i32, ptr %22, align 4, !tbaa !9
  %243 = load ptr, ptr %16, align 8, !tbaa !5
  %244 = load i32, ptr %243, align 4, !tbaa !9
  %245 = icmp uge i32 %242, %244
  br i1 %245, label %246, label %270

246:                                              ; preds = %241, %236, %231, %227
  %247 = load ptr, ptr %11, align 8, !tbaa !5
  %248 = load ptr, ptr %247, align 8, !tbaa !5
  call void @free(ptr noundef %248) #7
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  call void @free(ptr noundef %250) #7
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = load ptr, ptr %251, align 8, !tbaa !5
  call void @free(ptr noundef %252) #7
  %253 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %253) #7
  %254 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %254, align 4, !tbaa !9
  %255 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %255, align 4, !tbaa !9
  %256 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %256, align 4, !tbaa !9
  %257 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %257, align 8, !tbaa !5
  %258 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %258, align 8, !tbaa !5
  %259 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %259, align 8, !tbaa !5
  %260 = load ptr, ptr %17, align 8, !tbaa !5
  %261 = call i32 @fclose(ptr noundef %260)
  %262 = load ptr, ptr %9, align 8, !tbaa !5
  %263 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %264 = icmp ult i32 1, %263
  br i1 %264, label %265, label %267

265:                                              ; preds = %246
  %266 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %268

267:                                              ; preds = %246
  br label %268

268:                                              ; preds = %267, %265
  %269 = phi i32 [ %266, %265 ], [ 1, %267 ]
  call void @libxsmm_handle_error(ptr noundef %262, i32 noundef 90014, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 147, i32 noundef %269)
  store i32 1, ptr %23, align 4
  br label %308

270:                                              ; preds = %241
  %271 = load i32, ptr %27, align 4, !tbaa !9
  %272 = icmp ne i32 0, %271
  br i1 %272, label %273, label %277

273:                                              ; preds = %270
  %274 = load i32, ptr %28, align 4, !tbaa !9
  %275 = icmp ne i32 0, %274
  br i1 %275, label %276, label %277

276:                                              ; preds = %273
  br label %278

277:                                              ; preds = %273, %270
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 151, ptr noundef @__PRETTY_FUNCTION__.libxsmm_sparse_csc_reader) #10
  unreachable

278:                                              ; preds = %276
  %279 = load i32, ptr %27, align 4, !tbaa !9
  %280 = add i32 %279, -1
  store i32 %280, ptr %27, align 4, !tbaa !9
  %281 = load i32, ptr %28, align 4, !tbaa !9
  %282 = add i32 %281, -1
  store i32 %282, ptr %28, align 4, !tbaa !9
  %283 = load i32, ptr %27, align 4, !tbaa !9
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = load ptr, ptr %284, align 8, !tbaa !5
  %286 = load i32, ptr %22, align 4, !tbaa !9
  %287 = zext i32 %286 to i64
  %288 = getelementptr inbounds i32, ptr %285, i64 %287
  store i32 %283, ptr %288, align 4, !tbaa !9
  %289 = load double, ptr %29, align 8, !tbaa !15
  %290 = load ptr, ptr %13, align 8, !tbaa !5
  %291 = load ptr, ptr %290, align 8, !tbaa !5
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = zext i32 %292 to i64
  %294 = getelementptr inbounds double, ptr %291, i64 %293
  store double %289, ptr %294, align 8, !tbaa !15
  %295 = load i32, ptr %22, align 4, !tbaa !9
  %296 = add i32 %295, 1
  store i32 %296, ptr %22, align 4, !tbaa !9
  %297 = load ptr, ptr %21, align 8, !tbaa !5
  %298 = load i32, ptr %28, align 4, !tbaa !9
  %299 = zext i32 %298 to i64
  %300 = getelementptr inbounds i32, ptr %297, i64 %299
  store i32 1, ptr %300, align 4, !tbaa !9
  %301 = load i32, ptr %22, align 4, !tbaa !9
  %302 = load ptr, ptr %12, align 8, !tbaa !5
  %303 = load ptr, ptr %302, align 8, !tbaa !5
  %304 = load i32, ptr %28, align 4, !tbaa !9
  %305 = add i32 %304, 1
  %306 = zext i32 %305 to i64
  %307 = getelementptr inbounds i32, ptr %303, i64 %306
  store i32 %301, ptr %307, align 4, !tbaa !9
  store i32 0, ptr %23, align 4
  br label %308

308:                                              ; preds = %278, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  %309 = load i32, ptr %23, align 4
  switch i32 %309, label %378 [
    i32 0, label %310
  ]

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310, %226
  br label %312

312:                                              ; preds = %311
  br label %44, !llvm.loop !12

313:                                              ; preds = %44
  %314 = load ptr, ptr %17, align 8, !tbaa !5
  %315 = call i32 @fclose(ptr noundef %314)
  %316 = load i32, ptr %22, align 4, !tbaa !9
  %317 = load ptr, ptr %16, align 8, !tbaa !5
  %318 = load i32, ptr %317, align 4, !tbaa !9
  %319 = icmp ne i32 %316, %318
  br i1 %319, label %320, label %342

320:                                              ; preds = %313
  %321 = load ptr, ptr %11, align 8, !tbaa !5
  %322 = load ptr, ptr %321, align 8, !tbaa !5
  call void @free(ptr noundef %322) #7
  %323 = load ptr, ptr %12, align 8, !tbaa !5
  %324 = load ptr, ptr %323, align 8, !tbaa !5
  call void @free(ptr noundef %324) #7
  %325 = load ptr, ptr %13, align 8, !tbaa !5
  %326 = load ptr, ptr %325, align 8, !tbaa !5
  call void @free(ptr noundef %326) #7
  %327 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %327) #7
  %328 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %328, align 4, !tbaa !9
  %329 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %329, align 4, !tbaa !9
  %330 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %330, align 4, !tbaa !9
  %331 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %331, align 8, !tbaa !5
  %332 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %332, align 8, !tbaa !5
  %333 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %333, align 8, !tbaa !5
  %334 = load ptr, ptr %9, align 8, !tbaa !5
  %335 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %336 = icmp ult i32 1, %335
  br i1 %336, label %337, label %339

337:                                              ; preds = %320
  %338 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %340

339:                                              ; preds = %320
  br label %340

340:                                              ; preds = %339, %337
  %341 = phi i32 [ %338, %337 ], [ 1, %339 ]
  call void @libxsmm_handle_error(ptr noundef %334, i32 noundef 90015, ptr noundef @__func__.libxsmm_sparse_csc_reader, ptr noundef @.str.1, i32 noundef 173, i32 noundef %341)
  store i32 1, ptr %23, align 4
  br label %378

342:                                              ; preds = %313
  %343 = load ptr, ptr %21, align 8, !tbaa !5
  %344 = icmp ne ptr %343, null
  br i1 %344, label %345, label %377

345:                                              ; preds = %342
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %346

346:                                              ; preds = %372, %345
  %347 = load i32, ptr %22, align 4, !tbaa !9
  %348 = load ptr, ptr %15, align 8, !tbaa !5
  %349 = load i32, ptr %348, align 4, !tbaa !9
  %350 = icmp ult i32 %347, %349
  br i1 %350, label %351, label %375

351:                                              ; preds = %346
  %352 = load ptr, ptr %21, align 8, !tbaa !5
  %353 = load i32, ptr %22, align 4, !tbaa !9
  %354 = zext i32 %353 to i64
  %355 = getelementptr inbounds i32, ptr %352, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !9
  %357 = icmp eq i32 %356, 0
  br i1 %357, label %358, label %371

358:                                              ; preds = %351
  %359 = load ptr, ptr %12, align 8, !tbaa !5
  %360 = load ptr, ptr %359, align 8, !tbaa !5
  %361 = load i32, ptr %22, align 4, !tbaa !9
  %362 = zext i32 %361 to i64
  %363 = getelementptr inbounds i32, ptr %360, i64 %362
  %364 = load i32, ptr %363, align 4, !tbaa !9
  %365 = load ptr, ptr %12, align 8, !tbaa !5
  %366 = load ptr, ptr %365, align 8, !tbaa !5
  %367 = load i32, ptr %22, align 4, !tbaa !9
  %368 = add i32 %367, 1
  %369 = zext i32 %368 to i64
  %370 = getelementptr inbounds i32, ptr %366, i64 %369
  store i32 %364, ptr %370, align 4, !tbaa !9
  br label %371

371:                                              ; preds = %358, %351
  br label %372

372:                                              ; preds = %371
  %373 = load i32, ptr %22, align 4, !tbaa !9
  %374 = add i32 %373, 1
  store i32 %374, ptr %22, align 4, !tbaa !9
  br label %346, !llvm.loop !17

375:                                              ; preds = %346
  %376 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %376) #7
  br label %377

377:                                              ; preds = %375, %342
  store i32 0, ptr %23, align 4
  br label %378

378:                                              ; preds = %377, %340, %308, %224, %75, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 513, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  %379 = load i32, ptr %23, align 4
  switch i32 %379, label %381 [
    i32 0, label %380
    i32 1, label %380
  ]

380:                                              ; preds = %378, %378
  ret void

381:                                              ; preds = %378
  unreachable
}

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

declare noalias ptr @fopen(ptr noundef, ptr noundef) #2

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

declare ptr @fgets(ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @__isoc99_sscanf(ptr noundef, ptr noundef, ...) #4

; Function Attrs: nounwind allocsize(0,1)
declare noalias ptr @calloc(i64 noundef, i64 noundef) #5

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #6

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind willreturn memory(read) "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 "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 #5 = { nounwind allocsize(0,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 #6 = { noreturn 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0,1) }
attributes #10 = { noreturn 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !13}


; 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 [2 x i8], align 1
@__func__.libxsmm_sparse_csc_reader = external hidden unnamed_addr constant [26 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [83 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_sparse_csc_reader = external hidden unnamed_addr constant [164 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csc_reader(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6, ptr nocapture noundef %7) local_unnamed_addr #0 {
  %9 = alloca [513 x i8], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 513, ptr nonnull %9) #9
  %16 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str)
  %17 = icmp eq ptr %16, null
  br i1 %17, label %18, label %.outer.outer

18:                                               ; preds = %8
  %19 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %20 = icmp ugt i32 %19, 1
  %21 = load i32, ptr @libxsmm_verbosity, align 4
  %22 = select i1 %20, i32 %21, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90011, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 71, i32 noundef %22) #9
  br label %160

23:                                               ; preds = %.outer, %37
  %24 = call ptr @fgets(ptr noundef nonnull %9, i32 noundef 512, ptr noundef nonnull %16)
  %.not = icmp eq ptr %24, null
  br i1 %.not, label %133, label %25

25:                                               ; preds = %23
  %26 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #10
  %27 = icmp eq i64 %26, 512
  br i1 %27, label %28, label %37

28:                                               ; preds = %25
  %29 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %29) #9
  %30 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %30) #9
  %31 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %31) #9
  call void @free(ptr noundef %.0117.ph.ph) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  store ptr null, ptr %3, align 8, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !9
  store ptr null, ptr %4, align 8, !tbaa !9
  %32 = call i32 @fclose(ptr noundef nonnull %16)
  %33 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %34 = icmp ugt i32 %33, 1
  %35 = load i32, ptr @libxsmm_verbosity, align 4
  %36 = select i1 %34, i32 %35, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90012, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 81, i32 noundef %36) #9
  br label %160

37:                                               ; preds = %25
  %38 = load i8, ptr %9, align 16, !tbaa !11
  %39 = icmp eq i8 %38, 37
  br i1 %39, label %23, label %40, !llvm.loop !12

40:                                               ; preds = %37
  br i1 %132, label %41, label %91

41:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  %42 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.2, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12) #9
  %43 = icmp eq i32 %42, 3
  %44 = load i32, ptr %10, align 4
  %45 = icmp ne i32 %44, 0
  %or.cond = select i1 %43, i1 %45, i1 false
  %46 = load i32, ptr %11, align 4
  %47 = icmp ne i32 %46, 0
  %or.cond4 = select i1 %or.cond, i1 %47, i1 false
  br i1 %or.cond4, label %48, label %84

48:                                               ; preds = %41
  %49 = load i32, ptr %7, align 4, !tbaa !5
  %.not134 = icmp eq i32 %49, 0
  br i1 %.not134, label %84, label %50

50:                                               ; preds = %48
  %51 = load i32, ptr %6, align 4, !tbaa !5
  %. = call i32 @llvm.umax.i32(i32 %51, i32 %46)
  store i32 %., ptr %6, align 4, !tbaa !5
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = call i32 @llvm.umax.i32(i32 %52, i32 %44)
  store i32 %53, ptr %5, align 4, !tbaa !5
  %54 = load i32, ptr %12, align 4
  %55 = call i32 @llvm.umax.i32(i32 %54, i32 1)
  store i32 %55, ptr %7, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = call noalias ptr @calloc(i64 noundef %56, i64 noundef 4) #11
  store ptr %57, ptr %2, align 8, !tbaa !9
  %58 = load i32, ptr %6, align 4, !tbaa !5
  %59 = zext i32 %58 to i64
  %60 = add nuw nsw i64 %59, 1
  %61 = call noalias ptr @calloc(i64 noundef %60, i64 noundef 4) #11
  store ptr %61, ptr %3, align 8, !tbaa !9
  %62 = call noalias ptr @calloc(i64 noundef %56, i64 noundef 8) #11
  store ptr %62, ptr %4, align 8, !tbaa !9
  %63 = call noalias ptr @calloc(i64 noundef %59, i64 noundef 4) #11
  %64 = load ptr, ptr %2, align 8, !tbaa !9
  %65 = icmp eq ptr %64, null
  br i1 %65, label %72, label %66

66:                                               ; preds = %50
  %67 = load ptr, ptr %3, align 8, !tbaa !9
  %68 = icmp eq ptr %67, null
  br i1 %68, label %72, label %69

69:                                               ; preds = %66
  %70 = icmp eq ptr %62, null
  %71 = icmp eq ptr %63, null
  %or.cond6 = or i1 %70, %71
  br i1 %or.cond6, label %72, label %.preheader143

72:                                               ; preds = %69, %66, %50
  call void @free(ptr noundef %64) #9
  %73 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %73) #9
  %74 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %74) #9
  call void @free(ptr noundef %63) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  store ptr null, ptr %3, align 8, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !9
  store ptr null, ptr %4, align 8, !tbaa !9
  %75 = call i32 @fclose(ptr noundef nonnull %16)
  %76 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %77 = icmp ugt i32 %76, 1
  %78 = load i32, ptr @libxsmm_verbosity, align 4
  %79 = select i1 %77, i32 %78, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90026, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 116, i32 noundef %79) #9
  br label %.thread

.preheader143:                                    ; preds = %69, %.preheader143
  %.1116156 = phi i32 [ %82, %.preheader143 ], [ 0, %69 ]
  %80 = zext i32 %.1116156 to i64
  %81 = getelementptr inbounds i32, ptr %67, i64 %80
  store i32 %55, ptr %81, align 4, !tbaa !5
  %82 = add i32 %.1116156, 1
  %83 = load i32, ptr %6, align 4, !tbaa !5
  %.not135 = icmp ugt i32 %82, %83
  br i1 %.not135, label %90, label %.preheader143, !llvm.loop !14

84:                                               ; preds = %48, %41
  %85 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %86 = icmp ugt i32 %85, 1
  %87 = load i32, ptr @libxsmm_verbosity, align 4
  %88 = select i1 %86, i32 %87, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90013, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 130, i32 noundef %88) #9
  %89 = call i32 @fclose(ptr noundef nonnull %16)
  br label %.thread

.thread:                                          ; preds = %72, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %160

90:                                               ; preds = %.preheader143
  store i32 0, ptr %67, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #9
  br label %.outer.outer, !llvm.loop !12

.outer.outer:                                     ; preds = %8, %90
  %.ph = phi i1 [ false, %90 ], [ true, %8 ]
  %.0117.ph.ph = phi ptr [ %63, %90 ], [ null, %8 ]
  br label %.outer

91:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #9
  store i32 0, ptr %13, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #9
  store i32 0, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #9
  store double 0.000000e+00, ptr %15, align 8, !tbaa !15
  %92 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.3, ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef nonnull %15) #9
  %.not132 = icmp eq i32 %92, 3
  br i1 %.not132, label %93, label %123

93:                                               ; preds = %91
  %94 = load i32, ptr %13, align 4, !tbaa !5
  %95 = load i32, ptr %5, align 4, !tbaa !5
  %96 = icmp ugt i32 %94, %95
  br i1 %96, label %123, label %97

97:                                               ; preds = %93
  %98 = load i32, ptr %14, align 4
  %99 = load i32, ptr %6, align 4, !tbaa !5
  %100 = icmp ugt i32 %98, %99
  br i1 %100, label %123, label %101

101:                                              ; preds = %97
  %102 = load i32, ptr %7, align 4, !tbaa !5
  %.not133 = icmp ult i32 %.0115.ph, %102
  br i1 %.not133, label %103, label %123

103:                                              ; preds = %101
  %104 = icmp ne i32 %94, 0
  %105 = icmp ne i32 %98, 0
  %or.cond8 = and i1 %104, %105
  br i1 %or.cond8, label %.thread140, label %106

106:                                              ; preds = %103
  call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 151, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_sparse_csc_reader) #12
  unreachable

.thread140:                                       ; preds = %103
  %107 = add i32 %94, -1
  %108 = add i32 %98, -1
  store i32 %108, ptr %14, align 4, !tbaa !5
  %109 = load ptr, ptr %2, align 8, !tbaa !9
  %110 = zext i32 %.0115.ph to i64
  %111 = getelementptr inbounds i32, ptr %109, i64 %110
  store i32 %107, ptr %111, align 4, !tbaa !5
  %112 = load double, ptr %15, align 8, !tbaa !15
  %113 = load ptr, ptr %4, align 8, !tbaa !9
  %114 = getelementptr inbounds double, ptr %113, i64 %110
  store double %112, ptr %114, align 8, !tbaa !15
  %115 = add nuw i32 %.0115.ph, 1
  %116 = load i32, ptr %14, align 4, !tbaa !5
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds i32, ptr %.0117.ph.ph, i64 %117
  store i32 1, ptr %118, align 4, !tbaa !5
  %119 = load ptr, ptr %3, align 8, !tbaa !9
  %120 = add i32 %116, 1
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  store i32 %115, ptr %122, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  br label %.outer, !llvm.loop !12

123:                                              ; preds = %91, %93, %97, %101
  %124 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %124) #9
  %125 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %125) #9
  %126 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %126) #9
  call void @free(ptr noundef %.0117.ph.ph) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  store ptr null, ptr %3, align 8, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !9
  store ptr null, ptr %4, align 8, !tbaa !9
  %127 = call i32 @fclose(ptr noundef nonnull %16)
  %128 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %129 = icmp ugt i32 %128, 1
  %130 = load i32, ptr @libxsmm_verbosity, align 4
  %131 = select i1 %129, i32 %130, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90014, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 147, i32 noundef %131) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  br label %160

.outer:                                           ; preds = %.outer.outer, %.thread140
  %132 = phi i1 [ false, %.thread140 ], [ %.ph, %.outer.outer ]
  %.0115.ph = phi i32 [ %115, %.thread140 ], [ 0, %.outer.outer ]
  br label %23

133:                                              ; preds = %23
  %134 = call i32 @fclose(ptr noundef nonnull %16)
  %135 = load i32, ptr %7, align 4, !tbaa !5
  %.not130 = icmp eq i32 %.0115.ph, %135
  br i1 %.not130, label %144, label %136

136:                                              ; preds = %133
  %137 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %137) #9
  %138 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %138) #9
  %139 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %139) #9
  call void @free(ptr noundef %.0117.ph.ph) #9
  store i32 0, ptr %7, align 4, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 0, ptr %5, align 4, !tbaa !5
  store ptr null, ptr %3, align 8, !tbaa !9
  store ptr null, ptr %2, align 8, !tbaa !9
  store ptr null, ptr %4, align 8, !tbaa !9
  %140 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %141 = icmp ugt i32 %140, 1
  %142 = load i32, ptr @libxsmm_verbosity, align 4
  %143 = select i1 %141, i32 %142, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90015, ptr noundef nonnull @__func__.libxsmm_sparse_csc_reader, ptr noundef nonnull @.str.1, i32 noundef 173, i32 noundef %143) #9
  br label %160

144:                                              ; preds = %133
  %.not131 = icmp eq ptr %.0117.ph.ph, null
  br i1 %.not131, label %160, label %.preheader

.preheader:                                       ; preds = %144
  %145 = load i32, ptr %6, align 4, !tbaa !5
  %.not158 = icmp eq i32 %145, 0
  br i1 %.not158, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %156
  %146 = phi i32 [ %157, %156 ], [ %145, %.preheader ]
  %indvars.iv = phi i64 [ %indvars.iv.next.pre-phi, %156 ], [ 0, %.preheader ]
  %147 = getelementptr inbounds i32, ptr %.0117.ph.ph, i64 %indvars.iv
  %148 = load i32, ptr %147, align 4, !tbaa !5
  %149 = icmp eq i32 %148, 0
  br i1 %149, label %150, label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph
  %.pre171 = add nuw nsw i64 %indvars.iv, 1
  br label %156

150:                                              ; preds = %.lr.ph
  %151 = load ptr, ptr %3, align 8, !tbaa !9
  %152 = getelementptr inbounds i32, ptr %151, i64 %indvars.iv
  %153 = load i32, ptr %152, align 4, !tbaa !5
  %154 = add nuw nsw i64 %indvars.iv, 1
  %155 = getelementptr inbounds i32, ptr %151, i64 %154
  store i32 %153, ptr %155, align 4, !tbaa !5
  %.pre = load i32, ptr %6, align 4, !tbaa !5
  br label %156

156:                                              ; preds = %.lr.ph._crit_edge, %150
  %indvars.iv.next.pre-phi = phi i64 [ %.pre171, %.lr.ph._crit_edge ], [ %154, %150 ]
  %157 = phi i32 [ %146, %.lr.ph._crit_edge ], [ %.pre, %150 ]
  %158 = zext i32 %157 to i64
  %159 = icmp ult i64 %indvars.iv.next.pre-phi, %158
  br i1 %159, label %.lr.ph, label %._crit_edge, !llvm.loop !17

._crit_edge:                                      ; preds = %156, %.preheader
  call void @free(ptr noundef nonnull %.0117.ph.ph) #9
  br label %160

160:                                              ; preds = %123, %.thread, %144, %._crit_edge, %136, %28, %18
  call void @llvm.lifetime.end.p0(i64 513, ptr nonnull %9) #9
  ret void
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #2

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

; Function Attrs: nofree nounwind
declare noundef ptr @fgets(ptr noundef, i32 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #2

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #6

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umax.i32(i32, i32) #8

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 #5 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #6 = { mustprogress nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #7 = { noreturn 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { nounwind allocsize(0,1) }
attributes #12 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !13}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass