; LLVM IR from ERGO-Code/HiGHS :: src/util (HighsUtils)

; 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.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.HighsValueDistribution = type <{ %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i32, i32, i32, [4 x i8], double, double, %"class.std::vector.3", %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z16doublePercentageii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z20logValueDistributionRK15HighsLogOptionsRK22HighsValueDistributioni(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(148) %1, i32 noundef %2) #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca i8, align 1
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.HighsValueDistribution, ptr %22, i32 0, i32 10
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp sle i32 %24, 0
  br i1 %25, label %26, label %27

26:                                               ; preds = %3
  store i1 false, ptr %4, align 1
  br label %461

27:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.HighsValueDistribution, ptr %28, i32 0, i32 2
  %30 = load i32, ptr %29, align 8, !tbaa !25
  store i32 %30, ptr %8, align 4, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !9
  %32 = icmp slt i32 %31, 0
  br i1 %32, label %33, label %34

33:                                               ; preds = %27
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %460

34:                                               ; preds = %27
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.HighsValueDistribution, ptr %35, i32 0, i32 0
  %37 = call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %36, ptr noundef @.str.10)
  br i1 %37, label %38, label %43

38:                                               ; preds = %34
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.HighsValueDistribution, ptr %40, i32 0, i32 0
  %42 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %41) #5
  call void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %39, i32 noundef 1, ptr noundef @.str.102, ptr noundef %42)
  br label %43

43:                                               ; preds = %38, %34
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.HighsValueDistribution, ptr %44, i32 0, i32 1
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %45)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 1, ptr %11, align 1, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.HighsValueDistribution, ptr %46, i32 0, i32 3
  %48 = load i32, ptr %47, align 4, !tbaa !28
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.HighsValueDistribution, ptr %49, i32 0, i32 4
  %51 = load i32, ptr %50, align 8, !tbaa !29
  %52 = add nsw i32 %48, %51
  store i32 %52, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.HighsValueDistribution, ptr %53, i32 0, i32 6
  %55 = load double, ptr %54, align 8, !tbaa !30
  store double %55, ptr %13, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %71, %43
  %57 = load i32, ptr %14, align 4, !tbaa !9
  %58 = load i32, ptr %8, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  %60 = icmp slt i32 %57, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %56
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %74

62:                                               ; preds = %56
  %63 = load ptr, ptr %6, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.HighsValueDistribution, ptr %63, i32 0, i32 9
  %65 = load i32, ptr %14, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #5
  %68 = load i32, ptr %67, align 4, !tbaa !9
  %69 = load i32, ptr %12, align 4, !tbaa !9
  %70 = add nsw i32 %69, %68
  store i32 %70, ptr %12, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %62
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  store i32 %73, ptr %14, align 4, !tbaa !9
  br label %56, !llvm.loop !32

74:                                               ; preds = %61
  %75 = load i32, ptr %12, align 4, !tbaa !9
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %78, label %77

77:                                               ; preds = %74
  store i1 false, ptr %4, align 1
  store i32 1, ptr %9, align 4
  br label %458

78:                                               ; preds = %74
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load double, ptr %13, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %79, i32 noundef 1, ptr noundef @.str.103, double noundef %80)
          to label %81 unwind label %97

81:                                               ; preds = %78
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %84 = load double, ptr %13, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %82, i32 noundef 1, ptr noundef @.str.104, ptr noundef %83, double noundef %84)
          to label %85 unwind label %97

85:                                               ; preds = %81
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %88, label %101

88:                                               ; preds = %85
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = load double, ptr %13, align 8, !tbaa !31
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = sitofp i32 %91 to double
  %93 = fmul double %90, %92
  %94 = fptosi double %93 to i32
  %95 = load i32, ptr %7, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %89, i32 noundef 1, ptr noundef @.str.105, i32 noundef %94, i32 noundef %95)
          to label %96 unwind label %97

96:                                               ; preds = %88
  br label %104

97:                                               ; preds = %124, %113, %104, %101, %88, %81, %78
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %15, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %16, align 4
  br label %459

101:                                              ; preds = %85
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %102, i32 noundef 1, ptr noundef @.str.85)
          to label %103 unwind label %97

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103, %96
  %105 = load ptr, ptr %5, align 8, !tbaa !5
  %106 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HighsValueDistribution, ptr %107, i32 0, i32 7
  %109 = load double, ptr %108, align 8, !tbaa !34
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %105, i32 noundef 1, ptr noundef @.str.106, ptr noundef %106, double noundef %109)
          to label %110 unwind label %97

110:                                              ; preds = %104
  %111 = load i32, ptr %7, align 4, !tbaa !9
  %112 = icmp sgt i32 %111, 0
  br i1 %112, label %113, label %124

113:                                              ; preds = %110
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.HighsValueDistribution, ptr %115, i32 0, i32 7
  %117 = load double, ptr %116, align 8, !tbaa !34
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = sitofp i32 %118 to double
  %120 = fmul double %117, %119
  %121 = fptosi double %120 to i32
  %122 = load i32, ptr %7, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %114, i32 noundef 1, ptr noundef @.str.105, i32 noundef %121, i32 noundef %122)
          to label %123 unwind label %97

123:                                              ; preds = %113
  br label %127

124:                                              ; preds = %110
  %125 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %125, i32 noundef 1, ptr noundef @.str.85)
          to label %126 unwind label %97

126:                                              ; preds = %124
  br label %127

127:                                              ; preds = %126, %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.HighsValueDistribution, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 4, !tbaa !28
  store i32 %130, ptr %20, align 4, !tbaa !9
  %131 = load i32, ptr %20, align 4, !tbaa !9
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %151

133:                                              ; preds = %127
  %134 = load i32, ptr %20, align 4, !tbaa !9
  %135 = load i32, ptr %12, align 4, !tbaa !9
  %136 = call noundef double @_Z16doublePercentageii(i32 noundef %134, i32 noundef %135)
  store double %136, ptr %18, align 8, !tbaa !31
  %137 = load double, ptr %18, align 8, !tbaa !31
  %138 = fptosi double %137 to i32
  store i32 %138, ptr %19, align 4, !tbaa !9
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = load i32, ptr %20, align 4, !tbaa !9
  %141 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %142 = load i32, ptr %19, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %139, i32 noundef 1, ptr noundef @.str.107, i32 noundef %140, ptr noundef %141, i32 noundef %142, double noundef 0.000000e+00)
          to label %143 unwind label %147

143:                                              ; preds = %133
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = load i32, ptr %17, align 4, !tbaa !9
  %146 = add nsw i32 %145, %144
  store i32 %146, ptr %17, align 4, !tbaa !9
  br label %151

147:                                              ; preds = %451, %443, %438, %434, %418, %405, %391, %368, %354, %350, %334, %189, %178, %158, %133
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %15, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %16, align 4
  br label %457

151:                                              ; preds = %143, %127
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.HighsValueDistribution, ptr %152, i32 0, i32 9
  %154 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef 0) #5
  %155 = load i32, ptr %154, align 4, !tbaa !9
  store i32 %155, ptr %20, align 4, !tbaa !9
  %156 = load i32, ptr %20, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %193

158:                                              ; preds = %151
  %159 = load i32, ptr %20, align 4, !tbaa !9
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = call noundef double @_Z16doublePercentageii(i32 noundef %159, i32 noundef %160)
  store double %161, ptr %18, align 8, !tbaa !31
  %162 = load double, ptr %18, align 8, !tbaa !31
  %163 = fptosi double %162 to i32
  store i32 %163, ptr %19, align 4, !tbaa !9
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = load i32, ptr %20, align 4, !tbaa !9
  %166 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %167 = load i32, ptr %19, align 4, !tbaa !9
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.HighsValueDistribution, ptr %168, i32 0, i32 8
  %170 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %169, i64 noundef 0) #5
  %171 = load double, ptr %170, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %164, i32 noundef 1, ptr noundef @.str.108, i32 noundef %165, ptr noundef %166, i32 noundef %167, double noundef 0.000000e+00, double noundef %171)
          to label %172 unwind label %147

172:                                              ; preds = %158
  %173 = load i32, ptr %20, align 4, !tbaa !9
  %174 = load i32, ptr %17, align 4, !tbaa !9
  %175 = add nsw i32 %174, %173
  store i32 %175, ptr %17, align 4, !tbaa !9
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = icmp sgt i32 %176, 0
  br i1 %177, label %178, label %189

178:                                              ; preds = %172
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = load ptr, ptr %6, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.HighsValueDistribution, ptr %180, i32 0, i32 8
  %182 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %181, i64 noundef 0) #5
  %183 = load double, ptr %182, align 8, !tbaa !31
  %184 = load i32, ptr %7, align 4, !tbaa !9
  %185 = sitofp i32 %184 to double
  %186 = fmul double %183, %185
  %187 = fptosi double %186 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %179, i32 noundef 1, ptr noundef @.str.109, i32 noundef 0, i32 noundef %187)
          to label %188 unwind label %147

188:                                              ; preds = %178
  br label %192

189:                                              ; preds = %172
  %190 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %190, i32 noundef 1, ptr noundef @.str.85)
          to label %191 unwind label %147

191:                                              ; preds = %189
  br label %192

192:                                              ; preds = %191, %188
  br label %193

193:                                              ; preds = %192, %151
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %313, %193
  %195 = load i32, ptr %21, align 4, !tbaa !9
  %196 = load i32, ptr %8, align 4, !tbaa !9
  %197 = icmp slt i32 %195, %196
  br i1 %197, label %199, label %198

198:                                              ; preds = %194
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %316

199:                                              ; preds = %194
  %200 = load i8, ptr %11, align 1, !tbaa !26, !range !35, !noundef !36
  %201 = trunc i8 %200 to i1
  br i1 %201, label %202, label %246

202:                                              ; preds = %199
  %203 = load ptr, ptr %6, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.HighsValueDistribution, ptr %203, i32 0, i32 8
  %205 = load i32, ptr %21, align 4, !tbaa !9
  %206 = sub nsw i32 %205, 1
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %204, i64 noundef %207) #5
  %209 = load double, ptr %208, align 8, !tbaa !31
  %210 = fcmp oge double %209, 1.000000e+00
  br i1 %210, label %211, label %246

211:                                              ; preds = %202
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.HighsValueDistribution, ptr %212, i32 0, i32 4
  %214 = load i32, ptr %213, align 8, !tbaa !29
  store i32 %214, ptr %20, align 4, !tbaa !9
  %215 = load i32, ptr %20, align 4, !tbaa !9
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %245

217:                                              ; preds = %211
  %218 = load i32, ptr %20, align 4, !tbaa !9
  %219 = load i32, ptr %12, align 4, !tbaa !9
  %220 = call noundef double @_Z16doublePercentageii(i32 noundef %218, i32 noundef %219)
  store double %220, ptr %18, align 8, !tbaa !31
  %221 = load double, ptr %18, align 8, !tbaa !31
  %222 = fptosi double %221 to i32
  store i32 %222, ptr %19, align 4, !tbaa !9
  %223 = load ptr, ptr %5, align 8, !tbaa !5
  %224 = load i32, ptr %20, align 4, !tbaa !9
  %225 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %226 = load i32, ptr %19, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %223, i32 noundef 1, ptr noundef @.str.110, i32 noundef %224, ptr noundef %225, i32 noundef %226, double noundef 1.000000e+00)
          to label %227 unwind label %237

227:                                              ; preds = %217
  %228 = load i32, ptr %20, align 4, !tbaa !9
  %229 = load i32, ptr %17, align 4, !tbaa !9
  %230 = add nsw i32 %229, %228
  store i32 %230, ptr %17, align 4, !tbaa !9
  %231 = load i32, ptr %7, align 4, !tbaa !9
  %232 = icmp sgt i32 %231, 0
  br i1 %232, label %233, label %241

233:                                              ; preds = %227
  %234 = load ptr, ptr %5, align 8, !tbaa !5
  %235 = load i32, ptr %7, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %234, i32 noundef 1, ptr noundef @.str.111, i32 noundef %235)
          to label %236 unwind label %237

236:                                              ; preds = %233
  br label %244

237:                                              ; preds = %308, %284, %255, %241, %233, %217
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %15, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %457

241:                                              ; preds = %227
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %242, i32 noundef 1, ptr noundef @.str.85)
          to label %243 unwind label %237

243:                                              ; preds = %241
  br label %244

244:                                              ; preds = %243, %236
  br label %245

245:                                              ; preds = %244, %211
  store i8 0, ptr %11, align 1, !tbaa !26
  br label %246

246:                                              ; preds = %245, %202, %199
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.HighsValueDistribution, ptr %247, i32 0, i32 9
  %249 = load i32, ptr %21, align 4, !tbaa !9
  %250 = sext i32 %249 to i64
  %251 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %248, i64 noundef %250) #5
  %252 = load i32, ptr %251, align 4, !tbaa !9
  store i32 %252, ptr %20, align 4, !tbaa !9
  %253 = load i32, ptr %20, align 4, !tbaa !9
  %254 = icmp ne i32 %253, 0
  br i1 %254, label %255, label %312

255:                                              ; preds = %246
  %256 = load i32, ptr %20, align 4, !tbaa !9
  %257 = load i32, ptr %12, align 4, !tbaa !9
  %258 = call noundef double @_Z16doublePercentageii(i32 noundef %256, i32 noundef %257)
  store double %258, ptr %18, align 8, !tbaa !31
  %259 = load double, ptr %18, align 8, !tbaa !31
  %260 = fptosi double %259 to i32
  store i32 %260, ptr %19, align 4, !tbaa !9
  %261 = load ptr, ptr %5, align 8, !tbaa !5
  %262 = load i32, ptr %20, align 4, !tbaa !9
  %263 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %264 = load i32, ptr %19, align 4, !tbaa !9
  %265 = load ptr, ptr %6, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.HighsValueDistribution, ptr %265, i32 0, i32 8
  %267 = load i32, ptr %21, align 4, !tbaa !9
  %268 = sub nsw i32 %267, 1
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %266, i64 noundef %269) #5
  %271 = load double, ptr %270, align 8, !tbaa !31
  %272 = load ptr, ptr %6, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.HighsValueDistribution, ptr %272, i32 0, i32 8
  %274 = load i32, ptr %21, align 4, !tbaa !9
  %275 = sext i32 %274 to i64
  %276 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %273, i64 noundef %275) #5
  %277 = load double, ptr %276, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %261, i32 noundef 1, ptr noundef @.str.112, i32 noundef %262, ptr noundef %263, i32 noundef %264, double noundef %271, double noundef %277)
          to label %278 unwind label %237

278:                                              ; preds = %255
  %279 = load i32, ptr %20, align 4, !tbaa !9
  %280 = load i32, ptr %17, align 4, !tbaa !9
  %281 = add nsw i32 %280, %279
  store i32 %281, ptr %17, align 4, !tbaa !9
  %282 = load i32, ptr %7, align 4, !tbaa !9
  %283 = icmp sgt i32 %282, 0
  br i1 %283, label %284, label %308

284:                                              ; preds = %278
  %285 = load ptr, ptr %5, align 8, !tbaa !5
  %286 = load ptr, ptr %6, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.HighsValueDistribution, ptr %286, i32 0, i32 8
  %288 = load i32, ptr %21, align 4, !tbaa !9
  %289 = sub nsw i32 %288, 1
  %290 = sext i32 %289 to i64
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %290) #5
  %292 = load double, ptr %291, align 8, !tbaa !31
  %293 = load i32, ptr %7, align 4, !tbaa !9
  %294 = sitofp i32 %293 to double
  %295 = fmul double %292, %294
  %296 = fptosi double %295 to i32
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.HighsValueDistribution, ptr %297, i32 0, i32 8
  %299 = load i32, ptr %21, align 4, !tbaa !9
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %298, i64 noundef %300) #5
  %302 = load double, ptr %301, align 8, !tbaa !31
  %303 = load i32, ptr %7, align 4, !tbaa !9
  %304 = sitofp i32 %303 to double
  %305 = fmul double %302, %304
  %306 = fptosi double %305 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %285, i32 noundef 1, ptr noundef @.str.113, i32 noundef %296, i32 noundef %306)
          to label %307 unwind label %237

307:                                              ; preds = %284
  br label %311

308:                                              ; preds = %278
  %309 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %309, i32 noundef 1, ptr noundef @.str.85)
          to label %310 unwind label %237

310:                                              ; preds = %308
  br label %311

311:                                              ; preds = %310, %307
  br label %312

312:                                              ; preds = %311, %246
  br label %313

313:                                              ; preds = %312
  %314 = load i32, ptr %21, align 4, !tbaa !9
  %315 = add nsw i32 %314, 1
  store i32 %315, ptr %21, align 4, !tbaa !9
  br label %194, !llvm.loop !37

316:                                              ; preds = %198
  %317 = load i8, ptr %11, align 1, !tbaa !26, !range !35, !noundef !36
  %318 = trunc i8 %317 to i1
  br i1 %318, label %319, label %359

319:                                              ; preds = %316
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.HighsValueDistribution, ptr %320, i32 0, i32 8
  %322 = load i32, ptr %8, align 4, !tbaa !9
  %323 = sub nsw i32 %322, 1
  %324 = sext i32 %323 to i64
  %325 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %321, i64 noundef %324) #5
  %326 = load double, ptr %325, align 8, !tbaa !31
  %327 = fcmp oge double %326, 1.000000e+00
  br i1 %327, label %328, label %359

328:                                              ; preds = %319
  %329 = load ptr, ptr %6, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.HighsValueDistribution, ptr %329, i32 0, i32 4
  %331 = load i32, ptr %330, align 8, !tbaa !29
  store i32 %331, ptr %20, align 4, !tbaa !9
  %332 = load i32, ptr %20, align 4, !tbaa !9
  %333 = icmp ne i32 %332, 0
  br i1 %333, label %334, label %358

334:                                              ; preds = %328
  %335 = load i32, ptr %20, align 4, !tbaa !9
  %336 = load i32, ptr %12, align 4, !tbaa !9
  %337 = call noundef double @_Z16doublePercentageii(i32 noundef %335, i32 noundef %336)
  store double %337, ptr %18, align 8, !tbaa !31
  %338 = load double, ptr %18, align 8, !tbaa !31
  %339 = fptosi double %338 to i32
  store i32 %339, ptr %19, align 4, !tbaa !9
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = load i32, ptr %20, align 4, !tbaa !9
  %342 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %343 = load i32, ptr %19, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %340, i32 noundef 1, ptr noundef @.str.110, i32 noundef %341, ptr noundef %342, i32 noundef %343, double noundef 1.000000e+00)
          to label %344 unwind label %147

344:                                              ; preds = %334
  %345 = load i32, ptr %20, align 4, !tbaa !9
  %346 = load i32, ptr %17, align 4, !tbaa !9
  %347 = add nsw i32 %346, %345
  store i32 %347, ptr %17, align 4, !tbaa !9
  %348 = load i32, ptr %7, align 4, !tbaa !9
  %349 = icmp sgt i32 %348, 0
  br i1 %349, label %350, label %354

350:                                              ; preds = %344
  %351 = load ptr, ptr %5, align 8, !tbaa !5
  %352 = load i32, ptr %7, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %351, i32 noundef 1, ptr noundef @.str.114, i32 noundef %352)
          to label %353 unwind label %147

353:                                              ; preds = %350
  br label %357

354:                                              ; preds = %344
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %355, i32 noundef 1, ptr noundef @.str.85)
          to label %356 unwind label %147

356:                                              ; preds = %354
  br label %357

357:                                              ; preds = %356, %353
  br label %358

358:                                              ; preds = %357, %328
  store i8 0, ptr %11, align 1, !tbaa !26
  br label %359

359:                                              ; preds = %358, %319, %316
  %360 = load ptr, ptr %6, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.HighsValueDistribution, ptr %360, i32 0, i32 9
  %362 = load i32, ptr %8, align 4, !tbaa !9
  %363 = sext i32 %362 to i64
  %364 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %361, i64 noundef %363) #5
  %365 = load i32, ptr %364, align 4, !tbaa !9
  store i32 %365, ptr %20, align 4, !tbaa !9
  %366 = load i32, ptr %20, align 4, !tbaa !9
  %367 = icmp ne i32 %366, 0
  br i1 %367, label %368, label %409

368:                                              ; preds = %359
  %369 = load i32, ptr %20, align 4, !tbaa !9
  %370 = load i32, ptr %12, align 4, !tbaa !9
  %371 = call noundef double @_Z16doublePercentageii(i32 noundef %369, i32 noundef %370)
  store double %371, ptr %18, align 8, !tbaa !31
  %372 = load double, ptr %18, align 8, !tbaa !31
  %373 = fptosi double %372 to i32
  store i32 %373, ptr %19, align 4, !tbaa !9
  %374 = load ptr, ptr %5, align 8, !tbaa !5
  %375 = load i32, ptr %20, align 4, !tbaa !9
  %376 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %377 = load i32, ptr %19, align 4, !tbaa !9
  %378 = load ptr, ptr %6, align 8, !tbaa !5
  %379 = getelementptr inbounds %struct.HighsValueDistribution, ptr %378, i32 0, i32 8
  %380 = load i32, ptr %8, align 4, !tbaa !9
  %381 = sub nsw i32 %380, 1
  %382 = sext i32 %381 to i64
  %383 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %382) #5
  %384 = load double, ptr %383, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %374, i32 noundef 1, ptr noundef @.str.115, i32 noundef %375, ptr noundef %376, i32 noundef %377, double noundef %384)
          to label %385 unwind label %147

385:                                              ; preds = %368
  %386 = load i32, ptr %20, align 4, !tbaa !9
  %387 = load i32, ptr %17, align 4, !tbaa !9
  %388 = add nsw i32 %387, %386
  store i32 %388, ptr %17, align 4, !tbaa !9
  %389 = load i32, ptr %7, align 4, !tbaa !9
  %390 = icmp sgt i32 %389, 0
  br i1 %390, label %391, label %405

391:                                              ; preds = %385
  %392 = load ptr, ptr %5, align 8, !tbaa !5
  %393 = load ptr, ptr %6, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.HighsValueDistribution, ptr %393, i32 0, i32 8
  %395 = load i32, ptr %8, align 4, !tbaa !9
  %396 = sub nsw i32 %395, 1
  %397 = sext i32 %396 to i64
  %398 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %394, i64 noundef %397) #5
  %399 = load double, ptr %398, align 8, !tbaa !31
  %400 = load i32, ptr %7, align 4, !tbaa !9
  %401 = sitofp i32 %400 to double
  %402 = fmul double %399, %401
  %403 = fptosi double %402 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %392, i32 noundef 1, ptr noundef @.str.116, i32 noundef %403)
          to label %404 unwind label %147

404:                                              ; preds = %391
  br label %408

405:                                              ; preds = %385
  %406 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %406, i32 noundef 1, ptr noundef @.str.85)
          to label %407 unwind label %147

407:                                              ; preds = %405
  br label %408

408:                                              ; preds = %407, %404
  br label %409

409:                                              ; preds = %408, %359
  %410 = load i8, ptr %11, align 1, !tbaa !26, !range !35, !noundef !36
  %411 = trunc i8 %410 to i1
  br i1 %411, label %412, label %443

412:                                              ; preds = %409
  %413 = load ptr, ptr %6, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.HighsValueDistribution, ptr %413, i32 0, i32 4
  %415 = load i32, ptr %414, align 8, !tbaa !29
  store i32 %415, ptr %20, align 4, !tbaa !9
  %416 = load i32, ptr %20, align 4, !tbaa !9
  %417 = icmp ne i32 %416, 0
  br i1 %417, label %418, label %442

418:                                              ; preds = %412
  %419 = load i32, ptr %20, align 4, !tbaa !9
  %420 = load i32, ptr %12, align 4, !tbaa !9
  %421 = call noundef double @_Z16doublePercentageii(i32 noundef %419, i32 noundef %420)
  store double %421, ptr %18, align 8, !tbaa !31
  %422 = load double, ptr %18, align 8, !tbaa !31
  %423 = fptosi double %422 to i32
  store i32 %423, ptr %19, align 4, !tbaa !9
  %424 = load ptr, ptr %5, align 8, !tbaa !5
  %425 = load i32, ptr %20, align 4, !tbaa !9
  %426 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  %427 = load i32, ptr %19, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %424, i32 noundef 1, ptr noundef @.str.110, i32 noundef %425, ptr noundef %426, i32 noundef %427, double noundef 1.000000e+00)
          to label %428 unwind label %147

428:                                              ; preds = %418
  %429 = load i32, ptr %20, align 4, !tbaa !9
  %430 = load i32, ptr %17, align 4, !tbaa !9
  %431 = add nsw i32 %430, %429
  store i32 %431, ptr %17, align 4, !tbaa !9
  %432 = load i32, ptr %7, align 4, !tbaa !9
  %433 = icmp sgt i32 %432, 0
  br i1 %433, label %434, label %438

434:                                              ; preds = %428
  %435 = load ptr, ptr %5, align 8, !tbaa !5
  %436 = load i32, ptr %7, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %435, i32 noundef 1, ptr noundef @.str.114, i32 noundef %436)
          to label %437 unwind label %147

437:                                              ; preds = %434
  br label %441

438:                                              ; preds = %428
  %439 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %439, i32 noundef 1, ptr noundef @.str.85)
          to label %440 unwind label %147

440:                                              ; preds = %438
  br label %441

441:                                              ; preds = %440, %437
  br label %442

442:                                              ; preds = %441, %412
  br label %443

443:                                              ; preds = %442, %409
  %444 = load ptr, ptr %5, align 8, !tbaa !5
  %445 = load i32, ptr %12, align 4, !tbaa !9
  %446 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %444, i32 noundef 1, ptr noundef @.str.117, i32 noundef %445, ptr noundef %446)
          to label %447 unwind label %147

447:                                              ; preds = %443
  %448 = load i32, ptr %17, align 4, !tbaa !9
  %449 = load i32, ptr %12, align 4, !tbaa !9
  %450 = icmp ne i32 %448, %449
  br i1 %450, label %451, label %456

451:                                              ; preds = %447
  %452 = load ptr, ptr %5, align 8, !tbaa !5
  %453 = load i32, ptr %17, align 4, !tbaa !9
  %454 = load i32, ptr %12, align 4, !tbaa !9
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %452, i32 noundef 1, ptr noundef @.str.118, i32 noundef %453, i32 noundef %454)
          to label %455 unwind label %147

455:                                              ; preds = %451
  br label %456

456:                                              ; preds = %455, %447
  store i1 true, ptr %4, align 1
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %458

457:                                              ; preds = %237, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  br label %459

458:                                              ; preds = %456, %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  br label %460

459:                                              ; preds = %457, %97
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %463

460:                                              ; preds = %458, %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %461

461:                                              ; preds = %460, %26
  %462 = load i1, ptr %4, align 1
  ret i1 %462

463:                                              ; preds = %459
  %464 = load ptr, ptr %15, align 8
  %465 = load i32, ptr %16, align 4
  %466 = insertvalue { ptr, i32 } poison, ptr %464, 0
  %467 = insertvalue { ptr, i32 } %466, i32 %465, 1
  resume { ptr, i32 } %467
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 144}
!12 = !{!"_ZTS22HighsValueDistribution", !13, i64 0, !13, i64 32, !10, i64 64, !10, i64 68, !10, i64 72, !16, i64 80, !16, i64 88, !17, i64 96, !21, i64 120, !10, i64 144}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"double", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIdSaIdEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!12, !10, i64 64}
!26 = !{!27, !27, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!12, !10, i64 68}
!29 = !{!12, !10, i64 72}
!30 = !{!12, !16, i64 80}
!31 = !{!16, !16, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!12, !16, i64 88}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = distinct !{!37, !33}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.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] }

@.str.10 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [48 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z16doublePercentageii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z20logValueDistributionRK15HighsLogOptionsRK22HighsValueDistributioni(ptr noundef nonnull align 8 dereferenceable(89) %0, ptr noundef nonnull align 8 dereferenceable(148) %1, i32 noundef %2) local_unnamed_addr #3 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = getelementptr inbounds i8, ptr %1, i64 144
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = icmp slt i32 %6, 1
  br i1 %7, label %186, label %8

8:                                                ; preds = %3
  %9 = getelementptr inbounds i8, ptr %1, i64 64
  %10 = load i32, ptr %9, align 8, !tbaa !23
  %11 = icmp slt i32 %10, 0
  br i1 %11, label %186, label %12

12:                                               ; preds = %8
  %13 = tail call noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32) %1, ptr noundef nonnull @.str.10)
  br i1 %13, label %14, label %.lr.ph

14:                                               ; preds = %12
  %15 = tail call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #5
  tail call void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.102, ptr noundef %15)
  br label %.lr.ph

.lr.ph:                                           ; preds = %12, %14
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #5
  %16 = getelementptr inbounds i8, ptr %1, i64 32
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 8 dereferenceable(32) %16)
  %17 = getelementptr inbounds i8, ptr %1, i64 68
  %18 = getelementptr inbounds i8, ptr %1, i64 72
  %19 = getelementptr inbounds i8, ptr %1, i64 80
  %20 = load double, ptr %19, align 8, !tbaa !24
  %21 = load i32, ptr %18, align 8, !tbaa !25
  %22 = load i32, ptr %17, align 4, !tbaa !26
  %23 = add nsw i32 %21, %22
  %24 = getelementptr inbounds i8, ptr %1, i64 120
  %25 = add nuw i32 %10, 1
  %wide.trip.count = zext i32 %25 to i64
  br label %26

._crit_edge:                                      ; preds = %26
  %.not194 = icmp ne i32 %29, 0
  br i1 %.not194, label %30, label %184

26:                                               ; preds = %.lr.ph, %26
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %26 ]
  %.0174208 = phi i32 [ %23, %.lr.ph ], [ %29, %26 ]
  %27 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv) #5
  %28 = load i32, ptr %27, align 4, !tbaa !27
  %29 = add nsw i32 %28, %.0174208
  %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 %26, !llvm.loop !28

30:                                               ; preds = %._crit_edge
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.103, double noundef %20)
          to label %31 unwind label %39

31:                                               ; preds = %30
  %32 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.104, ptr noundef %32, double noundef %20)
          to label %33 unwind label %39

33:                                               ; preds = %31
  %34 = icmp sgt i32 %2, 0
  br i1 %34, label %35, label %41

35:                                               ; preds = %33
  %36 = uitofp nneg i32 %2 to double
  %37 = fmul double %20, %36
  %38 = fptosi double %37 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.105, i32 noundef %38, i32 noundef %2)
          to label %42 unwind label %39

39:                                               ; preds = %52, %47, %42, %41, %35, %31, %30
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %185

41:                                               ; preds = %33
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %42 unwind label %39

42:                                               ; preds = %41, %35
  %43 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %44 = getelementptr inbounds i8, ptr %1, i64 88
  %45 = load double, ptr %44, align 8, !tbaa !30
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.106, ptr noundef %43, double noundef %45)
          to label %46 unwind label %39

46:                                               ; preds = %42
  br i1 %34, label %47, label %52

47:                                               ; preds = %46
  %48 = load double, ptr %44, align 8, !tbaa !30
  %49 = uitofp nneg i32 %2 to double
  %50 = fmul double %48, %49
  %51 = fptosi double %50 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.105, i32 noundef %51, i32 noundef %2)
          to label %53 unwind label %39

52:                                               ; preds = %46
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %53 unwind label %39

53:                                               ; preds = %52, %47
  %54 = load i32, ptr %17, align 4, !tbaa !26
  %.not195 = icmp eq i32 %54, 0
  br i1 %.not195, label %61, label %55

55:                                               ; preds = %53
  %56 = call noundef double @_Z16doublePercentageii(i32 noundef %54, i32 noundef %29)
  %57 = fptosi double %56 to i32
  %58 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.107, i32 noundef %54, ptr noundef %58, i32 noundef %57, double noundef 0.000000e+00)
          to label %61 unwind label %59

59:                                               ; preds = %183, %180, %179, %178, %172, %167, %161, %150, %145, %144, %138, %80, %74, %65, %55
  %60 = landingpad { ptr, i32 }
          cleanup
  br label %185

61:                                               ; preds = %55, %53
  %62 = getelementptr inbounds i8, ptr %1, i64 120
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef 0) #5
  %64 = load i32, ptr %63, align 4, !tbaa !27
  %.not196 = icmp eq i32 %64, 0
  br i1 %.not196, label %81, label %65

65:                                               ; preds = %61
  %66 = call noundef double @_Z16doublePercentageii(i32 noundef %64, i32 noundef %29)
  %67 = fptosi double %66 to i32
  %68 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %69 = getelementptr inbounds i8, ptr %1, i64 96
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #5
  %71 = load double, ptr %70, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.108, i32 noundef %64, ptr noundef %68, i32 noundef %67, double noundef 0.000000e+00, double noundef %71)
          to label %72 unwind label %59

72:                                               ; preds = %65
  %73 = add nsw i32 %64, %54
  br i1 %34, label %74, label %80

