; LLVM IR from alenic/realGA :: src/selection_tournament.ll (ZN19TournamentSelection10tournamentERSt6vectorIfSaIfEE)

; 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.TournamentSelection = type { %class.Selection, i32, i64, float, ptr, ptr }
%class.Selection = type { 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: mustprogress uwtable
define dso_local noundef i32 @_ZN19TournamentSelection10tournamentERSt6vectorIfSaIfEE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #4
  store i8 0, ptr %6, align 1, !tbaa !11
  br label %15

15:                                               ; preds = %68, %2
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 1
  %18 = load i32, ptr %17, align 8, !tbaa !13
  %19 = icmp slt i32 %16, %18
  br i1 %19, label %20, label %69

20:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %21 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 2
  %22 = load i64, ptr %21, align 8, !tbaa !18
  %23 = sub i64 %22, 1
  %24 = trunc i64 %23 to i32
  %25 = call noundef i32 @_ZN4Stat9randIndexEi(i32 noundef %24)
  store i32 %25, ptr %7, align 4, !tbaa !9
  store i8 0, ptr %6, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %42, %20
  %27 = load i32, ptr %8, align 4, !tbaa !9
  %28 = load i32, ptr %5, align 4, !tbaa !9
  %29 = icmp slt i32 %27, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %26
  store i32 4, ptr %9, align 4
  br label %45

31:                                               ; preds = %26
  %32 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 5
  %33 = load ptr, ptr %32, align 8, !tbaa !19
  %34 = load i32, ptr %8, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i32, ptr %33, i64 %35
  %37 = load i32, ptr %36, align 4, !tbaa !9
  %38 = load i32, ptr %7, align 4, !tbaa !9
  %39 = icmp eq i32 %37, %38
  br i1 %39, label %40, label %41

40:                                               ; preds = %31
  store i8 1, ptr %6, align 1, !tbaa !11
  store i32 4, ptr %9, align 4
  br label %45

41:                                               ; preds = %31
  br label %42

42:                                               ; preds = %41
  %43 = load i32, ptr %8, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %8, align 4, !tbaa !9
  br label %26, !llvm.loop !20

45:                                               ; preds = %40, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %46

46:                                               ; preds = %45
  %47 = load i8, ptr %6, align 1, !tbaa !11, !range !22, !noundef !23
  %48 = trunc i8 %47 to i1
  br i1 %48, label %68, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 5
  %52 = load ptr, ptr %51, align 8, !tbaa !19
  %53 = load i32, ptr %5, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds i32, ptr %52, i64 %54
  store i32 %50, ptr %55, align 4, !tbaa !9
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = sext i32 %57 to i64
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %58) #4
  %60 = load float, ptr %59, align 4, !tbaa !24
  %61 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 4
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = load i32, ptr %5, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds float, ptr %62, i64 %64
  store float %60, ptr %65, align 4, !tbaa !24
  %66 = load i32, ptr %5, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %5, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %49, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %15, !llvm.loop !26

69:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %70 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 3
  %71 = load float, ptr %70, align 8, !tbaa !27
  %72 = fpext float %71 to double
  %73 = fcmp olt double %72, 1.000000e+00
  br i1 %73, label %74, label %113

74:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %75 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 3
  %76 = load float, ptr %75, align 8, !tbaa !27
  store float %76, ptr %13, align 4, !tbaa !24
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %96, %74
  %78 = load i32, ptr %10, align 4, !tbaa !9
  %79 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 1
  %80 = load i32, ptr %79, align 8, !tbaa !13
  %81 = icmp slt i32 %78, %80
  br i1 %81, label %82, label %99

82:                                               ; preds = %77
  %83 = call noundef float @_ZN4Stat11randUniformEv()
  %84 = load float, ptr %13, align 4, !tbaa !24
  %85 = fcmp olt float %83, %84
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  br label %99

87:                                               ; preds = %82
  %88 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 3
  %89 = load float, ptr %88, align 8, !tbaa !27
  %90 = fpext float %89 to double
  %91 = fsub double 1.000000e+00, %90
  %92 = load float, ptr %13, align 4, !tbaa !24
  %93 = fpext float %92 to double
  %94 = fmul double %93, %91
  %95 = fptrunc double %94 to float
  store float %95, ptr %13, align 4, !tbaa !24
  br label %96

96:                                               ; preds = %87
  %97 = load i32, ptr %10, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %10, align 4, !tbaa !9
  br label %77, !llvm.loop !28

99:                                               ; preds = %86, %77
  %100 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 4
  %101 = load ptr, ptr %100, align 8, !tbaa !25
  %102 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 1
  %103 = load i32, ptr %102, align 8, !tbaa !13
  %104 = sub nsw i32 %103, 1
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = call noundef i32 @_ZN4RALG12argSelectionEPfiii(ptr noundef %101, i32 noundef 0, i32 noundef %104, i32 noundef %105)
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 5
  %108 = load ptr, ptr %107, align 8, !tbaa !19
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds i32, ptr %108, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !9
  store i32 %112, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %126

113:                                              ; preds = %69
  %114 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 4
  %115 = load ptr, ptr %114, align 8, !tbaa !25
  %116 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 1
  %117 = load i32, ptr %116, align 8, !tbaa !13
  %118 = sub nsw i32 %117, 1
  %119 = call noundef i32 @_ZN4RALG6argMinEPfii(ptr noundef %115, i32 noundef 0, i32 noundef %118)
  store i32 %119, ptr %12, align 4, !tbaa !9
  %120 = getelementptr inbounds %class.TournamentSelection, ptr %14, i32 0, i32 5
  %121 = load ptr, ptr %120, align 8, !tbaa !19
  %122 = load i32, ptr %12, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds i32, ptr %121, i64 %123
  %125 = load i32, ptr %124, align 4, !tbaa !9
  store i32 %125, ptr %11, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %113, %99
  %127 = load i32, ptr %11, align 4, !tbaa !9
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret i32 %127
}

declare noundef i32 @_ZN4Stat9randIndexEi(i32 noundef) #2

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

declare noundef float @_ZN4Stat11randUniformEv() #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 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 #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 = !{!"bool", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS19TournamentSelection", !15, i64 0, !10, i64 8, !16, i64 16, !17, i64 24, !6, i64 32, !6, i64 40}
!15 = !{!"_ZTS9Selection"}
!16 = !{!"long", !7, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = !{!14, !16, i64 16}
!19 = !{!14, !6, i64 40}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!17, !17, i64 0}
!25 = !{!14, !6, i64 32}
!26 = distinct !{!26, !21}
!27 = !{!14, !17, i64 24}
!28 = distinct !{!28, !21}


; 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 uwtable
define dso_local noundef i32 @_ZN19TournamentSelection10tournamentERSt6vectorIfSaIfEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = icmp sgt i32 %4, 0
  br i1 %5, label %.lr.ph30, label %._crit_edge

.lr.ph30:                                         ; preds = %2
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = getelementptr inbounds i8, ptr %0, i64 40
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  br label %9

9:                                                ; preds = %.lr.ph30, %.loopexit
  %.02429 = phi i32 [ 0, %.lr.ph30 ], [ %.1, %.loopexit ]
  %10 = load i64, ptr %6, align 8, !tbaa !14
  %11 = trunc i64 %10 to i32
  %12 = add i32 %11, -1
  %13 = tail call noundef i32 @_ZN4Stat9randIndexEi(i32 noundef %12)
  %14 = icmp sgt i32 %.02429, 0
  %.pre = load ptr, ptr %7, align 8, !tbaa !15
  br i1 %14, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %9
  %wide.trip.count = zext nneg i32 %.02429 to i64
  br label %16

15:                                               ; preds = %16
  %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 %.critedge, label %16, !llvm.loop !16

16:                                               ; preds = %.lr.ph, %15
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %15 ]
  %17 = getelementptr inbounds i32, ptr %.pre, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !18
  %19 = icmp eq i32 %18, %13
  br i1 %19, label %.loopexit, label %15

.critedge:                                        ; preds = %15, %9
  %20 = sext i32 %.02429 to i64
  %21 = getelementptr inbounds i32, ptr %.pre, i64 %20
  store i32 %13, ptr %21, align 4, !tbaa !18
  %22 = sext i32 %13 to i64
  %23 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt6vectorIfSaIfEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %22) #3
  %24 = load float, ptr %23, align 4, !tbaa !19
  %25 = load ptr, ptr %8, align 8, !tbaa !20
  %26 = getelementptr inbounds float, ptr %25, i64 %20
  store float %24, ptr %26, align 4, !tbaa !19
  %27 = add nsw i32 %.02429, 1
  br label %.loopexit

.loopexit:                                        ; preds = %16, %.critedge
  %.1 = phi i32 [ %27, %.critedge ], [ %.02429, %16 ]
  %28 = load i32, ptr %3, align 8, !tbaa !5
  %29 = icmp slt i32 %.1, %28
  br i1 %29, label %9, label %._crit_edge, !llvm.loop !21

._crit_edge:                                      ; preds = %.loopexit, %2
  %30 = phi i32 [ %4, %2 ], [ %28, %.loopexit ]
  %31 = getelementptr inbounds i8, ptr %0, i64 24
  %32 = load float, ptr %31, align 8, !tbaa !22
  %33 = fcmp olt float %32, 1.000000e+00
  br i1 %33, label %.preheader, label %51

.preheader:                                       ; preds = %._crit_edge
  %34 = icmp sgt i32 %30, 1
  br i1 %34, label %.lr.ph33, label %._crit_edge34

.lr.ph33:                                         ; preds = %.preheader, %37
  %.032 = phi float [ %43, %37 ], [ %32, %.preheader ]
  %.02231 = phi i32 [ %44, %37 ], [ 1, %.preheader ]
  %35 = tail call noundef float @_ZN4Stat11randUniformEv()
  %36 = fcmp olt float %35, %.032
  %.pre40.pre = load i32, ptr %3, align 8, !tbaa !5
  br i1 %36, label %._crit_edge34, label %37

37:                                               ; preds = %.lr.ph33
  %38 = load float, ptr %31, align 8, !tbaa !22
  %39 = fpext float %38 to double
  %40 = fsub double 1.000000e+00, %39
  %41 = fpext float %.032 to double
  %42 = fmul double %40, %41
  %43 = fptrunc double %42 to float
  %44 = add nuw nsw i32 %.02231, 1
  %45 = icmp slt i32 %44, %.pre40.pre
  br i1 %45, label %.lr.ph33, label %._crit_edge34, !llvm.loop !23

._crit_edge34:                                    ; preds = %37, %.lr.ph33, %.preheader
  %46 = phi i32 [ %30, %.preheader ], [ %.pre40.pre, %.lr.ph33 ], [ %.pre40.pre, %37 ]
  %.022.lcssa = phi i32 [ 1, %.preheader ], [ %44, %37 ], [ %.02231, %.lr.ph33 ]
  %47 = getelementptr inbounds i8, ptr %0, i64 32
  %48 = load ptr, ptr %47, align 8, !tbaa !20
  %49 = add nsw i32 %46, -1
  %50 = tail call noundef i32 @_ZN4RALG12argSelectionEPfiii(ptr noundef %48, i32 noundef 0, i32 noundef %49, i32 noundef %.022.lcssa)
  br label %56

51:                                               ; preds = %._crit_edge
  %52 = getelementptr inbounds i8, ptr %0, i64 32
  %53 = load ptr, ptr %52, align 8, !tbaa !20
  %54 = add nsw i32 %30, -1
  %55 = tail call noundef i32 @_ZN4RALG6argMinEPfii(ptr noundef %53, i32 noundef 0, i32 noundef %54)
  br label %56

56:                                               ; preds = %51, %._crit_edge34
  %.sink42 = phi i32 [ %55, %51 ], [ %50, %._crit_edge34 ]
  %57 = getelementptr inbounds i8, ptr %0, i64 40
  %58 = load ptr, ptr %57, align 8, !tbaa !15
  %59 = sext i32 %.sink42 to i64
  %60 = getelementptr inbounds i32, ptr %58, i64 %59
  %.021 = load i32, ptr %60, align 4, !tbaa !18
  ret i32 %.021
}

declare noundef i32 @_ZN4Stat9randIndexEi(i32 noundef) local_unnamed_addr #1

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

declare noundef float @_ZN4Stat11randUniformEv() local_unnamed_addr #1

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

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

attributes #0 = { 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 #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 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 = { 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, !8, i64 8}
!6 = !{!"_ZTS19TournamentSelection", !7, i64 0, !8, i64 8, !11, i64 16, !12, i64 24, !13, i64 32, !13, i64 40}
!7 = !{!"_ZTS9Selection"}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"long", !9, i64 0}
!12 = !{!"float", !9, i64 0}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!6, !11, i64 16}
!15 = !{!6, !13, i64 40}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!8, !8, i64 0}
!19 = !{!12, !12, i64 0}
!20 = !{!6, !13, i64 32}
!21 = distinct !{!21, !17}
!22 = !{!6, !12, i64 24}
!23 = distinct !{!23, !17}


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