; LLVM IR from ERGO-Code/HiGHS :: src/interfaces (highs_c_api)

; 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.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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.HighsLp = type { i32, i32, %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %"class.std::vector", %class.HighsSparseMatrix, i32, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, %"class.std::vector.18", %"class.std::vector.18", %"class.std::vector.23", %struct.HighsNameHash, %struct.HighsNameHash, i32, i32, %struct.HighsScale, i8, i8, i32, i8, %struct.HighsLpMods }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsVarType, std::allocator<HighsVarType>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.HighsNameHash = type { %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%struct.HighsScale = type { i32, i8, i32, i32, double, %"class.std::vector", %"class.std::vector" }
%struct.HighsLpMods = type { %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector", %"class.std::vector", %"class.std::vector.23", %"class.std::vector.13", %"class.std::vector", %"class.std::vector.13", %"class.std::vector", %"class.std::vector.13", %"class.std::vector", %"class.std::vector", %"class.std::vector" }

@.str.52 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_ = external hidden unnamed_addr constant [217 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 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

declare noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112)) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_(ptr noundef nonnull align 8 dereferenceable(920) %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15) #2 personality ptr @__gxx_personality_v0 {
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %class.HighsSparseMatrix, align 8
  %36 = alloca ptr, align 8
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  store ptr %0, ptr %17, align 8, !tbaa !5
  store i32 %1, ptr %18, align 4, !tbaa !9
  store ptr %2, ptr %19, align 8, !tbaa !5
  store ptr %3, ptr %20, align 8, !tbaa !5
  store ptr %4, ptr %21, align 8, !tbaa !5
  store ptr %5, ptr %22, align 8, !tbaa !5
  store ptr %6, ptr %23, align 8, !tbaa !5
  store ptr %7, ptr %24, align 8, !tbaa !5
  store ptr %8, ptr %25, align 8, !tbaa !5
  store ptr %9, ptr %26, align 8, !tbaa !5
  store ptr %10, ptr %27, align 8, !tbaa !5
  store ptr %11, ptr %28, align 8, !tbaa !5
  store ptr %12, ptr %29, align 8, !tbaa !5
  store ptr %13, ptr %30, align 8, !tbaa !5
  store ptr %14, ptr %31, align 8, !tbaa !5
  store ptr %15, ptr %32, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #8
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = icmp eq i32 %39, 1
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 1, i32 2
  store i32 %42, ptr %33, align 4, !tbaa !11
  %43 = load ptr, ptr %17, align 8, !tbaa !5
  %44 = getelementptr inbounds %class.HighsLp, ptr %43, i32 0, i32 8
  %45 = load i32, ptr %44, align 8, !tbaa !13
  %46 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %45, ptr %46, align 4, !tbaa !9
  %47 = load ptr, ptr %17, align 8, !tbaa !5
  %48 = getelementptr inbounds %class.HighsLp, ptr %47, i32 0, i32 9
  %49 = load double, ptr %48, align 8, !tbaa !46
  %50 = load ptr, ptr %23, align 8, !tbaa !5
  store double %49, ptr %50, align 8, !tbaa !47
  %51 = load ptr, ptr %17, align 8, !tbaa !5
  %52 = getelementptr inbounds %class.HighsLp, ptr %51, i32 0, i32 0
  %53 = load i32, ptr %52, align 8, !tbaa !48
  %54 = load ptr, ptr %19, align 8, !tbaa !5
  store i32 %53, ptr %54, align 4, !tbaa !9
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.HighsLp, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 4, !tbaa !49
  %58 = load ptr, ptr %20, align 8, !tbaa !5
  store i32 %57, ptr %58, align 4, !tbaa !9
  %59 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %59, align 4, !tbaa !9
  %60 = load ptr, ptr %19, align 8, !tbaa !5
  %61 = load i32, ptr %60, align 4, !tbaa !9
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %100

63:                                               ; preds = %16
  %64 = load ptr, ptr %24, align 8, !tbaa !5
  %65 = icmp ne ptr %64, null
  br i1 %65, label %66, label %75

66:                                               ; preds = %63
  %67 = load ptr, ptr %24, align 8, !tbaa !5
  %68 = load ptr, ptr %17, align 8, !tbaa !5
  %69 = getelementptr inbounds %class.HighsLp, ptr %68, i32 0, i32 2
  %70 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %69) #8
  %71 = load ptr, ptr %19, align 8, !tbaa !5
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = mul i64 %73, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %67, ptr align 8 %70, i64 %74, i1 false)
  br label %75

75:                                               ; preds = %66, %63
  %76 = load ptr, ptr %25, align 8, !tbaa !5
  %77 = icmp ne ptr %76, null
  br i1 %77, label %78, label %87

78:                                               ; preds = %75
  %79 = load ptr, ptr %25, align 8, !tbaa !5
  %80 = load ptr, ptr %17, align 8, !tbaa !5
  %81 = getelementptr inbounds %class.HighsLp, ptr %80, i32 0, i32 3
  %82 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %81) #8
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = load i32, ptr %83, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = mul i64 %85, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %79, ptr align 8 %82, i64 %86, i1 false)
  br label %87

87:                                               ; preds = %78, %75
  %88 = load ptr, ptr %26, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %99

90:                                               ; preds = %87
  %91 = load ptr, ptr %26, align 8, !tbaa !5
  %92 = load ptr, ptr %17, align 8, !tbaa !5
  %93 = getelementptr inbounds %class.HighsLp, ptr %92, i32 0, i32 4
  %94 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #8
  %95 = load ptr, ptr %19, align 8, !tbaa !5
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = mul i64 %97, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %91, ptr align 8 %94, i64 %98, i1 false)
  br label %99

99:                                               ; preds = %90, %87
  br label %100

100:                                              ; preds = %99, %16
  %101 = load ptr, ptr %20, align 8, !tbaa !5
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %104, label %129

104:                                              ; preds = %100
  %105 = load ptr, ptr %27, align 8, !tbaa !5
  %106 = icmp ne ptr %105, null
  br i1 %106, label %107, label %116

107:                                              ; preds = %104
  %108 = load ptr, ptr %27, align 8, !tbaa !5
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = getelementptr inbounds %class.HighsLp, ptr %109, i32 0, i32 5
  %111 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %110) #8
  %112 = load ptr, ptr %20, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = mul i64 %114, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %108, ptr align 8 %111, i64 %115, i1 false)
  br label %116

116:                                              ; preds = %107, %104
  %117 = load ptr, ptr %28, align 8, !tbaa !5
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %128

119:                                              ; preds = %116
  %120 = load ptr, ptr %28, align 8, !tbaa !5
  %121 = load ptr, ptr %17, align 8, !tbaa !5
  %122 = getelementptr inbounds %class.HighsLp, ptr %121, i32 0, i32 6
  %123 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %122) #8
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %120, ptr align 8 %123, i64 %127, i1 false)
  br label %128

128:                                              ; preds = %119, %116
  br label %129

129:                                              ; preds = %128, %100
  %130 = load ptr, ptr %19, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %133, label %266

133:                                              ; preds = %129
  %134 = load ptr, ptr %20, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %137, label %266

137:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #8
  %138 = load i32, ptr %33, align 4, !tbaa !11
  %139 = icmp eq i32 %138, 1
  br i1 %139, label %140, label %143

140:                                              ; preds = %137
  %141 = load ptr, ptr %19, align 8, !tbaa !5
  %142 = load i32, ptr %141, align 4, !tbaa !9
  br label %146

143:                                              ; preds = %137
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = load i32, ptr %144, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %143, %140
  %147 = phi i32 [ %142, %140 ], [ %145, %143 ]
  store i32 %147, ptr %34, align 4, !tbaa !9
  %148 = load i32, ptr %33, align 4, !tbaa !11
  %149 = icmp eq i32 %148, 1
  br i1 %149, label %150, label %154

150:                                              ; preds = %146
  %151 = load ptr, ptr %17, align 8, !tbaa !5
  %152 = getelementptr inbounds %class.HighsLp, ptr %151, i32 0, i32 7
  %153 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %152)
  br i1 %153, label %161, label %154

154:                                              ; preds = %150, %146
  %155 = load i32, ptr %33, align 4, !tbaa !11
  %156 = icmp eq i32 %155, 2
  br i1 %156, label %157, label %204

157:                                              ; preds = %154
  %158 = load ptr, ptr %17, align 8, !tbaa !5
  %159 = getelementptr inbounds %class.HighsLp, ptr %158, i32 0, i32 7
  %160 = call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %159)
  br i1 %160, label %161, label %204

161:                                              ; preds = %157, %150
  %162 = load ptr, ptr %17, align 8, !tbaa !5
  %163 = getelementptr inbounds %class.HighsLp, ptr %162, i32 0, i32 7
  %164 = call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %163)
  %165 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %164, ptr %165, align 4, !tbaa !9
  %166 = load ptr, ptr %29, align 8, !tbaa !5
  %167 = icmp ne ptr %166, null
  br i1 %167, label %168, label %177

168:                                              ; preds = %161
  %169 = load ptr, ptr %29, align 8, !tbaa !5
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  %171 = getelementptr inbounds %class.HighsLp, ptr %170, i32 0, i32 7
  %172 = getelementptr inbounds %class.HighsSparseMatrix, ptr %171, i32 0, i32 3
  %173 = call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %172) #8
  %174 = load i32, ptr %34, align 4, !tbaa !9
  %175 = sext i32 %174 to i64
  %176 = mul i64 %175, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %169, ptr align 4 %173, i64 %176, i1 false)
  br label %177

177:                                              ; preds = %168, %161
  %178 = load ptr, ptr %30, align 8, !tbaa !5
  %179 = icmp ne ptr %178, null
  br i1 %179, label %180, label %190

180:                                              ; preds = %177
  %181 = load ptr, ptr %30, align 8, !tbaa !5
  %182 = load ptr, ptr %17, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.HighsLp, ptr %182, i32 0, i32 7
  %184 = getelementptr inbounds %class.HighsSparseMatrix, ptr %183, i32 0, i32 5
  %185 = call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %184) #8
  %186 = load ptr, ptr %21, align 8, !tbaa !5
  %187 = load i32, ptr %186, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = mul i64 %188, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %181, ptr align 4 %185, i64 %189, i1 false)
  br label %190

190:                                              ; preds = %180, %177
  %191 = load ptr, ptr %31, align 8, !tbaa !5
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %203

193:                                              ; preds = %190
  %194 = load ptr, ptr %31, align 8, !tbaa !5
  %195 = load ptr, ptr %17, align 8, !tbaa !5
  %196 = getelementptr inbounds %class.HighsLp, ptr %195, i32 0, i32 7
  %197 = getelementptr inbounds %class.HighsSparseMatrix, ptr %196, i32 0, i32 6
  %198 = call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %197) #8
  %199 = load ptr, ptr %21, align 8, !tbaa !5
  %200 = load i32, ptr %199, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = mul i64 %201, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %194, ptr align 8 %198, i64 %202, i1 false)
  br label %203

203:                                              ; preds = %193, %190
  br label %265

204:                                              ; preds = %157, %154
  call void @llvm.lifetime.start.p0(i64 112, ptr %35) #8
  %205 = load ptr, ptr %17, align 8, !tbaa !5
  %206 = getelementptr inbounds %class.HighsLp, ptr %205, i32 0, i32 7
  call void @_ZN17HighsSparseMatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(112) %35, ptr noundef nonnull align 8 dereferenceable(112) %206)
  %207 = load i32, ptr %33, align 4, !tbaa !11
  %208 = icmp eq i32 %207, 1
  br i1 %208, label %209, label %221

209:                                              ; preds = %204
  %210 = invoke noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
          to label %211 unwind label %214

211:                                              ; preds = %209
  br i1 %210, label %212, label %213

212:                                              ; preds = %211
  br label %219

213:                                              ; preds = %211
  call void @__assert_fail(ptr noundef @.str.52, ptr noundef @.str.53, i32 noundef 1219, ptr noundef @__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_) #9
  unreachable

214:                                              ; preds = %229, %227, %221, %219, %209
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %36, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %37, align 4
  call void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %35) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  br label %299

218:                                              ; No predecessors!
  br label %219

219:                                              ; preds = %218, %212
  invoke void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
          to label %220 unwind label %214

220:                                              ; preds = %219
  br label %229

221:                                              ; preds = %204
  %222 = invoke noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
          to label %223 unwind label %214

223:                                              ; preds = %221
  br i1 %222, label %224, label %225

224:                                              ; preds = %223
  br label %227

