; LLVM IR from ERGO-Code/HiGHS :: src/lp_data/HighsLp.ll (ZN7HighsLp11unapplyModsEv)

; 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.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.8", %"class.std::vector.8", %"class.std::vector.13", %struct.HighsNameHash, %struct.HighsNameHash, i32, i32, %struct.HighsScale, i8, i8, i32, i8, %struct.HighsLpMods }
%"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.HighsSparseMatrix = type { i32, i32, i32, %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector" }
%"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::__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.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = 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.13" = type { %"struct.std::_Vector_base.14" }
%"struct.std::_Vector_base.14" = 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.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.13", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector" }

@.str.52 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [108 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv = external hidden unnamed_addr constant [28 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [50 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 i64 @_ZNKSt6vectorI12HighsVarTypeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11HighsLpMods5clearEv(ptr noundef nonnull align 8 dereferenceable(312)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7HighsLp11unapplyModsEv(ptr noundef nonnull align 8 dereferenceable(920) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %20 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %21 = getelementptr inbounds %struct.HighsLpMods, ptr %20, i32 0, i32 0
  %22 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  %23 = trunc i64 %22 to i32
  store i32 %23, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %72, %1
  %25 = load i32, ptr %4, align 4, !tbaa !9
  %26 = load i32, ptr %3, 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 %4) #4
  br label %75

29:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %30 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %31 = getelementptr inbounds %struct.HighsLpMods, ptr %30, i32 0, i32 0
  %32 = load i32, ptr %4, 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) #4
  %35 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %35, ptr %5, align 4, !tbaa !9
  %36 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %38) #4
  %40 = load i8, ptr %39, align 1, !tbaa !11
  %41 = icmp eq i8 %40, 0
  br i1 %41, label %49, label %42

42:                                               ; preds = %29
  %43 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %45) #4
  %47 = load i8, ptr %46, align 1, !tbaa !11
  %48 = icmp eq i8 %47, 1
  br label %49

49:                                               ; preds = %42, %29
  %50 = phi i1 [ true, %29 ], [ %48, %42 ]
  br i1 %50, label %51, label %52

51:                                               ; preds = %49
  br label %54

52:                                               ; preds = %49
  call void @__assert_fail(ptr noundef @.str.72, ptr noundef @.str.52, i32 noundef 517, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

53:                                               ; No predecessors!
  br label %54

54:                                               ; preds = %53, %51
  %55 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #4
  %59 = load i8, ptr %58, align 1, !tbaa !11
  %60 = icmp eq i8 %59, 0
  br i1 %60, label %61, label %66

61:                                               ; preds = %54
  %62 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %64) #4
  store i8 2, ptr %65, align 1, !tbaa !11
  br label %71

66:                                               ; preds = %54
  %67 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #4
  store i8 3, ptr %70, align 1, !tbaa !11
  br label %71

71:                                               ; preds = %66, %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %72

72:                                               ; preds = %71
  %73 = load i32, ptr %4, align 4, !tbaa !9
  %74 = add nsw i32 %73, 1
  store i32 %74, ptr %4, align 4, !tbaa !9
  br label %24, !llvm.loop !13

75:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %76 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %77 = getelementptr inbounds %struct.HighsLpMods, ptr %76, i32 0, i32 1
  %78 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %77) #4
  %79 = trunc i64 %78 to i32
  store i32 %79, ptr %6, align 4, !tbaa !9
  %80 = load i32, ptr %6, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 0
  br i1 %81, label %110, label %82

82:                                               ; preds = %75
  %83 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %84 = getelementptr inbounds %struct.HighsLpMods, ptr %83, i32 0, i32 2
  %85 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %84) #4
  %86 = icmp ne i64 %85, 0
  %87 = xor i1 %86, true
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  br label %91

89:                                               ; preds = %82
  call void @__assert_fail(ptr noundef @.str.73, ptr noundef @.str.52, i32 noundef 529, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

90:                                               ; No predecessors!
  br label %91

91:                                               ; preds = %90, %88
  %92 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %93 = getelementptr inbounds %struct.HighsLpMods, ptr %92, i32 0, i32 3
  %94 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %93) #4
  %95 = icmp ne i64 %94, 0
  %96 = xor i1 %95, true
  br i1 %96, label %97, label %98

97:                                               ; preds = %91
  br label %100

98:                                               ; preds = %91
  call void @__assert_fail(ptr noundef @.str.74, ptr noundef @.str.52, i32 noundef 531, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

99:                                               ; No predecessors!
  br label %100

100:                                              ; preds = %99, %97
  %101 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %102 = getelementptr inbounds %struct.HighsLpMods, ptr %101, i32 0, i32 4
  %103 = call noundef i64 @_ZNKSt6vectorI12HighsVarTypeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #4
  %104 = icmp ne i64 %103, 0
  %105 = xor i1 %104, true
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  br label %109

107:                                              ; preds = %100
  call void @__assert_fail(ptr noundef @.str.75, ptr noundef @.str.52, i32 noundef 532, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

108:                                              ; No predecessors!
  br label %109

109:                                              ; preds = %108, %106
  br label %110

110:                                              ; preds = %109, %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %153, %110
  %112 = load i32, ptr %7, align 4, !tbaa !9
  %113 = load i32, ptr %6, align 4, !tbaa !9
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %116, label %115

115:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %156

116:                                              ; preds = %111
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %117 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %118 = getelementptr inbounds %struct.HighsLpMods, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %7, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %120) #4
  %122 = load i32, ptr %121, align 4, !tbaa !9
  store i32 %122, ptr %8, align 4, !tbaa !9
  %123 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %124 = getelementptr inbounds %struct.HighsLpMods, ptr %123, i32 0, i32 2
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #4
  %128 = load double, ptr %127, align 8, !tbaa !15
  %129 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 3
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %131) #4
  store double %128, ptr %132, align 8, !tbaa !15
  %133 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %134 = getelementptr inbounds %struct.HighsLpMods, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %134, i64 noundef %136) #4
  %138 = load double, ptr %137, align 8, !tbaa !15
  %139 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 4
  %140 = load i32, ptr %8, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %139, i64 noundef %141) #4
  store double %138, ptr %142, align 8, !tbaa !15
  %143 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %144 = getelementptr inbounds %struct.HighsLpMods, ptr %143, i32 0, i32 4
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %144, i64 noundef %146) #4
  %148 = load i8, ptr %147, align 1, !tbaa !11
  %149 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %150 = load i32, ptr %8, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #4
  store i8 %148, ptr %152, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %153

153:                                              ; preds = %116
  %154 = load i32, ptr %7, align 4, !tbaa !9
  %155 = add nsw i32 %154, 1
  store i32 %155, ptr %7, align 4, !tbaa !9
  br label %111, !llvm.loop !17

156:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %157 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %158 = getelementptr inbounds %struct.HighsLpMods, ptr %157, i32 0, i32 5
  store ptr %158, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %159 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %160 = getelementptr inbounds %struct.HighsLpMods, ptr %159, i32 0, i32 6
  store ptr %160, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %161 = load ptr, ptr %9, align 8, !tbaa !5
  %162 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %161) #4
  %163 = trunc i64 %162 to i32
  store i32 %163, ptr %11, align 4, !tbaa !9
  %164 = load i32, ptr %11, align 4, !tbaa !9
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %175, label %166

166:                                              ; preds = %156
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %167) #4
  %169 = icmp ne i64 %168, 0
  %170 = xor i1 %169, true
  br i1 %170, label %171, label %172

171:                                              ; preds = %166
  br label %174

172:                                              ; preds = %166
  call void @__assert_fail(ptr noundef @.str.76, ptr noundef @.str.52, i32 noundef 550, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

173:                                              ; No predecessors!
  br label %174

174:                                              ; preds = %173, %171
  br label %175

175:                                              ; preds = %174, %156
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %215, %175
  %177 = load i32, ptr %12, align 4, !tbaa !9
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = icmp slt i32 %177, %178
  br i1 %179, label %181, label %180

180:                                              ; preds = %176
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %218

181:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %182 = load ptr, ptr %9, align 8, !tbaa !5
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %184) #4
  %186 = load i32, ptr %185, align 4, !tbaa !9
  store i32 %186, ptr %13, align 4, !tbaa !9
  %187 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %188 = load i32, ptr %13, align 4, !tbaa !9
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %189) #4
  %191 = load i8, ptr %190, align 1, !tbaa !11
  %192 = icmp eq i8 %191, 2
  br i1 %192, label %200, label %193

193:                                              ; preds = %181
  %194 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %195 = load i32, ptr %13, align 4, !tbaa !9
  %196 = sext i32 %195 to i64
  %197 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %194, i64 noundef %196) #4
  %198 = load i8, ptr %197, align 1, !tbaa !11
  %199 = icmp eq i8 %198, 3
  br label %200

200:                                              ; preds = %193, %181
  %201 = phi i1 [ true, %181 ], [ %199, %193 ]
  br i1 %201, label %202, label %203

202:                                              ; preds = %200
  br label %205

203:                                              ; preds = %200
  call void @__assert_fail(ptr noundef @.str.77, ptr noundef @.str.52, i32 noundef 555, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

204:                                              ; No predecessors!
  br label %205

205:                                              ; preds = %204, %202
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i32, ptr %12, align 4, !tbaa !9
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #4
  %210 = load double, ptr %209, align 8, !tbaa !15
  %211 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 3
  %212 = load i32, ptr %13, align 4, !tbaa !9
  %213 = sext i32 %212 to i64
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %213) #4
  store double %210, ptr %214, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %215

215:                                              ; preds = %205
  %216 = load i32, ptr %12, align 4, !tbaa !9
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %12, align 4, !tbaa !9
  br label %176, !llvm.loop !18

218:                                              ; preds = %180
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %219 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %220 = getelementptr inbounds %struct.HighsLpMods, ptr %219, i32 0, i32 7
  store ptr %220, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %221 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  %222 = getelementptr inbounds %struct.HighsLpMods, ptr %221, i32 0, i32 8
  store ptr %222, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %223 = load ptr, ptr %14, align 8, !tbaa !5
  %224 = call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %223) #4
  %225 = trunc i64 %224 to i32
  store i32 %225, ptr %16, align 4, !tbaa !9
  %226 = load i32, ptr %16, align 4, !tbaa !9
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %237, label %228

228:                                              ; preds = %218
  %229 = load ptr, ptr %15, align 8, !tbaa !5
  %230 = call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %229) #4
  %231 = icmp ne i64 %230, 0
  %232 = xor i1 %231, true
  br i1 %232, label %233, label %234

233:                                              ; preds = %228
  br label %236

234:                                              ; preds = %228
  call void @__assert_fail(ptr noundef @.str.78, ptr noundef @.str.52, i32 noundef 566, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

235:                                              ; No predecessors!
  br label %236

236:                                              ; preds = %235, %233
  br label %237

237:                                              ; preds = %236, %218
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %238

238:                                              ; preds = %277, %237
  %239 = load i32, ptr %17, align 4, !tbaa !9
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = icmp slt i32 %239, %240
  br i1 %241, label %243, label %242

242:                                              ; preds = %238
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  br label %280

243:                                              ; preds = %238
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %244 = load ptr, ptr %14, align 8, !tbaa !5
  %245 = load i32, ptr %17, align 4, !tbaa !9
  %246 = sext i32 %245 to i64
  %247 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %244, i64 noundef %246) #4
  %248 = load i32, ptr %247, align 4, !tbaa !9
  store i32 %248, ptr %18, align 4, !tbaa !9
  %249 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %250 = load i32, ptr %18, align 4, !tbaa !9
  %251 = sext i32 %250 to i64
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %249, i64 noundef %251) #4
  %253 = load i8, ptr %252, align 1, !tbaa !11
  %254 = icmp eq i8 %253, 2
  br i1 %254, label %262, label %255