74:                                               ; preds = %72
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef 0) #5
  %76 = load double, ptr %75, align 8, !tbaa !31
  %77 = uitofp nneg i32 %2 to double
  %78 = fmul double %76, %77
  %79 = fptosi double %78 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.109, i32 noundef 0, i32 noundef %79)
          to label %81 unwind label %59

80:                                               ; preds = %72
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %81 unwind label %59

81:                                               ; preds = %74, %80, %61
  %.1 = phi i32 [ %73, %74 ], [ %73, %80 ], [ %54, %61 ]
  %82 = icmp sgt i32 %10, 1
  br i1 %82, label %.lr.ph214, label %._crit_edge215.thread

.lr.ph214:                                        ; preds = %81
  %83 = getelementptr inbounds i8, ptr %1, i64 96
  %84 = uitofp nneg i32 %2 to double
  %wide.trip.count221 = zext nneg i32 %10 to i64
  br label %86

._crit_edge215:                                   ; preds = %129
  %85 = trunc nuw i8 %.1176 to i1
  br i1 %85, label %._crit_edge215.thread, label %146

86:                                               ; preds = %.lr.ph214, %129
  %indvars.iv219 = phi i64 [ 1, %.lr.ph214 ], [ %indvars.iv.next220, %129 ]
  %.2211 = phi i32 [ %.1, %.lr.ph214 ], [ %.5, %129 ]
  %.0175210 = phi i8 [ 1, %.lr.ph214 ], [ %.1176, %129 ]
  %87 = trunc nuw i8 %.0175210 to i1
  br i1 %87, label %88, label %105

88:                                               ; preds = %86
  %89 = add nsw i64 %indvars.iv219, -1
  %90 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %89) #5
  %91 = load double, ptr %90, align 8, !tbaa !31
  %92 = fcmp ult double %91, 1.000000e+00
  br i1 %92, label %105, label %93

93:                                               ; preds = %88
  %94 = load i32, ptr %18, align 8, !tbaa !25
  %.not201 = icmp eq i32 %94, 0
  br i1 %.not201, label %105, label %95

95:                                               ; preds = %93
  %96 = call noundef double @_Z16doublePercentageii(i32 noundef %94, i32 noundef %29)
  %97 = fptosi double %96 to i32
  %98 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.110, i32 noundef %94, ptr noundef %98, i32 noundef %97, double noundef 1.000000e+00)
          to label %99 unwind label %102

99:                                               ; preds = %95
  %100 = add nsw i32 %94, %.2211
  br i1 %34, label %101, label %104

101:                                              ; preds = %99
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.111, i32 noundef %2)
          to label %105 unwind label %102

102:                                              ; preds = %128, %119, %108, %104, %101, %95
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %185

104:                                              ; preds = %99
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %105 unwind label %102

105:                                              ; preds = %93, %104, %101, %88, %86
  %.1176 = phi i8 [ %.0175210, %88 ], [ %.0175210, %86 ], [ 0, %101 ], [ 0, %104 ], [ 0, %93 ]
  %.4 = phi i32 [ %.2211, %88 ], [ %.2211, %86 ], [ %100, %101 ], [ %100, %104 ], [ %.2211, %93 ]
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %indvars.iv219) #5
  %107 = load i32, ptr %106, align 4, !tbaa !27
  %.not202 = icmp eq i32 %107, 0
  br i1 %.not202, label %129, label %108

108:                                              ; preds = %105
  %109 = call noundef double @_Z16doublePercentageii(i32 noundef %107, i32 noundef %29)
  %110 = fptosi double %109 to i32
  %111 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %112 = add nsw i64 %indvars.iv219, -1
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %112) #5
  %114 = load double, ptr %113, align 8, !tbaa !31
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %indvars.iv219) #5
  %116 = load double, ptr %115, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.112, i32 noundef %107, ptr noundef %111, i32 noundef %110, double noundef %114, double noundef %116)
          to label %117 unwind label %102

117:                                              ; preds = %108
  %118 = add nsw i32 %107, %.4
  br i1 %34, label %119, label %128

119:                                              ; preds = %117
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %112) #5
  %121 = load double, ptr %120, align 8, !tbaa !31
  %122 = fmul double %121, %84
  %123 = fptosi double %122 to i32
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %indvars.iv219) #5
  %125 = load double, ptr %124, align 8, !tbaa !31
  %126 = fmul double %125, %84
  %127 = fptosi double %126 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.113, i32 noundef %123, i32 noundef %127)
          to label %129 unwind label %102

128:                                              ; preds = %117
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %129 unwind label %102

129:                                              ; preds = %105, %128, %119
  %.5 = phi i32 [ %118, %119 ], [ %118, %128 ], [ %.4, %105 ]
  %indvars.iv.next220 = add nuw nsw i64 %indvars.iv219, 1
  %exitcond222.not = icmp eq i64 %indvars.iv.next220, %wide.trip.count221
  br i1 %exitcond222.not, label %._crit_edge215, label %86, !llvm.loop !32

._crit_edge215.thread:                            ; preds = %81, %._crit_edge215
  %.2.lcssa226 = phi i32 [ %.5, %._crit_edge215 ], [ %.1, %81 ]
  %.0175.lcssa225 = phi i8 [ %.1176, %._crit_edge215 ], [ 1, %81 ]
  %130 = getelementptr inbounds i8, ptr %1, i64 96
  %131 = add nsw i32 %10, -1
  %132 = sext i32 %131 to i64
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #5
  %134 = load double, ptr %133, align 8, !tbaa !31
  %135 = fcmp ult double %134, 1.000000e+00
  br i1 %135, label %146, label %136

136:                                              ; preds = %._crit_edge215.thread
  %137 = load i32, ptr %18, align 8, !tbaa !25
  %.not197 = icmp eq i32 %137, 0
  br i1 %.not197, label %146, label %138

