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

; 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::IndexedVector" = type <{ %"class.std::valarray", %"class.std::vector.4", i32, [4 x i8] }>
%"class.std::valarray" = type { i64, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.anon = type { ptr, ptr, ptr, ptr, ptr }
%"class.ipx::Maxvolume" = type { ptr, i32, i32, i32, i32, double, double, i32, double, double }

@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE = external hidden unnamed_addr constant [59 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

declare i32 @__gxx_personality_v0(...)

; 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 noundef i32 @_ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(176) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.ipx::IndexedVector", align 8
  %11 = alloca %"class.ipx::Timer", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %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 %"class.std::valarray", align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.std::vector.4", align 8
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca %class.anon, align 8
  %30 = alloca i32, align 4
  %31 = alloca i8, align 1
  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
  %32 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = call noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx5Basis5modelEv(ptr noundef nonnull align 8 dereferenceable(176) %33)
  store ptr %34, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #8
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %35)
  store i32 %36, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %37)
  store i32 %38, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #8
  %39 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN3ipx13IndexedVectorC1Ei(ptr noundef nonnull align 8 dereferenceable(44) %10, i32 noundef %39)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  invoke void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %40 unwind label %60

40:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #8
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  %41 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 0
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = invoke noundef i32 @_ZNK3ipx7Control9maxpassesEv(ptr noundef nonnull align 8 dereferenceable(1496) %42)
          to label %44 unwind label %64

44:                                               ; preds = %40
  store i32 %43, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #8
  %45 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = invoke noundef double @_ZNK3ipx7Control10volume_tolEv(ptr noundef nonnull align 8 dereferenceable(1496) %46)
          to label %48 unwind label %68

48:                                               ; preds = %44
  store double %47, ptr %17, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  store double 1.000000e+00, ptr %18, align 8, !tbaa !14
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %50 unwind label %72

50:                                               ; preds = %48
  %51 = load double, ptr %49, align 8, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  store double %51, ptr %16, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #8
  %52 = load i32, ptr %8, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  invoke void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %53)
          to label %54 unwind label %77

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %112, %54
  %56 = load i32, ptr %20, align 4, !tbaa !9
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %81, label %59

59:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %115

60:                                               ; preds = %3
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %12, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %13, align 4
  br label %295

64:                                               ; preds = %40
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %12, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %13, align 4
  br label %294

68:                                               ; preds = %44
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %12, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %13, align 4
  br label %76

72:                                               ; preds = %48
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %12, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  br label %76

76:                                               ; preds = %72, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #8
  br label %293

77:                                               ; preds = %50
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %12, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %13, align 4
  br label %292

81:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = load i32, ptr %20, align 4, !tbaa !9
  %84 = invoke noundef i32 @_ZNK3ipx5BasisixEi(ptr noundef nonnull align 8 dereferenceable(176) %82, i32 noundef %83)
          to label %85 unwind label %107

85:                                               ; preds = %81
  store i32 %84, ptr %21, align 4, !tbaa !9
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = load i32, ptr %21, align 4, !tbaa !9
  %88 = invoke noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %86, i32 noundef %87)
          to label %89 unwind label %107

89:                                               ; preds = %85
  %90 = icmp eq i32 %88, 0
  br i1 %90, label %91, label %111

91:                                               ; preds = %89
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = icmp ne ptr %92, null
  br i1 %93, label %94, label %101

94:                                               ; preds = %91
  %95 = load ptr, ptr %5, align 8, !tbaa !5
  %96 = load i32, ptr %21, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !14
  %100 = fdiv double 1.000000e+00, %99
  br label %102

101:                                              ; preds = %91
  br label %102

102:                                              ; preds = %101, %94
  %103 = phi double [ %100, %94 ], [ 1.000000e+00, %101 ]
  %104 = load i32, ptr %20, align 4, !tbaa !9
  %105 = sext i32 %104 to i64
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %105) #8
  store double %103, ptr %106, align 8, !tbaa !14
  br label %111

107:                                              ; preds = %85, %81
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %12, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  br label %291

111:                                              ; preds = %102, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %112

112:                                              ; preds = %111
  %113 = load i32, ptr %20, align 4, !tbaa !9
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %20, align 4, !tbaa !9
  br label %55, !llvm.loop !15

115:                                              ; preds = %59
  invoke void @_ZN3ipx9Maxvolume5ResetEv(ptr noundef nonnull align 8 dereferenceable(64) %32)
          to label %116 unwind label %156

116:                                              ; preds = %115
  br label %117

117:                                              ; preds = %284, %116
  %118 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 3
  %119 = load i32, ptr %118, align 8, !tbaa !17
  %120 = load i32, ptr %15, align 4, !tbaa !9
  %121 = icmp slt i32 %119, %120
  br i1 %121, label %125, label %122

122:                                              ; preds = %117
  %123 = load i32, ptr %15, align 4, !tbaa !9
  %124 = icmp slt i32 %123, 0
  br label %125

125:                                              ; preds = %122, %117
  %126 = phi i1 [ true, %117 ], [ %124, %122 ]
  br i1 %126, label %127, label %286

127:                                              ; preds = %125
  %128 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 7
  store i32 0, ptr %128, align 8, !tbaa !18
  %129 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 8
  store double 0.000000e+00, ptr %129, align 8, !tbaa !19
  %130 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 9
  store double 0.000000e+00, ptr %130, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  store i32 0, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #8
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = load i32, ptr %8, align 4, !tbaa !9
  %133 = add nsw i32 %131, %132
  %134 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3ipx8SortpermEiPKdb(ptr dead_on_unwind writable sret(%"class.std::vector.4") align 8 %23, i32 noundef %133, ptr noundef %134, i1 noundef zeroext false)
          to label %135 unwind label %160

135:                                              ; preds = %127
  br label %136

136:                                              ; preds = %263, %261, %135
  %137 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %138 = xor i1 %137, true
  br i1 %138, label %139, label %267

139:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %140 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  %141 = load i32, ptr %140, align 4, !tbaa !9
  store i32 %141, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %150

144:                                              ; preds = %139
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = load i32, ptr %24, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds double, ptr %145, i64 %147
  %149 = load double, ptr %148, align 8, !tbaa !14
  br label %151

150:                                              ; preds = %139
  br label %151

151:                                              ; preds = %150, %144
  %152 = phi double [ %149, %144 ], [ 1.000000e+00, %150 ]
  store double %152, ptr %25, align 8, !tbaa !14
  %153 = load double, ptr %25, align 8, !tbaa !14
  %154 = fcmp oeq double %153, 0.000000e+00
  br i1 %154, label %155, label %164

155:                                              ; preds = %151
  store i32 8, ptr %26, align 4
  br label %261

156:                                              ; preds = %286, %115
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %12, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %13, align 4
  br label %291

160:                                              ; preds = %127
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %12, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %13, align 4
  br label %285

164:                                              ; preds = %151
  %165 = load ptr, ptr %6, align 8, !tbaa !5
  %166 = load i32, ptr %24, align 4, !tbaa !9
  %167 = invoke noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %165, i32 noundef %166)
          to label %168 unwind label %171

168:                                              ; preds = %164
  %169 = icmp ne i32 %167, -1
  br i1 %169, label %170, label %175

170:                                              ; preds = %168
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  store i32 7, ptr %26, align 4
  br label %261, !llvm.loop !21

171:                                              ; preds = %182, %175, %164
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %12, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %13, align 4
  br label %266

175:                                              ; preds = %168
  %176 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 0
  %177 = load ptr, ptr %176, align 8, !tbaa !11
  %178 = invoke noundef i32 @_ZNK3ipx7Control14InterruptCheckEi(ptr noundef nonnull align 8 dereferenceable(1496) %177, i32 noundef -1)
          to label %179 unwind label %171

179:                                              ; preds = %175
  store i32 %178, ptr %14, align 4, !tbaa !9
  %180 = icmp ne i32 %178, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %179
  store i32 8, ptr %26, align 4
  br label %261

182:                                              ; preds = %179
  %183 = load ptr, ptr %6, align 8, !tbaa !5
  %184 = load i32, ptr %24, align 4, !tbaa !9
  invoke void @_ZN3ipx5Basis14SolveForUpdateEiRNS_13IndexedVectorE(ptr noundef nonnull align 8 dereferenceable(176) %183, i32 noundef %184, ptr noundef nonnull align 8 dereferenceable(44) %10)
          to label %185 unwind label %171

185:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #8
  store i32 -1, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #8
  store double 0.000000e+00, ptr %28, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 40, ptr %29) #8
  %186 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 0
  store ptr %19, ptr %186, align 8, !tbaa !5
  %187 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 1
  store ptr %25, ptr %187, align 8, !tbaa !5
  %188 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 2
  store ptr %28, ptr %188, align 8, !tbaa !5
  %189 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 3
  store ptr %27, ptr %189, align 8, !tbaa !5
  %190 = getelementptr inbounds %class.anon, ptr %29, i32 0, i32 4
  store ptr %32, ptr %190, align 8, !tbaa !22
  invoke void @"_ZN3ipx16for_each_nonzeroIZNS_9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0EEvRNS_13IndexedVectorERT_"(ptr noundef nonnull align 8 dereferenceable(44) %10, ptr noundef nonnull align 8 dereferenceable(40) %29)
          to label %191 unwind label %204

191:                                              ; preds = %185
  %192 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 8
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %192, ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %194 unwind label %204

194:                                              ; preds = %191
  %195 = load double, ptr %193, align 8, !tbaa !14
  %196 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 8
  store double %195, ptr %196, align 8, !tbaa !19
  %197 = load double, ptr %28, align 8, !tbaa !14
  %198 = load double, ptr %16, align 8, !tbaa !14
  %199 = fcmp ole double %197, %198
  br i1 %199, label %200, label %208

200:                                              ; preds = %194
  %201 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 2
  %202 = load i32, ptr %201, align 4, !tbaa !24
  %203 = add nsw i32 %202, 1
  store i32 %203, ptr %201, align 4, !tbaa !24
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  store i32 7, ptr %26, align 4
  br label %260, !llvm.loop !21

204:                                              ; preds = %191, %185
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %12, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %13, align 4
  br label %265

208:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #8
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = load i32, ptr %27, align 4, !tbaa !9
  %211 = invoke noundef i32 @_ZNK3ipx5BasisixEi(ptr noundef nonnull align 8 dereferenceable(176) %209, i32 noundef %210)
          to label %212 unwind label %220

212:                                              ; preds = %208
  store i32 %211, ptr %30, align 4, !tbaa !9
  %213 = load ptr, ptr %6, align 8, !tbaa !5
  %214 = load i32, ptr %30, align 4, !tbaa !9
  %215 = invoke noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %213, i32 noundef %214)
          to label %216 unwind label %220

216:                                              ; preds = %212
  %217 = icmp eq i32 %215, 0
  br i1 %217, label %218, label %219

218:                                              ; preds = %216
  br label %225

219:                                              ; preds = %216
  call void @__assert_fail(ptr noundef @.str.11, ptr noundef @.str.12, i32 noundef 73, ptr noundef @__PRETTY_FUNCTION__._ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE) #9
  unreachable

220:                                              ; preds = %212, %208
  %221 = landingpad { ptr, i32 }
          cleanup
  %222 = extractvalue { ptr, i32 } %221, 0
  store ptr %222, ptr %12, align 8
  %223 = extractvalue { ptr, i32 } %221, 1
  store i32 %223, ptr %13, align 4
  br label %264

224:                                              ; No predecessors!
  br label %225

225:                                              ; preds = %224, %218
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #8
  %226 = load ptr, ptr %6, align 8, !tbaa !5
  %227 = load i32, ptr %30, align 4, !tbaa !9
  %228 = load i32, ptr %24, align 4, !tbaa !9
  %229 = load i32, ptr %27, align 4, !tbaa !9
  %230 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3ipx13IndexedVectorixEi(ptr noundef nonnull align 8 dereferenceable(44) %10, i32 noundef %229)
          to label %231 unwind label %238

231:                                              ; preds = %225
  %232 = load double, ptr %230, align 8, !tbaa !14
  %233 = invoke noundef i32 @_ZN3ipx5Basis16ExchangeIfStableEiidiPb(ptr noundef nonnull align 8 dereferenceable(176) %226, i32 noundef %227, i32 noundef %228, double noundef %232, i32 noundef -1, ptr noundef %31)
          to label %234 unwind label %238

234:                                              ; preds = %231
  store i32 %233, ptr %14, align 4, !tbaa !9
  %235 = load i32, ptr %14, align 4, !tbaa !9
  %236 = icmp ne i32 %235, 0
  br i1 %236, label %237, label %242

237:                                              ; preds = %234
  store i32 8, ptr %26, align 4
  br label %259

238:                                              ; preds = %231, %225
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %12, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  br label %264

242:                                              ; preds = %234
  %243 = load i8, ptr %31, align 1, !tbaa !25, !range !27, !noundef !28
  %244 = trunc i8 %243 to i1
  br i1 %244, label %246, label %245

245:                                              ; preds = %242
  store i32 7, ptr %26, align 4
  br label %259, !llvm.loop !21

246:                                              ; preds = %242
  %247 = load double, ptr %25, align 8, !tbaa !14
  %248 = fdiv double 1.000000e+00, %247
  %249 = load i32, ptr %27, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %19, i64 noundef %250) #8
  store double %248, ptr %251, align 8, !tbaa !14
  %252 = load i32, ptr %22, align 4, !tbaa !9
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %22, align 4, !tbaa !9
  %254 = load double, ptr %28, align 8, !tbaa !14
  %255 = call double @log2(double noundef %254) #8
  %256 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 5
  %257 = load double, ptr %256, align 8, !tbaa !29
  %258 = fadd double %257, %255
  store double %258, ptr %256, align 8, !tbaa !29
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  store i32 0, ptr %26, align 4
  br label %259

259:                                              ; preds = %246, %245, %237
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %260

260:                                              ; preds = %259, %200
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %261

261:                                              ; preds = %260, %181, %170, %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %262 = load i32, ptr %26, align 4
  switch i32 %262, label %301 [
    i32 0, label %263
    i32 8, label %267
    i32 7, label %136
  ]

263:                                              ; preds = %261
  br label %136, !llvm.loop !21

264:                                              ; preds = %238, %220
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #8
  br label %265

265:                                              ; preds = %264, %204
  call void @llvm.lifetime.end.p0(i64 40, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #8
  br label %266

266:                                              ; preds = %265, %171
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  br label %285

267:                                              ; preds = %261, %136
  %268 = load i32, ptr %22, align 4, !tbaa !9
  %269 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 1
  %270 = load i32, ptr %269, align 8, !tbaa !30
  %271 = add nsw i32 %270, %268
  store i32 %271, ptr %269, align 8, !tbaa !30
  %272 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 3
  %273 = load i32, ptr %272, align 8, !tbaa !17
  %274 = add nsw i32 %273, 1
  store i32 %274, ptr %272, align 8, !tbaa !17
  %275 = load i32, ptr %22, align 4, !tbaa !9
  %276 = icmp eq i32 %275, 0
  br i1 %276, label %280, label %277

277:                                              ; preds = %267
  %278 = load i32, ptr %14, align 4, !tbaa !9
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %281

280:                                              ; preds = %277, %267
  store i32 6, ptr %26, align 4
  br label %282

281:                                              ; preds = %277
  store i32 0, ptr %26, align 4
  br label %282

282:                                              ; preds = %281, %280
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %283 = load i32, ptr %26, align 4
  switch i32 %283, label %301 [
    i32 0, label %284
    i32 6, label %286
  ]

284:                                              ; preds = %282
  br label %117, !llvm.loop !31

285:                                              ; preds = %266, %160
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  br label %291

286:                                              ; preds = %282, %125
  %287 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %288 unwind label %156

288:                                              ; preds = %286
  %289 = getelementptr inbounds %"class.ipx::Maxvolume", ptr %32, i32 0, i32 6
  store double %287, ptr %289, align 8, !tbaa !32
  %290 = load i32, ptr %14, align 4, !tbaa !9
  store i32 1, ptr %26, align 4
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  ret i32 %290

291:                                              ; preds = %285, %156, %107
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %19) #8
  br label %292

292:                                              ; preds = %291, %77
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #8
  br label %293

293:                                              ; preds = %292, %76
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %294

294:                                              ; preds = %293, %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #8
  br label %295

295:                                              ; preds = %294, %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  call void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %296

296:                                              ; preds = %295
  %297 = load ptr, ptr %12, align 8
  %298 = load i32, ptr %13, align 4
  %299 = insertvalue { ptr, i32 } poison, ptr %297, 0
  %300 = insertvalue { ptr, i32 } %299, i32 %298, 1
  resume { ptr, i32 } %300

301:                                              ; preds = %282, %261
  unreachable
}

declare noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx5Basis5modelEv(ptr noundef nonnull align 8 dereferenceable(176)) #2

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

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

declare void @_ZN3ipx13IndexedVectorC1Ei(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx7Control9maxpassesEv(ptr noundef nonnull align 8 dereferenceable(1496)) #3 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)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3ipx7Control10volume_tolEv(ptr noundef nonnull align 8 dereferenceable(1496)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) #4 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) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ipx9Maxvolume5ResetEv(ptr noundef nonnull align 8 dereferenceable(64)) #3 align 2

declare void @_ZN3ipx8SortpermEiPKdb(ptr dead_on_unwind writable sret(%"class.std::vector.4") align 8, i32 noundef, ptr noundef, i1 noundef zeroext) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

declare void @_ZN3ipx5Basis14SolveForUpdateEiRNS_13IndexedVectorE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, ptr noundef nonnull align 8 dereferenceable(44)) #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3ipx16for_each_nonzeroIZNS_9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0EEvRNS_13IndexedVectorERT_"(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(40)) #1

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

declare noundef i32 @_ZN3ipx5Basis16ExchangeIfStableEiidiPb(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef, double noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3ipx13IndexedVectorixEi(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef) #3 align 2

; Function Attrs: nounwind
declare double @log2(double noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind "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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTSN3ipx9MaxvolumeE", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !13, i64 32, !10, i64 40, !13, i64 48, !13, i64 56}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 16}
!18 = !{!12, !10, i64 40}
!19 = !{!12, !13, i64 48}
!20 = !{!12, !13, i64 56}
!21 = distinct !{!21, !16}
!22 = !{!23, !6, i64 32}
!23 = !{!"_ZTSZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!24 = !{!12, !10, i64 12}
!25 = !{!26, !26, i64 0}
!26 = !{!"bool", !7, i64 0}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!12, !13, i64 24}
!30 = !{!12, !10, i64 8}
!31 = distinct !{!31, !16}
!32 = !{!12, !13, i64 32}


; 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::IndexedVector" = type <{ %"class.std::valarray", %"class.std::vector.4", i32, [4 x i8] }>
%"class.std::valarray" = type { i64, ptr }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.anon = type { ptr, ptr, ptr, ptr, ptr }

@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@__PRETTY_FUNCTION__._ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE = external hidden unnamed_addr constant [59 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

declare i32 @__gxx_personality_v0(...)

; 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 noundef i32 @_ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef %1, ptr noundef nonnull align 8 dereferenceable(176) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.ipx::IndexedVector", align 8
  %5 = alloca %"class.ipx::Timer", align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca %"class.std::valarray", align 8
  %9 = alloca %"class.std::vector.4", align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca i8, align 1
  %15 = tail call noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx5Basis5modelEv(ptr noundef nonnull align 8 dereferenceable(176) %2)
  %16 = tail call noundef i32 @_ZNK3ipx5Model4rowsEv(ptr noundef nonnull align 8 dereferenceable(704) %15)
  %17 = tail call noundef i32 @_ZNK3ipx5Model4colsEv(ptr noundef nonnull align 8 dereferenceable(704) %15)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #9
  call void @_ZN3ipx13IndexedVectorC1Ei(ptr noundef nonnull align 8 dereferenceable(44) %4, i32 noundef %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  invoke void @_ZN3ipx5TimerC1Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %18 unwind label %46

18:                                               ; preds = %3
  %19 = load ptr, ptr %0, align 8, !tbaa !5
  %20 = call noundef i32 @_ZNK3ipx7Control9maxpassesEv(ptr noundef nonnull align 8 dereferenceable(1496) %19)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  %21 = load ptr, ptr %0, align 8, !tbaa !5
  %22 = call noundef double @_ZNK3ipx7Control10volume_tolEv(ptr noundef nonnull align 8 dereferenceable(1496) %21)
  store double %22, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #9
  store double 1.000000e+00, ptr %7, align 8, !tbaa !12
  %23 = 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)
  %24 = load double, ptr %23, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  %25 = sext i32 %16 to i64
  invoke void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %25)
          to label %.preheader90 unwind label %48

.preheader90:                                     ; preds = %18
  %26 = icmp sgt i32 %16, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader90
  %.not83 = icmp eq ptr %1, null
  %wide.trip.count107 = zext nneg i32 %16 to i64
  br i1 %.not83, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph, %33
  %indvars.iv104 = phi i64 [ %indvars.iv.next105, %33 ], [ 0, %.lr.ph ]
  %27 = trunc nuw nsw i64 %indvars.iv104 to i32
  %28 = call noundef i32 @_ZNK3ipx5BasisixEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %27)
  %29 = call noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %28)
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %33

31:                                               ; preds = %.lr.ph.split.us
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv104) #9
  store double 1.000000e+00, ptr %32, align 8, !tbaa !12
  br label %33

33:                                               ; preds = %31, %.lr.ph.split.us
  %indvars.iv.next105 = add nuw nsw i64 %indvars.iv104, 1
  %exitcond108.not = icmp eq i64 %indvars.iv.next105, %wide.trip.count107
  br i1 %exitcond108.not, label %._crit_edge, label %.lr.ph.split.us, !llvm.loop !13

._crit_edge:                                      ; preds = %60, %33, %.preheader90
  call void @_ZN3ipx9Maxvolume5ResetEv(ptr noundef nonnull align 8 dereferenceable(64) %0)
  %34 = getelementptr inbounds i8, ptr %0, i64 16
  %35 = icmp slt i32 %20, 0
  %36 = getelementptr inbounds i8, ptr %0, i64 40
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = add nsw i32 %17, %16
  %.not = icmp eq ptr %1, null
  %39 = getelementptr inbounds i8, ptr %13, i64 8
  %40 = getelementptr inbounds i8, ptr %13, i64 16
  %41 = getelementptr inbounds i8, ptr %13, i64 24
  %42 = getelementptr inbounds i8, ptr %13, i64 32
  %43 = getelementptr inbounds i8, ptr %0, i64 12
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  br label %61

46:                                               ; preds = %3
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %146

48:                                               ; preds = %18
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %145

.lr.ph.split:                                     ; preds = %.lr.ph, %60
  %indvars.iv = phi i64 [ %indvars.iv.next, %60 ], [ 0, %.lr.ph ]
  %50 = trunc nuw nsw i64 %indvars.iv to i32
  %51 = call noundef i32 @_ZNK3ipx5BasisixEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %50)
  %52 = call noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %51)
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %60

54:                                               ; preds = %.lr.ph.split
  %55 = sext i32 %51 to i64
  %56 = getelementptr inbounds double, ptr %1, i64 %55
  %57 = load double, ptr %56, align 8, !tbaa !12
  %58 = fdiv double 1.000000e+00, %57
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %indvars.iv) #9
  store double %58, ptr %59, align 8, !tbaa !12
  br label %60

60:                                               ; preds = %54, %.lr.ph.split
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count107
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !13

61:                                               ; preds = %.loopexit, %._crit_edge
  %62 = load i32, ptr %34, align 8, !tbaa !15
  %63 = icmp slt i32 %62, %20
  %64 = or i1 %35, %63
  br i1 %64, label %65, label %140

65:                                               ; preds = %61
  store i32 0, ptr %36, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %37, i8 0, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  invoke void @_ZN3ipx8SortpermEiPKdb(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.4") align 8 %9, i32 noundef %38, ptr noundef %1, i1 noundef zeroext false)
          to label %.preheader unwind label %77

.preheader:                                       ; preds = %65, %130
  %.162 = phi i32 [ %.364, %130 ], [ 0, %65 ]
  %.056 = phi i32 [ %.359, %130 ], [ 0, %65 ]
  %66 = call noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br i1 %66, label %.loopexit, label %67

67:                                               ; preds = %.preheader
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  %69 = load i32, ptr %68, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  br i1 %.not, label %.thread, label %70

.thread:                                          ; preds = %67
  store double 1.000000e+00, ptr %10, align 8, !tbaa !12
  br label %79

70:                                               ; preds = %67
  %71 = sext i32 %69 to i64
  %72 = getelementptr inbounds double, ptr %1, i64 %71
  %73 = load double, ptr %72, align 8, !tbaa !12
  store double %73, ptr %10, align 8, !tbaa !12
  %74 = fcmp oeq double %73, 0.000000e+00
  br i1 %74, label %.thread84, label %79

75:                                               ; preds = %140
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %144

77:                                               ; preds = %65
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %139

79:                                               ; preds = %.thread, %70
  %80 = call noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %69)
  %.not73 = icmp eq i32 %80, -1
  br i1 %.not73, label %84, label %81

81:                                               ; preds = %79
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %130, !llvm.loop !18

82:                                               ; preds = %88, %84
  %83 = landingpad { ptr, i32 }
          cleanup
  br label %132

84:                                               ; preds = %79
  %85 = load ptr, ptr %0, align 8, !tbaa !5
  %86 = invoke noundef i32 @_ZNK3ipx7Control14InterruptCheckEi(ptr noundef nonnull align 8 dereferenceable(1496) %85, i32 noundef -1)
          to label %87 unwind label %82

87:                                               ; preds = %84
  %.not74 = icmp eq i32 %86, 0
  br i1 %.not74, label %88, label %.thread84

88:                                               ; preds = %87
  invoke void @_ZN3ipx5Basis14SolveForUpdateEiRNS_13IndexedVectorE(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %69, ptr noundef nonnull align 8 dereferenceable(44) %4)
          to label %89 unwind label %82

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #9
  store i32 -1, ptr %11, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store double 0.000000e+00, ptr %12, align 8, !tbaa !12
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %13) #9
  store ptr %8, ptr %13, align 8, !tbaa !19
  store ptr %10, ptr %39, align 8, !tbaa !19
  store ptr %12, ptr %40, align 8, !tbaa !19
  store ptr %11, ptr %41, align 8, !tbaa !19
  store ptr %0, ptr %42, align 8, !tbaa !20
  invoke void @"_ZN3ipx16for_each_nonzeroIZNS_9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0EEvRNS_13IndexedVectorERT_"(ptr noundef nonnull align 8 dereferenceable(44) %4, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %90 unwind label %98

90:                                               ; preds = %89
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %92 = load double, ptr %91, align 8, !tbaa !12
  store double %92, ptr %37, align 8, !tbaa !22
  %93 = load double, ptr %12, align 8, !tbaa !12
  %94 = fcmp ugt double %93, %24
  br i1 %94, label %100, label %95

95:                                               ; preds = %90
  %96 = load i32, ptr %43, align 4, !tbaa !23
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %43, align 4, !tbaa !23
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %129, !llvm.loop !18

98:                                               ; preds = %89
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %131

100:                                              ; preds = %90
  %101 = load i32, ptr %11, align 4, !tbaa !17
  %102 = call noundef i32 @_ZNK3ipx5BasisixEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %101)
  %103 = call noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %102)
  %104 = icmp eq i32 %103, 0
  br i1 %104, label %106, label %105

105:                                              ; preds = %100
  call void @__assert_fail(ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.12, i32 noundef 73, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisE) #10
  unreachable

106:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #9
  %107 = load i32, ptr %11, align 4, !tbaa !17
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3ipx13IndexedVectorixEi(ptr noundef nonnull align 8 dereferenceable(44) %4, i32 noundef %107)
  %109 = load double, ptr %108, align 8, !tbaa !12
  %110 = invoke noundef i32 @_ZN3ipx5Basis16ExchangeIfStableEiidiPb(ptr noundef nonnull align 8 dereferenceable(176) %2, i32 noundef %102, i32 noundef %69, double noundef %109, i32 noundef -1, ptr noundef nonnull %14)
          to label %111 unwind label %112

111:                                              ; preds = %106
  %.not78 = icmp eq i32 %110, 0
  br i1 %.not78, label %114, label %128

112:                                              ; preds = %106
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  br label %131

114:                                              ; preds = %111
  %115 = load i8, ptr %14, align 1, !tbaa !24, !range !26, !noundef !27
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %117, label %128, !llvm.loop !18

117:                                              ; preds = %114
  %118 = load double, ptr %10, align 8, !tbaa !12
  %119 = fdiv double 1.000000e+00, %118
  %120 = load i32, ptr %11, align 4, !tbaa !17
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt8valarrayIdEixEm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %121) #9
  store double %119, ptr %122, align 8, !tbaa !12
  %123 = add nsw i32 %.056, 1
  %124 = load double, ptr %12, align 8, !tbaa !12
  %125 = call double @log2(double noundef %124) #9
  %126 = load double, ptr %44, align 8, !tbaa !28
  %127 = fadd double %125, %126
  store double %127, ptr %44, align 8, !tbaa !28
  call void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %128