255:                                              ; preds = %243
  %256 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 16
  %257 = load i32, ptr %18, align 4, !tbaa !9
  %258 = sext i32 %257 to i64
  %259 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %256, i64 noundef %258) #4
  %260 = load i8, ptr %259, align 1, !tbaa !11
  %261 = icmp eq i8 %260, 3
  br label %262

262:                                              ; preds = %255, %243
  %263 = phi i1 [ true, %243 ], [ %261, %255 ]
  br i1 %263, label %264, label %265

264:                                              ; preds = %262
  br label %267

265:                                              ; preds = %262
  call void @__assert_fail(ptr noundef @.str.77, ptr noundef @.str.52, i32 noundef 571, ptr noundef @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #5
  unreachable

266:                                              ; No predecessors!
  br label %267

267:                                              ; preds = %266, %264
  %268 = load ptr, ptr %15, align 8, !tbaa !5
  %269 = load i32, ptr %17, align 4, !tbaa !9
  %270 = sext i32 %269 to i64
  %271 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %268, i64 noundef %270) #4
  %272 = load double, ptr %271, align 8, !tbaa !15
  %273 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 4
  %274 = load i32, ptr %18, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %275) #4
  store double %272, ptr %276, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %277

277:                                              ; preds = %267
  %278 = load i32, ptr %17, align 4, !tbaa !9
  %279 = add nsw i32 %278, 1
  store i32 %279, ptr %17, align 4, !tbaa !9
  br label %238, !llvm.loop !19

280:                                              ; preds = %242
  %281 = getelementptr inbounds %class.HighsLp, ptr %19, i32 0, i32 26
  call void @_ZN11HighsLpMods5clearEv(ptr noundef nonnull align 8 dereferenceable(312) %281)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

; 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

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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }
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, !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 = !{!"_ZTS12HighsVarType", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; 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.52 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [108 x i8], align 1
@__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv = external hidden unnamed_addr constant [28 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.77 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [50 x i8], align 1

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN11HighsLpMods5clearEv(ptr noundef nonnull align 8 dereferenceable(312)) local_unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN7HighsLp11unapplyModsEv(ptr noundef nonnull align 8 dereferenceable(920) %0) local_unnamed_addr #0 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 608
  %3 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #2
  %4 = trunc i64 %3 to i32
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 376
  %wide.trip.count = and i64 %3, 2147483647
  br label %10

._crit_edge:                                      ; preds = %.critedge, %1
  %7 = getelementptr inbounds i8, ptr %0, i64 632
  %8 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %7) #2
  %9 = trunc i64 %8 to i32
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %26, label %38

10:                                               ; preds = %.lr.ph, %.critedge
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %.critedge ]
  %11 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #2
  %12 = load i32, ptr %11, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #2
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = icmp eq i8 %15, 0
  br i1 %16, label %.critedge, label %17

17:                                               ; preds = %10
  %18 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #2
  %19 = load i8, ptr %18, align 1, !tbaa !9
  %20 = icmp eq i8 %19, 1
  br i1 %20, label %.critedge, label %21

21:                                               ; preds = %17
  tail call void @__assert_fail(ptr noundef nonnull @.str.72, ptr noundef nonnull @.str.52, i32 noundef 517, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

.critedge:                                        ; preds = %10, %17
  %22 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #2
  %23 = load i8, ptr %22, align 1, !tbaa !9
  %24 = icmp eq i8 %23, 0
  %25 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %13) #2
  %. = select i1 %24, i8 2, i8 3
  store i8 %., ptr %25, align 1, !tbaa !9
  %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 !11

26:                                               ; preds = %._crit_edge
  %27 = getelementptr inbounds i8, ptr %0, i64 656
  %28 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %27) #2
  %.not53 = icmp eq i64 %28, 0
  br i1 %.not53, label %30, label %29

29:                                               ; preds = %26
  tail call void @__assert_fail(ptr noundef nonnull @.str.73, ptr noundef nonnull @.str.52, i32 noundef 529, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

30:                                               ; preds = %26
  %31 = getelementptr inbounds i8, ptr %0, i64 680
  %32 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #2
  %.not54 = icmp eq i64 %32, 0
  br i1 %.not54, label %34, label %33

33:                                               ; preds = %30
  tail call void @__assert_fail(ptr noundef nonnull @.str.74, ptr noundef nonnull @.str.52, i32 noundef 531, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

34:                                               ; preds = %30
  %35 = getelementptr inbounds i8, ptr %0, i64 704
  %36 = tail call noundef i64 @_ZNKSt6vectorI12HighsVarTypeSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %35) #2
  %.not55 = icmp eq i64 %36, 0
  br i1 %.not55, label %._crit_edge64, label %37

37:                                               ; preds = %34
  tail call void @__assert_fail(ptr noundef nonnull @.str.75, ptr noundef nonnull @.str.52, i32 noundef 532, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

38:                                               ; preds = %._crit_edge
  %39 = icmp sgt i32 %9, 0
  br i1 %39, label %.lr.ph63, label %._crit_edge64

.lr.ph63:                                         ; preds = %38
  %40 = getelementptr inbounds i8, ptr %0, i64 656
  %41 = getelementptr inbounds i8, ptr %0, i64 32
  %42 = getelementptr inbounds i8, ptr %0, i64 680
  %43 = getelementptr inbounds i8, ptr %0, i64 56
  %44 = getelementptr inbounds i8, ptr %0, i64 704
  %45 = getelementptr inbounds i8, ptr %0, i64 376
  %wide.trip.count77 = and i64 %8, 2147483647
  br label %50

._crit_edge64:                                    ; preds = %50, %34, %38
  %46 = getelementptr inbounds i8, ptr %0, i64 728
  %47 = getelementptr inbounds i8, ptr %0, i64 752
  %48 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %46) #2
  %49 = trunc i64 %48 to i32
  %.not56 = icmp eq i32 %49, 0
  br i1 %.not56, label %63, label %66

50:                                               ; preds = %.lr.ph63, %50
  %indvars.iv74 = phi i64 [ 0, %.lr.ph63 ], [ %indvars.iv.next75, %50 ]
  %51 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %indvars.iv74) #2
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %indvars.iv74) #2
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = sext i32 %52 to i64
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %55) #2
  store double %54, ptr %56, align 8, !tbaa !13
  %57 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv74) #2
  %58 = load double, ptr %57, align 8, !tbaa !13
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %55) #2
  store double %58, ptr %59, align 8, !tbaa !13
  %60 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %indvars.iv74) #2
  %61 = load i8, ptr %60, align 1, !tbaa !9
  %62 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %55) #2
  store i8 %61, ptr %62, align 1, !tbaa !9
  %indvars.iv.next75 = add nuw nsw i64 %indvars.iv74, 1
  %exitcond78.not = icmp eq i64 %indvars.iv.next75, %wide.trip.count77
  br i1 %exitcond78.not, label %._crit_edge64, label %50, !llvm.loop !15

63:                                               ; preds = %._crit_edge64
  %64 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #2
  %.not57 = icmp eq i64 %64, 0
  br i1 %.not57, label %._crit_edge68, label %65

65:                                               ; preds = %63
  tail call void @__assert_fail(ptr noundef nonnull @.str.76, ptr noundef nonnull @.str.52, i32 noundef 550, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

66:                                               ; preds = %._crit_edge64
  %67 = icmp sgt i32 %49, 0
  br i1 %67, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %66
  %68 = getelementptr inbounds i8, ptr %0, i64 376
  %69 = getelementptr inbounds i8, ptr %0, i64 32
  %wide.trip.count82 = and i64 %48, 2147483647
  br label %74

._crit_edge68:                                    ; preds = %.critedge2, %63, %66
  %70 = getelementptr inbounds i8, ptr %0, i64 776
  %71 = getelementptr inbounds i8, ptr %0, i64 800
  %72 = tail call noundef i64 @_ZNKSt6vectorIiSaIiEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #2
  %73 = trunc i64 %72 to i32
  %.not58 = icmp eq i32 %73, 0
  br i1 %.not58, label %89, label %92

74:                                               ; preds = %.lr.ph67, %.critedge2
  %indvars.iv79 = phi i64 [ 0, %.lr.ph67 ], [ %indvars.iv.next80, %.critedge2 ]
  %75 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %indvars.iv79) #2
  %76 = load i32, ptr %75, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %77) #2
  %79 = load i8, ptr %78, align 1, !tbaa !9
  %80 = icmp eq i8 %79, 2
  br i1 %80, label %.critedge2, label %81

