; LLVM IR from ERGO-Code/HiGHS :: src/ipm/ipx/normal_matrix.ll (ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd)

; 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.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }
%"class.ipx::NormalMatrix" = type { %"class.ipx::LinearOperator", ptr, ptr, i8, %"class.std::valarray", double }
%"class.ipx::LinearOperator" = type { ptr }
%"class.std::valarray" = type { i64, ptr }

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd = external hidden unnamed_addr constant [75 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 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: mustprogress uwtable
define dso_local void @_ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %"class.ipx::Timer", 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 double, align 8
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca double, align 8
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %31 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !9
  %33 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %32)
  store i32 %33, ptr %9, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #8
  %34 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 1
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %35)
  store i32 %36, ptr %10, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  %37 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 1
  %38 = load ptr, ptr %37, align 8, !tbaa !9
  %39 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %38)
  %40 = call noundef ptr @_ZNK3ipx12SparseMatrix6colptrEv(ptr noundef nonnull align 8 dereferenceable(128) %39)
  store ptr %40, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %41 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %42)
  %44 = call noundef ptr @_ZNK3ipx12SparseMatrix6rowidxEv(ptr noundef nonnull align 8 dereferenceable(128) %43)
  store ptr %44, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %45 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !9
  %47 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %46)
  %48 = call noundef ptr @_ZNK3ipx12SparseMatrix6valuesEv(ptr noundef nonnull align 8 dereferenceable(128) %47)
  store ptr %48, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  call void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %49 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 3
  %50 = load i8, ptr %49, align 8, !tbaa !18, !range !19, !noundef !20
  %51 = trunc i8 %50 to i1
  br i1 %51, label %52, label %53

52:                                               ; preds = %4
  br label %55

53:                                               ; preds = %4
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 57, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

54:                                               ; No predecessors!
  br label %55

55:                                               ; preds = %54, %52
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %56)
  %58 = trunc i64 %57 to i32
  %59 = load i32, ptr %9, align 4, !tbaa !16
  %60 = icmp eq i32 %58, %59
  br i1 %60, label %61, label %62

61:                                               ; preds = %55
  br label %64

62:                                               ; preds = %55
  call void @__assert_fail(ptr noundef @.str.13, ptr noundef @.str.12, i32 noundef 58, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

63:                                               ; No predecessors!
  br label %64

64:                                               ; preds = %63, %61
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %65)
  %67 = trunc i64 %66 to i32
  %68 = load i32, ptr %9, align 4, !tbaa !16
  %69 = icmp eq i32 %67, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  br label %73

71:                                               ; preds = %64
  call void @__assert_fail(ptr noundef @.str.14, ptr noundef @.str.12, i32 noundef 59, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %70
  %74 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !21
  %76 = icmp ne ptr %75, null
  br i1 %76, label %77, label %189

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 0, ptr %15, align 4, !tbaa !16
  br label %78

78:                                               ; preds = %102, %77
  %79 = load i32, ptr %15, align 4, !tbaa !16
  %80 = load i32, ptr %9, align 4, !tbaa !16
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  br label %105

83:                                               ; preds = %78
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %15, align 4, !tbaa !16
  %86 = sext i32 %85 to i64
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %84, i64 noundef %86) #8
  %88 = load double, ptr %87, align 8, !tbaa !22
  %89 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !21
  %91 = load i32, ptr %10, align 4, !tbaa !16
  %92 = load i32, ptr %15, align 4, !tbaa !16
  %93 = add nsw i32 %91, %92
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds double, ptr %90, i64 %94
  %96 = load double, ptr %95, align 8, !tbaa !22
  %97 = fmul double %88, %96
  %98 = load ptr, ptr %7, align 8, !tbaa !5
  %99 = load i32, ptr %15, align 4, !tbaa !16
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %98, i64 noundef %100) #8
  store double %97, ptr %101, align 8, !tbaa !22
  br label %102

102:                                              ; preds = %83
  %103 = load i32, ptr %15, align 4, !tbaa !16
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %15, align 4, !tbaa !16
  br label %78, !llvm.loop !23

105:                                              ; preds = %82
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store i32 0, ptr %16, align 4, !tbaa !16
  br label %106

106:                                              ; preds = %185, %105
  %107 = load i32, ptr %16, align 4, !tbaa !16
  %108 = load i32, ptr %10, align 4, !tbaa !16
  %109 = icmp slt i32 %107, %108
  br i1 %109, label %111, label %110

110:                                              ; preds = %106
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  br label %188

111:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load i32, ptr %16, align 4, !tbaa !16
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %112, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !16
  store i32 %116, ptr %18, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #8
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = load i32, ptr %16, align 4, !tbaa !16
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds i32, ptr %117, i64 %120
  %122 = load i32, ptr %121, align 4, !tbaa !16
  store i32 %122, ptr %19, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  store double 0.000000e+00, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %123 = load i32, ptr %18, align 4, !tbaa !16
  store i32 %123, ptr %21, align 4, !tbaa !16
  br label %124

124:                                              ; preds = %146, %111
  %125 = load i32, ptr %21, align 4, !tbaa !16
  %126 = load i32, ptr %19, align 4, !tbaa !16
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %129, label %128

128:                                              ; preds = %124
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %149

129:                                              ; preds = %124
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr %12, align 8, !tbaa !5
  %132 = load i32, ptr %21, align 4, !tbaa !16
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds i32, ptr %131, i64 %133
  %135 = load i32, ptr %134, align 4, !tbaa !16
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %130, i64 noundef %136) #8
  %138 = load double, ptr %137, align 8, !tbaa !22
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load i32, ptr %21, align 4, !tbaa !16
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !22
  %144 = load double, ptr %20, align 8, !tbaa !22
  %145 = call double @llvm.fmuladd.f64(double %138, double %143, double %144)
  store double %145, ptr %20, align 8, !tbaa !22
  br label %146

146:                                              ; preds = %129
  %147 = load i32, ptr %21, align 4, !tbaa !16
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %21, align 4, !tbaa !16
  br label %124, !llvm.loop !25

149:                                              ; preds = %128
  %150 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 2
  %151 = load ptr, ptr %150, align 8, !tbaa !21
  %152 = load i32, ptr %16, align 4, !tbaa !16
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !22
  %156 = load double, ptr %20, align 8, !tbaa !22
  %157 = fmul double %156, %155
  store double %157, ptr %20, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %158 = load i32, ptr %18, align 4, !tbaa !16
  store i32 %158, ptr %22, align 4, !tbaa !16
  br label %159

159:                                              ; preds = %181, %149
  %160 = load i32, ptr %22, align 4, !tbaa !16
  %161 = load i32, ptr %19, align 4, !tbaa !16
  %162 = icmp slt i32 %160, %161
  br i1 %162, label %164, label %163

163:                                              ; preds = %159
  store i32 11, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %184

164:                                              ; preds = %159
  %165 = load double, ptr %20, align 8, !tbaa !22
  %166 = load ptr, ptr %13, align 8, !tbaa !5
  %167 = load i32, ptr %22, align 4, !tbaa !16
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !22
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = load i32, ptr %22, align 4, !tbaa !16
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds i32, ptr %172, i64 %174
  %176 = load i32, ptr %175, align 4, !tbaa !16
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %171, i64 noundef %177) #8
  %179 = load double, ptr %178, align 8, !tbaa !22
  %180 = call double @llvm.fmuladd.f64(double %165, double %170, double %179)
  store double %180, ptr %178, align 8, !tbaa !22
  br label %181

181:                                              ; preds = %164
  %182 = load i32, ptr %22, align 4, !tbaa !16
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %22, align 4, !tbaa !16
  br label %159, !llvm.loop !26

184:                                              ; preds = %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  br label %185

185:                                              ; preds = %184
  %186 = load i32, ptr %16, align 4, !tbaa !16
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %16, align 4, !tbaa !16
  br label %106, !llvm.loop !27

188:                                              ; preds = %110
  br label %267

189:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store double 0.000000e+00, ptr %23, align 8, !tbaa !22
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %190, ptr noundef nonnull align 8 dereferenceable(8) %23)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  store i32 0, ptr %24, align 4, !tbaa !16
  br label %192

192:                                              ; preds = %263, %189
  %193 = load i32, ptr %24, align 4, !tbaa !16
  %194 = load i32, ptr %10, align 4, !tbaa !16
  %195 = icmp slt i32 %193, %194
  br i1 %195, label %197, label %196

196:                                              ; preds = %192
  store i32 14, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  br label %266

197:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #8
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load i32, ptr %24, align 4, !tbaa !16
  %200 = sext i32 %199 to i64
  %201 = getelementptr inbounds i32, ptr %198, i64 %200
  %202 = load i32, ptr %201, align 4, !tbaa !16
  store i32 %202, ptr %25, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %203 = load ptr, ptr %11, align 8, !tbaa !5
  %204 = load i32, ptr %24, align 4, !tbaa !16
  %205 = add nsw i32 %204, 1
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds i32, ptr %203, i64 %206
  %208 = load i32, ptr %207, align 4, !tbaa !16
  store i32 %208, ptr %26, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #8
  store double 0.000000e+00, ptr %27, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #8
  %209 = load i32, ptr %25, align 4, !tbaa !16
  store i32 %209, ptr %28, align 4, !tbaa !16
  br label %210

210:                                              ; preds = %232, %197
  %211 = load i32, ptr %28, align 4, !tbaa !16
  %212 = load i32, ptr %26, align 4, !tbaa !16
  %213 = icmp slt i32 %211, %212
  br i1 %213, label %215, label %214

214:                                              ; preds = %210
  store i32 17, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #8
  br label %235

215:                                              ; preds = %210
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = load i32, ptr %28, align 4, !tbaa !16
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds i32, ptr %217, i64 %219
  %221 = load i32, ptr %220, align 4, !tbaa !16
  %222 = sext i32 %221 to i64
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %216, i64 noundef %222) #8
  %224 = load double, ptr %223, align 8, !tbaa !22
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = load i32, ptr %28, align 4, !tbaa !16
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds double, ptr %225, i64 %227
  %229 = load double, ptr %228, align 8, !tbaa !22
  %230 = load double, ptr %27, align 8, !tbaa !22
  %231 = call double @llvm.fmuladd.f64(double %224, double %229, double %230)
  store double %231, ptr %27, align 8, !tbaa !22
  br label %232

232:                                              ; preds = %215
  %233 = load i32, ptr %28, align 4, !tbaa !16
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %28, align 4, !tbaa !16
  br label %210, !llvm.loop !28

235:                                              ; preds = %214
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #8
  %236 = load i32, ptr %25, align 4, !tbaa !16
  store i32 %236, ptr %29, align 4, !tbaa !16
  br label %237

237:                                              ; preds = %259, %235
  %238 = load i32, ptr %29, align 4, !tbaa !16
  %239 = load i32, ptr %26, align 4, !tbaa !16
  %240 = icmp slt i32 %238, %239
  br i1 %240, label %242, label %241

241:                                              ; preds = %237
  store i32 20, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #8
  br label %262

242:                                              ; preds = %237
  %243 = load double, ptr %27, align 8, !tbaa !22
  %244 = load ptr, ptr %13, align 8, !tbaa !5
  %245 = load i32, ptr %29, align 4, !tbaa !16
  %246 = sext i32 %245 to i64
  %247 = getelementptr inbounds double, ptr %244, i64 %246
  %248 = load double, ptr %247, align 8, !tbaa !22
  %249 = load ptr, ptr %7, align 8, !tbaa !5
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  %251 = load i32, ptr %29, align 4, !tbaa !16
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds i32, ptr %250, i64 %252
  %254 = load i32, ptr %253, align 4, !tbaa !16
  %255 = sext i32 %254 to i64
  %256 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %249, i64 noundef %255) #8
  %257 = load double, ptr %256, align 8, !tbaa !22
  %258 = call double @llvm.fmuladd.f64(double %243, double %248, double %257)
  store double %258, ptr %256, align 8, !tbaa !22
  br label %259

259:                                              ; preds = %242
  %260 = load i32, ptr %29, align 4, !tbaa !16
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %29, align 4, !tbaa !16
  br label %237, !llvm.loop !29

262:                                              ; preds = %241
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #8
  br label %263

263:                                              ; preds = %262
  %264 = load i32, ptr %24, align 4, !tbaa !16
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %24, align 4, !tbaa !16
  br label %192, !llvm.loop !30

266:                                              ; preds = %196
  br label %267

267:                                              ; preds = %266, %188
  %268 = load ptr, ptr %8, align 8, !tbaa !5
  %269 = icmp ne ptr %268, null
  br i1 %269, label %270, label %275

270:                                              ; preds = %267
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %271, ptr noundef nonnull align 8 dereferenceable(16) %272)
  %274 = load ptr, ptr %8, align 8, !tbaa !5
  store double %273, ptr %274, align 8, !tbaa !22
  br label %275

275:                                              ; preds = %270, %267
  %276 = call noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
  %277 = getelementptr inbounds %"class.ipx::NormalMatrix", ptr %30, i32 0, i32 5
  %278 = load double, ptr %277, align 8, !tbaa !31
  %279 = fadd double %278, %276
  store double %279, ptr %277, align 8, !tbaa !31
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  ret void
}

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

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

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

; 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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #5 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) #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #7 align 2

declare noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #3

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #5 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN3ipx12NormalMatrixE", !11, i64 0, !6, i64 8, !6, i64 16, !12, i64 24, !13, i64 32, !15, i64 48}
!11 = !{!"_ZTSN3ipx14LinearOperatorE"}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSSt8valarrayIdE", !14, i64 0, !6, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!10, !12, i64 24}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !6, i64 16}
!22 = !{!15, !15, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !24}
!28 = distinct !{!28, !24}
!29 = distinct !{!29, !24}
!30 = distinct !{!30, !24}
!31 = !{!10, !15, i64 48}


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

%"class.ipx::Timer" = type { %"class.std::chrono::time_point" }
%"class.std::chrono::time_point" = type { %"class.std::chrono::duration" }
%"class.std::chrono::duration" = type { i64 }

@.str.11 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [78 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd = external hidden unnamed_addr constant [75 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [21 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd(ptr nocapture noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef writeonly %3) unnamed_addr #1 align 2 {
  %5 = alloca %"class.ipx::Timer", align 8
  %6 = alloca double, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %8)
  %10 = load ptr, ptr %7, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %12)
  %14 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6colptrEv(ptr noundef nonnull align 8 dereferenceable(128) %13)
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %15)
  %17 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6rowidxEv(ptr noundef nonnull align 8 dereferenceable(128) %16)
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %18)
  %20 = tail call noundef ptr @_ZNK3ipx12SparseMatrix6valuesEv(ptr noundef nonnull align 8 dereferenceable(128) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #8
  call void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  %22 = load i8, ptr %21, align 8, !tbaa !15, !range !16, !noundef !17
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %25, label %24

24:                                               ; preds = %4
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 57, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

25:                                               ; preds = %4
  %26 = call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %2)
  %27 = trunc i64 %26 to i32
  %28 = icmp eq i32 %9, %27
  br i1 %28, label %30, label %29

29:                                               ; preds = %25
  call void @__assert_fail(ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.12, i32 noundef 58, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

30:                                               ; preds = %25
  %31 = call noundef i64 @_ZNKSt8valarrayIdE4sizeEv(ptr noundef nonnull align 8 dereferenceable(16) %1)
  %32 = trunc i64 %31 to i32
  %33 = icmp eq i32 %9, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  call void @__assert_fail(ptr noundef nonnull @.str.14, ptr noundef nonnull @.str.12, i32 noundef 59, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx12NormalMatrix6_ApplyERKSt8valarrayIdERS2_Pd) #9
  unreachable

35:                                               ; preds = %30
  %36 = getelementptr inbounds i8, ptr %0, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !18
  %.not = icmp eq ptr %37, null
  br i1 %.not, label %76, label %.preheader91

.preheader91:                                     ; preds = %35
  %38 = icmp sgt i32 %9, 0
  br i1 %38, label %.lr.ph.preheader, label %.preheader89

.lr.ph.preheader:                                 ; preds = %.preheader91
  %39 = sext i32 %11 to i64
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.lr.ph

.preheader89:                                     ; preds = %.lr.ph, %.preheader91
  %40 = icmp sgt i32 %11, 0
  br i1 %40, label %.lr.ph100.preheader, label %.loopexit87

.lr.ph100.preheader:                              ; preds = %.preheader89
  %wide.trip.count126 = zext nneg i32 %11 to i64
  br label %.lr.ph100

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %indvars.iv) #8
  %42 = load double, ptr %41, align 8, !tbaa !19
  %43 = load ptr, ptr %36, align 8, !tbaa !18
  %44 = getelementptr double, ptr %43, i64 %indvars.iv
  %45 = getelementptr double, ptr %44, i64 %39
  %46 = load double, ptr %45, align 8, !tbaa !19
  %47 = fmul double %42, %46
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %indvars.iv) #8
  store double %47, ptr %48, align 8, !tbaa !19
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader89, label %.lr.ph, !llvm.loop !20

.loopexit88:                                      ; preds = %.lr.ph98, %.lr.ph100, %._crit_edge
  %exitcond127.not = icmp eq i64 %indvars.iv.next124, %wide.trip.count126
  br i1 %exitcond127.not, label %.loopexit87, label %.lr.ph100, !llvm.loop !22

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.loopexit88
  %indvars.iv123 = phi i64 [ 0, %.lr.ph100.preheader ], [ %indvars.iv.next124, %.loopexit88 ]
  %49 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv123
  %50 = load i32, ptr %49, align 4, !tbaa !23
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %51 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next124
  %52 = load i32, ptr %51, align 4, !tbaa !23
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %.lr.ph95.preheader, label %.loopexit88

.lr.ph95.preheader:                               ; preds = %.lr.ph100
  %54 = sext i32 %50 to i64
  br label %.lr.ph95

._crit_edge:                                      ; preds = %.lr.ph95
  %55 = load ptr, ptr %36, align 8, !tbaa !18
  %56 = getelementptr inbounds double, ptr %55, i64 %indvars.iv123
  %57 = load double, ptr %56, align 8, !tbaa !19
  %58 = fmul double %67, %57
  br i1 %53, label %.lr.ph98.preheader, label %.loopexit88

.lr.ph98.preheader:                               ; preds = %._crit_edge
  %59 = sext i32 %50 to i64
  br label %.lr.ph98

.lr.ph95:                                         ; preds = %.lr.ph95.preheader, %.lr.ph95
  %indvars.iv114 = phi i64 [ %54, %.lr.ph95.preheader ], [ %indvars.iv.next115, %.lr.ph95 ]
  %.08193 = phi double [ 0.000000e+00, %.lr.ph95.preheader ], [ %67, %.lr.ph95 ]
  %60 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv114
  %61 = load i32, ptr %60, align 4, !tbaa !23
  %62 = sext i32 %61 to i64
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %62) #8
  %64 = load double, ptr %63, align 8, !tbaa !19
  %65 = getelementptr inbounds double, ptr %20, i64 %indvars.iv114
  %66 = load double, ptr %65, align 8, !tbaa !19
  %67 = call double @llvm.fmuladd.f64(double %64, double %66, double %.08193)
  %indvars.iv.next115 = add nsw i64 %indvars.iv114, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next115 to i32
  %exitcond117.not = icmp eq i32 %52, %lftr.wideiv
  br i1 %exitcond117.not, label %._crit_edge, label %.lr.ph95, !llvm.loop !25

.lr.ph98:                                         ; preds = %.lr.ph98.preheader, %.lr.ph98
  %indvars.iv118 = phi i64 [ %59, %.lr.ph98.preheader ], [ %indvars.iv.next119, %.lr.ph98 ]
  %68 = getelementptr inbounds double, ptr %20, i64 %indvars.iv118
  %69 = load double, ptr %68, align 8, !tbaa !19
  %70 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv118
  %71 = load i32, ptr %70, align 4, !tbaa !23
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %72) #8
  %74 = load double, ptr %73, align 8, !tbaa !19
  %75 = call double @llvm.fmuladd.f64(double %58, double %69, double %74)
  store double %75, ptr %73, align 8, !tbaa !19
  %indvars.iv.next119 = add nsw i64 %indvars.iv118, 1
  %lftr.wideiv121 = trunc i64 %indvars.iv.next119 to i32
  %exitcond122.not = icmp eq i32 %52, %lftr.wideiv121
  br i1 %exitcond122.not, label %.loopexit88, label %.lr.ph98, !llvm.loop !26

76:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #8
  store double 0.000000e+00, ptr %6, align 8, !tbaa !19
  %77 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt8valarrayIdEaSERKd(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(8) %6)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #8
  %78 = icmp sgt i32 %11, 0
  br i1 %78, label %.lr.ph110.preheader, label %.loopexit87

.lr.ph110.preheader:                              ; preds = %76
  %wide.trip.count141 = zext nneg i32 %11 to i64
  br label %.lr.ph110

.loopexit:                                        ; preds = %.lr.ph107, %.lr.ph110, %.preheader
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %.loopexit87, label %.lr.ph110, !llvm.loop !27

.lr.ph110:                                        ; preds = %.lr.ph110.preheader, %.loopexit
  %indvars.iv138 = phi i64 [ 0, %.lr.ph110.preheader ], [ %indvars.iv.next139, %.loopexit ]
  %79 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv138
  %80 = load i32, ptr %79, align 4, !tbaa !23
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %81 = getelementptr inbounds i32, ptr %14, i64 %indvars.iv.next139
  %82 = load i32, ptr %81, align 4, !tbaa !23
  %83 = icmp slt i32 %80, %82
  br i1 %83, label %.lr.ph104.preheader, label %.loopexit

.lr.ph104.preheader:                              ; preds = %.lr.ph110
  %84 = sext i32 %80 to i64
  %wide.trip.count131 = sext i32 %82 to i64
  br label %.lr.ph104

.preheader:                                       ; preds = %.lr.ph104
  br i1 %83, label %.lr.ph107.preheader, label %.loopexit

.lr.ph107.preheader:                              ; preds = %.preheader
  %85 = sext i32 %80 to i64
  %wide.trip.count136 = sext i32 %82 to i64
  br label %.lr.ph107

.lr.ph104:                                        ; preds = %.lr.ph104.preheader, %.lr.ph104
  %indvars.iv128 = phi i64 [ %84, %.lr.ph104.preheader ], [ %indvars.iv.next129, %.lr.ph104 ]
  %.075101 = phi double [ 0.000000e+00, %.lr.ph104.preheader ], [ %93, %.lr.ph104 ]
  %86 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv128
  %87 = load i32, ptr %86, align 4, !tbaa !23
  %88 = sext i32 %87 to i64
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %1, i64 noundef %88) #8
  %90 = load double, ptr %89, align 8, !tbaa !19
  %91 = getelementptr inbounds double, ptr %20, i64 %indvars.iv128
  %92 = load double, ptr %91, align 8, !tbaa !19
  %93 = call double @llvm.fmuladd.f64(double %90, double %92, double %.075101)
  %indvars.iv.next129 = add nsw i64 %indvars.iv128, 1
  %exitcond132.not = icmp eq i64 %indvars.iv.next129, %wide.trip.count131
  br i1 %exitcond132.not, label %.preheader, label %.lr.ph104, !llvm.loop !28

.lr.ph107:                                        ; preds = %.lr.ph107.preheader, %.lr.ph107
  %indvars.iv133 = phi i64 [ %85, %.lr.ph107.preheader ], [ %indvars.iv.next134, %.lr.ph107 ]
  %94 = getelementptr inbounds double, ptr %20, i64 %indvars.iv133
  %95 = load double, ptr %94, align 8, !tbaa !19
  %96 = getelementptr inbounds i32, ptr %17, i64 %indvars.iv133
  %97 = load i32, ptr %96, align 4, !tbaa !23
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %2, i64 noundef %98) #8
  %100 = load double, ptr %99, align 8, !tbaa !19
  %101 = call double @llvm.fmuladd.f64(double %93, double %95, double %100)
  store double %101, ptr %99, align 8, !tbaa !19
  %indvars.iv.next134 = add nsw i64 %indvars.iv133, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next134, %wide.trip.count136
  br i1 %exitcond137.not, label %.loopexit, label %.lr.ph107, !llvm.loop !29

.loopexit87:                                      ; preds = %.loopexit88, %.loopexit, %.preheader89, %76
  %.not86 = icmp eq ptr %3, null
  br i1 %.not86, label %104, label %102

102:                                              ; preds = %.loopexit87
  %103 = call noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 8 dereferenceable(16) %2)
  store double %103, ptr %3, align 8, !tbaa !19
  br label %104

104:                                              ; preds = %102, %.loopexit87
  %105 = call noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
  %106 = getelementptr inbounds i8, ptr %0, i64 48
  %107 = load double, ptr %106, align 8, !tbaa !30
  %108 = fadd double %105, %107
  store double %108, ptr %106, align 8, !tbaa !30
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #8
  ret void
}

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

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

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

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

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

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

declare void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #3

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #5 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 #5 align 2

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

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

declare noundef double @_ZN3ipx3DotERKSt8valarrayIdES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

declare noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { 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 #5 = { 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 #6 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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, !8, i64 8}
!6 = !{!"_ZTSN3ipx12NormalMatrixE", !7, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !12, i64 32, !14, i64 48}
!7 = !{!"_ZTSN3ipx14LinearOperatorE"}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"bool", !9, i64 0}
!12 = !{!"_ZTSSt8valarrayIdE", !13, i64 0, !8, i64 8}
!13 = !{!"long", !9, i64 0}
!14 = !{!"double", !9, i64 0}
!15 = !{!6, !11, i64 24}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{!6, !8, i64 16}
!19 = !{!14, !14, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!24, !24, i64 0}
!24 = !{!"int", !9, i64 0}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = !{!6, !14, i64 48}


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