225:                                              ; preds = %223
  call void @__assert_fail(ptr noundef @.str.54, ptr noundef @.str.53, i32 noundef 1222, ptr noundef @__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_) #9
  unreachable

226:                                              ; No predecessors!
  br label %227

227:                                              ; preds = %226, %224
  invoke void @_ZN17HighsSparseMatrix13ensureRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
          to label %228 unwind label %214

228:                                              ; preds = %227
  br label %229

229:                                              ; preds = %228, %220
  %230 = invoke noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %35)
          to label %231 unwind label %214

231:                                              ; preds = %229
  %232 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %230, ptr %232, align 4, !tbaa !9
  %233 = load ptr, ptr %29, align 8, !tbaa !5
  %234 = icmp ne ptr %233, null
  br i1 %234, label %235, label %242

235:                                              ; preds = %231
  %236 = load ptr, ptr %29, align 8, !tbaa !5
  %237 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 3
  %238 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %237) #8
  %239 = load i32, ptr %34, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = mul i64 %240, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %236, ptr align 4 %238, i64 %241, i1 false)
  br label %242

242:                                              ; preds = %235, %231
  %243 = load ptr, ptr %30, align 8, !tbaa !5
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %253

245:                                              ; preds = %242
  %246 = load ptr, ptr %30, align 8, !tbaa !5
  %247 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 5
  %248 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %247) #8
  %249 = load ptr, ptr %21, align 8, !tbaa !5
  %250 = load i32, ptr %249, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = mul i64 %251, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %246, ptr align 4 %248, i64 %252, i1 false)
  br label %253

253:                                              ; preds = %245, %242
  %254 = load ptr, ptr %31, align 8, !tbaa !5
  %255 = icmp ne ptr %254, null
  br i1 %255, label %256, label %264

256:                                              ; preds = %253
  %257 = load ptr, ptr %31, align 8, !tbaa !5
  %258 = getelementptr inbounds %class.HighsSparseMatrix, ptr %35, i32 0, i32 6
  %259 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %258) #8
  %260 = load ptr, ptr %21, align 8, !tbaa !5
  %261 = load i32, ptr %260, align 4, !tbaa !9
  %262 = sext i32 %261 to i64
  %263 = mul i64 %262, 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %257, ptr align 8 %259, i64 %263, i1 false)
  br label %264

264:                                              ; preds = %256, %253
  call void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %35) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr %35) #8
  br label %265

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

266:                                              ; preds = %265, %133, %129
  %267 = load ptr, ptr %17, align 8, !tbaa !5
  %268 = getelementptr inbounds %class.HighsLp, ptr %267, i32 0, i32 16
  %269 = call noundef i64 @_ZNKSt6vectorI12HighsVarTypeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %268) #8
  %270 = trunc i64 %269 to i32
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %298

272:                                              ; preds = %266
  %273 = load ptr, ptr %32, align 8, !tbaa !5
  %274 = icmp ne ptr %273, null
  br i1 %274, label %275, label %298

275:                                              ; preds = %272
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #8
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %294, %275
  %277 = load i32, ptr %38, align 4, !tbaa !9
  %278 = load ptr, ptr %19, align 8, !tbaa !5
  %279 = load i32, ptr %278, align 4, !tbaa !9
  %280 = icmp slt i32 %277, %279
  br i1 %280, label %282, label %281

281:                                              ; preds = %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #8
  br label %297

282:                                              ; preds = %276
  %283 = load ptr, ptr %17, align 8, !tbaa !5
  %284 = getelementptr inbounds %class.HighsLp, ptr %283, i32 0, i32 16
  %285 = load i32, ptr %38, align 4, !tbaa !9
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %284, i64 noundef %286) #8
  %288 = load i8, ptr %287, align 1, !tbaa !50
  %289 = zext i8 %288 to i32
  %290 = load ptr, ptr %32, align 8, !tbaa !5
  %291 = load i32, ptr %38, align 4, !tbaa !9
  %292 = sext i32 %291 to i64
  %293 = getelementptr inbounds i32, ptr %290, i64 %292
  store i32 %289, ptr %293, align 4, !tbaa !9
  br label %294

294:                                              ; preds = %282
  %295 = load i32, ptr %38, align 4, !tbaa !9
  %296 = add nsw i32 %295, 1
  store i32 %296, ptr %38, align 4, !tbaa !9
  br label %276, !llvm.loop !52

297:                                              ; preds = %281
  br label %298

298:                                              ; preds = %297, %272, %266
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #8
  ret i32 0

299:                                              ; preds = %214
  %300 = load ptr, ptr %36, align 8
  %301 = load i32, ptr %37, align 4
  %302 = insertvalue { ptr, i32 } poison, ptr %300, 0
  %303 = insertvalue { ptr, i32 } %302, i32 %301, 1
  resume { ptr, i32 } %303
}

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #1

declare noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #1

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

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

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

declare void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #1

declare void @_ZN17HighsSparseMatrix13ensureRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #7 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !12, i64 0}
!12 = !{!"_ZTS12MatrixFormat", !7, i64 0}
!13 = !{!14, !24, i64 240}
!14 = !{!"_ZTS7HighsLp", !10, i64 0, !10, i64 4, !15, i64 8, !15, i64 32, !15, i64 56, !15, i64 80, !15, i64 104, !19, i64 128, !24, i64 240, !25, i64 248, !26, i64 256, !26, i64 288, !10, i64 320, !10, i64 324, !29, i64 328, !29, i64 352, !33, i64 376, !37, i64 400, !37, i64 456, !10, i64 512, !10, i64 516, !43, i64 520, !44, i64 592, !44, i64 593, !10, i64 596, !44, i64 600, !45, i64 608}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTS17HighsSparseMatrix", !12, i64 0, !10, i64 4, !10, i64 8, !20, i64 16, !20, i64 40, !20, i64 64, !15, i64 88}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!"_ZTS8ObjSense", !7, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !28, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"long", !7, i64 0}
!29 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !30, i64 0}
!30 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!33 = !{!"_ZTSSt6vectorI12HighsVarTypeSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI12HighsVarTypeSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTS13HighsNameHash", !38, i64 0}
!38 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !28, i64 8, !40, i64 16, !28, i64 24, !41, i64 32, !6, i64 48}
!40 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!41 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !42, i64 0, !28, i64 8}
!42 = !{!"float", !7, i64 0}
!43 = !{!"_ZTS10HighsScale", !10, i64 0, !44, i64 4, !10, i64 8, !10, i64 12, !25, i64 16, !15, i64 24, !15, i64 48}
!44 = !{!"bool", !7, i64 0}
!45 = !{!"_ZTS11HighsLpMods", !20, i64 0, !20, i64 24, !15, i64 48, !15, i64 72, !33, i64 96, !20, i64 120, !15, i64 144, !20, i64 168, !15, i64 192, !20, i64 216, !15, i64 240, !15, i64 264, !15, i64 288}
!46 = !{!14, !25, i64 248}
!47 = !{!25, !25, i64 0}
!48 = !{!14, !10, i64 0}
!49 = !{!14, !10, i64 4}
!50 = !{!51, !51, i64 0}
!51 = !{!"_ZTS12HighsVarType", !7, i64 0}
!52 = distinct !{!52, !53}
!53 = !{!"llvm.loop.mustprogress"}


; 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.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector.13", %"class.std::vector" }
%"class.std::vector.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = 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 }

@.str.52 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.53 = external hidden unnamed_addr constant [80 x i8], align 1
@__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_ = external hidden unnamed_addr constant [217 x i8], align 1
@.str.54 = external hidden unnamed_addr constant [25 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

declare noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_(ptr noundef nonnull align 8 dereferenceable(920) %0, i32 noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, ptr nocapture noundef writeonly %5, ptr nocapture noundef writeonly %6, ptr noundef writeonly %7, ptr noundef writeonly %8, ptr noundef writeonly %9, ptr noundef writeonly %10, ptr noundef writeonly %11, ptr noundef writeonly %12, ptr noundef writeonly %13, ptr noundef writeonly %14, ptr noundef writeonly %15) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %17 = alloca %class.HighsSparseMatrix, align 8
  %.not95 = icmp eq i32 %1, 1
  %18 = getelementptr inbounds i8, ptr %0, i64 240
  %19 = load i32, ptr %18, align 8, !tbaa !5
  store i32 %19, ptr %5, align 4, !tbaa !43
  %20 = getelementptr inbounds i8, ptr %0, i64 248
  %21 = load double, ptr %20, align 8, !tbaa !44
  store double %21, ptr %6, align 8, !tbaa !45
  %22 = load i32, ptr %0, align 8, !tbaa !46
  store i32 %22, ptr %2, align 4, !tbaa !43
  %23 = getelementptr inbounds i8, ptr %0, i64 4
  %24 = load i32, ptr %23, align 4, !tbaa !47
  store i32 %24, ptr %3, align 4, !tbaa !43
  store i32 0, ptr %4, align 4, !tbaa !43
  %25 = load i32, ptr %2, align 4, !tbaa !43
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %27, label %48

27:                                               ; preds = %16
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %34, label %28

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #8
  %31 = load i32, ptr %2, align 4, !tbaa !43
  %32 = sext i32 %31 to i64
  %33 = shl nsw i64 %32, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %7, ptr align 8 %30, i64 %33, i1 false)
  br label %34

34:                                               ; preds = %28, %27
  %.not91 = icmp eq ptr %8, null
  br i1 %.not91, label %41, label %35

35:                                               ; preds = %34
  %36 = getelementptr inbounds i8, ptr %0, i64 32
  %37 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #8
  %38 = load i32, ptr %2, align 4, !tbaa !43
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %8, ptr align 8 %37, i64 %40, i1 false)
  br label %41

41:                                               ; preds = %35, %34
  %.not92 = icmp eq ptr %9, null
  br i1 %.not92, label %48, label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  %44 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %43) #8
  %45 = load i32, ptr %2, align 4, !tbaa !43
  %46 = sext i32 %45 to i64
  %47 = shl nsw i64 %46, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %9, ptr align 8 %44, i64 %47, i1 false)
  br label %48

48:                                               ; preds = %41, %42, %16
  %49 = load i32, ptr %3, align 4, !tbaa !43
  %50 = icmp sgt i32 %49, 0
  br i1 %50, label %51, label %65

51:                                               ; preds = %48
  %.not93 = icmp eq ptr %10, null
  br i1 %.not93, label %58, label %52

52:                                               ; preds = %51
  %53 = getelementptr inbounds i8, ptr %0, i64 80
  %54 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %53) #8
  %55 = load i32, ptr %3, align 4, !tbaa !43
  %56 = sext i32 %55 to i64
  %57 = shl nsw i64 %56, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %10, ptr align 8 %54, i64 %57, i1 false)
  br label %58

58:                                               ; preds = %52, %51
  %.not94 = icmp eq ptr %11, null
  br i1 %.not94, label %65, label %59

59:                                               ; preds = %58
  %60 = getelementptr inbounds i8, ptr %0, i64 104
  %61 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %60) #8
  %62 = load i32, ptr %3, align 4, !tbaa !43
  %63 = sext i32 %62 to i64
  %64 = shl nsw i64 %63, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %11, ptr align 8 %61, i64 %64, i1 false)
  br label %65

65:                                               ; preds = %58, %59, %48
  %66 = load i32, ptr %2, align 4, !tbaa !43
  %67 = icmp sgt i32 %66, 0
  br i1 %67, label %68, label %133

68:                                               ; preds = %65
  %69 = load i32, ptr %3, align 4, !tbaa !43
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %71, label %133

71:                                               ; preds = %68
  %. = select i1 %.not95, i32 %66, i32 %69
  %72 = getelementptr inbounds i8, ptr %0, i64 128
  br i1 %.not95, label %73, label %.critedge

73:                                               ; preds = %71
  %74 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %72)
  br i1 %74, label %76, label %98

.critedge:                                        ; preds = %71
  %75 = tail call noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %72)
  br i1 %75, label %76, label %105

76:                                               ; preds = %.critedge, %73
  %77 = getelementptr inbounds i8, ptr %0, i64 128
  %78 = tail call noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %77)
  store i32 %78, ptr %4, align 4, !tbaa !43
  %.not99 = icmp eq ptr %12, null
  br i1 %.not99, label %84, label %79

79:                                               ; preds = %76
  %80 = getelementptr inbounds i8, ptr %0, i64 144
  %81 = tail call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %80) #8
  %82 = zext nneg i32 %. to i64
  %83 = shl nuw nsw i64 %82, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %12, ptr align 4 %81, i64 %83, i1 false)
  br label %84

84:                                               ; preds = %79, %76
  %.not100 = icmp eq ptr %13, null
  br i1 %.not100, label %91, label %85

85:                                               ; preds = %84
  %86 = getelementptr inbounds i8, ptr %0, i64 192
  %87 = tail call noundef ptr @_ZNKSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %86) #8
  %88 = load i32, ptr %4, align 4, !tbaa !43
  %89 = sext i32 %88 to i64
  %90 = shl nsw i64 %89, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %13, ptr align 4 %87, i64 %90, i1 false)
  br label %91

91:                                               ; preds = %85, %84
  %.not101 = icmp eq ptr %14, null
  br i1 %.not101, label %133, label %92

92:                                               ; preds = %91
  %93 = getelementptr inbounds i8, ptr %0, i64 216
  %94 = tail call noundef ptr @_ZNKSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #8
  %95 = load i32, ptr %4, align 4, !tbaa !43
  %96 = sext i32 %95 to i64
  %97 = shl nsw i64 %96, 3
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %14, ptr align 8 %94, i64 %97, i1 false)
  br label %133

98:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %17) #8
  call void @_ZN17HighsSparseMatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(112) %17, ptr noundef nonnull align 8 dereferenceable(112) %72)
  %99 = invoke noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %100 unwind label %102

100:                                              ; preds = %98
  br i1 %99, label %104, label %101

101:                                              ; preds = %100
  call void @__assert_fail(ptr noundef nonnull @.str.52, ptr noundef nonnull @.str.53, i32 noundef 1219, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_) #9
  unreachable

102:                                              ; preds = %110, %109, %105, %104, %98
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %17) #8
  resume { ptr, i32 } %103

104:                                              ; preds = %100
  invoke void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %110 unwind label %102

105:                                              ; preds = %.critedge
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %17) #8
  call void @_ZN17HighsSparseMatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(112) %17, ptr noundef nonnull align 8 dereferenceable(112) %72)
  %106 = invoke noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %107 unwind label %102

107:                                              ; preds = %105
  br i1 %106, label %109, label %108

108:                                              ; preds = %107
  call void @__assert_fail(ptr noundef nonnull @.str.54, ptr noundef nonnull @.str.53, i32 noundef 1222, ptr noundef nonnull @__PRETTY_FUNCTION__._Z20Highs_getHighsLpDataRK7HighsLpiPiS2_S2_S2_PdS3_S3_S3_S3_S3_S2_S2_S3_S2_) #9
  unreachable

109:                                              ; preds = %107
  invoke void @_ZN17HighsSparseMatrix13ensureRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %110 unwind label %102

110:                                              ; preds = %109, %104
  %111 = invoke noundef i32 @_ZNK17HighsSparseMatrix5numNzEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %112 unwind label %102

112:                                              ; preds = %110
  store i32 %111, ptr %4, align 4, !tbaa !43
  %.not96 = icmp eq ptr %12, null
  br i1 %.not96, label %118, label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds i8, ptr %17, i64 16
  %115 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %114) #8
  %116 = zext nneg i32 %. to i64
  %117 = shl nuw nsw i64 %116, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %12, ptr align 4 %115, i64 %117, i1 false)
  br label %118

118:                                              ; preds = %113, %112
  %.not97 = icmp eq ptr %13, null
  br i1 %.not97, label %125, label %119

119:                                              ; preds = %118
  %120 = getelementptr inbounds i8, ptr %17, i64 64
  %121 = call noundef ptr @_ZNSt6vectorIiSaIiEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %120) #8
  %122 = load i32, ptr %4, align 4, !tbaa !43
  %123 = sext i32 %122 to i64
  %124 = shl nsw i64 %123, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %13, ptr align 4 %121, i64 %124, i1 false)
  br label %125

125:                                              ; preds = %119, %118
  %.not98 = icmp eq ptr %14, null
  br i1 %.not98, label %132, label %126

126:                                              ; preds = %125
  %127 = getelementptr inbounds i8, ptr %17, i64 88
  %128 = call noundef ptr @_ZNSt6vectorIdSaIdEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %127) #8
  %129 = load i32, ptr %4, align 4, !tbaa !43
  %130 = sext i32 %129 to i64
  %131 = shl nsw i64 %130, 3
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 8 %14, ptr align 8 %128, i64 %131, i1 false)
  br label %132

132:                                              ; preds = %126, %125
  call void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #8
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %17) #8
  br label %133

133:                                              ; preds = %132, %92, %91, %68, %65
  %134 = getelementptr inbounds i8, ptr %0, i64 376
  %135 = call noundef i64 @_ZNKSt6vectorI12HighsVarTypeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %134) #8
  %136 = and i64 %135, 4294967295
  %137 = icmp ne i64 %136, 0
  %138 = icmp ne ptr %15, null
  %or.cond = and i1 %138, %137
  br i1 %or.cond, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %133
  %139 = load i32, ptr %2, align 4, !tbaa !43
  %140 = icmp sgt i32 %139, 0
  br i1 %140, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader ]
  %141 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNKSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %indvars.iv) #8
  %142 = load i8, ptr %141, align 1, !tbaa !48
  %143 = zext i8 %142 to i32
  %144 = getelementptr inbounds i32, ptr %15, i64 %indvars.iv
  store i32 %143, ptr %144, align 4, !tbaa !43
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %145 = load i32, ptr %2, align 4, !tbaa !43
  %146 = sext i32 %145 to i64
  %147 = icmp slt i64 %indvars.iv.next, %146
  br i1 %147, label %.lr.ph, label %.loopexit, !llvm.loop !50

.loopexit:                                        ; preds = %.lr.ph, %.preheader, %133
  ret i32 0
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

declare noundef zeroext i1 @_ZNK17HighsSparseMatrix9isColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

declare noundef zeroext i1 @_ZNK17HighsSparseMatrix9isRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

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

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

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

declare void @_ZN17HighsSparseMatrix13ensureColwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

declare void @_ZN17HighsSparseMatrix13ensureRowwiseEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN17HighsSparseMatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #7 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #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, !21, i64 240}
!6 = !{!"_ZTS7HighsLp", !7, i64 0, !7, i64 4, !10, i64 8, !10, i64 32, !10, i64 56, !10, i64 80, !10, i64 104, !15, i64 128, !21, i64 240, !22, i64 248, !23, i64 256, !23, i64 288, !7, i64 320, !7, i64 324, !26, i64 328, !26, i64 352, !30, i64 376, !34, i64 400, !34, i64 456, !7, i64 512, !7, i64 516, !40, i64 520, !41, i64 592, !41, i64 593, !7, i64 596, !41, i64 600, !42, i64 608}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt6vectorIdSaIdEE", !11, i64 0}
!11 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !12, i64 0}
!12 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"_ZTS17HighsSparseMatrix", !16, i64 0, !7, i64 4, !7, i64 8, !17, i64 16, !17, i64 40, !17, i64 64, !10, i64 88}
!16 = !{!"_ZTS12MatrixFormat", !8, i64 0}
!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", !14, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"_ZTS8ObjSense", !8, i64 0}
!22 = !{!"double", !8, i64 0}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !25, i64 8, !8, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!25 = !{!"long", !8, i64 0}
!26 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{!"_ZTSSt6vectorI12HighsVarTypeSaIS0_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseI12HighsVarTypeSaIS0_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseI12HighsVarTypeSaIS0_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!34 = !{!"_ZTS13HighsNameHash", !35, i64 0}
!35 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !14, i64 0, !25, i64 8, !37, i64 16, !25, i64 24, !38, i64 32, !14, i64 48}
!37 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !14, i64 0}
!38 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !39, i64 0, !25, i64 8}
!39 = !{!"float", !8, i64 0}
!40 = !{!"_ZTS10HighsScale", !7, i64 0, !41, i64 4, !7, i64 8, !7, i64 12, !22, i64 16, !10, i64 24, !10, i64 48}
!41 = !{!"bool", !8, i64 0}
!42 = !{!"_ZTS11HighsLpMods", !17, i64 0, !17, i64 24, !10, i64 48, !10, i64 72, !30, i64 96, !17, i64 120, !10, i64 144, !17, i64 168, !10, i64 192, !17, i64 216, !10, i64 240, !10, i64 264, !10, i64 288}
!43 = !{!7, !7, i64 0}
!44 = !{!6, !22, i64 248}
!45 = !{!22, !22, i64 0}
!46 = !{!6, !7, i64 0}
!47 = !{!6, !7, i64 4}
!48 = !{!49, !49, i64 0}
!49 = !{!"_ZTS12HighsVarType", !8, i64 0}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}


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