; LLVM IR from brewlin/garbage-collect :: generational (generational)

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

%struct.gc_heap = type { ptr, i64 }
%struct.root_ = type { ptr, ptr }
%struct.header = type { i64, i64, i64, i64, ptr, ptr }

@newg = external dso_local global i32, align 4
@survivorfromg = external dso_local global i32, align 4
@survivortog = external dso_local global i32, align 4
@gc_heaps = external global [100000 x %struct.gc_heap], align 16
@new_free_p = external dso_local global ptr, align 8
@to_free_p = external dso_local global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@root_used = external global i64, align 8
@roots = external global [100000 x %struct.root_], align 16

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @gc_copy(ptr noundef) #2

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare dso_local void @update_reference() #2

; Function Attrs: nounwind uwtable
define dso_local void @minor_gc() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca %struct.gc_heap, align 8
  %5 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %6 = load i32, ptr @survivortog, align 4, !tbaa !5
  %7 = sext i32 %6 to i64
  %8 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %7
  %9 = getelementptr inbounds %struct.gc_heap, ptr %8, i32 0, i32 1
  %10 = load i64, ptr %9, align 8, !tbaa !9
  %11 = load i32, ptr @survivortog, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %12
  %14 = getelementptr inbounds %struct.gc_heap, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 16, !tbaa !13
  %16 = getelementptr inbounds %struct.header, ptr %15, i32 0, i32 2
  store i64 %10, ptr %16, align 8, !tbaa !14
  %17 = load i32, ptr @survivortog, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %18
  %20 = getelementptr inbounds %struct.gc_heap, ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 16, !tbaa !13
  store ptr %21, ptr @to_free_p, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %52, %0
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = load i64, ptr @root_used, align 8, !tbaa !17
  %26 = icmp ult i64 %24, %25
  br i1 %26, label %28, label %27

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

28:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %29 = load i32, ptr %1, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100000 x %struct.root_], ptr @roots, i64 0, i64 %30
  %32 = getelementptr inbounds %struct.root_, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 16, !tbaa !18
  %34 = call ptr @gc_copy(ptr noundef %33)
  store ptr %34, ptr %3, align 8, !tbaa !16
  %35 = icmp ne ptr %34, null
  br i1 %35, label %37, label %36

36:                                               ; preds = %28
  store i32 4, ptr %2, align 4
  br label %49

37:                                               ; preds = %28
  %38 = load ptr, ptr %3, align 8, !tbaa !16
  %39 = load i32, ptr %1, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [100000 x %struct.root_], ptr @roots, i64 0, i64 %40
  %42 = getelementptr inbounds %struct.root_, ptr %41, i32 0, i32 1
  %43 = load ptr, ptr %42, align 8, !tbaa !20
  store ptr %38, ptr %43, align 8, !tbaa !16
  %44 = load ptr, ptr %3, align 8, !tbaa !16
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100000 x %struct.root_], ptr @roots, i64 0, i64 %46
  %48 = getelementptr inbounds %struct.root_, ptr %47, i32 0, i32 0
  store ptr %44, ptr %48, align 16, !tbaa !18
  store i32 0, ptr %2, align 4
  br label %49

49:                                               ; preds = %37, %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  %50 = load i32, ptr %2, align 4
  switch i32 %50, label %107 [
    i32 0, label %51
    i32 4, label %52
  ]

51:                                               ; preds = %49
  br label %52

52:                                               ; preds = %51, %49
  %53 = load i32, ptr %1, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %1, align 4, !tbaa !5
  br label %22, !llvm.loop !21

55:                                               ; preds = %27
  call void @update_reference()
  %56 = load i32, ptr @newg, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %57
  %59 = getelementptr inbounds %struct.gc_heap, ptr %58, i32 0, i32 0
  %60 = load ptr, ptr %59, align 16, !tbaa !13
  store ptr %60, ptr @new_free_p, align 8, !tbaa !16
  %61 = load ptr, ptr @new_free_p, align 8, !tbaa !16
  %62 = load i32, ptr @newg, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %63
  %65 = getelementptr inbounds %struct.gc_heap, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %61, i8 0, i64 %66, i1 false)
  %67 = load i32, ptr @newg, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %68
  %70 = getelementptr inbounds %struct.gc_heap, ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr @new_free_p, align 8, !tbaa !16
  %73 = getelementptr inbounds %struct.header, ptr %72, i32 0, i32 2
  store i64 %71, ptr %73, align 8, !tbaa !14
  %74 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %75
  %77 = getelementptr inbounds %struct.gc_heap, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 16, !tbaa !13
  %79 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %80
  %82 = getelementptr inbounds %struct.gc_heap, ptr %81, i32 0, i32 1
  %83 = load i64, ptr %82, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 8 %78, i8 0, i64 %83, i1 false)
  %84 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %85
  %87 = getelementptr inbounds %struct.gc_heap, ptr %86, i32 0, i32 1
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.gc_heap, ptr %91, i32 0, i32 0
  %93 = load ptr, ptr %92, align 16, !tbaa !13
  %94 = getelementptr inbounds %struct.header, ptr %93, i32 0, i32 2
  store i64 %88, ptr %94, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  %95 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %96
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %4, ptr align 16 %97, i64 16, i1 false), !tbaa.struct !23
  %98 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %99
  %101 = load i32, ptr @survivortog, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %102
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %100, ptr align 16 %103, i64 16, i1 false), !tbaa.struct !23
  %104 = load i32, ptr @survivortog, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %105
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %106, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  ret void