81:                                               ; preds = %74
  %82 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %77) #2
  %83 = load i8, ptr %82, align 1, !tbaa !9
  %84 = icmp eq i8 %83, 3
  br i1 %84, label %.critedge2, label %85

85:                                               ; preds = %81
  tail call void @__assert_fail(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.52, i32 noundef 555, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

.critedge2:                                       ; preds = %74, %81
  %86 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %indvars.iv79) #2
  %87 = load double, ptr %86, align 8, !tbaa !13
  %88 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %77) #2
  store double %87, ptr %88, align 8, !tbaa !13
  %indvars.iv.next80 = add nuw nsw i64 %indvars.iv79, 1
  %exitcond83.not = icmp eq i64 %indvars.iv.next80, %wide.trip.count82
  br i1 %exitcond83.not, label %._crit_edge68, label %74, !llvm.loop !16

89:                                               ; preds = %._crit_edge68
  %90 = tail call noundef i64 @_ZNKSt6vectorIdSaIdEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %71) #2
  %.not59 = icmp eq i64 %90, 0
  br i1 %.not59, label %._crit_edge72, label %91

91:                                               ; preds = %89
  tail call void @__assert_fail(ptr noundef nonnull @.str.78, ptr noundef nonnull @.str.52, i32 noundef 566, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

92:                                               ; preds = %._crit_edge68
  %93 = icmp sgt i32 %73, 0
  br i1 %93, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %92
  %94 = getelementptr inbounds i8, ptr %0, i64 376
  %95 = getelementptr inbounds i8, ptr %0, i64 56
  %wide.trip.count87 = and i64 %72, 2147483647
  br label %96

._crit_edge72:                                    ; preds = %.critedge4, %89, %92
  tail call void @_ZN11HighsLpMods5clearEv(ptr noundef nonnull align 8 dereferenceable(312) %2)
  ret void

96:                                               ; preds = %.lr.ph71, %.critedge4
  %indvars.iv84 = phi i64 [ 0, %.lr.ph71 ], [ %indvars.iv.next85, %.critedge4 ]
  %97 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %70, i64 noundef %indvars.iv84) #2
  %98 = load i32, ptr %97, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %99) #2
  %101 = load i8, ptr %100, align 1, !tbaa !9
  %102 = icmp eq i8 %101, 2
  br i1 %102, label %.critedge4, label %103

103:                                              ; preds = %96
  %104 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt6vectorI12HighsVarTypeSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %99) #2
  %105 = load i8, ptr %104, align 1, !tbaa !9
  %106 = icmp eq i8 %105, 3
  br i1 %106, label %.critedge4, label %107

107:                                              ; preds = %103
  tail call void @__assert_fail(ptr noundef nonnull @.str.77, ptr noundef nonnull @.str.52, i32 noundef 571, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN7HighsLp11unapplyModsEv) #3
  unreachable

.critedge4:                                       ; preds = %96, %103
  %108 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv84) #2
  %109 = load double, ptr %108, align 8, !tbaa !13
  %110 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %95, i64 noundef %99) #2
  store double %109, ptr %110, align 8, !tbaa !13
  %indvars.iv.next85 = add nuw nsw i64 %indvars.iv84, 1
  %exitcond88.not = icmp eq i64 %indvars.iv.next85, %wide.trip.count87
  br i1 %exitcond88.not, label %._crit_edge72, label %96, !llvm.loop !17
}

; 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

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 = { 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 #2 = { nounwind }
attributes #3 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTS12HighsVarType", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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