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

; 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::Iterate" = type { ptr, %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::vector", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", %"class.std::valarray", double, double, double, double, double, double, double, double, double, i8, i8, double, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl" = type { %"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" }
%"struct.std::_Vector_base<ipx::Iterate::StateDetail, std::allocator<ipx::Iterate::StateDetail>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::valarray" = type { i64, ptr }

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704)) #1 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) #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3ipx7Iterate21ResidualsFromDroppingEPdS1_(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef %1, ptr noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %24 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %25)
  store i32 %26, ptr %7, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %27 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %28)
  store i32 %29, ptr %8, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %30 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %31)
  store ptr %32, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %33 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %34)
  store ptr %35, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %36 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 0
  %37 = load ptr, ptr %36, align 8, !tbaa !9
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %37)
  store ptr %38, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store double 0.000000e+00, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store double 0.000000e+00, ptr %13, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !19
  br label %39

39:                                               ; preds = %259, %3
  %40 = load i32, ptr %14, align 4, !tbaa !19
  %41 = load i32, ptr %8, align 4, !tbaa !19
  %42 = load i32, ptr %7, align 4, !tbaa !19
  %43 = add nsw i32 %41, %42
  %44 = icmp slt i32 %40, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  br label %262

46:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store double 0.000000e+00, ptr %16, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store double 0.000000e+00, ptr %17, align 8, !tbaa !21
  %47 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 7
  %48 = load i32, ptr %14, align 4, !tbaa !19
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #4
  %51 = load i32, ptr %50, align 4, !tbaa !22
  switch i32 %51, label %225 [
    i32 0, label %52
    i32 1, label %89
    i32 2, label %126
  ]

52:                                               ; preds = %46
  %53 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %54 = load i32, ptr %14, align 4, !tbaa !19
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %53, i64 noundef %55) #4
  %57 = load double, ptr %56, align 8, !tbaa !21
  %58 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 2
  %59 = load i32, ptr %14, align 4, !tbaa !19
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %58, i64 noundef %60) #4
  %62 = load double, ptr %61, align 8, !tbaa !21
  %63 = fcmp oge double %57, %62
  br i1 %63, label %64, label %76

64:                                               ; preds = %52
  %65 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 1
  %66 = load i32, ptr %14, align 4, !tbaa !19
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %65, i64 noundef %67) #4
  %69 = load double, ptr %68, align 8, !tbaa !21
  %70 = load ptr, ptr %10, align 8, !tbaa !5
  %71 = load i32, ptr %14, align 4, !tbaa !19
  %72 = sext i32 %71 to i64
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %70, i64 noundef %72) #4
  %74 = load double, ptr %73, align 8, !tbaa !21
  %75 = fsub double %69, %74
  store double %75, ptr %16, align 8, !tbaa !21
  br label %88

76:                                               ; preds = %52
  %77 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %78 = load i32, ptr %14, align 4, !tbaa !19
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %77, i64 noundef %79) #4
  %81 = load double, ptr %80, align 8, !tbaa !21
  %82 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %83 = load i32, ptr %14, align 4, !tbaa !19
  %84 = sext i32 %83 to i64
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %82, i64 noundef %84) #4
  %86 = load double, ptr %85, align 8, !tbaa !21
  %87 = fsub double %81, %86
  store double %87, ptr %17, align 8, !tbaa !21
  br label %88

88:                                               ; preds = %76, %64
  br label %226

89:                                               ; preds = %46
  %90 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %91 = load i32, ptr %14, align 4, !tbaa !19
  %92 = sext i32 %91 to i64
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %90, i64 noundef %92) #4
  %94 = load double, ptr %93, align 8, !tbaa !21
  %95 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 3
  %96 = load i32, ptr %14, align 4, !tbaa !19
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %95, i64 noundef %97) #4
  %99 = load double, ptr %98, align 8, !tbaa !21
  %100 = fcmp oge double %94, %99
  br i1 %100, label %101, label %113

101:                                              ; preds = %89
  %102 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 1
  %103 = load i32, ptr %14, align 4, !tbaa !19
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %102, i64 noundef %104) #4
  %106 = load double, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %11, align 8, !tbaa !5
  %108 = load i32, ptr %14, align 4, !tbaa !19
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %107, i64 noundef %109) #4
  %111 = load double, ptr %110, align 8, !tbaa !21
  %112 = fsub double %106, %111
  store double %112, ptr %16, align 8, !tbaa !21
  br label %125

113:                                              ; preds = %89
  %114 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %115 = load i32, ptr %14, align 4, !tbaa !19
  %116 = sext i32 %115 to i64
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %114, i64 noundef %116) #4
  %118 = load double, ptr %117, align 8, !tbaa !21
  %119 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %120 = load i32, ptr %14, align 4, !tbaa !19
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %119, i64 noundef %121) #4
  %123 = load double, ptr %122, align 8, !tbaa !21
  %124 = fsub double %118, %123
  store double %124, ptr %17, align 8, !tbaa !21
  br label %125

125:                                              ; preds = %113, %101
  br label %226

126:                                              ; preds = %46
  %127 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %128 = load i32, ptr %14, align 4, !tbaa !19
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %127, i64 noundef %129) #4
  %131 = load double, ptr %130, align 8, !tbaa !21
  %132 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 2
  %133 = load i32, ptr %14, align 4, !tbaa !19
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %132, i64 noundef %134) #4
  %136 = load double, ptr %135, align 8, !tbaa !21
  %137 = fdiv double %131, %136
  %138 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %139 = load i32, ptr %14, align 4, !tbaa !19
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %138, i64 noundef %140) #4
  %142 = load double, ptr %141, align 8, !tbaa !21
  %143 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 3
  %144 = load i32, ptr %14, align 4, !tbaa !19
  %145 = sext i32 %144 to i64
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %143, i64 noundef %145) #4
  %147 = load double, ptr %146, align 8, !tbaa !21
  %148 = fdiv double %142, %147
  %149 = fcmp oge double %137, %148
  br i1 %149, label %150, label %187

150:                                              ; preds = %126
  %151 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %152 = load i32, ptr %14, align 4, !tbaa !19
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %151, i64 noundef %153) #4
  %155 = load double, ptr %154, align 8, !tbaa !21
  %156 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 2
  %157 = load i32, ptr %14, align 4, !tbaa !19
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %156, i64 noundef %158) #4
  %160 = load double, ptr %159, align 8, !tbaa !21
  %161 = fcmp oge double %155, %160
  br i1 %161, label %162, label %174

162:                                              ; preds = %150
  %163 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 1
  %164 = load i32, ptr %14, align 4, !tbaa !19
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %163, i64 noundef %165) #4
  %167 = load double, ptr %166, align 8, !tbaa !21
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load i32, ptr %14, align 4, !tbaa !19
  %170 = sext i32 %169 to i64
  %171 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %168, i64 noundef %170) #4
  %172 = load double, ptr %171, align 8, !tbaa !21
  %173 = fsub double %167, %172
  store double %173, ptr %16, align 8, !tbaa !21
  br label %186

174:                                              ; preds = %150
  %175 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %176 = load i32, ptr %14, align 4, !tbaa !19
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %175, i64 noundef %177) #4
  %179 = load double, ptr %178, align 8, !tbaa !21
  %180 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %181 = load i32, ptr %14, align 4, !tbaa !19
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %180, i64 noundef %182) #4
  %184 = load double, ptr %183, align 8, !tbaa !21
  %185 = fsub double %179, %184
  store double %185, ptr %17, align 8, !tbaa !21
  br label %186

186:                                              ; preds = %174, %162
  br label %224

187:                                              ; preds = %126
  %188 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %189 = load i32, ptr %14, align 4, !tbaa !19
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %188, i64 noundef %190) #4
  %192 = load double, ptr %191, align 8, !tbaa !21
  %193 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 3
  %194 = load i32, ptr %14, align 4, !tbaa !19
  %195 = sext i32 %194 to i64
  %196 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %193, i64 noundef %195) #4
  %197 = load double, ptr %196, align 8, !tbaa !21
  %198 = fcmp oge double %192, %197
  br i1 %198, label %199, label %211

199:                                              ; preds = %187
  %200 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 1
  %201 = load i32, ptr %14, align 4, !tbaa !19
  %202 = sext i32 %201 to i64
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %200, i64 noundef %202) #4
  %204 = load double, ptr %203, align 8, !tbaa !21
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load i32, ptr %14, align 4, !tbaa !19
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %205, i64 noundef %207) #4
  %209 = load double, ptr %208, align 8, !tbaa !21
  %210 = fsub double %204, %209
  store double %210, ptr %16, align 8, !tbaa !21
  br label %223

211:                                              ; preds = %187
  %212 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 5
  %213 = load i32, ptr %14, align 4, !tbaa !19
  %214 = sext i32 %213 to i64
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %212, i64 noundef %214) #4
  %216 = load double, ptr %215, align 8, !tbaa !21
  %217 = getelementptr inbounds %"class.ipx::Iterate", ptr %23, i32 0, i32 6
  %218 = load i32, ptr %14, align 4, !tbaa !19
  %219 = sext i32 %218 to i64
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %217, i64 noundef %219) #4
  %221 = load double, ptr %220, align 8, !tbaa !21
  %222 = fsub double %216, %221
  store double %222, ptr %17, align 8, !tbaa !21
  br label %223

223:                                              ; preds = %211, %199
  br label %224

224:                                              ; preds = %223, %186
  br label %226

225:                                              ; preds = %46
  br label %226

226:                                              ; preds = %225, %224, %125, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  store double 0.000000e+00, ptr %18, align 8, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %227 = load ptr, ptr %9, align 8, !tbaa !5
  %228 = load i32, ptr %14, align 4, !tbaa !19
  %229 = call noundef i32 @_ZNK3ipx12SparseMatrix5beginEi(ptr noundef nonnull align 8 dereferenceable(128) %227, i32 noundef %228)
  store i32 %229, ptr %19, align 4, !tbaa !19
  br label %230

230:                                              ; preds = %245, %226
  %231 = load i32, ptr %19, align 4, !tbaa !19
  %232 = load ptr, ptr %9, align 8, !tbaa !5
  %233 = load i32, ptr %14, align 4, !tbaa !19
  %234 = add nsw i32 %233, 1
  %235 = call noundef i32 @_ZNK3ipx12SparseMatrix5beginEi(ptr noundef nonnull align 8 dereferenceable(128) %232, i32 noundef %234)
  %236 = icmp slt i32 %231, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %230
  store i32 6, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %248

238:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %239 = load ptr, ptr %9, align 8, !tbaa !5
  %240 = load i32, ptr %19, align 4, !tbaa !19
  %241 = call noundef double @_ZNK3ipx12SparseMatrix5valueEi(ptr noundef nonnull align 8 dereferenceable(128) %239, i32 noundef %240)
  %242 = call noundef double @_ZSt3absd(double noundef %241)
  store double %242, ptr %20, align 8, !tbaa !21
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(8) %20)
  %244 = load double, ptr %243, align 8, !tbaa !21
  store double %244, ptr %18, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %245

245:                                              ; preds = %238
  %246 = load i32, ptr %19, align 4, !tbaa !19
  %247 = add nsw i32 %246, 1
  store i32 %247, ptr %19, align 4, !tbaa !19
  br label %230, !llvm.loop !24

248:                                              ; preds = %237
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %249 = load double, ptr %16, align 8, !tbaa !21
  %250 = call noundef double @_ZSt3absd(double noundef %249)
  %251 = load double, ptr %18, align 8, !tbaa !21
  %252 = fmul double %250, %251
  store double %252, ptr %21, align 8, !tbaa !21
  %253 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %254 = load double, ptr %253, align 8, !tbaa !21
  store double %254, ptr %12, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %255 = load double, ptr %17, align 8, !tbaa !21
  %256 = call noundef double @_ZSt3absd(double noundef %255)
  store double %256, ptr %22, align 8, !tbaa !21
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %258 = load double, ptr %257, align 8, !tbaa !21
  store double %258, ptr %13, align 8, !tbaa !21
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %259

259:                                              ; preds = %248
  %260 = load i32, ptr %14, align 4, !tbaa !19
  %261 = add nsw i32 %260, 1
  store i32 %261, ptr %14, align 4, !tbaa !19
  br label %39, !llvm.loop !26

262:                                              ; preds = %45
  %263 = load ptr, ptr %5, align 8, !tbaa !5
  %264 = icmp ne ptr %263, null
  br i1 %264, label %265, label %268

265:                                              ; preds = %262
  %266 = load double, ptr %12, align 8, !tbaa !21
  %267 = load ptr, ptr %5, align 8, !tbaa !5
  store double %266, ptr %267, align 8, !tbaa !21
  br label %268

268:                                              ; preds = %265, %262
  %269 = load ptr, ptr %6, align 8, !tbaa !5
  %270 = icmp ne ptr %269, null
  br i1 %270, label %271, label %274

271:                                              ; preds = %268
  %272 = load double, ptr %13, align 8, !tbaa !21
  %273 = load ptr, ptr %6, align 8, !tbaa !5
  store double %272, ptr %273, align 8, !tbaa !21
  br label %274

274:                                              ; preds = %271, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 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 = { 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 0}
!10 = !{!"_ZTSN3ipx7IterateE", !6, i64 0, !11, i64 8, !11, i64 24, !11, i64 40, !11, i64 56, !11, i64 72, !11, i64 88, !13, i64 104, !11, i64 128, !11, i64 144, !11, i64 160, !11, i64 176, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224, !17, i64 232, !17, i64 240, !17, i64 248, !17, i64 256, !18, i64 264, !18, i64 265, !17, i64 272, !17, i64 280, !17, i64 288}
!11 = !{!"_ZTSSt8valarrayIdE", !12, i64 0, !6, i64 8}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"double", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"int", !7, i64 0}
!21 = !{!17, !17, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}


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

; 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 nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704)) local_unnamed_addr #1 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 #2 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3absd(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK3ipx7Iterate21ResidualsFromDroppingEPdS1_(ptr noundef nonnull align 8 dereferenceable(296) %0, ptr noundef writeonly %1, ptr noundef writeonly %2) local_unnamed_addr #1 align 2 {
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %10)
  %12 = load ptr, ptr %0, align 8, !tbaa !5
  %13 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %12)
  %14 = load ptr, ptr %0, align 8, !tbaa !5
  %15 = tail call noundef nonnull align 8 dereferenceable(128) ptr @_ZNK3ipx5Model2AIEv(ptr noundef nonnull align 8 dereferenceable(704) %14)
  %16 = load ptr, ptr %0, align 8, !tbaa !5
  %17 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2lbEv(ptr noundef nonnull align 8 dereferenceable(704) %16)
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3ipx5Model2ubEv(ptr noundef nonnull align 8 dereferenceable(704) %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  store double 0.000000e+00, ptr %4, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  store double 0.000000e+00, ptr %5, align 8, !tbaa !18
  %20 = add nsw i32 %13, %11
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %.lr.ph60, label %._crit_edge61

.lr.ph60:                                         ; preds = %3
  %22 = getelementptr inbounds i8, ptr %0, i64 104
  %23 = getelementptr inbounds i8, ptr %0, i64 72
  %24 = getelementptr inbounds i8, ptr %0, i64 24
  %25 = getelementptr inbounds i8, ptr %0, i64 88
  %26 = getelementptr inbounds i8, ptr %0, i64 40
  %27 = getelementptr inbounds i8, ptr %0, i64 8
  %wide.trip.count = zext nneg i32 %20 to i64
  br label %29

._crit_edge61:                                    ; preds = %._crit_edge, %3
  %28 = phi double [ 0.000000e+00, %3 ], [ %134, %._crit_edge ]
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %144, label %142

29:                                               ; preds = %.lr.ph60, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph60 ], [ %indvars.iv.next, %._crit_edge ]
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %indvars.iv) #3
  %31 = load i32, ptr %30, align 4, !tbaa !19
  switch i32 %31, label %121 [
    i32 0, label %32
    i32 1, label %50
    i32 2, label %68
  ]

32:                                               ; preds = %29
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %34 = load double, ptr %33, align 8, !tbaa !18
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv) #3
  %36 = load double, ptr %35, align 8, !tbaa !18
  %37 = fcmp ult double %34, %36
  br i1 %37, label %44, label %38

38:                                               ; preds = %32
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %indvars.iv) #3
  %40 = load double, ptr %39, align 8, !tbaa !18
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv) #3
  %42 = load double, ptr %41, align 8, !tbaa !18
  %43 = fsub double %40, %42
  br label %121

44:                                               ; preds = %32
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %46 = load double, ptr %45, align 8, !tbaa !18
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %48 = load double, ptr %47, align 8, !tbaa !18
  %49 = fsub double %46, %48
  br label %121

50:                                               ; preds = %29
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %52 = load double, ptr %51, align 8, !tbaa !18
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv) #3
  %54 = load double, ptr %53, align 8, !tbaa !18
  %55 = fcmp ult double %52, %54
  br i1 %55, label %62, label %56

56:                                               ; preds = %50
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %indvars.iv) #3
  %58 = load double, ptr %57, align 8, !tbaa !18
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %indvars.iv) #3
  %60 = load double, ptr %59, align 8, !tbaa !18
  %61 = fsub double %58, %60
  br label %121

62:                                               ; preds = %50
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %64 = load double, ptr %63, align 8, !tbaa !18
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %66 = load double, ptr %65, align 8, !tbaa !18
  %67 = fsub double %64, %66
  br label %121

68:                                               ; preds = %29
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %70 = load double, ptr %69, align 8, !tbaa !18
  %71 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv) #3
  %72 = load double, ptr %71, align 8, !tbaa !18
  %73 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %74 = load double, ptr %73, align 8, !tbaa !18
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv) #3
  %76 = load double, ptr %75, align 8, !tbaa !18
  %77 = insertelement <2 x double> poison, double %70, i64 0
  %78 = insertelement <2 x double> %77, double %74, i64 1
  %79 = insertelement <2 x double> poison, double %72, i64 0
  %80 = insertelement <2 x double> %79, double %76, i64 1
  %81 = fdiv <2 x double> %78, %80
  %82 = extractelement <2 x double> %81, i64 0
  %83 = extractelement <2 x double> %81, i64 1
  %84 = fcmp ult double %82, %83
  br i1 %84, label %103, label %85

85:                                               ; preds = %68
  %86 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %87 = load double, ptr %86, align 8, !tbaa !18
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %24, i64 noundef %indvars.iv) #3
  %89 = load double, ptr %88, align 8, !tbaa !18
  %90 = fcmp ult double %87, %89
  br i1 %90, label %97, label %91

91:                                               ; preds = %85
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %indvars.iv) #3
  %93 = load double, ptr %92, align 8, !tbaa !18
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %17, i64 noundef %indvars.iv) #3
  %95 = load double, ptr %94, align 8, !tbaa !18
  %96 = fsub double %93, %95
  br label %121

97:                                               ; preds = %85
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %99 = load double, ptr %98, align 8, !tbaa !18
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %101 = load double, ptr %100, align 8, !tbaa !18
  %102 = fsub double %99, %101
  br label %121

103:                                              ; preds = %68
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %105 = load double, ptr %104, align 8, !tbaa !18
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef %indvars.iv) #3
  %107 = load double, ptr %106, align 8, !tbaa !18
  %108 = fcmp ult double %105, %107
  br i1 %108, label %115, label %109

109:                                              ; preds = %103
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %27, i64 noundef %indvars.iv) #3
  %111 = load double, ptr %110, align 8, !tbaa !18
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %indvars.iv) #3
  %113 = load double, ptr %112, align 8, !tbaa !18
  %114 = fsub double %111, %113
  br label %121

115:                                              ; preds = %103
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %23, i64 noundef %indvars.iv) #3
  %117 = load double, ptr %116, align 8, !tbaa !18
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %25, i64 noundef %indvars.iv) #3
  %119 = load double, ptr %118, align 8, !tbaa !18
  %120 = fsub double %117, %119
  br label %121

121:                                              ; preds = %29, %97, %91, %115, %109, %56, %62, %38, %44
  %.052 = phi double [ 0.000000e+00, %29 ], [ %96, %91 ], [ 0.000000e+00, %97 ], [ %114, %109 ], [ 0.000000e+00, %115 ], [ %61, %56 ], [ 0.000000e+00, %62 ], [ %43, %38 ], [ 0.000000e+00, %44 ]
  %.051 = phi double [ 0.000000e+00, %29 ], [ 0.000000e+00, %91 ], [ %102, %97 ], [ 0.000000e+00, %109 ], [ %120, %115 ], [ 0.000000e+00, %56 ], [ %67, %62 ], [ 0.000000e+00, %38 ], [ %49, %44 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store double 0.000000e+00, ptr %6, align 8, !tbaa !18
  %122 = trunc nuw nsw i64 %indvars.iv to i32
  %123 = call noundef i32 @_ZNK3ipx12SparseMatrix5beginEi(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %122)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %124 = trunc nuw nsw i64 %indvars.iv.next to i32
  %125 = call noundef i32 @_ZNK3ipx12SparseMatrix5beginEi(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %124)
  %126 = icmp slt i32 %123, %125
  br i1 %126, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %121
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %127 = call noundef double @_ZSt3absd(double noundef %.052)
  %128 = load double, ptr %6, align 8, !tbaa !18
  %129 = fmul double %127, %128
  store double %129, ptr %8, align 8, !tbaa !18
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %131 = load double, ptr %130, align 8, !tbaa !18
  store double %131, ptr %4, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #3
  %132 = call noundef double @_ZSt3absd(double noundef %.051)
  store double %132, ptr %9, align 8, !tbaa !18
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %134 = load double, ptr %133, align 8, !tbaa !18
  store double %134, ptr %5, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge61, label %29, !llvm.loop !21

.lr.ph:                                           ; preds = %121, %.lr.ph
  %.057 = phi i32 [ %139, %.lr.ph ], [ %123, %121 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  %135 = call noundef double @_ZNK3ipx12SparseMatrix5valueEi(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %.057)
  %136 = call noundef double @_ZSt3absd(double noundef %135)
  store double %136, ptr %7, align 8, !tbaa !18
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %138 = load double, ptr %137, align 8, !tbaa !18
  store double %138, ptr %6, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  %139 = add nsw i32 %.057, 1
  %140 = call noundef i32 @_ZNK3ipx12SparseMatrix5beginEi(ptr noundef nonnull align 8 dereferenceable(128) %15, i32 noundef %124)
  %141 = icmp slt i32 %139, %140
  br i1 %141, label %.lr.ph, label %._crit_edge, !llvm.loop !23

142:                                              ; preds = %._crit_edge61
  %143 = load double, ptr %4, align 8, !tbaa !18
  store double %143, ptr %1, align 8, !tbaa !18
  br label %144

144:                                              ; preds = %142, %._crit_edge61
  %.not56 = icmp eq ptr %2, null
  br i1 %.not56, label %146, label %145

145:                                              ; preds = %144
  store double %28, ptr %2, align 8, !tbaa !18
  br label %146

146:                                              ; preds = %145, %144
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret void
}

; 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 #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !7, i64 0}
!6 = !{!"_ZTSN3ipx7IterateE", !7, i64 0, !10, i64 8, !10, i64 24, !10, i64 40, !10, i64 56, !10, i64 72, !10, i64 88, !12, i64 104, !10, i64 128, !10, i64 144, !10, i64 160, !10, i64 176, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !16, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !17, i64 264, !17, i64 265, !16, i64 272, !16, i64 280, !16, i64 288}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt8valarrayIdE", !11, i64 0, !7, i64 8}
!11 = !{!"long", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN3ipx7Iterate11StateDetailESaIS2_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN3ipx7Iterate11StateDetailESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"double", !8, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{!16, !16, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"_ZTSN3ipx7Iterate11StateDetailE", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = distinct !{!23, !22}


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