; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/图论/Dijkstra算法.ll (ZN15simple_dijkstra8dijkstraEv)

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

@n = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@_ZN15simple_dijkstra3visE = external dso_local global [1001 x i32], align 16
@_ZN15simple_dijkstra1dE = external dso_local global [1001 x i32], align 16
@_ZN15simple_dijkstra1wE = external dso_local global [1001 x [1001 x i32]], align 16

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15simple_dijkstra8dijkstraEv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.memset.p0.i64(ptr align 16 @_ZN15simple_dijkstra3visE, i8 0, i64 4004, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @_ZN15simple_dijkstra1dE, i8 63, i64 4004, i1 false)
  %7 = load i32, ptr @s, align 4, !tbaa !5
  %8 = sext i32 %7 to i64
  %9 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %8
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 1, ptr %1, align 4, !tbaa !5
  br label %10

10:                                               ; preds = %81, %0
  %11 = load i32, ptr %1, align 4, !tbaa !5
  %12 = load i32, ptr @n, align 4, !tbaa !5
  %13 = icmp sle i32 %11, %12
  br i1 %13, label %15, label %14

14:                                               ; preds = %10
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  br label %84

15:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 -1, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 1, ptr %4, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %44, %15
  %17 = load i32, ptr %4, align 4, !tbaa !5
  %18 = load i32, ptr @n, align 4, !tbaa !5
  %19 = icmp sle i32 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %47

21:                                               ; preds = %16
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  %26 = icmp ne i32 %25, 0
  br i1 %26, label %43, label %27

27:                                               ; preds = %21
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp eq i32 %28, -1
  br i1 %29, label %40, label %30

30:                                               ; preds = %27
  %31 = load i32, ptr %4, align 4, !tbaa !5
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %36
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %39 = icmp slt i32 %34, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %30, %27
  %41 = load i32, ptr %4, align 4, !tbaa !5
  store i32 %41, ptr %3, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %40, %30
  br label %43

43:                                               ; preds = %42, %21
  br label %44

44:                                               ; preds = %43
  %45 = load i32, ptr %4, align 4, !tbaa !5
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %4, align 4, !tbaa !5
  br label %16, !llvm.loop !9

47:                                               ; preds = %20
  %48 = load i32, ptr %3, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %49
  store i32 1, ptr %50, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %77, %47
  %52 = load i32, ptr %5, align 4, !tbaa !5
  %53 = load i32, ptr @n, align 4, !tbaa !5
  %54 = icmp sle i32 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %80

56:                                               ; preds = %51
  %57 = load i32, ptr %5, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %60 = load i32, ptr %3, align 4, !tbaa !5
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !5
  %64 = load i32, ptr %3, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1001 x [1001 x i32]], ptr @_ZN15simple_dijkstra1wE, i64 0, i64 %65
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [1001 x i32], ptr %66, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !5
  %71 = add nsw i32 %63, %70
  store i32 %71, ptr %6, align 4, !tbaa !5
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %59, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %73 = load i32, ptr %72, align 4, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %75
  store i32 %73, ptr %76, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  br label %77

77:                                               ; preds = %56
  %78 = load i32, ptr %5, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %5, align 4, !tbaa !5
  br label %51, !llvm.loop !11

80:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = add nsw i32 %82, 1
  store i32 %83, ptr %1, align 4, !tbaa !5
  br label %10, !llvm.loop !12

84:                                               ; preds = %14
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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

@n = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local local_unnamed_addr global i32, align 4
@_ZN15simple_dijkstra3visE = external dso_local local_unnamed_addr global [1001 x i32], align 16
@_ZN15simple_dijkstra1dE = external dso_local global [1001 x i32], align 16
@_ZN15simple_dijkstra1wE = external dso_local local_unnamed_addr global [1001 x [1001 x i32]], align 16

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN15simple_dijkstra8dijkstraEv() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004) @_ZN15simple_dijkstra3visE, i8 0, i64 4004, i1 false)
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4004) @_ZN15simple_dijkstra1dE, i8 63, i64 4004, i1 false)
  %2 = load i32, ptr @s, align 4, !tbaa !5
  %3 = sext i32 %2 to i64
  %4 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %3
  store i32 0, ptr %4, align 4, !tbaa !5
  %5 = load i32, ptr @n, align 4, !tbaa !5
  %.not31 = icmp slt i32 %5, 1
  br i1 %.not31, label %._crit_edge33, label %.preheader

.preheader:                                       ; preds = %0, %._crit_edge30
  %6 = phi i32 [ %52, %._crit_edge30 ], [ %5, %0 ]
  %.01932 = phi i32 [ %53, %._crit_edge30 ], [ 1, %0 ]
  %.not2023 = icmp slt i32 %6, 1
  br i1 %.not2023, label %._crit_edge.thread, label %.lr.ph.preheader

._crit_edge.thread:                               ; preds = %.preheader
  store i32 1, ptr getelementptr inbounds (i8, ptr @_ZN15simple_dijkstra3visE, i64 -4), align 4, !tbaa !5
  br label %._crit_edge30

.lr.ph.preheader:                                 ; preds = %.preheader
  %7 = zext nneg i32 %6 to i64
  %xtraiter = and i64 %7, 1
  %8 = icmp eq i32 %6, 1
  br i1 %8, label %._crit_edge.unr-lcssa, label %.lr.ph.preheader.new

.lr.ph.preheader.new:                             ; preds = %.lr.ph.preheader
  %unroll_iter = and i64 %7, 2147483646
  br label %.lr.ph

._crit_edge33:                                    ; preds = %._crit_edge30, %0
  ret void

._crit_edge.unr-lcssa:                            ; preds = %51, %.lr.ph.preheader
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph.preheader ], [ %.1.1, %51 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next.1, %51 ]
  %.01824.unr = phi i32 [ -1, %.lr.ph.preheader ], [ %.1.1, %51 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph.epil

.lr.ph.epil:                                      ; preds = %._crit_edge.unr-lcssa
  %9 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %indvars.iv.unr
  %10 = load i32, ptr %9, align 4, !tbaa !5
  %.not22.epil = icmp eq i32 %10, 0
  br i1 %.not22.epil, label %11, label %._crit_edge

11:                                               ; preds = %.lr.ph.epil
  %12 = icmp eq i32 %.01824.unr, -1
  br i1 %12, label %20, label %13

13:                                               ; preds = %11
  %14 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %indvars.iv.unr
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = sext i32 %.01824.unr to i64
  %17 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %16
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = icmp slt i32 %15, %18
  br i1 %19, label %20, label %._crit_edge

20:                                               ; preds = %13, %11
  %21 = trunc nuw nsw i64 %indvars.iv.unr to i32
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.epil, %13, %20, %._crit_edge.unr-lcssa
  %.1.lcssa = phi i32 [ %.1.lcssa.ph, %._crit_edge.unr-lcssa ], [ %.01824.unr, %.lr.ph.epil ], [ %21, %20 ], [ %.01824.unr, %13 ]
  %22 = sext i32 %.1.lcssa to i64
  %23 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %22
  store i32 1, ptr %23, align 4, !tbaa !5
  br i1 %.not2023, label %._crit_edge30, label %.lr.ph29

.lr.ph29:                                         ; preds = %._crit_edge
  %24 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %22
  br label %54

.lr.ph:                                           ; preds = %51, %.lr.ph.preheader.new
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader.new ], [ %indvars.iv.next.1, %51 ]
  %.01824 = phi i32 [ -1, %.lr.ph.preheader.new ], [ %.1.1, %51 ]
  %niter = phi i64 [ 0, %.lr.ph.preheader.new ], [ %niter.next.1, %51 ]
  %25 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %indvars.iv
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %.not22 = icmp eq i32 %26, 0
  br i1 %.not22, label %27, label %.lr.ph.1

27:                                               ; preds = %.lr.ph
  %28 = icmp eq i32 %.01824, -1
  br i1 %28, label %36, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %indvars.iv
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = sext i32 %.01824 to i64
  %33 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %32
  %34 = load i32, ptr %33, align 4, !tbaa !5
  %35 = icmp slt i32 %31, %34
  br i1 %35, label %36, label %.lr.ph.1

36:                                               ; preds = %29, %27
  %37 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.lr.ph.1

.lr.ph.1:                                         ; preds = %.lr.ph, %36, %29
  %.1 = phi i32 [ %.01824, %.lr.ph ], [ %37, %36 ], [ %.01824, %29 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %38 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra3visE, i64 0, i64 %indvars.iv.next
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %.not22.1 = icmp eq i32 %39, 0
  br i1 %.not22.1, label %40, label %51

40:                                               ; preds = %.lr.ph.1
  %41 = icmp eq i32 %.1, -1
  br i1 %41, label %49, label %42

42:                                               ; preds = %40
  %43 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %indvars.iv.next
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = sext i32 %.1 to i64
  %46 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = icmp slt i32 %44, %47
  br i1 %48, label %49, label %51

49:                                               ; preds = %42, %40
  %50 = trunc nuw nsw i64 %indvars.iv.next to i32
  br label %51

51:                                               ; preds = %49, %42, %.lr.ph.1
  %.1.1 = phi i32 [ %.1, %.lr.ph.1 ], [ %50, %49 ], [ %.1, %42 ]
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge.unr-lcssa, label %.lr.ph, !llvm.loop !9

._crit_edge30:                                    ; preds = %54, %._crit_edge.thread, %._crit_edge
  %52 = phi i32 [ %6, %._crit_edge ], [ %6, %._crit_edge.thread ], [ %62, %54 ]
  %53 = add nuw nsw i32 %.01932, 1
  %.not.not = icmp slt i32 %.01932, %52
  br i1 %.not.not, label %.preheader, label %._crit_edge33, !llvm.loop !11

54:                                               ; preds = %.lr.ph29, %54
  %indvars.iv35 = phi i64 [ 1, %.lr.ph29 ], [ %indvars.iv.next36, %54 ]
  %55 = getelementptr inbounds [1001 x i32], ptr @_ZN15simple_dijkstra1dE, i64 0, i64 %indvars.iv35
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %56 = load i32, ptr %24, align 4, !tbaa !5
  %57 = getelementptr inbounds [1001 x [1001 x i32]], ptr @_ZN15simple_dijkstra1wE, i64 0, i64 %22, i64 %indvars.iv35
  %58 = load i32, ptr %57, align 4, !tbaa !5
  %59 = add nsw i32 %58, %56
  store i32 %59, ptr %1, align 4, !tbaa !5
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %55, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %61 = load i32, ptr %60, align 4, !tbaa !5
  store i32 %61, ptr %55, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %.not21.not = icmp slt i64 %indvars.iv35, %63
  br i1 %.not21.not, label %54, label %._crit_edge30, !llvm.loop !12
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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