; LLVM IR from ERGO-Code/HiGHS :: src/model/HighsHessianUtils.ll (Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian)

; 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.HighsHessian = type { i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.8" }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = 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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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 }
%struct.HighsOptionsStruct = type { ptr, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, %"class.std::__cxx11::basic_string", double, double, double, double, double, double, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", i8, i8, i8, i32, i8, i8, i32, i32, double, i32, i32, i32, i8, i32, i8, i8, i8, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, double, double, double, double, double, double, double, double, double, double, double, i8, i8, i8, i8, i32, double, i8, i8, %"class.std::__cxx11::basic_string", double, i32, i32, i8, i8, i8, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, double, i8, i8, %"class.std::__cxx11::basic_string", i8, i32, %struct.HighsLogOptions }
%"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] }
%struct.HighsLogOptions = type <{ ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::function", ptr, i8, [7 x i8] }>
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }

@.str.58 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian = external hidden unnamed_addr constant [67 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1

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

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

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

declare noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian(ptr noundef nonnull align 8 dereferenceable(1020) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i8, align 1
  %18 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.HighsHessian, ptr %19, i32 0, i32 0
  %21 = load i32, ptr %20, align 8, !tbaa !11
  store i32 %21, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %22)
  store i32 %23, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %56, %2
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %6, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %29, label %28

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

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %class.HighsHessian, ptr %30, i32 0, i32 2
  %32 = load i32, ptr %8, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %33) #5
  %35 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %35, ptr %9, align 4, !tbaa !9
  %36 = load i32, ptr %9, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %52

39:                                               ; preds = %29
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %class.HighsHessian, ptr %40, i32 0, i32 3
  %42 = load i32, ptr %9, align 4, !tbaa !9
  %43 = sext i32 %42 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %43) #5
  %45 = load i32, ptr %44, align 4, !tbaa !9
  %46 = load i32, ptr %8, align 4, !tbaa !9
  %47 = icmp ne i32 %45, %46
  br i1 %47, label %48, label %51

48:                                               ; preds = %39
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %5, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %48, %39
  br label %55

52:                                               ; preds = %29
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %5, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %52, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %8, align 4, !tbaa !9
  br label %24, !llvm.loop !22

59:                                               ; preds = %28
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.HighsOptionsStruct, ptr %60, i32 0, i32 130
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = load i32, ptr %5, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %61, i32 noundef 1, ptr noundef @.str.58, i32 noundef %62, i32 noundef %63, i32 noundef %64)
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = load i32, ptr %6, align 4, !tbaa !9
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = sub nsw i32 %66, %67
  %69 = icmp sge i32 %65, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %59
  br label %73

71:                                               ; preds = %59
  call void @__assert_fail(ptr noundef @.str.59, ptr noundef @.str.60, i32 noundef 138, ptr noundef @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #6
  unreachable

72:                                               ; No predecessors!
  br label %73

73:                                               ; preds = %72, %70
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = icmp ne i32 %74, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %73
  store i32 1, ptr %10, align 4
  br label %257

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %78)
  %80 = load i32, ptr %5, align 4, !tbaa !9
  %81 = add nsw i32 %79, %80
  store i32 %81, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %82 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %class.HighsHessian, ptr %83, i32 0, i32 3
  %85 = load i32, ptr %11, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86)
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %class.HighsHessian, ptr %87, i32 0, i32 4
  %89 = load i32, ptr %11, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %91)
  store i32 %92, ptr %13, align 4, !tbaa !9
  %93 = load i32, ptr %12, align 4, !tbaa !9
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %class.HighsHessian, ptr %94, i32 0, i32 2
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %97) #5
  store i32 %93, ptr %98, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %99 = load i32, ptr %6, align 4, !tbaa !9
  %100 = sub nsw i32 %99, 1
  store i32 %100, ptr %15, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %247, %77
  %102 = load i32, ptr %15, align 4, !tbaa !9
  %103 = icmp sge i32 %102, 0
  br i1 %103, label %105, label %104

104:                                              ; preds = %101
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %250

105:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %106 = load i32, ptr %13, align 4, !tbaa !9
  %107 = sub nsw i32 %106, 1
  store i32 %107, ptr %16, align 4, !tbaa !9
  br label %108

108:                                              ; preds = %155, %105
  %109 = load i32, ptr %16, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %class.HighsHessian, ptr %110, i32 0, i32 2
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %113) #5
  %115 = load i32, ptr %114, align 4, !tbaa !9
  %116 = icmp sgt i32 %109, %115
  br i1 %116, label %118, label %117

117:                                              ; preds = %108
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %158

118:                                              ; preds = %108
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.HighsHessian, ptr %119, i32 0, i32 3
  %121 = load i32, ptr %16, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #5
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = icmp ne i32 %124, %125
  br i1 %126, label %127, label %128

127:                                              ; preds = %118
  br label %130

128:                                              ; preds = %118
  call void @__assert_fail(ptr noundef @.str.61, ptr noundef @.str.60, i32 noundef 151, ptr noundef @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #6
  unreachable

129:                                              ; No predecessors!
  br label %130

130:                                              ; preds = %129, %127
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = add nsw i32 %131, -1
  store i32 %132, ptr %12, align 4, !tbaa !9
  %133 = load ptr, ptr %4, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.HighsHessian, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %16, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #5
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = load ptr, ptr %4, align 8, !tbaa !5
  %140 = getelementptr inbounds %class.HighsHessian, ptr %139, i32 0, i32 3
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = sext i32 %141 to i64
  %143 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %140, i64 noundef %142) #5
  store i32 %138, ptr %143, align 4, !tbaa !9
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %class.HighsHessian, ptr %144, i32 0, i32 4
  %146 = load i32, ptr %16, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #5
  %149 = load double, ptr %148, align 8, !tbaa !24
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %class.HighsHessian, ptr %150, i32 0, i32 4
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %151, i64 noundef %153) #5
  store double %149, ptr %154, align 8, !tbaa !24
  br label %155

155:                                              ; preds = %130
  %156 = load i32, ptr %16, align 4, !tbaa !9
  %157 = add nsw i32 %156, -1
  store i32 %157, ptr %16, align 4, !tbaa !9
  br label %108, !llvm.loop !26

158:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  %159 = load ptr, ptr %4, align 8, !tbaa !5
  %160 = getelementptr inbounds %class.HighsHessian, ptr %159, i32 0, i32 2
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = sext i32 %161 to i64
  %163 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %160, i64 noundef %162) #5
  %164 = load i32, ptr %163, align 4, !tbaa !9
  %165 = load i32, ptr %13, align 4, !tbaa !9
  %166 = icmp slt i32 %164, %165
  br i1 %166, label %167, label %207

167:                                              ; preds = %158
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %class.HighsHessian, ptr %168, i32 0, i32 2
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = sext i32 %170 to i64
  %172 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef %171) #5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  store i32 %173, ptr %18, align 4, !tbaa !9
  %174 = load i32, ptr %12, align 4, !tbaa !9
  %175 = add nsw i32 %174, -1
  store i32 %175, ptr %12, align 4, !tbaa !9
  %176 = load ptr, ptr %4, align 8, !tbaa !5
  %177 = getelementptr inbounds %class.HighsHessian, ptr %176, i32 0, i32 3
  %178 = load i32, ptr %18, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %179) #5
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %class.HighsHessian, ptr %182, i32 0, i32 3
  %184 = load i32, ptr %12, align 4, !tbaa !9
  %185 = sext i32 %184 to i64
  %186 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %183, i64 noundef %185) #5
  store i32 %181, ptr %186, align 4, !tbaa !9
  %187 = load ptr, ptr %4, align 8, !tbaa !5
  %188 = getelementptr inbounds %class.HighsHessian, ptr %187, i32 0, i32 4
  %189 = load i32, ptr %18, align 4, !tbaa !9
  %190 = sext i32 %189 to i64
  %191 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %188, i64 noundef %190) #5
  %192 = load double, ptr %191, align 8, !tbaa !24
  %193 = load ptr, ptr %4, align 8, !tbaa !5
  %194 = getelementptr inbounds %class.HighsHessian, ptr %193, i32 0, i32 4
  %195 = load i32, ptr %12, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #5
  store double %192, ptr %197, align 8, !tbaa !24
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %class.HighsHessian, ptr %198, i32 0, i32 3
  %200 = load i32, ptr %18, align 4, !tbaa !9
  %201 = sext i32 %200 to i64
  %202 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %199, i64 noundef %201) #5
  %203 = load i32, ptr %202, align 4, !tbaa !9
  %204 = load i32, ptr %15, align 4, !tbaa !9
  %205 = icmp ne i32 %203, %204
  %206 = zext i1 %205 to i8
  store i8 %206, ptr %17, align 1, !tbaa !27
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %208

207:                                              ; preds = %158
  store i8 1, ptr %17, align 1, !tbaa !27
  br label %208