107:                                              ; preds = %49
  unreachable
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"gc_heap", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !12, i64 16}
!15 = !{!"header", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{!19, !11, i64 0}
!19 = !{!"root_", !11, i64 0, !11, i64 8}
!20 = !{!19, !11, i64 8}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{i64 0, i64 8, !16, i64 8, i64 8, !17}


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

%struct.gc_heap = type { ptr, i64 }
%struct.root_ = type { ptr, ptr }

@newg = external dso_local local_unnamed_addr global i32, align 4
@survivorfromg = external dso_local local_unnamed_addr global i32, align 4
@survivortog = external dso_local local_unnamed_addr global i32, align 4
@gc_heaps = external local_unnamed_addr global [100000 x %struct.gc_heap], align 16
@new_free_p = external dso_local local_unnamed_addr global ptr, align 8
@to_free_p = external dso_local local_unnamed_addr global ptr, align 8
@.str.7 = external hidden unnamed_addr constant [20 x i8], align 1
@root_used = external local_unnamed_addr global i64, align 8
@roots = external local_unnamed_addr global [100000 x %struct.root_], align 16

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @gc_copy(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @update_reference() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @minor_gc() local_unnamed_addr #2 {
  %1 = alloca %struct.gc_heap, align 8
  %2 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %3 = load i32, ptr @survivortog, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %4
  %6 = getelementptr inbounds i8, ptr %5, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !9
  %8 = load ptr, ptr %5, align 16, !tbaa !13
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  store i64 %7, ptr %9, align 8, !tbaa !14
  store ptr %8, ptr @to_free_p, align 8, !tbaa !16
  %10 = load i64, ptr @root_used, align 8, !tbaa !17
  %.not9 = icmp eq i64 %10, 0
  br i1 %.not9, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %45, %0
  tail call void @update_reference()
  %11 = load i32, ptr @newg, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %12
  %14 = load ptr, ptr %13, align 16, !tbaa !13
  store ptr %14, ptr @new_free_p, align 8, !tbaa !16
  %15 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %12, i32 1
  %16 = load i64, ptr %15, align 8, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr align 8 %14, i8 0, i64 %16, i1 false)
  %17 = load i32, ptr @newg, align 4, !tbaa !5
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %18, i32 1
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = load ptr, ptr @new_free_p, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %21, i64 16
  store i64 %20, ptr %22, align 8, !tbaa !14
  %23 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %24
  %26 = load ptr, ptr %25, align 16, !tbaa !13
  %27 = getelementptr inbounds i8, ptr %25, i64 8
  %28 = load i64, ptr %27, align 8, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr align 8 %26, i8 0, i64 %28, i1 false)
  %29 = load i32, ptr @survivorfromg, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %30
  %32 = getelementptr inbounds i8, ptr %31, i64 8
  %33 = load i64, ptr %32, align 8, !tbaa !9
  %34 = load ptr, ptr %31, align 16, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %34, i64 16
  store i64 %33, ptr %35, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !18
  %36 = load i32, ptr @survivortog, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [100000 x %struct.gc_heap], ptr @gc_heaps, i64 0, i64 %37
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %31, ptr noundef nonnull align 16 dereferenceable(16) %38, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %1, i64 16, i1 false), !tbaa.struct !18
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1)
  ret void

.lr.ph:                                           ; preds = %0, %45
  %indvars.iv = phi i64 [ %indvars.iv.next, %45 ], [ 0, %0 ]
  %39 = getelementptr inbounds [100000 x %struct.root_], ptr @roots, i64 0, i64 %indvars.iv
  %40 = load ptr, ptr %39, align 16, !tbaa !19
  %41 = tail call ptr @gc_copy(ptr noundef %40)
  %.not = icmp eq ptr %41, null
  br i1 %.not, label %45, label %42

42:                                               ; preds = %.lr.ph
  %43 = getelementptr inbounds i8, ptr %39, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !21
  store ptr %41, ptr %44, align 8, !tbaa !16
  store ptr %41, ptr %39, align 16, !tbaa !19
  br label %45

45:                                               ; preds = %.lr.ph, %42
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = load i64, ptr @root_used, align 8, !tbaa !17
  %47 = icmp ugt i64 %46, %indvars.iv.next
  br i1 %47, label %.lr.ph, label %._crit_edge, !llvm.loop !22
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nofree nounwind "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }

!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/C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"gc_heap", !11, i64 0, !12, i64 8}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!15, !12, i64 16}
!15 = !{!"header", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !11, i64 32, !11, i64 40}
!16 = !{!11, !11, i64 0}
!17 = !{!12, !12, i64 0}
!18 = !{i64 0, i64 8, !16, i64 8, i64 8, !17}
!19 = !{!20, !11, i64 0}
!20 = !{!"root_", !11, i64 0, !11, i64 8}
!21 = !{!20, !11, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass