; LLVM IR from libxsmm/libxsmm :: src (generator_spgemm_csr_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_csr_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_csr_reader = external hidden unnamed_addr constant [164 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csr_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 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
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call noalias ptr @fopen(ptr noundef %29, ptr noundef @.str)
  store ptr %30, ptr %17, align 8, !tbaa !5
  %31 = load ptr, ptr %17, align 8, !tbaa !5
  %32 = icmp eq ptr %31, null
  br i1 %32, label %33, label %42

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

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

39:                                               ; preds = %33
  br label %40

40:                                               ; preds = %39, %37
  %41 = phi i32 [ %38, %37 ], [ 1, %39 ]
  call void @libxsmm_handle_error(ptr noundef %34, i32 noundef 90028, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 32, i32 noundef %41)
  store i32 1, ptr %23, align 4
  br label %370

42:                                               ; preds = %8
  br label %43

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

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

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

71:                                               ; preds = %52
  %72 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %74

73:                                               ; preds = %52
  br label %74

74:                                               ; preds = %73, %71
  %75 = phi i32 [ %72, %71 ], [ 1, %73 ]
  call void @libxsmm_handle_error(ptr noundef %68, i32 noundef 90029, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 42, i32 noundef %75)
  store i32 1, ptr %23, align 4
  br label %370

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

81:                                               ; preds = %76
  br label %43, !llvm.loop !12

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

85:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %86 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %87 = load ptr, ptr %16, align 8, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %86, ptr noundef @.str.2, ptr noundef %24, ptr noundef %25, ptr noundef %87) #7
  %89 = icmp eq i32 3, %88
  br i1 %89, label %90, label %204

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

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

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 %204

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 ptr, ptr %16, align 8, !tbaa !5
  %126 = load i32, ptr %125, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = call noalias ptr @calloc(i64 noundef %127, i64 noundef 4) #9
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %128, ptr %129, align 8, !tbaa !5
  %130 = load ptr, ptr %14, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = zext i32 %131 to i64
  %133 = add i64 %132, 1
  %134 = call noalias ptr @calloc(i64 noundef %133, i64 noundef 4) #9
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %134, ptr %135, align 8, !tbaa !5
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = load i32, ptr %136, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = call noalias ptr @calloc(i64 noundef %138, i64 noundef 8) #9
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %139, ptr %140, align 8, !tbaa !5
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  %143 = zext i32 %142 to i64
  %144 = call noalias ptr @calloc(i64 noundef %143, i64 noundef 4) #9
  store ptr %144, ptr %21, align 8, !tbaa !5
  %145 = load ptr, ptr %11, align 8, !tbaa !5
  %146 = load ptr, ptr %145, align 8, !tbaa !5
  %147 = icmp eq ptr %146, null
  br i1 %147, label %159, label %148

148:                                              ; preds = %122
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %149, align 8, !tbaa !5
  %151 = icmp eq ptr %150, null
  br i1 %151, label %159, label %152

152:                                              ; preds = %148
  %153 = load ptr, ptr %13, align 8, !tbaa !5
  %154 = load ptr, ptr %153, align 8, !tbaa !5
  %155 = icmp eq ptr %154, null
  br i1 %155, label %159, label %156

156:                                              ; preds = %152
  %157 = load ptr, ptr %21, align 8, !tbaa !5
  %158 = icmp eq ptr %157, null
  br i1 %158, label %159, label %183

159:                                              ; preds = %156, %152, %148, %122
  %160 = load ptr, ptr %11, align 8, !tbaa !5
  %161 = load ptr, ptr %160, align 8, !tbaa !5
  call void @free(ptr noundef %161) #7
  %162 = load ptr, ptr %12, align 8, !tbaa !5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  call void @free(ptr noundef %163) #7
  %164 = load ptr, ptr %13, align 8, !tbaa !5
  %165 = load ptr, ptr %164, align 8, !tbaa !5
  call void @free(ptr noundef %165) #7
  %166 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %166) #7
  %167 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %167, align 4, !tbaa !9
  %168 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %168, align 4, !tbaa !9
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %169, align 4, !tbaa !9
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %170, align 8, !tbaa !5
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %171, align 8, !tbaa !5
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %172, align 8, !tbaa !5
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  %174 = call i32 @fclose(ptr noundef %173)
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %177 = icmp ult i32 1, %176
  br i1 %177, label %178, label %180

178:                                              ; preds = %159
  %179 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %181

180:                                              ; preds = %159
  br label %181

181:                                              ; preds = %180, %178
  %182 = phi i32 [ %179, %178 ], [ 1, %180 ]
  call void @libxsmm_handle_error(ptr noundef %175, i32 noundef 90026, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 76, i32 noundef %182)
  store i32 1, ptr %23, align 4
  br label %216

183:                                              ; preds = %156
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %197, %183
  %185 = load i32, ptr %22, align 4, !tbaa !9
  %186 = load ptr, ptr %14, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = icmp ule i32 %185, %187
  br i1 %188, label %189, label %200

189:                                              ; preds = %184
  %190 = load ptr, ptr %16, align 8, !tbaa !5
  %191 = load i32, ptr %190, align 4, !tbaa !9
  %192 = load ptr, ptr %11, align 8, !tbaa !5
  %193 = load ptr, ptr %192, align 8, !tbaa !5
  %194 = load i32, ptr %22, align 4, !tbaa !9
  %195 = zext i32 %194 to i64
  %196 = getelementptr inbounds i32, ptr %193, i64 %195
  store i32 %191, ptr %196, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %189
  %198 = load i32, ptr %22, align 4, !tbaa !9
  %199 = add i32 %198, 1
  store i32 %199, ptr %22, align 4, !tbaa !9
  br label %184, !llvm.loop !14

200:                                              ; preds = %184
  %201 = load ptr, ptr %11, align 8, !tbaa !5
  %202 = load ptr, ptr %201, align 8, !tbaa !5
  %203 = getelementptr inbounds i32, ptr %202, i64 0
  store i32 0, ptr %203, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  store i32 1, ptr %20, align 4, !tbaa !9
  br label %215

204:                                              ; preds = %96, %93, %90, %85
  %205 = load ptr, ptr %9, align 8, !tbaa !5
  %206 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %207 = icmp ult i32 1, %206
  br i1 %207, label %208, label %210

208:                                              ; preds = %204
  %209 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %211

210:                                              ; preds = %204
  br label %211

211:                                              ; preds = %210, %208
  %212 = phi i32 [ %209, %208 ], [ 1, %210 ]
  call void @libxsmm_handle_error(ptr noundef %205, i32 noundef 90030, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 90, i32 noundef %212)
  %213 = load ptr, ptr %17, align 8, !tbaa !5
  %214 = call i32 @fclose(ptr noundef %213)
  store i32 1, ptr %23, align 4
  br label %216

215:                                              ; preds = %200
  store i32 0, ptr %23, align 4
  br label %216

216:                                              ; preds = %215, %211, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  %217 = load i32, ptr %23, align 4
  switch i32 %217, label %370 [
    i32 0, label %218
  ]

218:                                              ; preds = %216
  br label %303

219:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !9
  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 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !15
  %220 = getelementptr inbounds [513 x i8], ptr %19, i64 0, i64 0
  %221 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %220, ptr noundef @.str.3, ptr noundef %26, ptr noundef %27, ptr noundef %28) #7
  %222 = icmp ne i32 %221, 3
  br i1 %222, label %238, label %223

223:                                              ; preds = %219
  %224 = load i32, ptr %26, align 4, !tbaa !9
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = load i32, ptr %225, align 4, !tbaa !9
  %227 = icmp ugt i32 %224, %226
  br i1 %227, label %238, label %228

228:                                              ; preds = %223
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  %231 = load i32, ptr %230, align 4, !tbaa !9
  %232 = icmp ugt i32 %229, %231
  br i1 %232, label %238, label %233

233:                                              ; preds = %228
  %234 = load i32, ptr %22, align 4, !tbaa !9
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = icmp uge i32 %234, %236
  br i1 %237, label %238, label %262

238:                                              ; preds = %233, %228, %223, %219
  %239 = load ptr, ptr %11, align 8, !tbaa !5
  %240 = load ptr, ptr %239, align 8, !tbaa !5
  call void @free(ptr noundef %240) #7
  %241 = load ptr, ptr %12, align 8, !tbaa !5
  %242 = load ptr, ptr %241, align 8, !tbaa !5
  call void @free(ptr noundef %242) #7
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  %244 = load ptr, ptr %243, align 8, !tbaa !5
  call void @free(ptr noundef %244) #7
  %245 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %245) #7
  %246 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %246, align 4, !tbaa !9
  %247 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %247, align 4, !tbaa !9
  %248 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %248, align 4, !tbaa !9
  %249 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %249, align 8, !tbaa !5
  %250 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %250, align 8, !tbaa !5
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %251, align 8, !tbaa !5
  %252 = load ptr, ptr %17, align 8, !tbaa !5
  %253 = call i32 @fclose(ptr noundef %252)
  %254 = load ptr, ptr %9, align 8, !tbaa !5
  %255 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %256 = icmp ult i32 1, %255
  br i1 %256, label %257, label %259

257:                                              ; preds = %238
  %258 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %260

259:                                              ; preds = %238
  br label %260

260:                                              ; preds = %259, %257
  %261 = phi i32 [ %258, %257 ], [ 1, %259 ]
  call void @libxsmm_handle_error(ptr noundef %254, i32 noundef 90031, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 107, i32 noundef %261)
  store i32 1, ptr %23, align 4
  br label %300

262:                                              ; preds = %233
  %263 = load i32, ptr %26, align 4, !tbaa !9
  %264 = icmp ne i32 0, %263
  br i1 %264, label %265, label %269

265:                                              ; preds = %262
  %266 = load i32, ptr %27, align 4, !tbaa !9
  %267 = icmp ne i32 0, %266
  br i1 %267, label %268, label %269

268:                                              ; preds = %265
  br label %270

269:                                              ; preds = %265, %262
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 111, ptr noundef @__PRETTY_FUNCTION__.libxsmm_sparse_csr_reader) #10
  unreachable

270:                                              ; preds = %268
  %271 = load i32, ptr %26, align 4, !tbaa !9
  %272 = add i32 %271, -1
  store i32 %272, ptr %26, align 4, !tbaa !9
  %273 = load i32, ptr %27, align 4, !tbaa !9
  %274 = add i32 %273, -1
  store i32 %274, ptr %27, align 4, !tbaa !9
  %275 = load i32, ptr %27, align 4, !tbaa !9
  %276 = load ptr, ptr %12, align 8, !tbaa !5
  %277 = load ptr, ptr %276, align 8, !tbaa !5
  %278 = load i32, ptr %22, align 4, !tbaa !9
  %279 = zext i32 %278 to i64
  %280 = getelementptr inbounds i32, ptr %277, i64 %279
  store i32 %275, ptr %280, align 4, !tbaa !9
  %281 = load double, ptr %28, align 8, !tbaa !15
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = load ptr, ptr %282, align 8, !tbaa !5
  %284 = load i32, ptr %22, align 4, !tbaa !9
  %285 = zext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  store double %281, ptr %286, align 8, !tbaa !15
  %287 = load i32, ptr %22, align 4, !tbaa !9
  %288 = add i32 %287, 1
  store i32 %288, ptr %22, align 4, !tbaa !9
  %289 = load ptr, ptr %21, align 8, !tbaa !5
  %290 = load i32, ptr %26, align 4, !tbaa !9
  %291 = zext i32 %290 to i64
  %292 = getelementptr inbounds i32, ptr %289, i64 %291
  store i32 1, ptr %292, align 4, !tbaa !9
  %293 = load i32, ptr %22, align 4, !tbaa !9
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = load ptr, ptr %294, align 8, !tbaa !5
  %296 = load i32, ptr %26, align 4, !tbaa !9
  %297 = add i32 %296, 1
  %298 = zext i32 %297 to i64
  %299 = getelementptr inbounds i32, ptr %295, i64 %298
  store i32 %293, ptr %299, align 4, !tbaa !9
  store i32 0, ptr %23, align 4
  br label %300

300:                                              ; preds = %270, %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  %301 = load i32, ptr %23, align 4
  switch i32 %301, label %370 [
    i32 0, label %302
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %218
  br label %304

304:                                              ; preds = %303
  br label %43, !llvm.loop !12

305:                                              ; preds = %43
  %306 = load ptr, ptr %17, align 8, !tbaa !5
  %307 = call i32 @fclose(ptr noundef %306)
  %308 = load i32, ptr %22, align 4, !tbaa !9
  %309 = load ptr, ptr %16, align 8, !tbaa !5
  %310 = load i32, ptr %309, align 4, !tbaa !9
  %311 = icmp ne i32 %308, %310
  br i1 %311, label %312, label %334

312:                                              ; preds = %305
  %313 = load ptr, ptr %11, align 8, !tbaa !5
  %314 = load ptr, ptr %313, align 8, !tbaa !5
  call void @free(ptr noundef %314) #7
  %315 = load ptr, ptr %12, align 8, !tbaa !5
  %316 = load ptr, ptr %315, align 8, !tbaa !5
  call void @free(ptr noundef %316) #7
  %317 = load ptr, ptr %13, align 8, !tbaa !5
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  call void @free(ptr noundef %318) #7
  %319 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %319) #7
  %320 = load ptr, ptr %16, align 8, !tbaa !5
  store i32 0, ptr %320, align 4, !tbaa !9
  %321 = load ptr, ptr %15, align 8, !tbaa !5
  store i32 0, ptr %321, align 4, !tbaa !9
  %322 = load ptr, ptr %14, align 8, !tbaa !5
  store i32 0, ptr %322, align 4, !tbaa !9
  %323 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %323, align 8, !tbaa !5
  %324 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %324, align 8, !tbaa !5
  %325 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %325, align 8, !tbaa !5
  %326 = load ptr, ptr %9, align 8, !tbaa !5
  %327 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %328 = icmp ult i32 1, %327
  br i1 %328, label %329, label %331

329:                                              ; preds = %312
  %330 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %332

331:                                              ; preds = %312
  br label %332

332:                                              ; preds = %331, %329
  %333 = phi i32 [ %330, %329 ], [ 1, %331 ]
  call void @libxsmm_handle_error(ptr noundef %326, i32 noundef 90032, ptr noundef @__func__.libxsmm_sparse_csr_reader, ptr noundef @.str.1, i32 noundef 133, i32 noundef %333)
  store i32 1, ptr %23, align 4
  br label %370

334:                                              ; preds = %305
  %335 = load ptr, ptr %21, align 8, !tbaa !5
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %369

337:                                              ; preds = %334
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %338

338:                                              ; preds = %364, %337
  %339 = load i32, ptr %22, align 4, !tbaa !9
  %340 = load ptr, ptr %14, align 8, !tbaa !5
  %341 = load i32, ptr %340, align 4, !tbaa !9
  %342 = icmp ult i32 %339, %341
  br i1 %342, label %343, label %367

343:                                              ; preds = %338
  %344 = load ptr, ptr %21, align 8, !tbaa !5
  %345 = load i32, ptr %22, align 4, !tbaa !9
  %346 = zext i32 %345 to i64
  %347 = getelementptr inbounds i32, ptr %344, i64 %346
  %348 = load i32, ptr %347, align 4, !tbaa !9
  %349 = icmp eq i32 %348, 0
  br i1 %349, label %350, label %363

350:                                              ; preds = %343
  %351 = load ptr, ptr %11, align 8, !tbaa !5
  %352 = load ptr, ptr %351, 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 = load ptr, ptr %11, align 8, !tbaa !5
  %358 = load ptr, ptr %357, align 8, !tbaa !5
  %359 = load i32, ptr %22, align 4, !tbaa !9
  %360 = add i32 %359, 1
  %361 = zext i32 %360 to i64
  %362 = getelementptr inbounds i32, ptr %358, i64 %361
  store i32 %356, ptr %362, align 4, !tbaa !9
  br label %363

363:                                              ; preds = %350, %343
  br label %364

364:                                              ; preds = %363
  %365 = load i32, ptr %22, align 4, !tbaa !9
  %366 = add i32 %365, 1
  store i32 %366, ptr %22, align 4, !tbaa !9
  br label %338, !llvm.loop !17

367:                                              ; preds = %338
  %368 = load ptr, ptr %21, align 8, !tbaa !5
  call void @free(ptr noundef %368) #7
  br label %369

369:                                              ; preds = %367, %334
  store i32 0, ptr %23, align 4
  br label %370

370:                                              ; preds = %369, %332, %300, %216, %74, %40
  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
  %371 = load i32, ptr %23, align 4
  switch i32 %371, label %373 [
    i32 0, label %372
    i32 1, label %372
  ]

372:                                              ; preds = %370, %370
  ret void

373:                                              ; preds = %370
  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_csr_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_csr_reader = external hidden unnamed_addr constant [164 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_sparse_csr_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 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 double, align 8
  call void @llvm.lifetime.start.p0(i64 513, ptr nonnull %9) #9
  %15 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %.outer.outer

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

22:                                               ; preds = %.outer, %36
  %23 = call ptr @fgets(ptr noundef nonnull %9, i32 noundef 512, ptr noundef nonnull %15)
  %.not = icmp eq ptr %23, null
  br i1 %.not, label %130, label %24

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

27:                                               ; preds = %24
  %28 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %28) #9
  %29 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %29) #9
  %30 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %30) #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
  %31 = call i32 @fclose(ptr noundef nonnull %15)
  %32 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %33 = icmp ugt i32 %32, 1
  %34 = load i32, ptr @libxsmm_verbosity, align 4
  %35 = select i1 %33, i32 %34, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90029, ptr noundef nonnull @__func__.libxsmm_sparse_csr_reader, ptr noundef nonnull @.str.1, i32 noundef 42, i32 noundef %35) #9
  br label %157

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

39:                                               ; preds = %36
  br i1 %129, label %40, label %88

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  %41 = 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 %7) #9
  %42 = icmp eq i32 %41, 3
  %43 = load i32, ptr %10, align 4
  %44 = icmp ne i32 %43, 0
  %or.cond = select i1 %42, i1 %44, i1 false
  %45 = load i32, ptr %11, align 4
  %46 = icmp ne i32 %45, 0
  %or.cond4 = select i1 %or.cond, i1 %46, i1 false
  br i1 %or.cond4, label %47, label %81

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

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

63:                                               ; preds = %49
  %64 = load ptr, ptr %3, align 8, !tbaa !9
  %65 = icmp eq ptr %64, null
  br i1 %65, label %69, label %66

66:                                               ; preds = %63
  %67 = icmp eq ptr %59, null
  %68 = icmp eq ptr %60, null
  %or.cond6 = or i1 %67, %68
  br i1 %or.cond6, label %69, label %.preheader143

69:                                               ; preds = %66, %63, %49
  call void @free(ptr noundef %61) #9
  %70 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %70) #9
  %71 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %71) #9
  call void @free(ptr noundef %60) #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
  %72 = call i32 @fclose(ptr noundef nonnull %15)
  %73 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %74 = icmp ugt i32 %73, 1
  %75 = load i32, ptr @libxsmm_verbosity, align 4
  %76 = select i1 %74, i32 %75, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90026, ptr noundef nonnull @__func__.libxsmm_sparse_csr_reader, ptr noundef nonnull @.str.1, i32 noundef 76, i32 noundef %76) #9
  br label %.thread

.preheader143:                                    ; preds = %66, %.preheader143
  %.1116156 = phi i32 [ %79, %.preheader143 ], [ 0, %66 ]
  %77 = zext i32 %.1116156 to i64
  %78 = getelementptr inbounds i32, ptr %61, i64 %77
  store i32 %53, ptr %78, align 4, !tbaa !5
  %79 = add i32 %.1116156, 1
  %80 = load i32, ptr %5, align 4, !tbaa !5
  %.not135 = icmp ugt i32 %79, %80
  br i1 %.not135, label %87, label %.preheader143, !llvm.loop !14

81:                                               ; preds = %47, %40
  %82 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %83 = icmp ugt i32 %82, 1
  %84 = load i32, ptr @libxsmm_verbosity, align 4
  %85 = select i1 %83, i32 %84, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90030, ptr noundef nonnull @__func__.libxsmm_sparse_csr_reader, ptr noundef nonnull @.str.1, i32 noundef 90, i32 noundef %85) #9
  %86 = call i32 @fclose(ptr noundef nonnull %15)
  br label %.thread

.thread:                                          ; preds = %69, %81
  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 %157

87:                                               ; preds = %.preheader143
  store i32 0, ptr %61, align 4, !tbaa !5
  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, %87
  %.ph = phi i1 [ false, %87 ], [ true, %8 ]
  %.0117.ph.ph = phi ptr [ %60, %87 ], [ null, %8 ]
  br label %.outer

88:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #9
  store i32 0, ptr %12, align 4, !tbaa !5
  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 8, ptr nonnull %14) #9
  store double 0.000000e+00, ptr %14, align 8, !tbaa !15
  %89 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %9, ptr noundef nonnull @.str.3, ptr noundef nonnull %12, ptr noundef nonnull %13, ptr noundef nonnull %14) #9
  %.not132 = icmp eq i32 %89, 3
  br i1 %.not132, label %90, label %120

90:                                               ; preds = %88
  %91 = load i32, ptr %12, align 4, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !5
  %93 = icmp ugt i32 %91, %92
  br i1 %93, label %120, label %94

94:                                               ; preds = %90
  %95 = load i32, ptr %13, align 4
  %96 = load i32, ptr %6, align 4, !tbaa !5
  %97 = icmp ugt i32 %95, %96
  br i1 %97, label %120, label %98

98:                                               ; preds = %94
  %99 = load i32, ptr %7, align 4, !tbaa !5
  %.not133 = icmp ult i32 %.0115.ph, %99
  br i1 %.not133, label %100, label %120

100:                                              ; preds = %98
  %101 = icmp ne i32 %91, 0
  %102 = icmp ne i32 %95, 0
  %or.cond8 = and i1 %101, %102
  br i1 %or.cond8, label %.thread140, label %103

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

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

120:                                              ; preds = %88, %90, %94, %98
  %121 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %121) #9
  %122 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %122) #9
  %123 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %123) #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
  %124 = call i32 @fclose(ptr noundef nonnull %15)
  %125 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %126 = icmp ugt i32 %125, 1
  %127 = load i32, ptr @libxsmm_verbosity, align 4
  %128 = select i1 %126, i32 %127, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90031, ptr noundef nonnull @__func__.libxsmm_sparse_csr_reader, ptr noundef nonnull @.str.1, i32 noundef 107, i32 noundef %128) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #9
  br label %157

.outer:                                           ; preds = %.outer.outer, %.thread140
  %129 = phi i1 [ false, %.thread140 ], [ %.ph, %.outer.outer ]
  %.0115.ph = phi i32 [ %112, %.thread140 ], [ 0, %.outer.outer ]
  br label %22

130:                                              ; preds = %22
  %131 = call i32 @fclose(ptr noundef nonnull %15)
  %132 = load i32, ptr %7, align 4, !tbaa !5
  %.not130 = icmp eq i32 %.0115.ph, %132
  br i1 %.not130, label %141, label %133

133:                                              ; preds = %130
  %134 = load ptr, ptr %2, align 8, !tbaa !9
  call void @free(ptr noundef %134) #9
  %135 = load ptr, ptr %3, align 8, !tbaa !9
  call void @free(ptr noundef %135) #9
  %136 = load ptr, ptr %4, align 8, !tbaa !9
  call void @free(ptr noundef %136) #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
  %137 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %138 = icmp ugt i32 %137, 1
  %139 = load i32, ptr @libxsmm_verbosity, align 4
  %140 = select i1 %138, i32 %139, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90032, ptr noundef nonnull @__func__.libxsmm_sparse_csr_reader, ptr noundef nonnull @.str.1, i32 noundef 133, i32 noundef %140) #9
  br label %157

141:                                              ; preds = %130
  %.not131 = icmp eq ptr %.0117.ph.ph, null
  br i1 %.not131, label %157, label %.preheader

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

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

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

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

153:                                              ; preds = %.lr.ph._crit_edge, %147
  %indvars.iv.next.pre-phi = phi i64 [ %.pre171, %.lr.ph._crit_edge ], [ %151, %147 ]
  %154 = phi i32 [ %143, %.lr.ph._crit_edge ], [ %.pre, %147 ]
  %155 = zext i32 %154 to i64
  %156 = icmp ult i64 %indvars.iv.next.pre-phi, %155
  br i1 %156, label %.lr.ph, label %._crit_edge, !llvm.loop !17

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

157:                                              ; preds = %120, %.thread, %141, %._crit_edge, %133, %27, %17
  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