; LLVM IR from ERGO-Code/HiGHS :: src/qpsolver (a_quass)

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

%struct.QpSolution = type { %struct.QpVector, %struct.QpVector, %struct.QpVector, %struct.QpVector, %"class.std::vector.8", %"class.std::vector.8" }
%struct.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QpHotstartInformation = type { %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %struct.QpVector, %struct.QpVector }
%struct.Instance = type { i32, i32, i32, double, %struct.QpVector, %struct.Matrix, %"class.std::vector.3", %"class.std::vector.3", %struct.Matrix, %"class.std::vector.3", %"class.std::vector.3" }
%struct.Matrix = type { %struct.MatrixBase, i8, %struct.MatrixBase }
%struct.MatrixBase = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector.3" }
%struct.Settings = type <{ i32, [4 x i8], double, double, i32, [4 x i8], double, double, double, double, double, i8, [7 x i8], double, i32, i8, i8, [2 x i8], i32, [4 x i8], %class.Eventhandler, %class.Eventhandler.18, %class.Eventhandler.24, i32, i32, i32, i32, i32, i32, double, i8, i8, i8, [5 x i8] }>
%class.Eventhandler = type { %"class.std::vector.13" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = type { %"struct.std::_Vector_base<std::function<void (Statistics &)>, std::allocator<std::function<void (Statistics &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<void (Statistics &)>, std::allocator<std::function<void (Statistics &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<void (Statistics &)>, std::allocator<std::function<void (Statistics &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<void (Statistics &)>, std::allocator<std::function<void (Statistics &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Eventhandler.18 = type { %"class.std::vector.19" }
%"class.std::vector.19" = type { %"struct.std::_Vector_base.20" }
%"struct.std::_Vector_base.20" = type { %"struct.std::_Vector_base<std::function<void (QpModelStatus &)>, std::allocator<std::function<void (QpModelStatus &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<void (QpModelStatus &)>, std::allocator<std::function<void (QpModelStatus &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<void (QpModelStatus &)>, std::allocator<std::function<void (QpModelStatus &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<void (QpModelStatus &)>, std::allocator<std::function<void (QpModelStatus &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Eventhandler.24 = type { %"class.std::vector.25" }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<std::function<void (int &)>, std::allocator<std::function<void (int &)>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::function<void (int &)>, std::allocator<std::function<void (int &)>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::function<void (int &)>, std::allocator<std::function<void (int &)>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::function<void (int &)>, std::allocator<std::function<void (int &)>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 @_Z7solveqpR8InstanceR8SettingsR10StatisticsR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(132) %6) #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca %struct.QpSolution, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %struct.QpHotstartInformation, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store ptr %5, ptr %14, align 8, !tbaa !5
  store ptr %6, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 1, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 272, ptr %17) #5
  %24 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN10QpSolutionC2ER8Instance(ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 8 dereferenceable(512) %24)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %25

25:                                               ; preds = %83, %7
  %26 = load i32, ptr %18, align 4, !tbaa !11
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.Instance, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 4, !tbaa !13
  %30 = icmp slt i32 %26, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %25
  store i32 2, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %86

32:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.Instance, ptr %33, i32 0, i32 5
  %35 = getelementptr inbounds %struct.Matrix, ptr %34, i32 0, i32 2
  %36 = getelementptr inbounds %struct.MatrixBase, ptr %35, i32 0, i32 2
  %37 = load i32, ptr %18, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #5
  %40 = load i32, ptr %39, align 4, !tbaa !11
  store i32 %40, ptr %20, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %79, %32
  %42 = load i32, ptr %20, align 4, !tbaa !11
  %43 = load ptr, ptr %9, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.Instance, ptr %43, i32 0, i32 5
  %45 = getelementptr inbounds %struct.Matrix, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.MatrixBase, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %18, align 4, !tbaa !11
  %48 = add nsw i32 %47, 1
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %49) #5
  %51 = load i32, ptr %50, align 4, !tbaa !11
  %52 = icmp slt i32 %42, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %41
  store i32 5, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  br label %82

54:                                               ; preds = %41
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Instance, ptr %55, i32 0, i32 5
  %57 = getelementptr inbounds %struct.Matrix, ptr %56, i32 0, i32 2
  %58 = getelementptr inbounds %struct.MatrixBase, ptr %57, i32 0, i32 3
  %59 = load i32, ptr %20, align 4, !tbaa !11
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #5
  %62 = load i32, ptr %61, align 4, !tbaa !11
  %63 = load i32, ptr %18, align 4, !tbaa !11
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %78

65:                                               ; preds = %54
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.Settings, ptr %66, i32 0, i32 13
  %68 = load double, ptr %67, align 8, !tbaa !28
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.Instance, ptr %69, i32 0, i32 5
  %71 = getelementptr inbounds %struct.Matrix, ptr %70, i32 0, i32 2
  %72 = getelementptr inbounds %struct.MatrixBase, ptr %71, i32 0, i32 4
  %73 = load i32, ptr %20, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %72, i64 noundef %74) #5
  %76 = load double, ptr %75, align 8, !tbaa !48
  %77 = fadd double %76, %68
  store double %77, ptr %75, align 8, !tbaa !48
  br label %78

78:                                               ; preds = %65, %54
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %20, align 4, !tbaa !11
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %20, align 4, !tbaa !11
  br label %41, !llvm.loop !49

82:                                               ; preds = %53
  br label %83

83:                                               ; preds = %82
  %84 = load i32, ptr %18, align 4, !tbaa !11
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %18, align 4, !tbaa !11
  br label %25, !llvm.loop !51

86:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 184, ptr %21) #5
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.Instance, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !13
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.Instance, ptr %90, i32 0, i32 2
  %92 = load i32, ptr %91, align 8, !tbaa !52
  invoke void @_ZN21QpHotstartInformationC2Eii(ptr noundef nonnull align 8 dereferenceable(184) %21, i32 noundef %89, i32 noundef %92)
          to label %93 unwind label %124

93:                                               ; preds = %86
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.Instance, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !52
  %97 = icmp eq i32 %96, 0
  br i1 %97, label %98, label %145

98:                                               ; preds = %93
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.Instance, ptr %99, i32 0, i32 1
  %101 = load i32, ptr %100, align 4, !tbaa !13
  %102 = icmp sle i32 %101, 15000
  br i1 %102, label %103, label %145

103:                                              ; preds = %98
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load ptr, ptr %11, align 8, !tbaa !5
  %107 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZL27computeStartingPointBoundedR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %104, ptr noundef nonnull align 8 dereferenceable(211) %105, ptr noundef nonnull align 8 dereferenceable(216) %106, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(184) %21, ptr noundef nonnull align 8 dereferenceable(132) %107)
          to label %108 unwind label %128

108:                                              ; preds = %103
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = icmp eq i32 %109, 2
  br i1 %110, label %111, label %132

111:                                              ; preds = %108
  %112 = getelementptr inbounds %struct.QpHotstartInformation, ptr %21, i32 0, i32 3
  %113 = getelementptr inbounds %struct.QpSolution, ptr %17, i32 0, i32 0
  %114 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN8QpVectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %113, ptr noundef nonnull align 8 dereferenceable(56) %112)
          to label %115 unwind label %128

115:                                              ; preds = %111
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = load ptr, ptr %12, align 8, !tbaa !5
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = invoke noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512) %116, ptr noundef nonnull align 8 dereferenceable(211) %117, ptr noundef nonnull align 8 dereferenceable(216) %118, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 4 dereferenceable(4) %119, ptr noundef nonnull align 8 dereferenceable(96) %120, ptr noundef nonnull align 8 dereferenceable(104) %121)
          to label %123 unwind label %128

123:                                              ; preds = %115
  store i32 %122, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %181

124:                                              ; preds = %86
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %22, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %23, align 4
  br label %183

128:                                              ; preds = %172, %166, %156, %145, %135, %115, %111, %103
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %22, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %23, align 4
  call void @_ZN21QpHotstartInformationD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %21) #5
  br label %183

132:                                              ; preds = %108
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = icmp eq i32 %133, 3
  br i1 %134, label %135, label %144

135:                                              ; preds = %132
  %136 = load ptr, ptr %9, align 8, !tbaa !5
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load ptr, ptr %13, align 8, !tbaa !5
  %141 = load ptr, ptr %14, align 8, !tbaa !5
  %142 = invoke noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512) %136, ptr noundef nonnull align 8 dereferenceable(211) %137, ptr noundef nonnull align 8 dereferenceable(216) %138, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 4 dereferenceable(4) %139, ptr noundef nonnull align 8 dereferenceable(96) %140, ptr noundef nonnull align 8 dereferenceable(104) %141)
          to label %143 unwind label %128

143:                                              ; preds = %135
  store i32 %142, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %181

144:                                              ; preds = %132
  br label %166

145:                                              ; preds = %98, %93
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = load ptr, ptr %12, align 8, !tbaa !5
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = load ptr, ptr %14, align 8, !tbaa !5
  %152 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZL25computeStartingPointHighsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %146, ptr noundef nonnull align 8 dereferenceable(211) %147, ptr noundef nonnull align 8 dereferenceable(216) %148, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(184) %21, ptr noundef nonnull align 4 dereferenceable(4) %149, ptr noundef nonnull align 8 dereferenceable(96) %150, ptr noundef nonnull align 8 dereferenceable(104) %151, ptr noundef nonnull align 8 dereferenceable(132) %152)
          to label %153 unwind label %128

153:                                              ; preds = %145
  %154 = load i32, ptr %16, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %165

156:                                              ; preds = %153
  %157 = load ptr, ptr %9, align 8, !tbaa !5
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = load ptr, ptr %11, align 8, !tbaa !5
  %160 = load ptr, ptr %12, align 8, !tbaa !5
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load ptr, ptr %14, align 8, !tbaa !5
  %163 = invoke noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512) %157, ptr noundef nonnull align 8 dereferenceable(211) %158, ptr noundef nonnull align 8 dereferenceable(216) %159, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 4 dereferenceable(4) %160, ptr noundef nonnull align 8 dereferenceable(96) %161, ptr noundef nonnull align 8 dereferenceable(104) %162)
          to label %164 unwind label %128

164:                                              ; preds = %156
  store i32 %163, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %181

165:                                              ; preds = %153
  br label %166

166:                                              ; preds = %165, %144
  %167 = load ptr, ptr %9, align 8, !tbaa !5
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = invoke noundef i32 @_Z14solveqp_actualR8InstanceR8SettingsR21QpHotstartInformationR10StatisticsR13QpModelStatusR10QpSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %167, ptr noundef nonnull align 8 dereferenceable(211) %168, ptr noundef nonnull align 8 dereferenceable(184) %21, ptr noundef nonnull align 8 dereferenceable(216) %169, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 8 dereferenceable(132) %170)
          to label %172 unwind label %128

172:                                              ; preds = %166
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = load ptr, ptr %11, align 8, !tbaa !5
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = load ptr, ptr %14, align 8, !tbaa !5
  %179 = invoke noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512) %173, ptr noundef nonnull align 8 dereferenceable(211) %174, ptr noundef nonnull align 8 dereferenceable(216) %175, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(272) %17, ptr noundef nonnull align 4 dereferenceable(4) %176, ptr noundef nonnull align 8 dereferenceable(96) %177, ptr noundef nonnull align 8 dereferenceable(104) %178)
          to label %180 unwind label %128

180:                                              ; preds = %172
  store i32 %179, ptr %8, align 4
  store i32 1, ptr %19, align 4
  br label %181

181:                                              ; preds = %180, %164, %143, %123
  call void @_ZN21QpHotstartInformationD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %21) #5
  call void @llvm.lifetime.end.p0(i64 184, ptr %21) #5
  call void @_ZN10QpSolutionD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %17) #5
  call void @llvm.lifetime.end.p0(i64 272, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %182 = load i32, ptr %8, align 4
  ret i32 %182

183:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 184, ptr %21) #5
  call void @_ZN10QpSolutionD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %17) #5
  call void @llvm.lifetime.end.p0(i64 272, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %184

184:                                              ; preds = %183
  %185 = load ptr, ptr %22, align 8
  %186 = load i32, ptr %23, align 4
  %187 = insertvalue { ptr, i32 } poison, ptr %185, 0
  %188 = insertvalue { ptr, i32 } %187, i32 %186, 1
  resume { ptr, i32 } %188
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QpSolutionC2ER8Instance(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(512)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN21QpHotstartInformationC2Eii(ptr noundef nonnull align 8 dereferenceable(184), i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL27computeStartingPointBoundedR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(132)) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8QpVectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(104)) #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25computeStartingPointHighsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(132)) #1

declare noundef i32 @_Z14solveqp_actualR8InstanceR8SettingsR21QpHotstartInformationR10StatisticsR13QpModelStatusR10QpSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(132)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10QpSolutionD2Ev(ptr noundef nonnull align 8 dereferenceable(272)) 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"_ZTS13QpModelStatus", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 4}
!14 = !{!"_ZTS8Instance", !12, i64 0, !12, i64 4, !12, i64 8, !15, i64 16, !16, i64 24, !25, i64 80, !21, i64 248, !21, i64 272, !25, i64 296, !21, i64 464, !21, i64 488}
!15 = !{!"double", !7, i64 0}
!16 = !{!"_ZTS8QpVector", !12, i64 0, !12, i64 4, !17, i64 8, !21, i64 32}
!17 = !{!"_ZTSSt6vectorIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTS6Matrix", !26, i64 0, !27, i64 80, !26, i64 88}
!26 = !{!"_ZTS10MatrixBase", !12, i64 0, !12, i64 4, !17, i64 8, !17, i64 32, !21, i64 56}
!27 = !{!"bool", !7, i64 0}
!28 = !{!29, !15, i64 80}
!29 = !{!"_ZTS8Settings", !30, i64 0, !15, i64 8, !15, i64 16, !31, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !27, i64 72, !15, i64 80, !32, i64 88, !27, i64 92, !27, i64 93, !12, i64 96, !33, i64 104, !38, i64 128, !43, i64 152, !12, i64 176, !12, i64 180, !12, i64 184, !12, i64 188, !12, i64 192, !12, i64 196, !15, i64 200, !27, i64 208, !27, i64 209, !27, i64 210}
!30 = !{!"_ZTS17RatiotestStrategy", !7, i64 0}
!31 = !{!"_ZTS15PricingStrategy", !7, i64 0}
!32 = !{!"_ZTS14Phase1Strategy", !7, i64 0}
!33 = !{!"_ZTS12EventhandlerIR10StatisticsE", !34, i64 0}
!34 = !{!"_ZTSSt6vectorISt8functionIFvR10StatisticsEESaIS4_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTS12EventhandlerIR13QpModelStatusE", !39, i64 0}
!39 = !{!"_ZTSSt6vectorISt8functionIFvR13QpModelStatusEESaIS4_EE", !40, i64 0}
!40 = !{!"_ZTSSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE12_Vector_implE", !42, i64 0}
!42 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!43 = !{!"_ZTS12EventhandlerIRiE", !44, i64 0}
!44 = !{!"_ZTSSt6vectorISt8functionIFvRiEESaIS3_EE", !45, i64 0}
!45 = !{!"_ZTSSt12_Vector_baseISt8functionIFvRiEESaIS3_EE", !46, i64 0}
!46 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvRiEESaIS3_EE12_Vector_implE", !47, i64 0}
!47 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvRiEESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!48 = !{!15, !15, i64 0}
!49 = distinct !{!49, !50}
!50 = !{!"llvm.loop.mustprogress"}
!51 = distinct !{!51, !50}
!52 = !{!14, !12, i64 8}


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

%struct.QpSolution = type { %struct.QpVector, %struct.QpVector, %struct.QpVector, %struct.QpVector, %"class.std::vector.8", %"class.std::vector.8" }
%struct.QpVector = type { i32, i32, %"class.std::vector", %"class.std::vector.3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl" }
%"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl" = type { %"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl_data" }
%"struct.std::_Vector_base<BasisStatus, std::allocator<BasisStatus>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.QpHotstartInformation = type { %"class.std::vector", %"class.std::vector", %"class.std::vector.8", %struct.QpVector, %struct.QpVector }

; 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 @_Z7solveqpR8InstanceR8SettingsR10StatisticsR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(132) %6) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %8 = alloca i32, align 4
  %9 = alloca %struct.QpSolution, align 8
  %10 = alloca %struct.QpHotstartInformation, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 272, ptr nonnull %9) #5
  call void @_ZN10QpSolutionC2ER8Instance(ptr noundef nonnull align 8 dereferenceable(272) %9, ptr noundef nonnull align 8 dereferenceable(512) %0)
  %11 = getelementptr inbounds i8, ptr %0, i64 4
  %12 = load i32, ptr %11, align 4, !tbaa !9
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph72, label %._crit_edge

.lr.ph72:                                         ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 176
  %15 = getelementptr inbounds i8, ptr %0, i64 200
  %16 = getelementptr inbounds i8, ptr %1, i64 80
  %17 = getelementptr inbounds i8, ptr %0, i64 224
  br label %23

.loopexit:                                        ; preds = %39, %23
  %18 = load i32, ptr %11, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next75, %19
  br i1 %20, label %23, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %.loopexit, %7
  %.lcssa68 = phi i32 [ %12, %7 ], [ %18, %.loopexit ]
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %10) #5
  %21 = getelementptr inbounds i8, ptr %0, i64 8
  %22 = load i32, ptr %21, align 8, !tbaa !28
  invoke void @_ZN21QpHotstartInformationC2Eii(ptr noundef nonnull align 8 dereferenceable(184) %10, i32 noundef %.lcssa68, i32 noundef %22)
          to label %44 unwind label %55

23:                                               ; preds = %.lr.ph72, %.loopexit
  %indvars.iv74 = phi i64 [ 0, %.lr.ph72 ], [ %indvars.iv.next75, %.loopexit ]
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv74) #5
  %25 = load i32, ptr %24, align 4, !tbaa !29
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv.next75) #5
  %27 = load i32, ptr %26, align 4, !tbaa !29
  %28 = icmp slt i32 %25, %27
  br i1 %28, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %23
  %29 = sext i32 %25 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %39
  %indvars.iv = phi i64 [ %29, %.lr.ph.preheader ], [ %indvars.iv.next, %39 ]
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %indvars.iv) #5
  %31 = load i32, ptr %30, align 4, !tbaa !29
  %32 = zext i32 %31 to i64
  %33 = icmp eq i64 %indvars.iv74, %32
  br i1 %33, label %34, label %39

34:                                               ; preds = %.lr.ph
  %35 = load double, ptr %16, align 8, !tbaa !30
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %indvars.iv) #5
  %37 = load double, ptr %36, align 8, !tbaa !50
  %38 = fadd double %35, %37
  store double %38, ptr %36, align 8, !tbaa !50
  br label %39

39:                                               ; preds = %.lr.ph, %34
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %40 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %14, i64 noundef %indvars.iv.next75) #5
  %41 = load i32, ptr %40, align 4, !tbaa !29
  %42 = sext i32 %41 to i64
  %43 = icmp slt i64 %indvars.iv.next, %42
  br i1 %43, label %.lr.ph, label %.loopexit, !llvm.loop !51

44:                                               ; preds = %._crit_edge
  %45 = load i32, ptr %21, align 8, !tbaa !28
  %46 = icmp eq i32 %45, 0
  %47 = load i32, ptr %11, align 4
  %48 = icmp slt i32 %47, 15001
  %or.cond = select i1 %46, i1 %48, i1 false
  br i1 %or.cond, label %49, label %59

49:                                               ; preds = %44
  invoke void @_ZL27computeStartingPointBoundedR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(184) %10, ptr noundef nonnull align 8 dereferenceable(132) %6)
          to label %50 unwind label %57

50:                                               ; preds = %49
  %51 = load i32, ptr %8, align 4, !tbaa !5
  switch i32 %51, label %62 [
    i32 2, label %52
    i32 3, label %.invoke
  ]

52:                                               ; preds = %50
  %53 = getelementptr inbounds i8, ptr %10, i64 72
  %54 = invoke noundef nonnull align 8 dereferenceable(56) ptr @_ZN8QpVectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(56) %9, ptr noundef nonnull align 8 dereferenceable(56) %53)
          to label %.invoke unwind label %57

55:                                               ; preds = %._crit_edge
  %56 = landingpad { ptr, i32 }
          cleanup
  br label %66

57:                                               ; preds = %.invoke, %62, %59, %52, %49
  %58 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN21QpHotstartInformationD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %10) #5
  br label %66

59:                                               ; preds = %44
  invoke void @_ZL25computeStartingPointHighsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(184) %10, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(104) %5, ptr noundef nonnull align 8 dereferenceable(132) %6)
          to label %60 unwind label %57

60:                                               ; preds = %59
  %61 = load i32, ptr %8, align 4, !tbaa !5
  %.not = icmp eq i32 %61, 0
  br i1 %.not, label %62, label %.invoke

62:                                               ; preds = %50, %60
  %63 = invoke noundef i32 @_Z14solveqp_actualR8InstanceR8SettingsR21QpHotstartInformationR10StatisticsR13QpModelStatusR10QpSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(184) %10, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(272) %9, ptr noundef nonnull align 8 dereferenceable(132) %6)
          to label %.invoke unwind label %57

.invoke:                                          ; preds = %52, %62, %60, %50
  %64 = invoke noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(211) %1, ptr noundef nonnull align 8 dereferenceable(216) %2, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(272) %9, ptr noundef nonnull align 4 dereferenceable(4) %3, ptr noundef nonnull align 8 dereferenceable(96) %4, ptr noundef nonnull align 8 dereferenceable(104) %5)
          to label %65 unwind label %57

65:                                               ; preds = %.invoke
  call void @_ZN21QpHotstartInformationD2Ev(ptr noundef nonnull align 8 dereferenceable(184) %10) #5
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %10) #5
  call void @_ZN10QpSolutionD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %9) #5
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  ret i32 %64

66:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %10) #5
  call void @_ZN10QpSolutionD2Ev(ptr noundef nonnull align 8 dereferenceable(272) %9) #5
  call void @llvm.lifetime.end.p0(i64 272, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10QpSolutionC2ER8Instance(ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(512)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN21QpHotstartInformationC2Eii(ptr noundef nonnull align 8 dereferenceable(184), i32 noundef, i32 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL27computeStartingPointBoundedR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(56) ptr @_ZN8QpVectoraSERKS_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(56)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden noundef i32 @_ZL11quass2highsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR10QpSolutionR16HighsModelStatusR10HighsBasisR13HighsSolution(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25computeStartingPointHighsR8InstanceR8SettingsR10StatisticsR13QpModelStatusR21QpHotstartInformationR16HighsModelStatusR10HighsBasisR13HighsSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(104), ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #1

declare noundef i32 @_Z14solveqp_actualR8InstanceR8SettingsR21QpHotstartInformationR10StatisticsR13QpModelStatusR10QpSolutionR10HighsTimer(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(211), ptr noundef nonnull align 8 dereferenceable(184), ptr noundef nonnull align 8 dereferenceable(216), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(272), ptr noundef nonnull align 8 dereferenceable(132)) local_unnamed_addr #3

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { 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 = !{!"_ZTS13QpModelStatus", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTS8Instance", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !13, i64 24, !23, i64 80, !19, i64 248, !19, i64 272, !23, i64 296, !19, i64 464, !19, i64 488}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"_ZTS8QpVector", !11, i64 0, !11, i64 4, !14, i64 8, !19, i64 32}
!14 = !{!"_ZTSSt6vectorIiSaIiEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !7, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{!"_ZTS6Matrix", !24, i64 0, !25, i64 80, !24, i64 88}
!24 = !{!"_ZTS10MatrixBase", !11, i64 0, !11, i64 4, !14, i64 8, !14, i64 32, !19, i64 56}
!25 = !{!"bool", !7, i64 0}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !11, i64 8}
!29 = !{!11, !11, i64 0}
!30 = !{!31, !12, i64 80}
!31 = !{!"_ZTS8Settings", !32, i64 0, !12, i64 8, !12, i64 16, !33, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !25, i64 72, !12, i64 80, !34, i64 88, !25, i64 92, !25, i64 93, !11, i64 96, !35, i64 104, !40, i64 128, !45, i64 152, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !11, i64 192, !11, i64 196, !12, i64 200, !25, i64 208, !25, i64 209, !25, i64 210}
!32 = !{!"_ZTS17RatiotestStrategy", !7, i64 0}
!33 = !{!"_ZTS15PricingStrategy", !7, i64 0}
!34 = !{!"_ZTS14Phase1Strategy", !7, i64 0}
!35 = !{!"_ZTS12EventhandlerIR10StatisticsE", !36, i64 0}
!36 = !{!"_ZTSSt6vectorISt8functionIFvR10StatisticsEESaIS4_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR10StatisticsEESaIS4_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!40 = !{!"_ZTS12EventhandlerIR13QpModelStatusE", !41, i64 0}
!41 = !{!"_ZTSSt6vectorISt8functionIFvR13QpModelStatusEESaIS4_EE", !42, i64 0}
!42 = !{!"_ZTSSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE", !43, i64 0}
!43 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE12_Vector_implE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvR13QpModelStatusEESaIS4_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!45 = !{!"_ZTS12EventhandlerIRiE", !46, i64 0}
!46 = !{!"_ZTSSt6vectorISt8functionIFvRiEESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseISt8functionIFvRiEESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvRiEESaIS3_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseISt8functionIFvRiEESaIS3_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!50 = !{!12, !12, i64 0}
!51 = distinct !{!51, !27}


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