208:                                              ; preds = %207, %167
  %209 = load i8, ptr %17, align 1, !tbaa !27, !range !29, !noundef !30
  %210 = trunc i8 %209 to i1
  br i1 %210, label %211, label %234

211:                                              ; preds = %208
  %212 = load i32, ptr %12, align 4, !tbaa !9
  %213 = add nsw i32 %212, -1
  store i32 %213, ptr %12, align 4, !tbaa !9
  %214 = load i32, ptr %15, align 4, !tbaa !9
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %class.HighsHessian, ptr %215, i32 0, i32 3
  %217 = load i32, ptr %12, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %216, i64 noundef %218) #5
  store i32 %214, ptr %219, align 4, !tbaa !9
  %220 = load ptr, ptr %4, align 8, !tbaa !5
  %221 = getelementptr inbounds %class.HighsHessian, ptr %220, i32 0, i32 4
  %222 = load i32, ptr %12, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %221, i64 noundef %223) #5
  store double 0.000000e+00, ptr %224, align 8, !tbaa !24
  %225 = load i32, ptr %14, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %14, align 4, !tbaa !9
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = load i32, ptr %5, align 4, !tbaa !9
  %229 = icmp sle i32 %227, %228
  br i1 %229, label %230, label %231

230:                                              ; preds = %211
  br label %233

231:                                              ; preds = %211
  call void @__assert_fail(ptr noundef @.str.62, ptr noundef @.str.60, i32 noundef 178, ptr noundef @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #6
  unreachable

232:                                              ; No predecessors!
  br label %233

233:                                              ; preds = %232, %230
  br label %234

234:                                              ; preds = %233, %208
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %class.HighsHessian, ptr %235, i32 0, i32 2
  %237 = load i32, ptr %15, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %236, i64 noundef %238) #5
  %240 = load i32, ptr %239, align 4, !tbaa !9
  store i32 %240, ptr %13, align 4, !tbaa !9
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = load ptr, ptr %4, align 8, !tbaa !5
  %243 = getelementptr inbounds %class.HighsHessian, ptr %242, i32 0, i32 2
  %244 = load i32, ptr %15, align 4, !tbaa !9
  %245 = sext i32 %244 to i64
  %246 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %243, i64 noundef %245) #5
  store i32 %241, ptr %246, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  br label %247

247:                                              ; preds = %234
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = add nsw i32 %248, -1
  store i32 %249, ptr %15, align 4, !tbaa !9
  br label %101, !llvm.loop !31

250:                                              ; preds = %104
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = icmp eq i32 %251, 0
  br i1 %252, label %253, label %254

253:                                              ; preds = %250
  br label %256

254:                                              ; preds = %250
  call void @__assert_fail(ptr noundef @.str.63, ptr noundef @.str.60, i32 noundef 183, ptr noundef @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #6
  unreachable

255:                                              ; No predecessors!
  br label %256

256:                                              ; preds = %255, %253
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  store i32 0, ptr %10, align 4
  br label %257

257:                                              ; preds = %256, %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  %258 = load i32, ptr %10, align 4
  switch i32 %258, label %260 [
    i32 0, label %259
    i32 1, label %259
  ]

259:                                              ; preds = %257, %257
  ret void

260:                                              ; preds = %257
  unreachable
}

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

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

declare void @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { 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, !10, i64 0}
!12 = !{!"_ZTS12HighsHessian", !10, i64 0, !13, i64 4, !14, i64 8, !14, i64 32, !18, i64 56}
!13 = !{!"_ZTS13HessianFormat", !7, i64 0}
!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", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = distinct !{!26, !23}
!27 = !{!28, !28, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = distinct !{!31, !23}


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

@.str.58 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.59 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.60 = external hidden unnamed_addr constant [81 x i8], align 1
@__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian = external hidden unnamed_addr constant [67 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.62 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [12 x i8], align 1

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

declare noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian(ptr noundef nonnull align 8 dereferenceable(1020) %0, ptr noundef nonnull align 8 dereferenceable(80) %1) local_unnamed_addr #2 {
  %3 = load i32, ptr %1, align 8, !tbaa !5
  %4 = tail call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %5 = icmp sgt i32 %3, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %10

._crit_edge:                                      ; preds = %20, %2
  %.0.lcssa = phi i32 [ 0, %2 ], [ %spec.select, %20 ]
  %8 = getelementptr inbounds i8, ptr %0, i64 896
  tail call void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %8, i32 noundef 1, ptr noundef nonnull @.str.58, i32 noundef %3, i32 noundef %4, i32 noundef %.0.lcssa)
  %9 = sub nsw i32 %3, %4
  %.not = icmp slt i32 %.0.lcssa, %9
  br i1 %.not, label %21, label %22

10:                                               ; preds = %.lr.ph, %20
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %20 ]
  %.0110 = phi i32 [ 0, %.lr.ph ], [ %spec.select, %20 ]
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv) #4
  %12 = load i32, ptr %11, align 4, !tbaa !20
  %13 = icmp slt i32 %12, %4
  br i1 %13, label %14, label %20

14:                                               ; preds = %10
  %15 = sext i32 %12 to i64
  %16 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %15) #4
  %17 = load i32, ptr %16, align 4, !tbaa !20
  %18 = zext i32 %17 to i64
  %.not100 = icmp ne i64 %indvars.iv, %18
  %19 = zext i1 %.not100 to i32
  br label %20

20:                                               ; preds = %10, %14
  %.sink = phi i32 [ %19, %14 ], [ 1, %10 ]
  %spec.select = add nuw nsw i32 %.0110, %.sink
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %10, !llvm.loop !21

21:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.59, ptr noundef nonnull @.str.60, i32 noundef 138, ptr noundef nonnull @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #5
  unreachable

22:                                               ; preds = %._crit_edge
  %.not97 = icmp eq i32 %.0.lcssa, 0
  br i1 %.not97, label %87, label %23

23:                                               ; preds = %22
  %24 = tail call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %25 = add nsw i32 %24, %.0.lcssa
  %26 = getelementptr inbounds i8, ptr %1, i64 32
  %27 = sext i32 %25 to i64
  tail call void @_ZNSt6vectorIiSaIiEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %27)
  %28 = getelementptr inbounds i8, ptr %1, i64 56
  tail call void @_ZNSt6vectorIdSaIdEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %27)
  %29 = tail call noundef i32 @_ZNK12HighsHessian5numNzEv(ptr noundef nonnull align 8 dereferenceable(80) %1)
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = sext i32 %3 to i64
  %32 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %31) #4
  store i32 %25, ptr %32, align 4, !tbaa !20
  br i1 %5, label %.preheader.preheader, label %._crit_edge123

.preheader.preheader:                             ; preds = %23
  %33 = zext nneg i32 %3 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %81
  %indvars.iv133 = phi i64 [ %33, %.preheader.preheader ], [ %indvars.iv.next134, %81 ]
  %.088121 = phi i32 [ 0, %.preheader.preheader ], [ %.189, %81 ]
  %.090120 = phi i32 [ %29, %.preheader.preheader ], [ %83, %81 ]
  %.091119 = phi i32 [ %25, %.preheader.preheader ], [ %.3, %81 ]
  %indvars.iv.next134 = add nsw i64 %indvars.iv133, -1
  %.086111 = add i32 %.090120, -1
  %34 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  %35 = load i32, ptr %34, align 4, !tbaa !20
  %36 = icmp sgt i32 %.086111, %35
  br i1 %36, label %.lr.ph114.preheader, label %._crit_edge115

.lr.ph114.preheader:                              ; preds = %.preheader
  %37 = sext i32 %.086111 to i64
  %38 = sext i32 %.091119 to i64
  br label %.lr.ph114

._crit_edge123:                                   ; preds = %81, %23
  %.091.lcssa = phi i32 [ %25, %23 ], [ %.3, %81 ]
  %39 = icmp eq i32 %.091.lcssa, 0
  br i1 %39, label %87, label %86

._crit_edge115.loopexit:                          ; preds = %48
  %40 = trunc nsw i64 %indvars.iv.next129 to i32
  br label %._crit_edge115

._crit_edge115:                                   ; preds = %._crit_edge115.loopexit, %.preheader
  %.192.lcssa = phi i32 [ %.091119, %.preheader ], [ %40, %._crit_edge115.loopexit ]
  %41 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  %42 = load i32, ptr %41, align 4, !tbaa !20
  %43 = icmp slt i32 %42, %.090120
  br i1 %43, label %59, label %.thread

.lr.ph114:                                        ; preds = %.lr.ph114.preheader, %48
  %indvars.iv128 = phi i64 [ %38, %.lr.ph114.preheader ], [ %indvars.iv.next129, %48 ]
  %indvars.iv126 = phi i64 [ %37, %.lr.ph114.preheader ], [ %indvars.iv.next127, %48 ]
  %44 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv126) #4
  %45 = load i32, ptr %44, align 4, !tbaa !20
  %46 = zext i32 %45 to i64
  %.not99 = icmp eq i64 %indvars.iv.next134, %46
  br i1 %.not99, label %47, label %48

47:                                               ; preds = %.lr.ph114
  tail call void @__assert_fail(ptr noundef nonnull @.str.61, ptr noundef nonnull @.str.60, i32 noundef 151, ptr noundef nonnull @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #5
  unreachable

48:                                               ; preds = %.lr.ph114
  %indvars.iv.next129 = add nsw i64 %indvars.iv128, -1
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv126) #4
  %50 = load i32, ptr %49, align 4, !tbaa !20
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %indvars.iv.next129) #4
  store i32 %50, ptr %51, align 4, !tbaa !20
  %52 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %indvars.iv126) #4
  %53 = load double, ptr %52, align 8, !tbaa !23
  %54 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %indvars.iv.next129) #4
  store double %53, ptr %54, align 8, !tbaa !23
  %indvars.iv.next127 = add nsw i64 %indvars.iv126, -1
  %55 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  %56 = load i32, ptr %55, align 4, !tbaa !20
  %57 = sext i32 %56 to i64
  %58 = icmp sgt i64 %indvars.iv.next127, %57
  br i1 %58, label %.lr.ph114, label %._crit_edge115.loopexit, !llvm.loop !25

59:                                               ; preds = %._crit_edge115
  %60 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  %61 = load i32, ptr %60, align 4, !tbaa !20
  %62 = add nsw i32 %.192.lcssa, -1
  %63 = sext i32 %61 to i64
  %64 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %63) #4
  %65 = load i32, ptr %64, align 4, !tbaa !20
  %66 = sext i32 %62 to i64
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %66) #4
  store i32 %65, ptr %67, align 4, !tbaa !20
  %68 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %63) #4
  %69 = load double, ptr %68, align 8, !tbaa !23
  %70 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %66) #4
  store double %69, ptr %70, align 8, !tbaa !23
  %71 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %63) #4
  %72 = load i32, ptr %71, align 4, !tbaa !20
  %73 = zext i32 %72 to i64
  %.not104 = icmp eq i64 %indvars.iv.next134, %73
  br i1 %.not104, label %81, label %.thread

.thread:                                          ; preds = %._crit_edge115, %59
  %.2103 = phi i32 [ %62, %59 ], [ %.192.lcssa, %._crit_edge115 ]
  %74 = add nsw i32 %.2103, -1
  %75 = sext i32 %74 to i64
  %76 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %75) #4
  %77 = trunc nuw nsw i64 %indvars.iv.next134 to i32
  store i32 %77, ptr %76, align 4, !tbaa !20
  %78 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %28, i64 noundef %75) #4
  store double 0.000000e+00, ptr %78, align 8, !tbaa !23
  %79 = add nsw i32 %.088121, 1
  %.not98.not = icmp slt i32 %.088121, %.0.lcssa
  br i1 %.not98.not, label %81, label %80

80:                                               ; preds = %.thread
  tail call void @__assert_fail(ptr noundef nonnull @.str.62, ptr noundef nonnull @.str.60, i32 noundef 178, ptr noundef nonnull @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #5
  unreachable

81:                                               ; preds = %.thread, %59
  %.3 = phi i32 [ %74, %.thread ], [ %62, %59 ]
  %.189 = phi i32 [ %79, %.thread ], [ %.088121, %59 ]
  %82 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  %83 = load i32, ptr %82, align 4, !tbaa !20
  %84 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %30, i64 noundef %indvars.iv.next134) #4
  store i32 %.3, ptr %84, align 4, !tbaa !20
  %85 = icmp sgt i64 %indvars.iv133, 1
  br i1 %85, label %.preheader, label %._crit_edge123, !llvm.loop !26

86:                                               ; preds = %._crit_edge123
  tail call void @__assert_fail(ptr noundef nonnull @.str.63, ptr noundef nonnull @.str.60, i32 noundef 183, ptr noundef nonnull @__PRETTY_FUNCTION__._Z23completeHessianDiagonalRK12HighsOptionsR12HighsHessian) #5
  unreachable

87:                                               ; preds = %._crit_edge123, %22
  ret void
}

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

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

declare void @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89), i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

attributes #0 = { 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 #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 = { 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 #4 = { nounwind }
attributes #5 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS12HighsHessian", !7, i64 0, !10, i64 4, !11, i64 8, !11, i64 32, !16, i64 56}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS13HessianFormat", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIiSaIiEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"_ZTSSt6vectorIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!24, !24, i64 0}
!24 = !{!"double", !8, i64 0}
!25 = distinct !{!25, !22}
!26 = distinct !{!26, !22}


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