; LLVM IR from ERGO-Code/HiGHS :: src/ipm/ipx (sparse_matrix)

; 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.12 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci = external hidden unnamed_addr constant [82 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx12SparseMatrix4colsEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

48:                                               ; preds = %5
  %49 = load i8, ptr %8, align 1, !tbaa !9
  %50 = sext i8 %49 to i32
  %51 = icmp eq i32 %50, 84
  br i1 %51, label %52, label %260

52:                                               ; preds = %48, %5
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = load i8, ptr %53, align 1, !tbaa !9
  %55 = sext i8 %54 to i32
  %56 = icmp eq i32 %55, 117
  br i1 %56, label %62, label %57

57:                                               ; preds = %52
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load i8, ptr %58, align 1, !tbaa !9
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 85
  br i1 %61, label %62, label %159

62:                                               ; preds = %57, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !10
  br label %63

63:                                               ; preds = %155, %62
  %64 = load i32, ptr %16, align 4, !tbaa !10
  %65 = load i32, ptr %11, align 4, !tbaa !10
  %66 = icmp slt i32 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %158

68:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %69 = load ptr, ptr %12, align 8, !tbaa !5
  %70 = load i32, ptr %16, align 4, !tbaa !10
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i32, ptr %69, i64 %71
  %73 = load i32, ptr %72, align 4, !tbaa !10
  store i32 %73, ptr %18, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  %75 = load i32, ptr %16, align 4, !tbaa !10
  %76 = add nsw i32 %75, 1
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %74, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !10
  %80 = load i32, ptr %10, align 4, !tbaa !10
  %81 = icmp ne i32 %80, 0
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 0, i32 1
  %84 = sub nsw i32 %79, %83
  store i32 %84, ptr %19, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store double 0.000000e+00, ptr %20, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %85 = load i32, ptr %18, align 4, !tbaa !10
  store i32 %85, ptr %21, align 4, !tbaa !10
  br label %86

86:                                               ; preds = %108, %68
  %87 = load i32, ptr %21, align 4, !tbaa !10
  %88 = load i32, ptr %19, align 4, !tbaa !10
  %89 = icmp slt i32 %87, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %86
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %111

91:                                               ; preds = %86
  %92 = load ptr, ptr %7, align 8, !tbaa !5
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = load i32, ptr %21, align 4, !tbaa !10
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %93, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !10
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %92, i64 noundef %98) #6
  %100 = load double, ptr %99, align 8, !tbaa !12
  %101 = load ptr, ptr %14, align 8, !tbaa !5
  %102 = load i32, ptr %21, align 4, !tbaa !10
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds double, ptr %101, i64 %103
  %105 = load double, ptr %104, align 8, !tbaa !12
  %106 = load double, ptr %20, align 8, !tbaa !12
  %107 = call double @llvm.fmuladd.f64(double %100, double %105, double %106)
  store double %107, ptr %20, align 8, !tbaa !12
  br label %108

108:                                              ; preds = %91
  %109 = load i32, ptr %21, align 4, !tbaa !10
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %21, align 4, !tbaa !10
  br label %86, !llvm.loop !14

111:                                              ; preds = %90
  %112 = load double, ptr %20, align 8, !tbaa !12
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = load i32, ptr %16, align 4, !tbaa !10
  %115 = sext i32 %114 to i64
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %113, i64 noundef %115) #6
  %117 = load double, ptr %116, align 8, !tbaa !12
  %118 = fsub double %117, %112
  store double %118, ptr %116, align 8, !tbaa !12
  %119 = load i32, ptr %10, align 4, !tbaa !10
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %144, label %121

121:                                              ; preds = %111
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = load i32, ptr %19, align 4, !tbaa !10
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds i32, ptr %122, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !10
  %127 = load i32, ptr %16, align 4, !tbaa !10
  %128 = icmp eq i32 %126, %127
  br i1 %128, label %129, label %130

129:                                              ; preds = %121
  br label %132

130:                                              ; preds = %121
  call void @__assert_fail(ptr noundef @.str.20, ptr noundef @.str.12, i32 noundef 241, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #7
  unreachable

131:                                              ; No predecessors!
  br label %132

132:                                              ; preds = %131, %129
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = load i32, ptr %19, align 4, !tbaa !10
  %135 = sext i32 %134 to i64
  %136 = getelementptr inbounds double, ptr %133, i64 %135
  %137 = load double, ptr %136, align 8, !tbaa !12
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = load i32, ptr %16, align 4, !tbaa !10
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %138, i64 noundef %140) #6
  %142 = load double, ptr %141, align 8, !tbaa !12
  %143 = fdiv double %142, %137
  store double %143, ptr %141, align 8, !tbaa !12
  br label %144

144:                                              ; preds = %132, %111
  %145 = load ptr, ptr %7, align 8, !tbaa !5
  %146 = load i32, ptr %16, align 4, !tbaa !10
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %145, i64 noundef %147) #6
  %149 = load double, ptr %148, align 8, !tbaa !12
  %150 = fcmp une double %149, 0.000000e+00
  br i1 %150, label %151, label %154

151:                                              ; preds = %144
  %152 = load i32, ptr %15, align 4, !tbaa !10
  %153 = add nsw i32 %152, 1
  store i32 %153, ptr %15, align 4, !tbaa !10
  br label %154

154:                                              ; preds = %151, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  br label %155

155:                                              ; preds = %154
  %156 = load i32, ptr %16, align 4, !tbaa !10
  %157 = add nsw i32 %156, 1
  store i32 %157, ptr %16, align 4, !tbaa !10
  br label %63, !llvm.loop !16

158:                                              ; preds = %67
  br label %259

159:                                              ; preds = %57
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %160 = load i32, ptr %11, align 4, !tbaa !10
  %161 = sub nsw i32 %160, 1
  store i32 %161, ptr %22, align 4, !tbaa !10
  br label %162

162:                                              ; preds = %255, %159
  %163 = load i32, ptr %22, align 4, !tbaa !10
  %164 = icmp sge i32 %163, 0
  br i1 %164, label %166, label %165

165:                                              ; preds = %162
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  br label %258

166:                                              ; preds = %162
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load i32, ptr %22, align 4, !tbaa !10
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds i32, ptr %167, i64 %169
  %171 = load i32, ptr %170, align 4, !tbaa !10
  %172 = load i32, ptr %10, align 4, !tbaa !10
  %173 = icmp ne i32 %172, 0
  %174 = zext i1 %173 to i64
  %175 = select i1 %173, i32 0, i32 1
  %176 = add nsw i32 %171, %175
  store i32 %176, ptr %23, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %177 = load ptr, ptr %12, align 8, !tbaa !5
  %178 = load i32, ptr %22, align 4, !tbaa !10
  %179 = add nsw i32 %178, 1
  %180 = sext i32 %179 to i64
  %181 = getelementptr inbounds i32, ptr %177, i64 %180
  %182 = load i32, ptr %181, align 4, !tbaa !10
  store i32 %182, ptr %24, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  store double 0.000000e+00, ptr %25, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %183 = load i32, ptr %23, align 4, !tbaa !10
  store i32 %183, ptr %26, align 4, !tbaa !10
  br label %184

184:                                              ; preds = %206, %166
  %185 = load i32, ptr %26, align 4, !tbaa !10
  %186 = load i32, ptr %24, align 4, !tbaa !10
  %187 = icmp slt i32 %185, %186
  br i1 %187, label %189, label %188

188:                                              ; preds = %184
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %209

189:                                              ; preds = %184
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = load ptr, ptr %13, align 8, !tbaa !5
  %192 = load i32, ptr %26, align 4, !tbaa !10
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds i32, ptr %191, i64 %193
  %195 = load i32, ptr %194, align 4, !tbaa !10
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %190, i64 noundef %196) #6
  %198 = load double, ptr %197, align 8, !tbaa !12
  %199 = load ptr, ptr %14, align 8, !tbaa !5
  %200 = load i32, ptr %26, align 4, !tbaa !10
  %201 = sext i32 %200 to i64
  %202 = getelementptr inbounds double, ptr %199, i64 %201
  %203 = load double, ptr %202, align 8, !tbaa !12
  %204 = load double, ptr %25, align 8, !tbaa !12
  %205 = call double @llvm.fmuladd.f64(double %198, double %203, double %204)
  store double %205, ptr %25, align 8, !tbaa !12
  br label %206

206:                                              ; preds = %189
  %207 = load i32, ptr %26, align 4, !tbaa !10
  %208 = add nsw i32 %207, 1
  store i32 %208, ptr %26, align 4, !tbaa !10
  br label %184, !llvm.loop !17

209:                                              ; preds = %188
  %210 = load double, ptr %25, align 8, !tbaa !12
  %211 = load ptr, ptr %7, align 8, !tbaa !5
  %212 = load i32, ptr %22, align 4, !tbaa !10
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %211, i64 noundef %213) #6
  %215 = load double, ptr %214, align 8, !tbaa !12
  %216 = fsub double %215, %210
  store double %216, ptr %214, align 8, !tbaa !12
  %217 = load i32, ptr %10, align 4, !tbaa !10
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %244, label %219

219:                                              ; preds = %209
  %220 = load ptr, ptr %13, align 8, !tbaa !5
  %221 = load i32, ptr %23, align 4, !tbaa !10
  %222 = sub nsw i32 %221, 1
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds i32, ptr %220, i64 %223
  %225 = load i32, ptr %224, align 4, !tbaa !10
  %226 = load i32, ptr %22, align 4, !tbaa !10
  %227 = icmp eq i32 %225, %226
  br i1 %227, label %228, label %229

228:                                              ; preds = %219
  br label %231

229:                                              ; preds = %219
  call void @__assert_fail(ptr noundef @.str.21, ptr noundef @.str.12, i32 noundef 257, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #7
  unreachable

230:                                              ; No predecessors!
  br label %231

231:                                              ; preds = %230, %228
  %232 = load ptr, ptr %14, align 8, !tbaa !5
  %233 = load i32, ptr %23, align 4, !tbaa !10
  %234 = sub nsw i32 %233, 1
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds double, ptr %232, i64 %235
  %237 = load double, ptr %236, align 8, !tbaa !12
  %238 = load ptr, ptr %7, align 8, !tbaa !5
  %239 = load i32, ptr %22, align 4, !tbaa !10
  %240 = sext i32 %239 to i64
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %238, i64 noundef %240) #6
  %242 = load double, ptr %241, align 8, !tbaa !12
  %243 = fdiv double %242, %237
  store double %243, ptr %241, align 8, !tbaa !12
  br label %244

244:                                              ; preds = %231, %209
  %245 = load ptr, ptr %7, align 8, !tbaa !5
  %246 = load i32, ptr %22, align 4, !tbaa !10
  %247 = sext i32 %246 to i64
  %248 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %245, i64 noundef %247) #6
  %249 = load double, ptr %248, align 8, !tbaa !12
  %250 = fcmp une double %249, 0.000000e+00
  br i1 %250, label %251, label %254

251:                                              ; preds = %244
  %252 = load i32, ptr %15, align 4, !tbaa !10
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %15, align 4, !tbaa !10
  br label %254

254:                                              ; preds = %251, %244
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %255

255:                                              ; preds = %254
  %256 = load i32, ptr %22, align 4, !tbaa !10
  %257 = add nsw i32 %256, -1
  store i32 %257, ptr %22, align 4, !tbaa !10
  br label %162, !llvm.loop !18

258:                                              ; preds = %165
  br label %259

259:                                              ; preds = %258, %158
  br label %458

260:                                              ; preds = %48
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = load i8, ptr %261, align 1, !tbaa !9
  %263 = sext i8 %262 to i32
  %264 = icmp eq i32 %263, 117
  br i1 %264, label %270, label %265

265:                                              ; preds = %260
  %266 = load ptr, ptr %9, align 8, !tbaa !5
  %267 = load i8, ptr %266, align 1, !tbaa !9
  %268 = sext i8 %267 to i32
  %269 = icmp eq i32 %268, 85
  br i1 %269, label %270, label %363

270:                                              ; preds = %265, %260
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %271 = load i32, ptr %11, align 4, !tbaa !10
  %272 = sub nsw i32 %271, 1
  store i32 %272, ptr %27, align 4, !tbaa !10
  br label %273

273:                                              ; preds = %359, %270
  %274 = load i32, ptr %27, align 4, !tbaa !10
  %275 = icmp sge i32 %274, 0
  br i1 %275, label %277, label %276

276:                                              ; preds = %273
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  br label %362

277:                                              ; preds = %273
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = load i32, ptr %27, align 4, !tbaa !10
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds i32, ptr %278, i64 %280
  %282 = load i32, ptr %281, align 4, !tbaa !10
  store i32 %282, ptr %28, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %283 = load ptr, ptr %12, align 8, !tbaa !5
  %284 = load i32, ptr %27, align 4, !tbaa !10
  %285 = add nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds i32, ptr %283, i64 %286
  %288 = load i32, ptr %287, align 4, !tbaa !10
  %289 = load i32, ptr %10, align 4, !tbaa !10
  %290 = icmp ne i32 %289, 0
  %291 = zext i1 %290 to i64
  %292 = select i1 %290, i32 0, i32 1
  %293 = sub nsw i32 %288, %292
  store i32 %293, ptr %29, align 4, !tbaa !10
  %294 = load i32, ptr %10, align 4, !tbaa !10
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %319, label %296

296:                                              ; preds = %277
  %297 = load ptr, ptr %13, align 8, !tbaa !5
  %298 = load i32, ptr %29, align 4, !tbaa !10
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds i32, ptr %297, i64 %299
  %301 = load i32, ptr %300, align 4, !tbaa !10
  %302 = load i32, ptr %27, align 4, !tbaa !10
  %303 = icmp eq i32 %301, %302
  br i1 %303, label %304, label %305

304:                                              ; preds = %296
  br label %307

305:                                              ; preds = %296
  call void @__assert_fail(ptr noundef @.str.22, ptr noundef @.str.12, i32 noundef 271, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #7
  unreachable

306:                                              ; No predecessors!
  br label %307

307:                                              ; preds = %306, %304
  %308 = load ptr, ptr %14, align 8, !tbaa !5
  %309 = load i32, ptr %29, align 4, !tbaa !10
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds double, ptr %308, i64 %310
  %312 = load double, ptr %311, align 8, !tbaa !12
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  %314 = load i32, ptr %27, align 4, !tbaa !10
  %315 = sext i32 %314 to i64
  %316 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %313, i64 noundef %315) #6
  %317 = load double, ptr %316, align 8, !tbaa !12
  %318 = fdiv double %317, %312
  store double %318, ptr %316, align 8, !tbaa !12
  br label %319

319:                                              ; preds = %307, %277
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %320 = load ptr, ptr %7, align 8, !tbaa !5
  %321 = load i32, ptr %27, align 4, !tbaa !10
  %322 = sext i32 %321 to i64
  %323 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %320, i64 noundef %322) #6
  %324 = load double, ptr %323, align 8, !tbaa !12
  store double %324, ptr %30, align 8, !tbaa !12
  %325 = load double, ptr %30, align 8, !tbaa !12
  %326 = fcmp une double %325, 0.000000e+00
  br i1 %326, label %327, label %358

327:                                              ; preds = %319
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %328 = load i32, ptr %28, align 4, !tbaa !10
  store i32 %328, ptr %31, align 4, !tbaa !10
  br label %329

329:                                              ; preds = %352, %327
  %330 = load i32, ptr %31, align 4, !tbaa !10
  %331 = load i32, ptr %29, align 4, !tbaa !10
  %332 = icmp slt i32 %330, %331
  br i1 %332, label %334, label %333

333:                                              ; preds = %329
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %355

334:                                              ; preds = %329
  %335 = load ptr, ptr %14, align 8, !tbaa !5
  %336 = load i32, ptr %31, align 4, !tbaa !10
  %337 = sext i32 %336 to i64
  %338 = getelementptr inbounds double, ptr %335, i64 %337
  %339 = load double, ptr %338, align 8, !tbaa !12
  %340 = load double, ptr %30, align 8, !tbaa !12
  %341 = load ptr, ptr %7, align 8, !tbaa !5
  %342 = load ptr, ptr %13, align 8, !tbaa !5
  %343 = load i32, ptr %31, align 4, !tbaa !10
  %344 = sext i32 %343 to i64
  %345 = getelementptr inbounds i32, ptr %342, i64 %344
  %346 = load i32, ptr %345, align 4, !tbaa !10
  %347 = sext i32 %346 to i64
  %348 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %341, i64 noundef %347) #6
  %349 = load double, ptr %348, align 8, !tbaa !12
  %350 = fneg double %339
  %351 = call double @llvm.fmuladd.f64(double %350, double %340, double %349)
  store double %351, ptr %348, align 8, !tbaa !12
  br label %352

352:                                              ; preds = %334
  %353 = load i32, ptr %31, align 4, !tbaa !10
  %354 = add nsw i32 %353, 1
  store i32 %354, ptr %31, align 4, !tbaa !10
  br label %329, !llvm.loop !19

355:                                              ; preds = %333
  %356 = load i32, ptr %15, align 4, !tbaa !10
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr %15, align 4, !tbaa !10
  br label %358

358:                                              ; preds = %355, %319
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  br label %359

359:                                              ; preds = %358
  %360 = load i32, ptr %27, align 4, !tbaa !10
  %361 = add nsw i32 %360, -1
  store i32 %361, ptr %27, align 4, !tbaa !10
  br label %273, !llvm.loop !20

362:                                              ; preds = %276
  br label %457

363:                                              ; preds = %265
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  store i32 0, ptr %32, align 4, !tbaa !10
  br label %364

364:                                              ; preds = %453, %363
  %365 = load i32, ptr %32, align 4, !tbaa !10
  %366 = load i32, ptr %11, align 4, !tbaa !10
  %367 = icmp slt i32 %365, %366
  br i1 %367, label %369, label %368

368:                                              ; preds = %364
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %456

369:                                              ; preds = %364
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %370 = load ptr, ptr %12, align 8, !tbaa !5
  %371 = load i32, ptr %32, align 4, !tbaa !10
  %372 = sext i32 %371 to i64
  %373 = getelementptr inbounds i32, ptr %370, i64 %372
  %374 = load i32, ptr %373, align 4, !tbaa !10
  %375 = load i32, ptr %10, align 4, !tbaa !10
  %376 = icmp ne i32 %375, 0
  %377 = zext i1 %376 to i64
  %378 = select i1 %376, i32 0, i32 1
  %379 = add nsw i32 %374, %378
  store i32 %379, ptr %33, align 4, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %380 = load ptr, ptr %12, align 8, !tbaa !5
  %381 = load i32, ptr %32, align 4, !tbaa !10
  %382 = add nsw i32 %381, 1
  %383 = sext i32 %382 to i64
  %384 = getelementptr inbounds i32, ptr %380, i64 %383
  %385 = load i32, ptr %384, align 4, !tbaa !10
  store i32 %385, ptr %34, align 4, !tbaa !10
  %386 = load i32, ptr %10, align 4, !tbaa !10
  %387 = icmp ne i32 %386, 0
  br i1 %387, label %413, label %388

388:                                              ; preds = %369
  %389 = load ptr, ptr %13, align 8, !tbaa !5
  %390 = load i32, ptr %33, align 4, !tbaa !10
  %391 = sub nsw i32 %390, 1
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds i32, ptr %389, i64 %392
  %394 = load i32, ptr %393, align 4, !tbaa !10
  %395 = load i32, ptr %32, align 4, !tbaa !10
  %396 = icmp eq i32 %394, %395
  br i1 %396, label %397, label %398

397:                                              ; preds = %388
  br label %400

398:                                              ; preds = %388
  call void @__assert_fail(ptr noundef @.str.23, ptr noundef @.str.12, i32 noundef 287, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #7
  unreachable

399:                                              ; No predecessors!
  br label %400

400:                                              ; preds = %399, %397
  %401 = load ptr, ptr %14, align 8, !tbaa !5
  %402 = load i32, ptr %33, align 4, !tbaa !10
  %403 = sub nsw i32 %402, 1
  %404 = sext i32 %403 to i64
  %405 = getelementptr inbounds double, ptr %401, i64 %404
  %406 = load double, ptr %405, align 8, !tbaa !12
  %407 = load ptr, ptr %7, align 8, !tbaa !5
  %408 = load i32, ptr %32, align 4, !tbaa !10
  %409 = sext i32 %408 to i64
  %410 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %407, i64 noundef %409) #6
  %411 = load double, ptr %410, align 8, !tbaa !12
  %412 = fdiv double %411, %406
  store double %412, ptr %410, align 8, !tbaa !12
  br label %413

413:                                              ; preds = %400, %369
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #6
  %414 = load ptr, ptr %7, align 8, !tbaa !5
  %415 = load i32, ptr %32, align 4, !tbaa !10
  %416 = sext i32 %415 to i64
  %417 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %414, i64 noundef %416) #6
  %418 = load double, ptr %417, align 8, !tbaa !12
  store double %418, ptr %35, align 8, !tbaa !12
  %419 = load double, ptr %35, align 8, !tbaa !12
  %420 = fcmp une double %419, 0.000000e+00
  br i1 %420, label %421, label %452

421:                                              ; preds = %413
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %422 = load i32, ptr %33, align 4, !tbaa !10
  store i32 %422, ptr %36, align 4, !tbaa !10
  br label %423

423:                                              ; preds = %446, %421
  %424 = load i32, ptr %36, align 4, !tbaa !10
  %425 = load i32, ptr %34, align 4, !tbaa !10
  %426 = icmp slt i32 %424, %425
  br i1 %426, label %428, label %427

427:                                              ; preds = %423
  store i32 23, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %449

428:                                              ; preds = %423
  %429 = load ptr, ptr %14, align 8, !tbaa !5
  %430 = load i32, ptr %36, align 4, !tbaa !10
  %431 = sext i32 %430 to i64
  %432 = getelementptr inbounds double, ptr %429, i64 %431
  %433 = load double, ptr %432, align 8, !tbaa !12
  %434 = load double, ptr %35, align 8, !tbaa !12
  %435 = load ptr, ptr %7, align 8, !tbaa !5
  %436 = load ptr, ptr %13, align 8, !tbaa !5
  %437 = load i32, ptr %36, align 4, !tbaa !10
  %438 = sext i32 %437 to i64
  %439 = getelementptr inbounds i32, ptr %436, i64 %438
  %440 = load i32, ptr %439, align 4, !tbaa !10
  %441 = sext i32 %440 to i64
  %442 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %435, i64 noundef %441) #6
  %443 = load double, ptr %442, align 8, !tbaa !12
  %444 = fneg double %433
  %445 = call double @llvm.fmuladd.f64(double %444, double %434, double %443)
  store double %445, ptr %442, align 8, !tbaa !12
  br label %446

446:                                              ; preds = %428
  %447 = load i32, ptr %36, align 4, !tbaa !10
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %36, align 4, !tbaa !10
  br label %423, !llvm.loop !21

449:                                              ; preds = %427
  %450 = load i32, ptr %15, align 4, !tbaa !10
  %451 = add nsw i32 %450, 1
  store i32 %451, ptr %15, align 4, !tbaa !10
  br label %452

452:                                              ; preds = %449, %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %453

453:                                              ; preds = %452
  %454 = load i32, ptr %32, align 4, !tbaa !10
  %455 = add nsw i32 %454, 1
  store i32 %455, ptr %32, align 4, !tbaa !10
  br label %364, !llvm.loop !22

456:                                              ; preds = %368
  br label %457

457:                                              ; preds = %456, %362
  br label %458

458:                                              ; preds = %457, %259
  %459 = load i32, ptr %15, align 4, !tbaa !10
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret i32 %459
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6colptrEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6rowidxEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6valuesEv(ptr noundef nonnull align 8 dereferenceable(128)) #2 align 2

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


; 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.12 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [13 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci = external hidden unnamed_addr constant [82 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [17 x i8], align 1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx12SparseMatrix4colsEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #3

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef i32 @_ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci(ptr noundef nonnull align 8 dereferenceable(128) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, i8 noundef signext %2, ptr nocapture noundef readonly %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = tail call noundef i32 @_ZNK3ipx12SparseMatrix4colsEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %7 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6colptrEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %8 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6rowidxEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %9 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6valuesEv(ptr noundef nonnull align 8 dereferenceable(128) %0)
  %10 = and i8 %2, -33
  %or.cond = icmp eq i8 %10, 84
  %11 = load i8, ptr %3, align 1, !tbaa !5
  br i1 %or.cond, label %12, label %98

12:                                               ; preds = %5
  switch i8 %11, label %.preheader [
    i8 117, label %17
    i8 85, label %17
  ]

.preheader:                                       ; preds = %12
  %13 = icmp sgt i32 %6, 0
  br i1 %13, label %.lr.ph200, label %.loopexit

.lr.ph200:                                        ; preds = %.preheader
  %.not152 = icmp eq i32 %4, 0
  %14 = zext i1 %.not152 to i32
  %15 = zext i1 %.not152 to i64
  %16 = zext nneg i32 %6 to i64
  br label %56

17:                                               ; preds = %12, %12
  %18 = icmp sgt i32 %6, 0
  br i1 %18, label %.lr.ph188, label %.loopexit

.lr.ph188:                                        ; preds = %17
  %.not153 = icmp eq i32 %4, 0
  %.neg154 = sext i1 %.not153 to i32
  %wide.trip.count225 = zext nneg i32 %6 to i64
  br label %19

19:                                               ; preds = %.lr.ph188, %51
  %indvars.iv222 = phi i64 [ 0, %.lr.ph188 ], [ %indvars.iv.next223, %51 ]
  %.0136186 = phi i32 [ 0, %.lr.ph188 ], [ %.1, %51 ]
  %20 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv222
  %21 = load i32, ptr %20, align 4, !tbaa !8
  %indvars.iv.next223 = add nuw nsw i64 %indvars.iv222, 1
  %22 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next223
  %23 = load i32, ptr %22, align 4, !tbaa !8
  %24 = add i32 %23, %.neg154
  %25 = icmp slt i32 %21, %24
  br i1 %25, label %.lr.ph182.preheader, label %._crit_edge183

.lr.ph182.preheader:                              ; preds = %19
  %26 = sext i32 %21 to i64
  br label %.lr.ph182

._crit_edge183:                                   ; preds = %.lr.ph182, %19
  %.0140.lcssa = phi double [ 0.000000e+00, %19 ], [ %37, %.lr.ph182 ]
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv222) #4
  %28 = load double, ptr %27, align 8, !tbaa !10
  %29 = fsub double %28, %.0140.lcssa
  store double %29, ptr %27, align 8, !tbaa !10
  br i1 %.not153, label %38, label %51

.lr.ph182:                                        ; preds = %.lr.ph182.preheader, %.lr.ph182
  %indvars.iv217 = phi i64 [ %26, %.lr.ph182.preheader ], [ %indvars.iv.next218, %.lr.ph182 ]
  %.0140180 = phi double [ 0.000000e+00, %.lr.ph182.preheader ], [ %37, %.lr.ph182 ]
  %30 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv217
  %31 = load i32, ptr %30, align 4, !tbaa !8
  %32 = sext i32 %31 to i64
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %32) #4
  %34 = load double, ptr %33, align 8, !tbaa !10
  %35 = getelementptr inbounds double, ptr %9, i64 %indvars.iv217
  %36 = load double, ptr %35, align 8, !tbaa !10
  %37 = tail call double @llvm.fmuladd.f64(double %34, double %36, double %.0140180)
  %indvars.iv.next218 = add nsw i64 %indvars.iv217, 1
  %lftr.wideiv220 = trunc i64 %indvars.iv.next218 to i32
  %exitcond221.not = icmp eq i32 %24, %lftr.wideiv220
  br i1 %exitcond221.not, label %._crit_edge183, label %.lr.ph182, !llvm.loop !12

38:                                               ; preds = %._crit_edge183
  %39 = sext i32 %24 to i64
  %40 = getelementptr inbounds i32, ptr %8, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = zext i32 %41 to i64
  %43 = icmp eq i64 %indvars.iv222, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %38
  tail call void @__assert_fail(ptr noundef nonnull @.str.20, ptr noundef nonnull @.str.12, i32 noundef 241, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #5
  unreachable

45:                                               ; preds = %38
  %46 = getelementptr inbounds double, ptr %9, i64 %39
  %47 = load double, ptr %46, align 8, !tbaa !10
  %48 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv222) #4
  %49 = load double, ptr %48, align 8, !tbaa !10
  %50 = fdiv double %49, %47
  store double %50, ptr %48, align 8, !tbaa !10
  br label %51

51:                                               ; preds = %45, %._crit_edge183
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv222) #4
  %53 = load double, ptr %52, align 8, !tbaa !10
  %54 = fcmp une double %53, 0.000000e+00
  %55 = zext i1 %54 to i32
  %.1 = add nuw nsw i32 %.0136186, %55
  %exitcond226.not = icmp eq i64 %indvars.iv.next223, %wide.trip.count225
  br i1 %exitcond226.not, label %.loopexit, label %19, !llvm.loop !14

56:                                               ; preds = %.lr.ph200, %92
  %indvars.iv230 = phi i64 [ %16, %.lr.ph200 ], [ %indvars.iv.next231, %92 ]
  %.2198 = phi i32 [ 0, %.lr.ph200 ], [ %.3, %92 ]
  %indvars.iv.next231 = add nsw i64 %indvars.iv230, -1
  %57 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next231
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %59 = add nsw i32 %58, %14
  %60 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv230
  %61 = load i32, ptr %60, align 4, !tbaa !8
  %62 = icmp slt i32 %59, %61
  br i1 %62, label %.lr.ph193.preheader, label %._crit_edge194

.lr.ph193.preheader:                              ; preds = %56
  %63 = sext i32 %58 to i64
  %64 = add nsw i64 %15, %63
  %65 = sext i32 %61 to i64
  br label %.lr.ph193

._crit_edge194:                                   ; preds = %.lr.ph193, %56
  %.0145.lcssa = phi double [ 0.000000e+00, %56 ], [ %76, %.lr.ph193 ]
  %66 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv.next231) #4
  %67 = load double, ptr %66, align 8, !tbaa !10
  %68 = fsub double %67, %.0145.lcssa
  store double %68, ptr %66, align 8, !tbaa !10
  br i1 %.not152, label %78, label %92

.lr.ph193:                                        ; preds = %.lr.ph193.preheader, %.lr.ph193
  %indvars.iv227 = phi i64 [ %64, %.lr.ph193.preheader ], [ %indvars.iv.next228, %.lr.ph193 ]
  %.0145190 = phi double [ 0.000000e+00, %.lr.ph193.preheader ], [ %76, %.lr.ph193 ]
  %69 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv227
  %70 = load i32, ptr %69, align 4, !tbaa !8
  %71 = sext i32 %70 to i64
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %71) #4
  %73 = load double, ptr %72, align 8, !tbaa !10
  %74 = getelementptr inbounds double, ptr %9, i64 %indvars.iv227
  %75 = load double, ptr %74, align 8, !tbaa !10
  %76 = tail call double @llvm.fmuladd.f64(double %73, double %75, double %.0145190)
  %indvars.iv.next228 = add nsw i64 %indvars.iv227, 1
  %77 = icmp slt i64 %indvars.iv.next228, %65
  br i1 %77, label %.lr.ph193, label %._crit_edge194, !llvm.loop !15

78:                                               ; preds = %._crit_edge194
  %79 = add nsw i32 %59, -1
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds i32, ptr %8, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !8
  %83 = zext i32 %82 to i64
  %84 = icmp eq i64 %indvars.iv.next231, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %78
  tail call void @__assert_fail(ptr noundef nonnull @.str.21, ptr noundef nonnull @.str.12, i32 noundef 257, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #5
  unreachable

86:                                               ; preds = %78
  %87 = getelementptr inbounds double, ptr %9, i64 %80
  %88 = load double, ptr %87, align 8, !tbaa !10
  %89 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv.next231) #4
  %90 = load double, ptr %89, align 8, !tbaa !10
  %91 = fdiv double %90, %88
  store double %91, ptr %89, align 8, !tbaa !10
  br label %92

92:                                               ; preds = %86, %._crit_edge194
  %93 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv.next231) #4
  %94 = load double, ptr %93, align 8, !tbaa !10
  %95 = fcmp une double %94, 0.000000e+00
  %96 = zext i1 %95 to i32
  %.3 = add nuw nsw i32 %.2198, %96
  %97 = icmp sgt i64 %indvars.iv230, 1
  br i1 %97, label %56, label %.loopexit, !llvm.loop !16

98:                                               ; preds = %5
  switch i8 %11, label %.preheader157 [
    i8 117, label %101
    i8 85, label %101
  ]

.preheader157:                                    ; preds = %98
  %99 = icmp sgt i32 %6, 0
  br i1 %99, label %.lr.ph177, label %.loopexit

.lr.ph177:                                        ; preds = %.preheader157
  %.not = icmp eq i32 %4, 0
  %100 = zext i1 %.not to i32
  %wide.trip.count = zext nneg i32 %6 to i64
  br label %141

101:                                              ; preds = %98, %98
  %102 = icmp sgt i32 %6, 0
  br i1 %102, label %.lr.ph171, label %.loopexit

.lr.ph171:                                        ; preds = %101
  %.not151 = icmp eq i32 %4, 0
  %.neg = sext i1 %.not151 to i32
  %103 = zext nneg i32 %6 to i64
  br label %104

104:                                              ; preds = %.lr.ph171, %139
  %indvars.iv207 = phi i64 [ %103, %.lr.ph171 ], [ %indvars.iv.next208, %139 ]
  %.4168 = phi i32 [ 0, %.lr.ph171 ], [ %.5, %139 ]
  %indvars.iv.next208 = add nsw i64 %indvars.iv207, -1
  %105 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next208
  %106 = load i32, ptr %105, align 4, !tbaa !8
  %107 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv207
  %108 = load i32, ptr %107, align 4, !tbaa !8
  %109 = add i32 %108, %.neg
  br i1 %.not151, label %110, label %123

110:                                              ; preds = %104
  %111 = sext i32 %109 to i64
  %112 = getelementptr inbounds i32, ptr %8, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !8
  %114 = zext i32 %113 to i64
  %115 = icmp eq i64 %indvars.iv.next208, %114
  br i1 %115, label %117, label %116

116:                                              ; preds = %110
  tail call void @__assert_fail(ptr noundef nonnull @.str.22, ptr noundef nonnull @.str.12, i32 noundef 271, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #5
  unreachable

117:                                              ; preds = %110
  %118 = getelementptr inbounds double, ptr %9, i64 %111
  %119 = load double, ptr %118, align 8, !tbaa !10
  %120 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv.next208) #4
  %121 = load double, ptr %120, align 8, !tbaa !10
  %122 = fdiv double %121, %119
  store double %122, ptr %120, align 8, !tbaa !10
  br label %123

123:                                              ; preds = %117, %104
  %124 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv.next208) #4
  %125 = load double, ptr %124, align 8, !tbaa !10
  %126 = fcmp une double %125, 0.000000e+00
  br i1 %126, label %.preheader159, label %139

.preheader159:                                    ; preds = %123
  %127 = icmp slt i32 %106, %109
  br i1 %127, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader159
  %128 = sext i32 %106 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader159
  %129 = add nsw i32 %.4168, 1
  br label %139

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %128, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %130 = getelementptr inbounds double, ptr %9, i64 %indvars.iv
  %131 = load double, ptr %130, align 8, !tbaa !10
  %132 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv
  %133 = load i32, ptr %132, align 4, !tbaa !8
  %134 = sext i32 %133 to i64
  %135 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %134) #4
  %136 = load double, ptr %135, align 8, !tbaa !10
  %137 = fneg double %131
  %138 = tail call double @llvm.fmuladd.f64(double %137, double %125, double %136)
  store double %138, ptr %135, align 8, !tbaa !10
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %109, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

139:                                              ; preds = %._crit_edge, %123
  %.5 = phi i32 [ %129, %._crit_edge ], [ %.4168, %123 ]
  %140 = icmp sgt i64 %indvars.iv207, 1
  br i1 %140, label %104, label %.loopexit, !llvm.loop !18

141:                                              ; preds = %.lr.ph177, %179
  %indvars.iv213 = phi i64 [ 0, %.lr.ph177 ], [ %indvars.iv.next214, %179 ]
  %.6176 = phi i32 [ 0, %.lr.ph177 ], [ %.7, %179 ]
  %142 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv213
  %143 = load i32, ptr %142, align 4, !tbaa !8
  %144 = add i32 %143, %100
  %indvars.iv.next214 = add nuw nsw i64 %indvars.iv213, 1
  %145 = getelementptr inbounds i32, ptr %7, i64 %indvars.iv.next214
  %146 = load i32, ptr %145, align 4, !tbaa !8
  br i1 %.not, label %147, label %161

147:                                              ; preds = %141
  %148 = add nsw i32 %144, -1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds i32, ptr %8, i64 %149
  %151 = load i32, ptr %150, align 4, !tbaa !8
  %152 = zext i32 %151 to i64
  %153 = icmp eq i64 %indvars.iv213, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %147
  tail call void @__assert_fail(ptr noundef nonnull @.str.23, ptr noundef nonnull @.str.12, i32 noundef 287, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx15TriangularSolveERKNS_12SparseMatrixERSt8valarrayIdEcPKci) #5
  unreachable

155:                                              ; preds = %147
  %156 = getelementptr inbounds double, ptr %9, i64 %149
  %157 = load double, ptr %156, align 8, !tbaa !10
  %158 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv213) #4
  %159 = load double, ptr %158, align 8, !tbaa !10
  %160 = fdiv double %159, %157
  store double %160, ptr %158, align 8, !tbaa !10
  br label %161

161:                                              ; preds = %155, %141
  %162 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv213) #4
  %163 = load double, ptr %162, align 8, !tbaa !10
  %164 = fcmp une double %163, 0.000000e+00
  br i1 %164, label %.preheader156, label %179

.preheader156:                                    ; preds = %161
  %165 = icmp slt i32 %144, %146
  br i1 %165, label %.lr.ph173.preheader, label %._crit_edge174

.lr.ph173.preheader:                              ; preds = %.preheader156
  %166 = sext i32 %144 to i64
  %167 = sext i32 %146 to i64
  br label %.lr.ph173

._crit_edge174:                                   ; preds = %.lr.ph173, %.preheader156
  %168 = add nsw i32 %.6176, 1
  br label %179

.lr.ph173:                                        ; preds = %.lr.ph173.preheader, %.lr.ph173
  %indvars.iv210 = phi i64 [ %166, %.lr.ph173.preheader ], [ %indvars.iv.next211, %.lr.ph173 ]
  %169 = getelementptr inbounds double, ptr %9, i64 %indvars.iv210
  %170 = load double, ptr %169, align 8, !tbaa !10
  %171 = getelementptr inbounds i32, ptr %8, i64 %indvars.iv210
  %172 = load i32, ptr %171, align 4, !tbaa !8
  %173 = sext i32 %172 to i64
  %174 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %173) #4
  %175 = load double, ptr %174, align 8, !tbaa !10
  %176 = fneg double %170
  %177 = tail call double @llvm.fmuladd.f64(double %176, double %163, double %175)
  store double %177, ptr %174, align 8, !tbaa !10
  %indvars.iv.next211 = add nsw i64 %indvars.iv210, 1
  %178 = icmp slt i64 %indvars.iv.next211, %167
  br i1 %178, label %.lr.ph173, label %._crit_edge174, !llvm.loop !19

179:                                              ; preds = %._crit_edge174, %161
  %.7 = phi i32 [ %168, %._crit_edge174 ], [ %.6176, %161 ]
  %exitcond216.not = icmp eq i64 %indvars.iv.next214, %wide.trip.count
  br i1 %exitcond216.not, label %.loopexit, label %141, !llvm.loop !20

.loopexit:                                        ; preds = %139, %179, %51, %92, %101, %.preheader157, %17, %.preheader
  %.8 = phi i32 [ 0, %.preheader ], [ 0, %17 ], [ 0, %.preheader157 ], [ 0, %101 ], [ %.3, %92 ], [ %.1, %51 ], [ %.7, %179 ], [ %.5, %139 ]
  ret i32 %.8
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6colptrEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6rowidxEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3ipx12SparseMatrix6valuesEv(ptr noundef nonnull align 8 dereferenceable(128)) local_unnamed_addr #1 align 2

attributes #0 = { 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 #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }
attributes #5 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !6, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}
!19 = distinct !{!19, !13}
!20 = distinct !{!20, !13}


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