; LLVM IR from yuikns/panther :: ann/test/rand.ll (Z17annClusEllipsoidsPPdiii7ANNbooldddi)

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

@_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers = external hidden global ptr, align 8
@_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev = external hidden global ptr, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z7annRan0v() #0

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL10annRanUnifdd(double noundef, double noundef) #0

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) #2

declare noundef ptr @_Z11annAllocPtsii(i32 noundef, i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL9annRanInti(i32 noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17annClusEllipsoidsPPdiii7ANNbooldddi(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8) #3 {
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store i32 %2, ptr %12, align 4, !tbaa !9
  store i32 %3, ptr %13, align 4, !tbaa !9
  store i32 %4, ptr %14, align 4, !tbaa !11
  store double %5, ptr %15, align 8, !tbaa !13
  store double %6, ptr %16, align 8, !tbaa !13
  store double %7, ptr %17, align 8, !tbaa !13
  store i32 %8, ptr %18, align 4, !tbaa !9
  %29 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %30 = icmp eq ptr %29, null
  br i1 %30, label %34, label %31

31:                                               ; preds = %9
  %32 = load i32, ptr %14, align 4, !tbaa !11
  %33 = icmp ne i32 %32, 0
  br i1 %33, label %34, label %136

34:                                               ; preds = %31, %9
  %35 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %38

37:                                               ; preds = %34
  call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers)
  br label %38

38:                                               ; preds = %37, %34
  %39 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %42

41:                                               ; preds = %38
  call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev)
  br label %42

42:                                               ; preds = %41, %38
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = call noundef ptr @_Z11annAllocPtsii(i32 noundef %43, i32 noundef %44)
  store ptr %45, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %46 = load i32, ptr %13, align 4, !tbaa !9
  %47 = load i32, ptr %12, align 4, !tbaa !9
  %48 = call noundef ptr @_Z11annAllocPtsii(i32 noundef %46, i32 noundef %47)
  store ptr %48, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %74, %42
  %50 = load i32, ptr %19, align 4, !tbaa !9
  %51 = load i32, ptr %13, align 4, !tbaa !9
  %52 = icmp slt i32 %50, %51
  br i1 %52, label %54, label %53

53:                                               ; preds = %49
  store i32 2, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  br label %77

54:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %70, %54
  %56 = load i32, ptr %21, align 4, !tbaa !9
  %57 = load i32, ptr %12, align 4, !tbaa !9
  %58 = icmp slt i32 %56, %57
  br i1 %58, label %60, label %59

59:                                               ; preds = %55
  store i32 5, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %73

60:                                               ; preds = %55
  %61 = call noundef double @_ZL10annRanUnifdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %62 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %63 = load i32, ptr %19, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds ptr, ptr %62, i64 %64
  %66 = load ptr, ptr %65, align 8, !tbaa !5
  %67 = load i32, ptr %21, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  store double %61, ptr %69, align 8, !tbaa !13
  br label %70

70:                                               ; preds = %60
  %71 = load i32, ptr %21, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %21, align 4, !tbaa !9
  br label %55, !llvm.loop !15

73:                                               ; preds = %59
  br label %74

74:                                               ; preds = %73
  %75 = load i32, ptr %19, align 4, !tbaa !9
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %19, align 4, !tbaa !9
  br label %49, !llvm.loop !17

77:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %78

78:                                               ; preds = %132, %77
  %79 = load i32, ptr %22, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = icmp slt i32 %79, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %78
  store i32 8, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  br label %135

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %84 = load i32, ptr %18, align 4, !tbaa !9
  %85 = call noundef i32 @_ZL9annRanInti(i32 noundef %84)
  %86 = add nsw i32 1, %85
  store i32 %86, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %128, %83
  %88 = load i32, ptr %24, align 4, !tbaa !9
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  store i32 11, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  br label %131

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %93 = load i32, ptr %23, align 4, !tbaa !9
  %94 = sitofp i32 %93 to double
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = load i32, ptr %24, align 4, !tbaa !9
  %97 = sub nsw i32 %95, %96
  %98 = sitofp i32 %97 to double
  %99 = fdiv double %94, %98
  store double %99, ptr %25, align 8, !tbaa !13
  %100 = call noundef double @_Z7annRan0v()
  %101 = load double, ptr %25, align 8, !tbaa !13
  %102 = fcmp olt double %100, %101
  br i1 %102, label %103, label %117

103:                                              ; preds = %92
  %104 = load double, ptr %16, align 8, !tbaa !13
  %105 = load double, ptr %17, align 8, !tbaa !13
  %106 = call noundef double @_ZL10annRanUnifdd(double noundef %104, double noundef %105)
  %107 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %108 = load i32, ptr %22, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds ptr, ptr %107, i64 %109
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  %112 = load i32, ptr %24, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds double, ptr %111, i64 %113
  store double %106, ptr %114, align 8, !tbaa !13
  %115 = load i32, ptr %23, align 4, !tbaa !9
  %116 = add nsw i32 %115, -1
  store i32 %116, ptr %23, align 4, !tbaa !9
  br label %127

117:                                              ; preds = %92
  %118 = load double, ptr %15, align 8, !tbaa !13
  %119 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds ptr, ptr %119, i64 %121
  %123 = load ptr, ptr %122, align 8, !tbaa !5
  %124 = load i32, ptr %24, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds double, ptr %123, i64 %125
  store double %118, ptr %126, align 8, !tbaa !13
  br label %127

127:                                              ; preds = %117, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  br label %128

128:                                              ; preds = %127
  %129 = load i32, ptr %24, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %24, align 4, !tbaa !9
  br label %87, !llvm.loop !18

131:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %22, align 4, !tbaa !9
  br label %78, !llvm.loop !19

135:                                              ; preds = %82
  br label %136

136:                                              ; preds = %135, %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #4
  store i32 0, ptr %27, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %167, %136
  %138 = load i32, ptr %27, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = icmp slt i32 %138, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %137
  store i32 14, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #4
  br label %170

142:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  %143 = load i32, ptr %11, align 4, !tbaa !9
  %144 = load i32, ptr %27, align 4, !tbaa !9
  %145 = add nsw i32 %143, %144
  %146 = load i32, ptr %13, align 4, !tbaa !9
  %147 = sdiv i32 %145, %146
  store i32 %147, ptr %28, align 4, !tbaa !9
  %148 = load ptr, ptr %10, align 8, !tbaa !5
  %149 = load i32, ptr %26, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds ptr, ptr %148, i64 %150
  %152 = load i32, ptr %28, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %155 = load i32, ptr %27, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds ptr, ptr %154, i64 %156
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  %159 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %160 = load i32, ptr %27, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %159, i64 %161
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  call void @_ZL8genGaussPPdiiS_S_(ptr noundef %151, i32 noundef %152, i32 noundef %153, ptr noundef %158, ptr noundef %163)
  %164 = load i32, ptr %28, align 4, !tbaa !9
  %165 = load i32, ptr %26, align 4, !tbaa !9
  %166 = add nsw i32 %165, %164
  store i32 %166, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %167

167:                                              ; preds = %142
  %168 = load i32, ptr %27, align 4, !tbaa !9
  %169 = add nsw i32 %168, 1
  store i32 %169, ptr %27, align 4, !tbaa !9
  br label %137, !llvm.loop !20

170:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8genGaussPPdiiS_S_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) #0

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!"_ZTS7ANNbool", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !16}


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

@_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers = external hidden global ptr, align 8
@_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev = external hidden global ptr, align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_Z7annRan0v() local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef double @_ZL10annRanUnifdd(double noundef, double noundef) local_unnamed_addr #0

declare void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1

declare noundef ptr @_Z11annAllocPtsii(i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL9annRanInti(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_Z17annClusEllipsoidsPPdiii7ANNbooldddi(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, double noundef %5, double noundef %6, double noundef %7, i32 noundef %8) local_unnamed_addr #2 {
  %10 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %11 = icmp eq ptr %10, null
  %12 = icmp ne i32 %4, 0
  %or.cond = or i1 %12, %11
  br i1 %or.cond, label %13, label %.loopexit

13:                                               ; preds = %9
  br i1 %11, label %15, label %14

14:                                               ; preds = %13
  tail call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers)
  br label %15

15:                                               ; preds = %14, %13
  %16 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %.not55 = icmp eq ptr %16, null
  br i1 %.not55, label %18, label %17

17:                                               ; preds = %15
  tail call void @_Z13annDeallocPtsRPPd(ptr noundef nonnull align 8 dereferenceable(8) @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev)
  br label %18

18:                                               ; preds = %17, %15
  %19 = tail call noundef ptr @_Z11annAllocPtsii(i32 noundef %3, i32 noundef %2)
  store ptr %19, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %20 = tail call noundef ptr @_Z11annAllocPtsii(i32 noundef %3, i32 noundef %2)
  store ptr %20, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %21 = icmp sgt i32 %3, 0
  br i1 %21, label %.preheader56.lr.ph, label %._crit_edge

.preheader56.lr.ph:                               ; preds = %18
  %22 = icmp sgt i32 %2, 0
  br i1 %22, label %.preheader56.us.preheader, label %.lr.ph62.split

.preheader56.us.preheader:                        ; preds = %.preheader56.lr.ph
  %wide.trip.count72 = zext nneg i32 %3 to i64
  %wide.trip.count = zext nneg i32 %2 to i64
  br label %.preheader56.us

.preheader56.us:                                  ; preds = %.preheader56.us.preheader, %._crit_edge.us
  %indvars.iv69 = phi i64 [ 0, %.preheader56.us.preheader ], [ %indvars.iv.next70, %._crit_edge.us ]
  br label %23

23:                                               ; preds = %.preheader56.us, %23
  %indvars.iv = phi i64 [ 0, %.preheader56.us ], [ %indvars.iv.next, %23 ]
  %24 = tail call noundef double @_ZL10annRanUnifdd(double noundef -1.000000e+00, double noundef 1.000000e+00)
  %25 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %26 = getelementptr inbounds ptr, ptr %25, i64 %indvars.iv69
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 %indvars.iv
  store double %24, ptr %28, align 8, !tbaa !9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %23, !llvm.loop !11

._crit_edge.us:                                   ; preds = %23
  %indvars.iv.next70 = add nuw nsw i64 %indvars.iv69, 1
  %exitcond73.not = icmp eq i64 %indvars.iv.next70, %wide.trip.count72
  br i1 %exitcond73.not, label %.preheader, label %.preheader56.us, !llvm.loop !13

.preheader:                                       ; preds = %._crit_edge.us
  br i1 %21, label %.lr.ph.us.preheader, label %._crit_edge

.lr.ph.us.preheader:                              ; preds = %.preheader
  %wide.trip.count83 = zext nneg i32 %3 to i64
  %wide.trip.count78 = zext nneg i32 %2 to i64
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us63
  %indvars.iv80 = phi i64 [ 0, %.lr.ph.us.preheader ], [ %indvars.iv.next81, %._crit_edge.us63 ]
  %29 = tail call noundef i32 @_ZL9annRanInti(i32 noundef %8)
  %30 = add nsw i32 %29, 1
  br label %31

31:                                               ; preds = %.lr.ph.us, %51
  %indvars.iv75 = phi i64 [ 0, %.lr.ph.us ], [ %indvars.iv.next76, %51 ]
  %.04959.us = phi i32 [ %30, %.lr.ph.us ], [ %.1.us, %51 ]
  %32 = sitofp i32 %.04959.us to double
  %33 = trunc i64 %indvars.iv75 to i32
  %34 = sub i32 %2, %33
  %35 = sitofp i32 %34 to double
  %36 = fdiv double %32, %35
  %37 = tail call noundef double @_Z7annRan0v()
  %38 = fcmp olt double %37, %36
  br i1 %38, label %44, label %39

39:                                               ; preds = %31
  %40 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %41 = getelementptr inbounds ptr, ptr %40, i64 %indvars.iv80
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 %indvars.iv75
  store double %5, ptr %43, align 8, !tbaa !9
  br label %51

44:                                               ; preds = %31
  %45 = tail call noundef double @_ZL10annRanUnifdd(double noundef %6, double noundef %7)
  %46 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %47 = getelementptr inbounds ptr, ptr %46, i64 %indvars.iv80
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 %indvars.iv75
  store double %45, ptr %49, align 8, !tbaa !9
  %50 = add nsw i32 %.04959.us, -1
  br label %51

51:                                               ; preds = %44, %39
  %.1.us = phi i32 [ %50, %44 ], [ %.04959.us, %39 ]
  %indvars.iv.next76 = add nuw nsw i64 %indvars.iv75, 1
  %exitcond79.not = icmp eq i64 %indvars.iv.next76, %wide.trip.count78
  br i1 %exitcond79.not, label %._crit_edge.us63, label %31, !llvm.loop !14

._crit_edge.us63:                                 ; preds = %51
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %exitcond84.not = icmp eq i64 %indvars.iv.next81, %wide.trip.count83
  br i1 %exitcond84.not, label %.loopexit, label %.lr.ph.us, !llvm.loop !15

.lr.ph62.split:                                   ; preds = %.preheader56.lr.ph, %.lr.ph62.split
  %.05061 = phi i32 [ %53, %.lr.ph62.split ], [ 0, %.preheader56.lr.ph ]
  %52 = tail call noundef i32 @_ZL9annRanInti(i32 noundef %8)
  %53 = add nuw nsw i32 %.05061, 1
  %exitcond74.not = icmp eq i32 %53, %3
  br i1 %exitcond74.not, label %.loopexit, label %.lr.ph62.split, !llvm.loop !15

.loopexit:                                        ; preds = %.lr.ph62.split, %._crit_edge.us63, %9
  %54 = icmp sgt i32 %3, 0
  br i1 %54, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.loopexit
  %wide.trip.count88 = zext nneg i32 %3 to i64
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %18, %.preheader, %.loopexit
  ret void

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv85 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next86, %.lr.ph ]
  %.04764 = phi i32 [ 0, %.lr.ph.preheader ], [ %66, %.lr.ph ]
  %55 = trunc i64 %indvars.iv85 to i32
  %56 = add i32 %55, %1
  %57 = sdiv i32 %56, %3
  %58 = sext i32 %.04764 to i64
  %59 = getelementptr inbounds ptr, ptr %0, i64 %58
  %60 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7centers, align 8, !tbaa !5
  %61 = getelementptr inbounds ptr, ptr %60, i64 %indvars.iv85
  %62 = load ptr, ptr %61, align 8, !tbaa !5
  %63 = load ptr, ptr @_ZZ17annClusEllipsoidsPPdiii7ANNbooldddiE7std_dev, align 8, !tbaa !5
  %64 = getelementptr inbounds ptr, ptr %63, i64 %indvars.iv85
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  tail call void @_ZL8genGaussPPdiiS_S_(ptr noundef %59, i32 noundef %57, i32 noundef %2, ptr noundef %62, ptr noundef %65)
  %66 = add nsw i32 %57, %.04764
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %exitcond89.not = icmp eq i64 %indvars.iv.next86, %wide.trip.count88
  br i1 %exitcond89.not, label %._crit_edge, label %.lr.ph, !llvm.loop !16
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL8genGaussPPdiiS_S_(ptr noundef, i32 noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

!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 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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