128:                                              ; preds = %114, %111, %117
  %.157 = phi i32 [ %123, %117 ], [ %.056, %111 ], [ %.056, %114 ]
  %.046 = phi i32 [ 0, %117 ], [ 8, %111 ], [ 7, %114 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #9
  br label %129

129:                                              ; preds = %128, %95
  %.263 = phi i32 [ 0, %95 ], [ %110, %128 ]
  %.258 = phi i32 [ %.056, %95 ], [ %.157, %128 ]
  %.147 = phi i32 [ 7, %95 ], [ %.046, %128 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %130

.thread84:                                        ; preds = %70, %87
  %.364.ph = phi i32 [ %86, %87 ], [ %.162, %70 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %.loopexit

130:                                              ; preds = %129, %81
  %.364 = phi i32 [ %.162, %81 ], [ %.263, %129 ]
  %.359 = phi i32 [ %.056, %81 ], [ %.258, %129 ]
  %.248 = phi i32 [ 7, %81 ], [ %.147, %129 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  %switch = icmp eq i32 %.248, 8
  br i1 %switch, label %.loopexit, label %.preheader

131:                                              ; preds = %112, %98
  %.pn = phi { ptr, i32 } [ %113, %112 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #9
  br label %132

132:                                              ; preds = %131, %82
  %.pn.pn = phi { ptr, i32 } [ %.pn, %131 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  br label %139

.loopexit:                                        ; preds = %130, %.preheader, %.thread84
  %.465 = phi i32 [ %.364.ph, %.thread84 ], [ %.162, %.preheader ], [ %.364, %130 ]
  %.460 = phi i32 [ %.056, %.thread84 ], [ %.056, %.preheader ], [ %.359, %130 ]
  %133 = load i32, ptr %45, align 8, !tbaa !29
  %134 = add nsw i32 %133, %.460
  store i32 %134, ptr %45, align 8, !tbaa !29
  %135 = load i32, ptr %34, align 8, !tbaa !15
  %136 = add nsw i32 %135, 1
  store i32 %136, ptr %34, align 8, !tbaa !15
  %137 = icmp eq i32 %.460, 0
  %138 = icmp ne i32 %.465, 0
  %or.cond = select i1 %137, i1 true, i1 %138
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br i1 %or.cond, label %140, label %61

139:                                              ; preds = %132, %77
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %132 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  br label %144

140:                                              ; preds = %.loopexit, %61
  %.566 = phi i32 [ %.465, %.loopexit ], [ 0, %61 ]
  %141 = invoke noundef double @_ZNK3ipx5Timer7ElapsedEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %142 unwind label %75

142:                                              ; preds = %140
  %143 = getelementptr inbounds i8, ptr %0, i64 32
  store double %141, ptr %143, align 8, !tbaa !30
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %4) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  ret i32 %.566

144:                                              ; preds = %139, %75
  %.pn79 = phi { ptr, i32 } [ %76, %75 ], [ %.pn.pn.pn, %139 ]
  call void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %8) #9
  br label %145

145:                                              ; preds = %144, %48
  %.pn79.pn = phi { ptr, i32 } [ %.pn79, %144 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  br label %146

146:                                              ; preds = %145, %46
  %.pn79.pn.pn = phi { ptr, i32 } [ %.pn79.pn, %145 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44) %4) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  resume { ptr, i32 } %.pn79.pn.pn
}

declare noundef nonnull align 8 dereferenceable(704) ptr @_ZNK3ipx5Basis5modelEv(ptr noundef nonnull align 8 dereferenceable(176)) local_unnamed_addr #2

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

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

declare void @_ZN3ipx13IndexedVectorC1Ei(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef) unnamed_addr #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx7Control9maxpassesEv(ptr noundef nonnull align 8 dereferenceable(1496)) local_unnamed_addr #3 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 #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK3ipx7Control10volume_tolEv(ptr noundef nonnull align 8 dereferenceable(1496)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt8valarrayIdEC2Em(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3ipx5Basis8StatusOfEi(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef) local_unnamed_addr #4 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 #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3ipx9Maxvolume5ResetEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3 align 2

declare void @_ZN3ipx8SortpermEiPKdb(ptr dead_on_unwind writable sret(%"class.std::vector.4") align 8, i32 noundef, ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIiSaIiEE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEE4backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEE8pop_backEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

declare noundef i32 @_ZNK3ipx7Control14InterruptCheckEi(ptr noundef nonnull align 8 dereferenceable(1496), i32 noundef) local_unnamed_addr #2

declare void @_ZN3ipx5Basis14SolveForUpdateEiRNS_13IndexedVectorE(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, ptr noundef nonnull align 8 dereferenceable(44)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZN3ipx16for_each_nonzeroIZNS_9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0EEvRNS_13IndexedVectorERT_"(ptr noundef nonnull align 8 dereferenceable(44), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #1

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

declare noundef i32 @_ZN3ipx5Basis16ExchangeIfStableEiidiPb(ptr noundef nonnull align 8 dereferenceable(176), i32 noundef, i32 noundef, double noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3ipx13IndexedVectorixEi(ptr noundef nonnull align 8 dereferenceable(44), i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @log2(double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt8valarrayIdED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3ipx13IndexedVectorD2Ev(ptr noundef nonnull align 8 dereferenceable(44)) unnamed_addr #4 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #8

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 = { "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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #9 = { nounwind }
attributes #10 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN3ipx9MaxvolumeE", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !11, i64 24, !11, i64 32, !10, i64 40, !11, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!6, !10, i64 16}
!16 = !{!6, !10, i64 40}
!17 = !{!10, !10, i64 0}
!18 = distinct !{!18, !14}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !7, i64 32}
!21 = !{!"_ZTSZN3ipx9Maxvolume13RunSequentialEPKdRNS_5BasisEE3$_0", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32}
!22 = !{!6, !11, i64 48}
!23 = !{!6, !10, i64 12}
!24 = !{!25, !25, i64 0}
!25 = !{!"bool", !8, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!6, !11, i64 24}
!29 = !{!6, !10, i64 8}
!30 = !{!6, !11, i64 32}


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