138:                                              ; preds = %136
  %139 = call noundef double @_Z16doublePercentageii(i32 noundef %137, i32 noundef %29)
  %140 = fptosi double %139 to i32
  %141 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.110, i32 noundef %137, ptr noundef %141, i32 noundef %140, double noundef 1.000000e+00)
          to label %142 unwind label %59

142:                                              ; preds = %138
  %143 = add nsw i32 %137, %.2.lcssa226
  br i1 %34, label %144, label %145

144:                                              ; preds = %142
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.114, i32 noundef %2)
          to label %146 unwind label %59

145:                                              ; preds = %142
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %146 unwind label %59

146:                                              ; preds = %136, %145, %144, %._crit_edge215.thread, %._crit_edge215
  %.2177 = phi i8 [ %.0175.lcssa225, %._crit_edge215.thread ], [ %.1176, %._crit_edge215 ], [ 0, %144 ], [ 0, %145 ], [ 0, %136 ]
  %.7 = phi i32 [ %.2.lcssa226, %._crit_edge215.thread ], [ %.5, %._crit_edge215 ], [ %143, %144 ], [ %143, %145 ], [ %.2.lcssa226, %136 ]
  %147 = zext nneg i32 %10 to i64
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %62, i64 noundef %147) #5
  %149 = load i32, ptr %148, align 4, !tbaa !27
  %.not198 = icmp eq i32 %149, 0
  br i1 %.not198, label %168, label %150

150:                                              ; preds = %146
  %151 = call noundef double @_Z16doublePercentageii(i32 noundef %149, i32 noundef %29)
  %152 = fptosi double %151 to i32
  %153 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  %154 = getelementptr inbounds i8, ptr %1, i64 96
  %155 = add nsw i32 %10, -1
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
  %158 = load double, ptr %157, align 8, !tbaa !31
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.115, i32 noundef %149, ptr noundef %153, i32 noundef %152, double noundef %158)
          to label %159 unwind label %59

159:                                              ; preds = %150
  %160 = add nsw i32 %149, %.7
  br i1 %34, label %161, label %167

161:                                              ; preds = %159
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
  %163 = load double, ptr %162, align 8, !tbaa !31
  %164 = uitofp nneg i32 %2 to double
  %165 = fmul double %163, %164
  %166 = fptosi double %165 to i32
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.116, i32 noundef %166)
          to label %168 unwind label %59

167:                                              ; preds = %159
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %168 unwind label %59

168:                                              ; preds = %161, %167, %146
  %.8 = phi i32 [ %160, %161 ], [ %160, %167 ], [ %.7, %146 ]
  %169 = trunc nuw i8 %.2177 to i1
  br i1 %169, label %170, label %180

170:                                              ; preds = %168
  %171 = load i32, ptr %18, align 8, !tbaa !25
  %.not199 = icmp eq i32 %171, 0
  br i1 %.not199, label %180, label %172

172:                                              ; preds = %170
  %173 = call noundef double @_Z16doublePercentageii(i32 noundef %171, i32 noundef %29)
  %174 = fptosi double %173 to i32
  %175 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.110, i32 noundef %171, ptr noundef %175, i32 noundef %174, double noundef 1.000000e+00)
          to label %176 unwind label %59

176:                                              ; preds = %172
  %177 = add nsw i32 %171, %.8
  br i1 %34, label %178, label %179

178:                                              ; preds = %176
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.114, i32 noundef %2)
          to label %180 unwind label %59

179:                                              ; preds = %176
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.85)
          to label %180 unwind label %59

180:                                              ; preds = %170, %179, %178, %168
  %.9 = phi i32 [ %177, %178 ], [ %177, %179 ], [ %.8, %170 ], [ %.8, %168 ]
  %181 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.117, i32 noundef %29, ptr noundef %181)
          to label %182 unwind label %59

182:                                              ; preds = %180
  %.not200 = icmp eq i32 %.9, %29
  br i1 %.not200, label %184, label %183

183:                                              ; preds = %182
  invoke void (ptr, i32, ptr, ...) @_Z11highsLogDevRK15HighsLogOptions12HighsLogTypePKcz(ptr noundef nonnull align 8 dereferenceable(89) %0, i32 noundef 1, ptr noundef nonnull @.str.118, i32 noundef %.9, i32 noundef %29)
          to label %184 unwind label %59

184:                                              ; preds = %182, %183, %._crit_edge
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  br label %186

185:                                              ; preds = %59, %102, %39
  %.pn.pn = phi { ptr, i32 } [ %40, %39 ], [ %103, %102 ], [ %60, %59 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn.pn

186:                                              ; preds = %184, %8, %3
  %.2173 = phi i1 [ false, %3 ], [ %.not194, %184 ], [ false, %8 ]
  ret i1 %.2173
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZStneIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

attributes #0 = { mustprogress 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !13, i64 144}
!6 = !{!"_ZTS22HighsValueDistribution", !7, i64 0, !7, i64 32, !13, i64 64, !13, i64 68, !13, i64 72, !14, i64 80, !14, i64 88, !15, i64 96, !19, i64 120, !13, i64 144}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"int", !10, i64 0}
!14 = !{!"double", !10, i64 0}
!15 = !{!"_ZTSSt6vectorIdSaIdEE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!19 = !{!"_ZTSSt6vectorIiSaIiEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!23 = !{!6, !13, i64 64}
!24 = !{!6, !14, i64 80}
!25 = !{!6, !13, i64 72}
!26 = !{!6, !13, i64 68}
!27 = !{!13, !13, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!6, !14, i64 88}
!31 = !{!14, !14, i64 0}
!32 = distinct !{!32, !29}


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