; LLVM IR from ERGO-Code/HiGHS :: src/util/HighsLinearSumBounds.ll (ZN20HighsLinearSumBounds19updatedImplVarLowerEiiddi)

; 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.HighsLinearSumBounds = type { %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", %"class.std::vector", %"class.std::vector", %"class.std::vector.3", %"class.std::vector.3", ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl" = type { %"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" }
%"struct.std::_Vector_base<HighsCDouble, std::allocator<HighsCDouble>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<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 }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20HighsLinearSumBounds19updatedImplVarLowerEiiddi(ptr noundef nonnull align 8 dereferenceable(240) %0, i32 noundef %1, i32 noundef %2, double noundef %3, double noundef %4, i32 noundef %5) #3 align 2 {
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca i32, align 4
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %7, align 8, !tbaa !5
  store i32 %1, ptr %8, align 4, !tbaa !9
  store i32 %2, ptr %9, align 4, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !11
  store double %4, ptr %11, align 8, !tbaa !11
  store i32 %5, ptr %12, align 4, !tbaa !9
  %16 = load ptr, ptr %7, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %17 = load i32, ptr %12, align 4, !tbaa !9
  %18 = load i32, ptr %8, align 4, !tbaa !9
  %19 = icmp eq i32 %17, %18
  br i1 %19, label %20, label %27

20:                                               ; preds = %6
  %21 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 8
  %22 = load ptr, ptr %21, align 8, !tbaa !13
  %23 = load i32, ptr %9, align 4, !tbaa !9
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %22, i64 %24
  %26 = load double, ptr %25, align 8, !tbaa !11
  br label %35

27:                                               ; preds = %6
  %28 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 8
  %29 = load ptr, ptr %28, align 8, !tbaa !13
  %30 = load i32, ptr %9, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds double, ptr %29, i64 %31
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = load double, ptr %33, align 8, !tbaa !11
  br label %35

35:                                               ; preds = %27, %20
  %36 = phi double [ %26, %20 ], [ %34, %27 ]
  store double %36, ptr %13, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %37 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 12
  %38 = load ptr, ptr %37, align 8, !tbaa !23
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i32, ptr %38, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = icmp eq i32 %42, %43
  br i1 %44, label %45, label %52

45:                                               ; preds = %35
  %46 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 8
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds double, ptr %47, i64 %49
  %51 = load double, ptr %50, align 8, !tbaa !11
  br label %65

52:                                               ; preds = %35
  %53 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 10
  %54 = load ptr, ptr %53, align 8, !tbaa !24
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds double, ptr %54, i64 %56
  %58 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 8
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load i32, ptr %9, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds double, ptr %59, i64 %61
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(8) %62)
  %64 = load double, ptr %63, align 8, !tbaa !11
  br label %65

65:                                               ; preds = %52, %45
  %66 = phi double [ %51, %45 ], [ %64, %52 ]
  store double %66, ptr %14, align 8, !tbaa !11
  %67 = load double, ptr %14, align 8, !tbaa !11
  %68 = load double, ptr %13, align 8, !tbaa !11
  %69 = fcmp oeq double %67, %68
  br i1 %69, label %70, label %71

70:                                               ; preds = %65
  store i32 1, ptr %15, align 4
  br label %153

71:                                               ; preds = %65
  %72 = load double, ptr %10, align 8, !tbaa !11
  %73 = fcmp ogt double %72, 0.000000e+00
  br i1 %73, label %74, label %113

74:                                               ; preds = %71
  %75 = load double, ptr %13, align 8, !tbaa !11
  %76 = fcmp oeq double %75, 0xFFF0000000000000
  br i1 %76, label %77, label %84

77:                                               ; preds = %74
  %78 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 6
  %79 = load i32, ptr %8, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #4
  %82 = load i32, ptr %81, align 4, !tbaa !9
  %83 = sub nsw i32 %82, 1
  store i32 %83, ptr %81, align 4, !tbaa !9
  br label %93

84:                                               ; preds = %74
  %85 = load double, ptr %13, align 8, !tbaa !11
  %86 = load double, ptr %10, align 8, !tbaa !11
  %87 = fmul double %85, %86
  %88 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 4
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #4
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %91, double noundef %87)
  br label %93

93:                                               ; preds = %84, %77
  %94 = load double, ptr %14, align 8, !tbaa !11
  %95 = fcmp oeq double %94, 0xFFF0000000000000
  br i1 %95, label %96, label %103

96:                                               ; preds = %93
  %97 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 6
  %98 = load i32, ptr %8, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %99) #4
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %100, align 4, !tbaa !9
  br label %112

103:                                              ; preds = %93
  %104 = load double, ptr %14, align 8, !tbaa !11
  %105 = load double, ptr %10, align 8, !tbaa !11
  %106 = fmul double %104, %105
  %107 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 4
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #4
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %110, double noundef %106)
  br label %112

112:                                              ; preds = %103, %96
  br label %152

113:                                              ; preds = %71
  %114 = load double, ptr %13, align 8, !tbaa !11
  %115 = fcmp oeq double %114, 0xFFF0000000000000
  br i1 %115, label %116, label %123

116:                                              ; preds = %113
  %117 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 7
  %118 = load i32, ptr %8, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #4
  %121 = load i32, ptr %120, align 4, !tbaa !9
  %122 = sub nsw i32 %121, 1
  store i32 %122, ptr %120, align 4, !tbaa !9
  br label %132

123:                                              ; preds = %113
  %124 = load double, ptr %13, align 8, !tbaa !11
  %125 = load double, ptr %10, align 8, !tbaa !11
  %126 = fmul double %124, %125
  %127 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 5
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %127, i64 noundef %129) #4
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %130, double noundef %126)
  br label %132

132:                                              ; preds = %123, %116
  %133 = load double, ptr %14, align 8, !tbaa !11
  %134 = fcmp oeq double %133, 0xFFF0000000000000
  br i1 %134, label %135, label %142

135:                                              ; preds = %132
  %136 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 7
  %137 = load i32, ptr %8, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %136, i64 noundef %138) #4
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = add nsw i32 %140, 1
  store i32 %141, ptr %139, align 4, !tbaa !9
  br label %151

142:                                              ; preds = %132
  %143 = load double, ptr %14, align 8, !tbaa !11
  %144 = load double, ptr %10, align 8, !tbaa !11
  %145 = fmul double %143, %144
  %146 = getelementptr inbounds %class.HighsLinearSumBounds, ptr %16, i32 0, i32 5
  %147 = load i32, ptr %8, align 4, !tbaa !9
  %148 = sext i32 %147 to i64
  %149 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %146, i64 noundef %148) #4
  %150 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %149, double noundef %145)
  br label %151

151:                                              ; preds = %142, %135
  br label %152

152:                                              ; preds = %151, %112
  store i32 0, ptr %15, align 4
  br label %153

153:                                              ; preds = %152, %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  %154 = load i32, ptr %15, align 4
  switch i32 %154, label %156 [
    i32 0, label %155
    i32 1, label %155
  ]

155:                                              ; preds = %153, %153
  ret void

156:                                              ; preds = %153
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 }

!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 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 192}
!14 = !{!"_ZTS20HighsLinearSumBounds", !15, i64 0, !15, i64 24, !19, i64 48, !19, i64 72, !15, i64 96, !15, i64 120, !19, i64 144, !19, i64 168, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !6, i64 232}
!15 = !{!"_ZTSSt6vectorI12HighsCDoubleSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI12HighsCDoubleSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI12HighsCDoubleSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI12HighsCDoubleSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, 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", !6, i64 0, !6, i64 8, !6, i64 16}
!23 = !{!14, !6, i64 224}
!24 = !{!14, !6, i64 208}


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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16), double noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN20HighsLinearSumBounds19updatedImplVarLowerEiiddi(ptr noundef nonnull align 8 dereferenceable(240) %0, i32 noundef %1, i32 noundef %2, double noundef %3, double noundef %4, i32 noundef %5) local_unnamed_addr #2 align 2 {
  %7 = alloca double, align 8
  store double %4, ptr %7, align 8, !tbaa !5
  %8 = icmp eq i32 %5, %1
  %9 = getelementptr inbounds i8, ptr %0, i64 192
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = sext i32 %2 to i64
  %12 = getelementptr inbounds double, ptr %10, i64 %11
  br i1 %8, label %15, label %13

13:                                               ; preds = %6
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %12)
  br label %15

15:                                               ; preds = %6, %13
  %.in = phi ptr [ %14, %13 ], [ %12, %6 ]
  %16 = load double, ptr %.in, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 224
  %18 = load ptr, ptr %17, align 8, !tbaa !20
  %19 = getelementptr inbounds i32, ptr %18, i64 %11
  %20 = load i32, ptr %19, align 4, !tbaa !21
  %21 = icmp eq i32 %20, %1
  br i1 %21, label %22, label %26

22:                                               ; preds = %15
  %23 = getelementptr inbounds i8, ptr %0, i64 192
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds double, ptr %24, i64 %11
  br label %34

26:                                               ; preds = %15
  %27 = getelementptr inbounds i8, ptr %0, i64 208
  %28 = load ptr, ptr %27, align 8, !tbaa !23
  %29 = getelementptr inbounds double, ptr %28, i64 %11
  %30 = getelementptr inbounds i8, ptr %0, i64 192
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds double, ptr %31, i64 %11
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef nonnull align 8 dereferenceable(8) %32)
  br label %34

34:                                               ; preds = %26, %22
  %.in34 = phi ptr [ %25, %22 ], [ %33, %26 ]
  %35 = load double, ptr %.in34, align 8, !tbaa !5
  %36 = fcmp oeq double %35, %16
  br i1 %36, label %94, label %37

37:                                               ; preds = %34
  %38 = fcmp ogt double %3, 0.000000e+00
  %39 = fcmp oeq double %16, 0xFFF0000000000000
  br i1 %38, label %40, label %67

40:                                               ; preds = %37
  br i1 %39, label %41, label %47

41:                                               ; preds = %40
  %42 = getelementptr inbounds i8, ptr %0, i64 144
  %43 = sext i32 %1 to i64
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %43) #3
  %45 = load i32, ptr %44, align 4, !tbaa !21
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %44, align 4, !tbaa !21
  br label %53

47:                                               ; preds = %40
  %48 = fmul double %16, %3
  %49 = getelementptr inbounds i8, ptr %0, i64 96
  %50 = sext i32 %1 to i64
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %50) #3
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %51, double noundef %48)
  br label %53

53:                                               ; preds = %47, %41
  %54 = fcmp oeq double %35, 0xFFF0000000000000
  br i1 %54, label %55, label %61

55:                                               ; preds = %53
  %56 = getelementptr inbounds i8, ptr %0, i64 144
  %57 = sext i32 %1 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %57) #3
  %59 = load i32, ptr %58, align 4, !tbaa !21
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !21
  br label %94

61:                                               ; preds = %53
  %62 = fmul double %35, %3
  %63 = getelementptr inbounds i8, ptr %0, i64 96
  %64 = sext i32 %1 to i64
  %65 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %64) #3
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %65, double noundef %62)
  br label %94

67:                                               ; preds = %37
  br i1 %39, label %68, label %74

68:                                               ; preds = %67
  %69 = getelementptr inbounds i8, ptr %0, i64 168
  %70 = sext i32 %1 to i64
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %70) #3
  %72 = load i32, ptr %71, align 4, !tbaa !21
  %73 = add nsw i32 %72, -1
  store i32 %73, ptr %71, align 4, !tbaa !21
  br label %80

74:                                               ; preds = %67
  %75 = fmul double %16, %3
  %76 = getelementptr inbounds i8, ptr %0, i64 120
  %77 = sext i32 %1 to i64
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %76, i64 noundef %77) #3
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublemIEd(ptr noundef nonnull align 8 dereferenceable(16) %78, double noundef %75)
  br label %80

80:                                               ; preds = %74, %68
  %81 = fcmp oeq double %35, 0xFFF0000000000000
  br i1 %81, label %82, label %88

82:                                               ; preds = %80
  %83 = getelementptr inbounds i8, ptr %0, i64 168
  %84 = sext i32 %1 to i64
  %85 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %83, i64 noundef %84) #3
  %86 = load i32, ptr %85, align 4, !tbaa !21
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %85, align 4, !tbaa !21
  br label %94

88:                                               ; preds = %80
  %89 = fmul double %35, %3
  %90 = getelementptr inbounds i8, ptr %0, i64 120
  %91 = sext i32 %1 to i64
  %92 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorI12HighsCDoubleSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #3
  %93 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZN12HighsCDoublepLEd(ptr noundef nonnull align 8 dereferenceable(16) %92, double noundef %89)
  br label %94

94:                                               ; preds = %61, %55, %88, %82, %34
  ret void
}

attributes #0 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !15, i64 192}
!10 = !{!"_ZTS20HighsLinearSumBounds", !11, i64 0, !11, i64 24, !16, i64 48, !16, i64 72, !11, i64 96, !11, i64 120, !16, i64 144, !16, i64 168, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !15, i64 224, !15, i64 232}
!11 = !{!"_ZTSSt6vectorI12HighsCDoubleSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseI12HighsCDoubleSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI12HighsCDoubleSaIS0_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI12HighsCDoubleSaIS0_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIiSaIiEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!20 = !{!10, !15, i64 224}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{!10, !15, i64 208}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass