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

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

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

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

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

19:                                               ; preds = %6
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load i32, ptr %20, align 4, !tbaa !9
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 4, !tbaa !9
  %23 = load ptr, ptr %7, align 8, !tbaa !5
  %24 = load i32, ptr %23, align 4, !tbaa !9
  store i32 %24, ptr %13, align 4, !tbaa !9
  %25 = load i32, ptr %13, align 4, !tbaa !9
  %26 = sdiv i32 %25, 2
  store i32 %26, ptr %14, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %38, %19
  %28 = load i32, ptr %14, align 4, !tbaa !9
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %30, label %61

30:                                               ; preds = %27
  %31 = load double, ptr %11, align 8, !tbaa !11
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load i32, ptr %14, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #2
  %36 = load double, ptr %35, align 8, !tbaa !11
  %37 = fcmp olt double %31, %36
  br i1 %37, label %38, label %60

38:                                               ; preds = %30
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = load i32, ptr %14, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %41) #2
  %43 = load double, ptr %42, align 8, !tbaa !11
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = load i32, ptr %13, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %46) #2
  store double %43, ptr %47, align 8, !tbaa !11
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = load i32, ptr %14, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %50) #2
  %52 = load i32, ptr %51, align 4, !tbaa !9
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = load i32, ptr %13, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #2
  store i32 %52, ptr %56, align 4, !tbaa !9
  %57 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %57, ptr %13, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = sdiv i32 %58, 2
  store i32 %59, ptr %14, align 4, !tbaa !9
  br label %27, !llvm.loop !13

60:                                               ; preds = %30
  br label %61

61:                                               ; preds = %60, %27
  br label %62

62:                                               ; preds = %61
  %63 = load double, ptr %11, align 8, !tbaa !11
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = load i32, ptr %13, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %66) #2
  store double %63, ptr %67, align 8, !tbaa !11
  %68 = load i32, ptr %12, align 4, !tbaa !9
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %13, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %71) #2
  store i32 %68, ptr %72, align 4, !tbaa !9
  br label %155

73:                                               ; preds = %6
  %74 = load double, ptr %11, align 8, !tbaa !11
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef 1) #2
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = fcmp ogt double %74, %77
  br i1 %78, label %79, label %154

79:                                               ; preds = %73
  store i32 1, ptr %14, align 4, !tbaa !9
  %80 = load i32, ptr %14, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = add nsw i32 %80, %81
  store i32 %82, ptr %13, align 4, !tbaa !9
  br label %83

83:                                               ; preds = %118, %79
  %84 = load i32, ptr %13, align 4, !tbaa !9
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = icmp sle i32 %84, %86
  br i1 %87, label %88, label %142

88:                                               ; preds = %83
  %89 = load i32, ptr %13, align 4, !tbaa !9
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = load i32, ptr %90, align 4, !tbaa !9
  %92 = icmp slt i32 %89, %91
  br i1 %92, label %93, label %110

93:                                               ; preds = %88
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %96) #2
  %98 = load double, ptr %97, align 8, !tbaa !11
  %99 = load ptr, ptr %9, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  %101 = add nsw i32 %100, 1
  %102 = sext i32 %101 to i64
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %102) #2
  %104 = load double, ptr %103, align 8, !tbaa !11
  %105 = fcmp ogt double %98, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %93
  %107 = load i32, ptr %13, align 4, !tbaa !9
  %108 = add nsw i32 %107, 1
  store i32 %108, ptr %13, align 4, !tbaa !9
  br label %109

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

110:                                              ; preds = %109, %88
  %111 = load double, ptr %11, align 8, !tbaa !11
  %112 = load ptr, ptr %9, align 8, !tbaa !5
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #2
  %116 = load double, ptr %115, align 8, !tbaa !11
  %117 = fcmp ogt double %111, %116
  br i1 %117, label %118, label %141

118:                                              ; preds = %110
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load i32, ptr %13, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %119, i64 noundef %121) #2
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load ptr, ptr %9, align 8, !tbaa !5
  %125 = load i32, ptr %14, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #2
  store double %123, ptr %127, align 8, !tbaa !11
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #2
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = load i32, ptr %14, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #2
  store i32 %132, ptr %136, align 4, !tbaa !9
  %137 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %137, ptr %14, align 4, !tbaa !9
  %138 = load i32, ptr %13, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = add nsw i32 %138, %139
  store i32 %140, ptr %13, align 4, !tbaa !9
  br label %83, !llvm.loop !15

141:                                              ; preds = %110
  br label %142

142:                                              ; preds = %141, %83
  br label %143

143:                                              ; preds = %142
  %144 = load double, ptr %11, align 8, !tbaa !11
  %145 = load ptr, ptr %9, align 8, !tbaa !5
  %146 = load i32, ptr %14, align 4, !tbaa !9
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #2
  store double %144, ptr %148, align 8, !tbaa !11
  %149 = load i32, ptr %12, align 4, !tbaa !9
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = sext i32 %151 to i64
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %152) #2
  store i32 %149, ptr %153, align 4, !tbaa !9
  br label %154

154:                                              ; preds = %143, %73
  br label %155

155:                                              ; preds = %154, %62
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  %157 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef 0) #2
  store i32 1, ptr %157, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #2
  ret void
}

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

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

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


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

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z19addToDecreasingHeapRiiRSt6vectorIdSaIdEERS0_IiSaIiEEdi(ptr nocapture noundef nonnull align 4 dereferenceable(4) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %4, i32 noundef %5) local_unnamed_addr #0 {
  %7 = load i32, ptr %0, align 4, !tbaa !5
  %8 = icmp slt i32 %7, %1
  br i1 %8, label %9, label %25

9:                                                ; preds = %6
  %10 = add nsw i32 %7, 1
  store i32 %10, ptr %0, align 4, !tbaa !5
  %11 = icmp sgt i32 %7, 0
  br i1 %11, label %.lr.ph71, label %._crit_edge72

.lr.ph71:                                         ; preds = %9, %16
  %.05868 = phi i32 [ %.069, %16 ], [ %10, %9 ]
  %.069 = lshr i32 %.05868, 1
  %12 = zext nneg i32 %.069 to i64
  %13 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %12) #1
  %14 = load double, ptr %13, align 8, !tbaa !9
  %15 = fcmp ogt double %14, %4
  br i1 %15, label %16, label %._crit_edge72

16:                                               ; preds = %.lr.ph71
  %17 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %12) #1
  %18 = load double, ptr %17, align 8, !tbaa !9
  %19 = zext nneg i32 %.05868 to i64
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %19) #1
  store double %18, ptr %20, align 8, !tbaa !9
  %21 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %12) #1
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %19) #1
  store i32 %22, ptr %23, align 4, !tbaa !5
  %.not76 = icmp ult i32 %.05868, 4
  br i1 %.not76, label %._crit_edge72, label %.lr.ph71, !llvm.loop !11

._crit_edge72:                                    ; preds = %.lr.ph71, %16, %9
  %.058.lcssa = phi i32 [ %10, %9 ], [ %.069, %16 ], [ %.05868, %.lr.ph71 ]
  %24 = sext i32 %.058.lcssa to i64
  br label %.sink.split

25:                                               ; preds = %6
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #1
  %27 = load double, ptr %26, align 8, !tbaa !9
  %28 = fcmp olt double %27, %4
  br i1 %28, label %.preheader, label %58

.preheader:                                       ; preds = %25
  %29 = load i32, ptr %0, align 4, !tbaa !5
  %.not63 = icmp slt i32 %29, 2
  br i1 %.not63, label %.sink.split, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %45
  %30 = phi i32 [ %54, %45 ], [ %29, %.preheader ]
  %.165 = phi i32 [ %.2, %45 ], [ 1, %.preheader ]
  %.15964 = phi i32 [ %53, %45 ], [ 2, %.preheader ]
  %31 = icmp slt i32 %.15964, %30
  %32 = sext i32 %.15964 to i64
  br i1 %31, label %33, label %.lr.ph._crit_edge

33:                                               ; preds = %.lr.ph
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %32) #1
  %35 = load double, ptr %34, align 8, !tbaa !9
  %36 = or disjoint i32 %.15964, 1
  %37 = sext i32 %36 to i64
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %37) #1
  %39 = load double, ptr %38, align 8, !tbaa !9
  %40 = fcmp ogt double %35, %39
  br i1 %40, label %41, label %.lr.ph._crit_edge

41:                                               ; preds = %33
  br label %.lr.ph._crit_edge

.lr.ph._crit_edge:                                ; preds = %.lr.ph, %33, %41
  %.pre-phi = phi i64 [ %32, %33 ], [ %37, %41 ], [ %32, %.lr.ph ]
  %.2 = phi i32 [ %.15964, %33 ], [ %36, %41 ], [ %.15964, %.lr.ph ]
  %42 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.pre-phi) #1
  %43 = load double, ptr %42, align 8, !tbaa !9
  %44 = fcmp olt double %43, %4
  br i1 %44, label %45, label %._crit_edge.loopexit

45:                                               ; preds = %.lr.ph._crit_edge
  %46 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.pre-phi) #1
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = sext i32 %.165 to i64
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %48) #1
  store double %47, ptr %49, align 8, !tbaa !9
  %50 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.pre-phi) #1
  %51 = load i32, ptr %50, align 4, !tbaa !5
  %52 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %48) #1
  store i32 %51, ptr %52, align 4, !tbaa !5
  %53 = shl nsw i32 %.2, 1
  %54 = load i32, ptr %0, align 4, !tbaa !5
  %.not = icmp sgt i32 %53, %54
  br i1 %.not, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %45, %.lr.ph._crit_edge
  %.1.lcssa.ph = phi i32 [ %.165, %.lr.ph._crit_edge ], [ %.2, %45 ]
  %55 = sext i32 %.1.lcssa.ph to i64
  br label %.sink.split

.sink.split:                                      ; preds = %.preheader, %._crit_edge.loopexit, %._crit_edge72
  %.1.lcssa.sink77 = phi i64 [ %24, %._crit_edge72 ], [ 1, %.preheader ], [ %55, %._crit_edge.loopexit ]
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.1.lcssa.sink77) #1
  store double %4, ptr %56, align 8, !tbaa !9
  %57 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %.1.lcssa.sink77) #1
  store i32 %5, ptr %57, align 4, !tbaa !5
  br label %58

58:                                               ; preds = %.sink.split, %25
  %59 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #1
  store i32 1, ptr %59, align 4, !tbaa !5
  ret void
}

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass