; LLVM IR from Tiramisu-Compiler/tiramisu :: benchmarks/linear_algebra/cg (read_HPC_row)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%struct.HPC_Sparse_Matrix_STRUCT = type { ptr, i32, i32, i32, i64, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_ = external hidden unnamed_addr constant [81 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca i32, align 4
  %40 = alloca double, align 8
  %41 = alloca double, align 8
  %42 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  store ptr %16, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store ptr %18, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !9
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef %43)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call noalias ptr @fopen(ptr noundef %45, ptr noundef @.str.1)
  store ptr %46, ptr %11, align 8, !tbaa !5
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = icmp eq ptr %47, null
  br i1 %48, label %49, label %52

49:                                               ; preds = %5
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %50)
  call void @exit(i32 noundef 1) #8
  unreachable

52:                                               ; preds = %5
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %53, ptr noundef @.str.3, ptr noundef %14)
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %55, ptr noundef @.str.4, ptr noundef %15)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 1, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  %57 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %57, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %58 = load i32, ptr %23, align 4, !tbaa !9
  %59 = load i32, ptr %21, align 4, !tbaa !9
  %60 = sdiv i32 %58, %59
  store i32 %60, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %61 = load i32, ptr %23, align 4, !tbaa !9
  %62 = load i32, ptr %21, align 4, !tbaa !9
  %63 = srem i32 %61, %62
  store i32 %63, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %64 = load i32, ptr %24, align 4, !tbaa !9
  store i32 %64, ptr %26, align 4, !tbaa !9
  %65 = load i32, ptr %22, align 4, !tbaa !9
  %66 = load i32, ptr %25, align 4, !tbaa !9
  %67 = icmp slt i32 %65, %66
  br i1 %67, label %68, label %71

68:                                               ; preds = %52
  %69 = load i32, ptr %26, align 4, !tbaa !9
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %26, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %68, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %72 = load i32, ptr %26, align 4, !tbaa !9
  store i32 %72, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %73 = load i32, ptr %22, align 4, !tbaa !9
  %74 = load i32, ptr %24, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  %76 = mul nsw i32 %73, %75
  store i32 %76, ptr %28, align 4, !tbaa !9
  %77 = load i32, ptr %22, align 4, !tbaa !9
  %78 = load i32, ptr %25, align 4, !tbaa !9
  %79 = icmp sgt i32 %77, %78
  br i1 %79, label %80, label %86

80:                                               ; preds = %71
  %81 = load i32, ptr %22, align 4, !tbaa !9
  %82 = load i32, ptr %25, align 4, !tbaa !9
  %83 = sub nsw i32 %81, %82
  %84 = load i32, ptr %28, align 4, !tbaa !9
  %85 = sub nsw i32 %84, %83
  store i32 %85, ptr %28, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %80, %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %87 = load i32, ptr %28, align 4, !tbaa !9
  store i32 %87, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %88 = load i32, ptr %28, align 4, !tbaa !9
  %89 = load i32, ptr %26, align 4, !tbaa !9
  %90 = add nsw i32 %88, %89
  %91 = sub nsw i32 %90, 1
  store i32 %91, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %92 = load i32, ptr %27, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %93, i64 4)
  %95 = extractvalue { i64, i1 } %94, 1
  %96 = extractvalue { i64, i1 } %94, 0
  %97 = select i1 %95, i64 -1, i64 %96
  %98 = call noalias noundef nonnull ptr @_Znam(i64 noundef %97) #9
  store ptr %98, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %99 = load i32, ptr %27, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %100, i64 8)
  %102 = extractvalue { i64, i1 } %101, 1
  %103 = extractvalue { i64, i1 } %101, 0
  %104 = select i1 %102, i64 -1, i64 %103
  %105 = call noalias noundef nonnull ptr @_Znam(i64 noundef %104) #9
  store ptr %105, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #7
  %106 = load i32, ptr %27, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %107, i64 8)
  %109 = extractvalue { i64, i1 } %108, 1
  %110 = extractvalue { i64, i1 } %108, 0
  %111 = select i1 %109, i64 -1, i64 %110
  %112 = call noalias noundef nonnull ptr @_Znam(i64 noundef %111) #9
  store ptr %112, ptr %33, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %113 = load i32, ptr %27, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %114, i64 8)
  %116 = extractvalue { i64, i1 } %115, 1
  %117 = extractvalue { i64, i1 } %115, 0
  %118 = select i1 %116, i64 -1, i64 %117
  %119 = call noalias noundef nonnull ptr @_Znam(i64 noundef %118) #9
  store ptr %119, ptr %34, align 8, !tbaa !5
  %120 = load i32, ptr %27, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %121, i64 8)
  %123 = extractvalue { i64, i1 } %122, 1
  %124 = extractvalue { i64, i1 } %122, 0
  %125 = select i1 %123, i64 -1, i64 %124
  %126 = call noalias noundef nonnull ptr @_Znam(i64 noundef %125) #9
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %126, ptr %127, align 8, !tbaa !5
  %128 = load i32, ptr %27, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %129, i64 8)
  %131 = extractvalue { i64, i1 } %130, 1
  %132 = extractvalue { i64, i1 } %130, 0
  %133 = select i1 %131, i64 -1, i64 %132
  %134 = call noalias noundef nonnull ptr @_Znam(i64 noundef %133) #9
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %134, ptr %135, align 8, !tbaa !5
  %136 = load i32, ptr %27, align 4, !tbaa !9
  %137 = sext i32 %136 to i64
  %138 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %137, i64 8)
  %139 = extractvalue { i64, i1 } %138, 1
  %140 = extractvalue { i64, i1 } %138, 0
  %141 = select i1 %139, i64 -1, i64 %140
  %142 = call noalias noundef nonnull ptr @_Znam(i64 noundef %141) #9
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %142, ptr %143, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  store i32 0, ptr %36, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %144

144:                                              ; preds = %171, %86
  %145 = load i32, ptr %12, align 4, !tbaa !9
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = icmp slt i32 %145, %146
  br i1 %147, label %148, label %174

148:                                              ; preds = %144
  %149 = load ptr, ptr %11, align 8, !tbaa !5
  %150 = load ptr, ptr %17, align 8, !tbaa !5
  %151 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %149, ptr noundef @.str.3, ptr noundef %150)
  %152 = load i32, ptr %29, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = icmp sle i32 %152, %153
  br i1 %154, label %155, label %170

155:                                              ; preds = %148
  %156 = load i32, ptr %12, align 4, !tbaa !9
  %157 = load i32, ptr %30, align 4, !tbaa !9
  %158 = icmp sle i32 %156, %157
  br i1 %158, label %159, label %170

159:                                              ; preds = %155
  %160 = load i32, ptr %16, align 4, !tbaa !9
  %161 = load i32, ptr %35, align 4, !tbaa !9
  %162 = add nsw i32 %161, %160
  store i32 %162, ptr %35, align 4, !tbaa !9
  %163 = load i32, ptr %16, align 4, !tbaa !9
  %164 = load ptr, ptr %31, align 8, !tbaa !5
  %165 = load i32, ptr %36, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds i32, ptr %164, i64 %166
  store i32 %163, ptr %167, align 4, !tbaa !9
  %168 = load i32, ptr %36, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %36, align 4, !tbaa !9
  br label %170

170:                                              ; preds = %159, %155, %148
  br label %171

171:                                              ; preds = %170
  %172 = load i32, ptr %12, align 4, !tbaa !9
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %12, align 4, !tbaa !9
  br label %144, !llvm.loop !11

174:                                              ; preds = %144
  %175 = load i32, ptr %36, align 4, !tbaa !9
  %176 = load i32, ptr %27, align 4, !tbaa !9
  %177 = icmp eq i32 %175, %176
  br i1 %177, label %178, label %179

178:                                              ; preds = %174
  br label %181

179:                                              ; preds = %174
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.6, i32 noundef 135, ptr noundef @__PRETTY_FUNCTION__._Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_) #8
  unreachable

180:                                              ; No predecessors!
  br label %181

181:                                              ; preds = %180, %178
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  %182 = load i32, ptr %35, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %183, i64 8)
  %185 = extractvalue { i64, i1 } %184, 1
  %186 = extractvalue { i64, i1 } %184, 0
  %187 = select i1 %185, i64 -1, i64 %186
  %188 = call noalias noundef nonnull ptr @_Znam(i64 noundef %187) #9
  store ptr %188, ptr %37, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #7
  %189 = load i32, ptr %35, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %190, i64 4)
  %192 = extractvalue { i64, i1 } %191, 1
  %193 = extractvalue { i64, i1 } %191, 0
  %194 = select i1 %192, i64 -1, i64 %193
  %195 = call noalias noundef nonnull ptr @_Znam(i64 noundef %194) #9
  store ptr %195, ptr %38, align 8, !tbaa !5
  %196 = load ptr, ptr %37, align 8, !tbaa !5
  %197 = load ptr, ptr %32, align 8, !tbaa !5
  %198 = getelementptr inbounds ptr, ptr %197, i64 0
  store ptr %196, ptr %198, align 8, !tbaa !5
  %199 = load ptr, ptr %38, align 8, !tbaa !5
  %200 = load ptr, ptr %33, align 8, !tbaa !5
  %201 = getelementptr inbounds ptr, ptr %200, i64 0
  store ptr %199, ptr %201, align 8, !tbaa !5
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %202

202:                                              ; preds = %243, %181
  %203 = load i32, ptr %12, align 4, !tbaa !9
  %204 = load i32, ptr %27, align 4, !tbaa !9
  %205 = icmp slt i32 %203, %204
  br i1 %205, label %206, label %246

206:                                              ; preds = %202
  %207 = load ptr, ptr %32, align 8, !tbaa !5
  %208 = load i32, ptr %12, align 4, !tbaa !9
  %209 = sub nsw i32 %208, 1
  %210 = sext i32 %209 to i64
  %211 = getelementptr inbounds ptr, ptr %207, i64 %210
  %212 = load ptr, ptr %211, align 8, !tbaa !5
  %213 = load ptr, ptr %31, align 8, !tbaa !5
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = sub nsw i32 %214, 1
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds i32, ptr %213, i64 %216
  %218 = load i32, ptr %217, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %212, i64 %219
  %221 = load ptr, ptr %32, align 8, !tbaa !5
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds ptr, ptr %221, i64 %223
  store ptr %220, ptr %224, align 8, !tbaa !5
  %225 = load ptr, ptr %33, align 8, !tbaa !5
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = sub nsw i32 %226, 1
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds ptr, ptr %225, i64 %228
  %230 = load ptr, ptr %229, align 8, !tbaa !5
  %231 = load ptr, ptr %31, align 8, !tbaa !5
  %232 = load i32, ptr %12, align 4, !tbaa !9
  %233 = sub nsw i32 %232, 1
  %234 = sext i32 %233 to i64
  %235 = getelementptr inbounds i32, ptr %231, i64 %234
  %236 = load i32, ptr %235, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds i32, ptr %230, i64 %237
  %239 = load ptr, ptr %33, align 8, !tbaa !5
  %240 = load i32, ptr %12, align 4, !tbaa !9
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %239, i64 %241
  store ptr %238, ptr %242, align 8, !tbaa !5
  br label %243

243:                                              ; preds = %206
  %244 = load i32, ptr %12, align 4, !tbaa !9
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %12, align 4, !tbaa !9
  br label %202, !llvm.loop !13

246:                                              ; preds = %202
  store i32 0, ptr %36, align 4, !tbaa !9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %247

247:                                              ; preds = %324, %246
  %248 = load i32, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %14, align 4, !tbaa !9
  %250 = icmp slt i32 %248, %249
  br i1 %250, label %251, label %327

251:                                              ; preds = %247
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %252 = load ptr, ptr %11, align 8, !tbaa !5
  %253 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %252, ptr noundef @.str.3, ptr noundef %39)
  %254 = load i32, ptr %29, align 4, !tbaa !9
  %255 = load i32, ptr %12, align 4, !tbaa !9
  %256 = icmp sle i32 %254, %255
  br i1 %256, label %257, label %309

257:                                              ; preds = %251
  %258 = load i32, ptr %12, align 4, !tbaa !9
  %259 = load i32, ptr %30, align 4, !tbaa !9
  %260 = icmp sle i32 %258, %259
  br i1 %260, label %261, label %309

261:                                              ; preds = %257
  %262 = load i32, ptr %20, align 4, !tbaa !9
  %263 = icmp ne i32 %262, 0
  br i1 %263, label %264, label %275

264:                                              ; preds = %261
  %265 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %266 = load i32, ptr %22, align 4, !tbaa !9
  %267 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %265, i32 noundef %266)
  %268 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %267, ptr noundef @.str.8)
  %269 = load i32, ptr %21, align 4, !tbaa !9
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %268, i32 noundef %269)
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %270, ptr noundef @.str.9)
  %272 = load i32, ptr %12, align 4, !tbaa !9
  %273 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %271, i32 noundef %272)
  %274 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %273, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %275

275:                                              ; preds = %264, %261
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %303, %275
  %277 = load i32, ptr %13, align 4, !tbaa !9
  %278 = load i32, ptr %39, align 4, !tbaa !9
  %279 = icmp slt i32 %277, %278
  br i1 %279, label %280, label %306

280:                                              ; preds = %276
  %281 = load ptr, ptr %11, align 8, !tbaa !5
  %282 = load ptr, ptr %19, align 8, !tbaa !5
  %283 = load ptr, ptr %17, align 8, !tbaa !5
  %284 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %281, ptr noundef @.str.10, ptr noundef %282, ptr noundef %283)
  %285 = load double, ptr %18, align 8, !tbaa !14
  %286 = load ptr, ptr %32, align 8, !tbaa !5
  %287 = load i32, ptr %36, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds ptr, ptr %286, i64 %288
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = load i32, ptr %13, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds double, ptr %290, i64 %292
  store double %285, ptr %293, align 8, !tbaa !14
  %294 = load i32, ptr %16, align 4, !tbaa !9
  %295 = load ptr, ptr %33, align 8, !tbaa !5
  %296 = load i32, ptr %36, align 4, !tbaa !9
  %297 = sext i32 %296 to i64
  %298 = getelementptr inbounds ptr, ptr %295, i64 %297
  %299 = load ptr, ptr %298, align 8, !tbaa !5
  %300 = load i32, ptr %13, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds i32, ptr %299, i64 %301
  store i32 %294, ptr %302, align 4, !tbaa !9
  br label %303

303:                                              ; preds = %280
  %304 = load i32, ptr %13, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %13, align 4, !tbaa !9
  br label %276, !llvm.loop !16

306:                                              ; preds = %276
  %307 = load i32, ptr %36, align 4, !tbaa !9
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %36, align 4, !tbaa !9
  br label %323

309:                                              ; preds = %257, %251
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %310

310:                                              ; preds = %319, %309
  %311 = load i32, ptr %13, align 4, !tbaa !9
  %312 = load i32, ptr %39, align 4, !tbaa !9
  %313 = icmp slt i32 %311, %312
  br i1 %313, label %314, label %322

314:                                              ; preds = %310
  %315 = load ptr, ptr %11, align 8, !tbaa !5
  %316 = load ptr, ptr %19, align 8, !tbaa !5
  %317 = load ptr, ptr %17, align 8, !tbaa !5
  %318 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %315, ptr noundef @.str.10, ptr noundef %316, ptr noundef %317)
  br label %319

319:                                              ; preds = %314
  %320 = load i32, ptr %13, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %13, align 4, !tbaa !9
  br label %310, !llvm.loop !17

322:                                              ; preds = %310
  br label %323

323:                                              ; preds = %322, %306
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  br label %324

324:                                              ; preds = %323
  %325 = load i32, ptr %12, align 4, !tbaa !9
  %326 = add nsw i32 %325, 1
  store i32 %326, ptr %12, align 4, !tbaa !9
  br label %247, !llvm.loop !18

327:                                              ; preds = %247
  store i32 0, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %42) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %384, %327
  %329 = load i32, ptr %12, align 4, !tbaa !9
  %330 = load i32, ptr %14, align 4, !tbaa !9
  %331 = icmp slt i32 %329, %330
  br i1 %331, label %332, label %387

332:                                              ; preds = %328
  %333 = load i32, ptr %29, align 4, !tbaa !9
  %334 = load i32, ptr %12, align 4, !tbaa !9
  %335 = icmp sle i32 %333, %334
  br i1 %335, label %336, label %377

336:                                              ; preds = %332
  %337 = load i32, ptr %12, align 4, !tbaa !9
  %338 = load i32, ptr %30, align 4, !tbaa !9
  %339 = icmp sle i32 %337, %338
  br i1 %339, label %340, label %377

340:                                              ; preds = %336
  %341 = load i32, ptr %20, align 4, !tbaa !9
  %342 = icmp ne i32 %341, 0
  br i1 %342, label %343, label %354

343:                                              ; preds = %340
  %344 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %345 = load i32, ptr %22, align 4, !tbaa !9
  %346 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %344, i32 noundef %345)
  %347 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %346, ptr noundef @.str.8)
  %348 = load i32, ptr %21, align 4, !tbaa !9
  %349 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %347, i32 noundef %348)
  %350 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %349, ptr noundef @.str.11)
  %351 = load i32, ptr %12, align 4, !tbaa !9
  %352 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %350, i32 noundef %351)
  %353 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %352, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %354

354:                                              ; preds = %343, %340
  %355 = load ptr, ptr %11, align 8, !tbaa !5
  %356 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %355, ptr noundef @.str.12, ptr noundef %40, ptr noundef %41, ptr noundef %42)
  %357 = load double, ptr %40, align 8, !tbaa !14
  %358 = load ptr, ptr %8, align 8, !tbaa !5
  %359 = load ptr, ptr %358, align 8, !tbaa !5
  %360 = load i32, ptr %36, align 4, !tbaa !9
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds double, ptr %359, i64 %361
  store double %357, ptr %362, align 8, !tbaa !14
  %363 = load double, ptr %41, align 8, !tbaa !14
  %364 = load ptr, ptr %9, align 8, !tbaa !5
  %365 = load ptr, ptr %364, align 8, !tbaa !5
  %366 = load i32, ptr %36, align 4, !tbaa !9
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds double, ptr %365, i64 %367
  store double %363, ptr %368, align 8, !tbaa !14
  %369 = load double, ptr %42, align 8, !tbaa !14
  %370 = load ptr, ptr %10, align 8, !tbaa !5
  %371 = load ptr, ptr %370, align 8, !tbaa !5
  %372 = load i32, ptr %36, align 4, !tbaa !9
  %373 = sext i32 %372 to i64
  %374 = getelementptr inbounds double, ptr %371, i64 %373
  store double %369, ptr %374, align 8, !tbaa !14
  %375 = load i32, ptr %36, align 4, !tbaa !9
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %36, align 4, !tbaa !9
  br label %383

377:                                              ; preds = %336, %332
  %378 = load ptr, ptr %11, align 8, !tbaa !5
  %379 = load ptr, ptr %19, align 8, !tbaa !5
  %380 = load ptr, ptr %19, align 8, !tbaa !5
  %381 = load ptr, ptr %19, align 8, !tbaa !5
  %382 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %378, ptr noundef @.str.12, ptr noundef %379, ptr noundef %380, ptr noundef %381)
  br label %383

383:                                              ; preds = %377, %354
  br label %384

384:                                              ; preds = %383
  %385 = load i32, ptr %12, align 4, !tbaa !9
  %386 = add nsw i32 %385, 1
  store i32 %386, ptr %12, align 4, !tbaa !9
  br label %328, !llvm.loop !19

387:                                              ; preds = %328
  %388 = load ptr, ptr %11, align 8, !tbaa !5
  %389 = call i32 @fclose(ptr noundef %388)
  %390 = load i32, ptr %20, align 4, !tbaa !9
  %391 = icmp ne i32 %390, 0
  br i1 %391, label %392, label %402

392:                                              ; preds = %387
  %393 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %394 = load i32, ptr %22, align 4, !tbaa !9
  %395 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %393, i32 noundef %394)
  %396 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %395, ptr noundef @.str.8)
  %397 = load i32, ptr %21, align 4, !tbaa !9
  %398 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %396, i32 noundef %397)
  %399 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %398, ptr noundef @.str.13)
  %400 = load i32, ptr %27, align 4, !tbaa !9
  %401 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %399, i32 noundef %400)
  br label %402

402:                                              ; preds = %392, %387
  %403 = load i32, ptr %20, align 4, !tbaa !9
  %404 = icmp ne i32 %403, 0
  br i1 %404, label %405, label %413

405:                                              ; preds = %402
  %406 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.14)
  %407 = load i32, ptr %29, align 4, !tbaa !9
  %408 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %406, i32 noundef %407)
  %409 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %408, ptr noundef @.str.15)
  %410 = load i32, ptr %30, align 4, !tbaa !9
  %411 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %409, i32 noundef %410)
  %412 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %411, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %413

413:                                              ; preds = %405, %402
  %414 = load i32, ptr %20, align 4, !tbaa !9
  %415 = icmp ne i32 %414, 0
  br i1 %415, label %416, label %428

416:                                              ; preds = %413
  %417 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
  %418 = load i32, ptr %22, align 4, !tbaa !9
  %419 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %417, i32 noundef %418)
  %420 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %419, ptr noundef @.str.8)
  %421 = load i32, ptr %21, align 4, !tbaa !9
  %422 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %420, i32 noundef %421)
  %423 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %422, ptr noundef @.str.13)
  %424 = load i32, ptr %35, align 4, !tbaa !9
  %425 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %423, i32 noundef %424)
  %426 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %425, ptr noundef @.str.16)
  %427 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %426, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %428

428:                                              ; preds = %416, %413
  %429 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 96) #9
  %430 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %429, ptr %430, align 8, !tbaa !5
  %431 = load ptr, ptr %7, align 8, !tbaa !5
  %432 = load ptr, ptr %431, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %432, i32 0, i32 0
  store ptr null, ptr %433, align 8, !tbaa !20
  %434 = load i32, ptr %29, align 4, !tbaa !9
  %435 = load ptr, ptr %7, align 8, !tbaa !5
  %436 = load ptr, ptr %435, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %436, i32 0, i32 1
  store i32 %434, ptr %437, align 8, !tbaa !23
  %438 = load i32, ptr %30, align 4, !tbaa !9
  %439 = load ptr, ptr %7, align 8, !tbaa !5
  %440 = load ptr, ptr %439, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %440, i32 0, i32 2
  store i32 %438, ptr %441, align 4, !tbaa !24
  %442 = load i32, ptr %14, align 4, !tbaa !9
  %443 = load ptr, ptr %7, align 8, !tbaa !5
  %444 = load ptr, ptr %443, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %444, i32 0, i32 3
  store i32 %442, ptr %445, align 8, !tbaa !25
  %446 = load i64, ptr %15, align 8, !tbaa !26
  %447 = load ptr, ptr %7, align 8, !tbaa !5
  %448 = load ptr, ptr %447, align 8, !tbaa !5
  %449 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %448, i32 0, i32 4
  store i64 %446, ptr %449, align 8, !tbaa !27
  %450 = load i32, ptr %27, align 4, !tbaa !9
  %451 = load ptr, ptr %7, align 8, !tbaa !5
  %452 = load ptr, ptr %451, align 8, !tbaa !5
  %453 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %452, i32 0, i32 5
  store i32 %450, ptr %453, align 8, !tbaa !28
  %454 = load i32, ptr %27, align 4, !tbaa !9
  %455 = load ptr, ptr %7, align 8, !tbaa !5
  %456 = load ptr, ptr %455, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %456, i32 0, i32 6
  store i32 %454, ptr %457, align 4, !tbaa !29
  %458 = load i32, ptr %35, align 4, !tbaa !9
  %459 = load ptr, ptr %7, align 8, !tbaa !5
  %460 = load ptr, ptr %459, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %460, i32 0, i32 7
  store i32 %458, ptr %461, align 8, !tbaa !30
  %462 = load ptr, ptr %31, align 8, !tbaa !5
  %463 = load ptr, ptr %7, align 8, !tbaa !5
  %464 = load ptr, ptr %463, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %464, i32 0, i32 8
  store ptr %462, ptr %465, align 8, !tbaa !31
  %466 = load ptr, ptr %32, align 8, !tbaa !5
  %467 = load ptr, ptr %7, align 8, !tbaa !5
  %468 = load ptr, ptr %467, align 8, !tbaa !5
  %469 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %468, i32 0, i32 9
  store ptr %466, ptr %469, align 8, !tbaa !32
  %470 = load ptr, ptr %33, align 8, !tbaa !5
  %471 = load ptr, ptr %7, align 8, !tbaa !5
  %472 = load ptr, ptr %471, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %472, i32 0, i32 10
  store ptr %470, ptr %473, align 8, !tbaa !33
  %474 = load ptr, ptr %34, align 8, !tbaa !5
  %475 = load ptr, ptr %7, align 8, !tbaa !5
  %476 = load ptr, ptr %475, align 8, !tbaa !5
  %477 = getelementptr inbounds %struct.HPC_Sparse_Matrix_STRUCT, ptr %476, i32 0, i32 11
  store ptr %474, ptr %477, align 8, !tbaa !34
  call void @llvm.lifetime.end.p0(i64 8, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, 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
  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
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  ret void
}

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

declare i32 @printf(ptr noundef, ...) #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #3

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #0 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #6

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

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

attributes #0 = { mustprogress 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nobuiltin allocsize(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 #6 = { inlinehint mustprogress 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 #7 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { builtin allocsize(0) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = !{!21, !6, i64 0}
!21 = !{!"_ZTS24HPC_Sparse_Matrix_STRUCT", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !22, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!22 = !{!"long long", !7, i64 0}
!23 = !{!21, !10, i64 8}
!24 = !{!21, !10, i64 12}
!25 = !{!21, !10, i64 16}
!26 = !{!22, !22, i64 0}
!27 = !{!21, !22, i64 24}
!28 = !{!21, !10, i64 32}
!29 = !{!21, !10, i64 36}
!30 = !{!21, !10, i64 40}
!31 = !{!21, !6, i64 48}
!32 = !{!21, !6, i64 56}
!33 = !{!21, !6, i64 64}
!34 = !{!21, !6, i64 72}


; 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 [32 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [106 x i8], align 1
@__PRETTY_FUNCTION__._Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_ = external hidden unnamed_addr constant [81 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_(ptr noundef %0, ptr nocapture noundef writeonly %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4) local_unnamed_addr #0 {
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #6
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef %0)
  %15 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.1)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %17, label %19

17:                                               ; preds = %5
  %18 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %0)
  tail call void @exit(i32 noundef 1) #7
  unreachable

19:                                               ; preds = %5
  %20 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.3, ptr noundef nonnull %6)
  %21 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.4, ptr noundef nonnull %7)
  %22 = load i32, ptr %6, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = icmp slt i32 %22, 0
  %25 = shl nsw i64 %23, 2
  %26 = select i1 %24, i64 -1, i64 %25
  %27 = call noalias noundef nonnull ptr @_Znam(i64 noundef %26) #8
  %28 = shl nsw i64 %23, 3
  %29 = select i1 %24, i64 -1, i64 %28
  %30 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  %31 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  %32 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  %33 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store ptr %33, ptr %2, align 8, !tbaa !9
  %34 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store ptr %34, ptr %3, align 8, !tbaa !9
  %35 = call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store ptr %35, ptr %4, align 8, !tbaa !9
  %36 = icmp sgt i32 %22, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19, %44
  %.0170 = phi i32 [ %45, %44 ], [ 0, %19 ]
  %.0155169 = phi i32 [ %.1156, %44 ], [ 0, %19 ]
  %.0159168 = phi i32 [ %.1160, %44 ], [ 0, %19 ]
  %37 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.3, ptr noundef nonnull %8)
  %.not.not165 = icmp slt i32 %.0170, %22
  br i1 %.not.not165, label %38, label %44

38:                                               ; preds = %.lr.ph
  %39 = load i32, ptr %8, align 4, !tbaa !5
  %40 = add nsw i32 %39, %.0159168
  %41 = sext i32 %.0155169 to i64
  %42 = getelementptr inbounds i32, ptr %27, i64 %41
  store i32 %39, ptr %42, align 4, !tbaa !5
  %43 = add nsw i32 %.0155169, 1
  br label %44

44:                                               ; preds = %.lr.ph, %38
  %.1160 = phi i32 [ %40, %38 ], [ %.0159168, %.lr.ph ]
  %.1156 = phi i32 [ %43, %38 ], [ %.0155169, %.lr.ph ]
  %45 = add nuw nsw i32 %.0170, 1
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !11

._crit_edge.loopexit:                             ; preds = %44
  %48 = icmp sgt i32 %46, 0
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %19
  %49 = phi i1 [ false, %19 ], [ %48, %._crit_edge.loopexit ]
  %.0159.lcssa = phi i32 [ 0, %19 ], [ %.1160, %._crit_edge.loopexit ]
  %.0155.lcssa = phi i32 [ 0, %19 ], [ %.1156, %._crit_edge.loopexit ]
  %50 = icmp eq i32 %.0155.lcssa, %22
  br i1 %50, label %52, label %51

51:                                               ; preds = %._crit_edge
  call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.6, i32 noundef 135, ptr noundef nonnull @__PRETTY_FUNCTION__._Z12read_HPC_rowPcPP24HPC_Sparse_Matrix_STRUCTPPdS4_S4_) #7
  unreachable

52:                                               ; preds = %._crit_edge
  %53 = sext i32 %.0159.lcssa to i64
  %54 = icmp slt i32 %.0159.lcssa, 0
  %55 = shl nsw i64 %53, 3
  %56 = select i1 %54, i64 -1, i64 %55
  %57 = call noalias noundef nonnull ptr @_Znam(i64 noundef %56) #8
  %58 = shl nsw i64 %53, 2
  %59 = select i1 %54, i64 -1, i64 %58
  %60 = call noalias noundef nonnull ptr @_Znam(i64 noundef %59) #8
  store ptr %57, ptr %30, align 8, !tbaa !9
  store ptr %60, ptr %31, align 8, !tbaa !9
  %61 = icmp sgt i32 %22, 1
  br i1 %61, label %.lr.ph174.preheader, label %.preheader167

.lr.ph174.preheader:                              ; preds = %52
  %wide.trip.count = zext nneg i32 %22 to i64
  %invariant.gep = getelementptr i8, ptr %27, i64 -4
  %62 = add nsw i64 %wide.trip.count, -1
  %63 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %62, 3
  %64 = icmp ult i64 %63, 3
  br i1 %64, label %.preheader167.loopexit.unr-lcssa, label %.lr.ph174.preheader.new

.lr.ph174.preheader.new:                          ; preds = %.lr.ph174.preheader
  %unroll_iter = and i64 %62, -4
  br label %.lr.ph174

.preheader167.loopexit.unr-lcssa:                 ; preds = %.lr.ph174, %.lr.ph174.preheader
  %.unr = phi ptr [ %60, %.lr.ph174.preheader ], [ %97, %.lr.ph174 ]
  %.unr196 = phi ptr [ %57, %.lr.ph174.preheader ], [ %95, %.lr.ph174 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph174.preheader ], [ %indvars.iv.next.3, %.lr.ph174 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.preheader167, label %.lr.ph174.epil

.lr.ph174.epil:                                   ; preds = %.preheader167.loopexit.unr-lcssa, %.lr.ph174.epil
  %65 = phi ptr [ %71, %.lr.ph174.epil ], [ %.unr, %.preheader167.loopexit.unr-lcssa ]
  %66 = phi ptr [ %69, %.lr.ph174.epil ], [ %.unr196, %.preheader167.loopexit.unr-lcssa ]
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.lr.ph174.epil ], [ %indvars.iv.unr, %.preheader167.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph174.epil ], [ 0, %.preheader167.loopexit.unr-lcssa ]
  %gep.epil = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.epil
  %67 = load i32, ptr %gep.epil, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  %70 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv.epil
  store ptr %69, ptr %70, align 8, !tbaa !9
  %71 = getelementptr inbounds i32, ptr %65, i64 %68
  %72 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.epil
  store ptr %71, ptr %72, align 8, !tbaa !9
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %.preheader167, label %.lr.ph174.epil, !llvm.loop !13

.preheader167:                                    ; preds = %.preheader167.loopexit.unr-lcssa, %.lr.ph174.epil, %52
  br i1 %49, label %.lr.ph182, label %._crit_edge183.thread

._crit_edge183.thread:                            ; preds = %.preheader167
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  br label %._crit_edge188

.lr.ph174:                                        ; preds = %.lr.ph174, %.lr.ph174.preheader.new
  %73 = phi ptr [ %60, %.lr.ph174.preheader.new ], [ %97, %.lr.ph174 ]
  %74 = phi ptr [ %57, %.lr.ph174.preheader.new ], [ %95, %.lr.ph174 ]
  %indvars.iv = phi i64 [ 1, %.lr.ph174.preheader.new ], [ %indvars.iv.next.3, %.lr.ph174 ]
  %niter = phi i64 [ 0, %.lr.ph174.preheader.new ], [ %niter.next.3, %.lr.ph174 ]
  %gep = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv
  %75 = load i32, ptr %gep, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv
  store ptr %77, ptr %78, align 8, !tbaa !9
  %79 = getelementptr inbounds i32, ptr %73, i64 %76
  %80 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv
  store ptr %79, ptr %80, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %gep.1 = getelementptr i32, ptr %27, i64 %indvars.iv
  %81 = load i32, ptr %gep.1, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %77, i64 %82
  %84 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv.next
  store ptr %83, ptr %84, align 8, !tbaa !9
  %85 = getelementptr inbounds i32, ptr %79, i64 %82
  %86 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next
  store ptr %85, ptr %86, align 8, !tbaa !9
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %gep.2 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next.1
  %87 = load i32, ptr %gep.2, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds double, ptr %83, i64 %88
  %90 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv.next.1
  store ptr %89, ptr %90, align 8, !tbaa !9
  %91 = getelementptr inbounds i32, ptr %85, i64 %88
  %92 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.1
  store ptr %91, ptr %92, align 8, !tbaa !9
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %gep.3 = getelementptr i32, ptr %invariant.gep, i64 %indvars.iv.next.2
  %93 = load i32, ptr %gep.3, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %89, i64 %94
  %96 = getelementptr inbounds ptr, ptr %30, i64 %indvars.iv.next.2
  store ptr %95, ptr %96, align 8, !tbaa !9
  %97 = getelementptr inbounds i32, ptr %91, i64 %94
  %98 = getelementptr inbounds ptr, ptr %31, i64 %indvars.iv.next.2
  store ptr %97, ptr %98, align 8, !tbaa !9
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader167.loopexit.unr-lcssa, label %.lr.ph174, !llvm.loop !15

.lr.ph182:                                        ; preds = %.preheader167, %.loopexit
  %.2181 = phi i32 [ %121, %.loopexit ], [ 0, %.preheader167 ]
  %.2157180 = phi i32 [ %.3158, %.loopexit ], [ 0, %.preheader167 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  %99 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.3, ptr noundef nonnull %10)
  %.not.not164 = icmp slt i32 %.2181, %22
  %100 = load i32, ptr %10, align 4, !tbaa !5
  %101 = icmp sgt i32 %100, 0
  br i1 %.not.not164, label %.preheader, label %.preheader166

.preheader166:                                    ; preds = %.lr.ph182
  br i1 %101, label %.lr.ph176, label %.loopexit

.preheader:                                       ; preds = %.lr.ph182
  br i1 %101, label %.lr.ph178, label %._crit_edge179

.lr.ph178:                                        ; preds = %.preheader
  %102 = sext i32 %.2157180 to i64
  %103 = getelementptr inbounds ptr, ptr %30, i64 %102
  %104 = getelementptr inbounds ptr, ptr %31, i64 %102
  br label %105

105:                                              ; preds = %.lr.ph178, %105
  %indvars.iv190 = phi i64 [ 0, %.lr.ph178 ], [ %indvars.iv.next191, %105 ]
  %106 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.10, ptr noundef nonnull %9, ptr noundef nonnull %8)
  %107 = load double, ptr %9, align 8, !tbaa !16
  %108 = load ptr, ptr %103, align 8, !tbaa !9
  %109 = getelementptr inbounds double, ptr %108, i64 %indvars.iv190
  store double %107, ptr %109, align 8, !tbaa !16
  %110 = load i32, ptr %8, align 4, !tbaa !5
  %111 = load ptr, ptr %104, align 8, !tbaa !9
  %112 = getelementptr inbounds i32, ptr %111, i64 %indvars.iv190
  store i32 %110, ptr %112, align 4, !tbaa !5
  %indvars.iv.next191 = add nuw nsw i64 %indvars.iv190, 1
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = sext i32 %113 to i64
  %115 = icmp slt i64 %indvars.iv.next191, %114
  br i1 %115, label %105, label %._crit_edge179, !llvm.loop !18

._crit_edge179:                                   ; preds = %105, %.preheader
  %116 = add nsw i32 %.2157180, 1
  br label %.loopexit

.lr.ph176:                                        ; preds = %.preheader166, %.lr.ph176
  %.1154175 = phi i32 [ %118, %.lr.ph176 ], [ 0, %.preheader166 ]
  %117 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.10, ptr noundef nonnull %9, ptr noundef nonnull %8)
  %118 = add nuw nsw i32 %.1154175, 1
  %119 = load i32, ptr %10, align 4, !tbaa !5
  %120 = icmp slt i32 %118, %119
  br i1 %120, label %.lr.ph176, label %.loopexit, !llvm.loop !19

.loopexit:                                        ; preds = %.lr.ph176, %.preheader166, %._crit_edge179
  %.3158 = phi i32 [ %116, %._crit_edge179 ], [ %.2157180, %.preheader166 ], [ %.2157180, %.lr.ph176 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  %121 = add nuw nsw i32 %.2181, 1
  %122 = load i32, ptr %6, align 4, !tbaa !5
  %123 = icmp slt i32 %121, %122
  br i1 %123, label %.lr.ph182, label %._crit_edge183, !llvm.loop !20

._crit_edge183:                                   ; preds = %.loopexit
  %124 = icmp sgt i32 %122, 0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  br i1 %124, label %.lr.ph187, label %._crit_edge188

.lr.ph187:                                        ; preds = %._crit_edge183, %140
  %.3185 = phi i32 [ %141, %140 ], [ 0, %._crit_edge183 ]
  %.4184 = phi i32 [ %.5, %140 ], [ 0, %._crit_edge183 ]
  %.not.not = icmp slt i32 %.3185, %22
  br i1 %.not.not, label %125, label %138

125:                                              ; preds = %.lr.ph187
  %126 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.12, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef nonnull %13)
  %127 = load double, ptr %11, align 8, !tbaa !16
  %128 = load ptr, ptr %2, align 8, !tbaa !9
  %129 = sext i32 %.4184 to i64
  %130 = getelementptr inbounds double, ptr %128, i64 %129
  store double %127, ptr %130, align 8, !tbaa !16
  %131 = load double, ptr %12, align 8, !tbaa !16
  %132 = load ptr, ptr %3, align 8, !tbaa !9
  %133 = getelementptr inbounds double, ptr %132, i64 %129
  store double %131, ptr %133, align 8, !tbaa !16
  %134 = load double, ptr %13, align 8, !tbaa !16
  %135 = load ptr, ptr %4, align 8, !tbaa !9
  %136 = getelementptr inbounds double, ptr %135, i64 %129
  store double %134, ptr %136, align 8, !tbaa !16
  %137 = add nsw i32 %.4184, 1
  br label %140

138:                                              ; preds = %.lr.ph187
  %139 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %15, ptr noundef nonnull @.str.12, ptr noundef nonnull %9, ptr noundef nonnull %9, ptr noundef nonnull %9)
  br label %140

140:                                              ; preds = %125, %138
  %.5 = phi i32 [ %137, %125 ], [ %.4184, %138 ]
  %141 = add nuw nsw i32 %.3185, 1
  %142 = load i32, ptr %6, align 4, !tbaa !5
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %.lr.ph187, label %._crit_edge188, !llvm.loop !21

._crit_edge188:                                   ; preds = %140, %._crit_edge183.thread, %._crit_edge183
  %144 = call i32 @fclose(ptr noundef nonnull %15)
  %145 = add nsw i32 %22, -1
  %146 = call noalias noundef nonnull dereferenceable(96) ptr @_Znwm(i64 noundef 96) #8
  store ptr %146, ptr %1, align 8, !tbaa !9
  store ptr null, ptr %146, align 8, !tbaa !22
  %147 = getelementptr inbounds i8, ptr %146, i64 8
  store i32 0, ptr %147, align 8, !tbaa !25
  %148 = getelementptr inbounds i8, ptr %146, i64 12
  store i32 %145, ptr %148, align 4, !tbaa !26
  %149 = load i32, ptr %6, align 4, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %146, i64 16
  store i32 %149, ptr %150, align 8, !tbaa !27
  %151 = load i64, ptr %7, align 8, !tbaa !28
  %152 = getelementptr inbounds i8, ptr %146, i64 24
  store i64 %151, ptr %152, align 8, !tbaa !29
  %153 = getelementptr inbounds i8, ptr %146, i64 32
  store i32 %22, ptr %153, align 8, !tbaa !30
  %154 = getelementptr inbounds i8, ptr %146, i64 36
  store i32 %22, ptr %154, align 4, !tbaa !31
  %155 = getelementptr inbounds i8, ptr %146, i64 40
  store i32 %.0159.lcssa, ptr %155, align 8, !tbaa !32
  %156 = getelementptr inbounds i8, ptr %146, i64 48
  store ptr %27, ptr %156, align 8, !tbaa !33
  %157 = getelementptr inbounds i8, ptr %146, i64 56
  store ptr %30, ptr %157, align 8, !tbaa !34
  %158 = getelementptr inbounds i8, ptr %146, i64 64
  store ptr %31, ptr %158, align 8, !tbaa !35
  %159 = getelementptr inbounds i8, ptr %146, i64 72
  store ptr %32, ptr %159, align 8, !tbaa !36
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  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 noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #3

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

attributes #0 = { mustprogress 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 = { 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 #4 = { "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 = { nobuiltin allocsize(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 #6 = { nounwind }
attributes #7 = { noreturn nounwind }
attributes #8 = { builtin allocsize(0) }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = !{!17, !17, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12}
!22 = !{!23, !10, i64 0}
!23 = !{!"_ZTS24HPC_Sparse_Matrix_STRUCT", !10, i64 0, !6, i64 8, !6, i64 12, !6, i64 16, !24, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!24 = !{!"long long", !7, i64 0}
!25 = !{!23, !6, i64 8}
!26 = !{!23, !6, i64 12}
!27 = !{!23, !6, i64 16}
!28 = !{!24, !24, i64 0}
!29 = !{!23, !24, i64 24}
!30 = !{!23, !6, i64 32}
!31 = !{!23, !6, i64 36}
!32 = !{!23, !6, i64 40}
!33 = !{!23, !10, i64 48}
!34 = !{!23, !10, i64 56}
!35 = !{!23, !10, i64 64}
!36 = !{!23, !10, i64 72}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass