; LLVM IR from h-ssiqueira/Sort_Algorithms :: src/esotericFunMiscellaneous (sleepSort)

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

%union.sem_t = type { i64, [24 x i8] }

@LENGTH = external dso_local global i32, align 4
@threads = external dso_local global ptr, align 8
@lock = external dso_local global %union.sem_t, align 8
@sortedValues = external dso_local global ptr, align 8
@currentIndex = external dso_local global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @interruptHandler(i32 noundef) #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

declare i32 @pthread_join(i64 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @sem_destroy(ptr noundef) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @sortingBucket(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @sleepSort(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !9
  %8 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %8, ptr @LENGTH, align 4, !tbaa !9
  %9 = load i32, ptr @currentIndex, align 4, !tbaa !9
  %10 = load i32, ptr @currentIndex, align 4, !tbaa !9
  %11 = xor i32 %10, %9
  store i32 %11, ptr @currentIndex, align 4, !tbaa !9
  %12 = call ptr @signal(i32 noundef 2, ptr noundef @interruptHandler) #5
  %13 = load i32, ptr %4, align 4, !tbaa !9
  %14 = sext i32 %13 to i64
  %15 = mul i64 %14, 8
  %16 = call noalias ptr @malloc(i64 noundef %15) #6
  store ptr %16, ptr @sortedValues, align 8, !tbaa !5
  %17 = load i32, ptr %4, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = mul i64 %18, 8
  %20 = call noalias ptr @malloc(i64 noundef %19) #6
  store ptr %20, ptr @threads, align 8, !tbaa !5
  %21 = load i32, ptr @LENGTH, align 4, !tbaa !9
  %22 = call i32 @sem_init(ptr noundef @lock, i32 noundef 0, i32 noundef %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %23

23:                                               ; preds = %38, %2
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = load i32, ptr @LENGTH, align 4, !tbaa !9
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %28, label %27

27:                                               ; preds = %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %41

28:                                               ; preds = %23
  %29 = load ptr, ptr @threads, align 8, !tbaa !5
  %30 = load i32, ptr %5, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i64, ptr %29, i64 %31
  %33 = load ptr, ptr %3, align 8, !tbaa !5
  %34 = load i32, ptr %5, align 4, !tbaa !9
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds i64, ptr %33, i64 %35
  %37 = call i32 @pthread_create(ptr noundef %32, ptr noundef null, ptr noundef @sortingBucket, ptr noundef %36) #5
  br label %38

38:                                               ; preds = %28
  %39 = load i32, ptr %5, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %5, align 4, !tbaa !9
  br label %23, !llvm.loop !11

41:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %42

42:                                               ; preds = %54, %41
  %43 = load i32, ptr %6, align 4, !tbaa !9
  %44 = load i32, ptr @LENGTH, align 4, !tbaa !9
  %45 = icmp slt i32 %43, %44
  br i1 %45, label %47, label %46

46:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %57

47:                                               ; preds = %42
  %48 = load ptr, ptr @threads, align 8, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i64, ptr %48, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !13
  %53 = call i32 @pthread_join(i64 noundef %52, ptr noundef null)
  br label %54

54:                                               ; preds = %47
  %55 = load i32, ptr %6, align 4, !tbaa !9
  %56 = add nsw i32 %55, 1
  store i32 %56, ptr %6, align 4, !tbaa !9
  br label %42, !llvm.loop !15

57:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %58

58:                                               ; preds = %73, %57
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = load i32, ptr @LENGTH, align 4, !tbaa !9
  %61 = icmp slt i32 %59, %60
  br i1 %61, label %63, label %62

62:                                               ; preds = %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %76

63:                                               ; preds = %58
  %64 = load ptr, ptr @sortedValues, align 8, !tbaa !5
  %65 = load i32, ptr %7, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds i64, ptr %64, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !13
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds i64, ptr %69, i64 %71
  store i64 %68, ptr %72, align 8, !tbaa !13
  br label %73

73:                                               ; preds = %63
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %7, align 4, !tbaa !9
  br label %58, !llvm.loop !16

76:                                               ; preds = %62
  %77 = call i32 @sem_destroy(ptr noundef @lock) #5
  %78 = load ptr, ptr @threads, align 8, !tbaa !5
  call void @free(ptr noundef %78) #5
  %79 = load ptr, ptr @sortedValues, align 8, !tbaa !5
  call void @free(ptr noundef %79) #5
  ret void
}

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) #3

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

; Function Attrs: nounwind
declare i32 @sem_init(ptr noundef, i32 noundef, i32 noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

attributes #0 = { 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 = { 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 = { nounwind allocsize(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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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

%union.sem_t = type { i64, [24 x i8] }

@LENGTH = external dso_local local_unnamed_addr global i32, align 4
@threads = external dso_local local_unnamed_addr global ptr, align 8
@lock = external dso_local global %union.sem_t, align 8
@sortedValues = external dso_local local_unnamed_addr global ptr, align 8
@currentIndex = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
declare dso_local void @interruptHandler(i32 noundef) #0

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare i32 @sem_destroy(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local ptr @sortingBucket(ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @sleepSort(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = ptrtoint ptr %0 to i64
  store i32 %1, ptr @LENGTH, align 4, !tbaa !5
  store i32 0, ptr @currentIndex, align 4, !tbaa !5
  %4 = tail call ptr @signal(i32 noundef 2, ptr noundef nonnull @interruptHandler) #5
  %5 = sext i32 %1 to i64
  %6 = shl nsw i64 %5, 3
  %7 = tail call noalias ptr @malloc(i64 noundef %6) #6
  store ptr %7, ptr @sortedValues, align 8, !tbaa !9
  %8 = tail call noalias ptr @malloc(i64 noundef %6) #6
  store ptr %8, ptr @threads, align 8, !tbaa !9
  %9 = load i32, ptr @LENGTH, align 4, !tbaa !5
  %10 = tail call i32 @sem_init(ptr noundef nonnull @lock, i32 noundef 0, i32 noundef %9) #5
  %11 = load i32, ptr @LENGTH, align 4, !tbaa !5
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %.lr.ph, label %._crit_edge

.preheader17:                                     ; preds = %.lr.ph
  %13 = icmp sgt i32 %18, 0
  br i1 %13, label %.lr.ph20, label %._crit_edge

.lr.ph:                                           ; preds = %2, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %2 ]
  %14 = load ptr, ptr @threads, align 8, !tbaa !9
  %15 = getelementptr inbounds i64, ptr %14, i64 %indvars.iv
  %16 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv
  %17 = tail call i32 @pthread_create(ptr noundef %15, ptr noundef null, ptr noundef nonnull @sortingBucket, ptr noundef %16) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %18 = load i32, ptr @LENGTH, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = icmp slt i64 %indvars.iv.next, %19
  br i1 %20, label %.lr.ph, label %.preheader17, !llvm.loop !11

.preheader:                                       ; preds = %.lr.ph20
  %21 = icmp sgt i32 %39, 0
  br i1 %21, label %.lr.ph22, label %._crit_edge

.lr.ph22:                                         ; preds = %.preheader
  %22 = load ptr, ptr @sortedValues, align 8, !tbaa !9
  %wide.trip.count = zext nneg i32 %39 to i64
  %min.iters.check = icmp ult i32 %39, 6
  %23 = ptrtoint ptr %22 to i64
  %24 = sub i64 %3, %23
  %diff.check = icmp ult i64 %24, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.ph

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph22
  %indvars.iv28.ph = phi i64 [ 0, %.lr.ph22 ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv28.prol = phi i64 [ %indvars.iv.next29.prol, %scalar.ph.prol ], [ %indvars.iv28.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %25 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv28.prol
  %26 = load i64, ptr %25, align 8, !tbaa !13
  %27 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv28.prol
  store i64 %26, ptr %27, align 8, !tbaa !13
  %indvars.iv.next29.prol = add nuw nsw i64 %indvars.iv28.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !15

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv28.unr = phi i64 [ %indvars.iv28.ph, %scalar.ph.preheader ], [ %indvars.iv.next29.prol, %scalar.ph.prol ]
  %28 = sub nsw i64 %indvars.iv28.ph, %wide.trip.count
  %29 = icmp ugt i64 %28, -4
  br i1 %29, label %._crit_edge, label %scalar.ph

vector.ph:                                        ; preds = %.lr.ph22
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %30 = getelementptr inbounds i64, ptr %22, i64 %index
  %31 = getelementptr inbounds i8, ptr %30, i64 16
  %wide.load = load <2 x i64>, ptr %30, align 8, !tbaa !13
  %wide.load34 = load <2 x i64>, ptr %31, align 8, !tbaa !13
  %32 = getelementptr inbounds i64, ptr %0, i64 %index
  %33 = getelementptr inbounds i8, ptr %32, i64 16
  store <2 x i64> %wide.load, ptr %32, align 8, !tbaa !13
  store <2 x i64> %wide.load34, ptr %33, align 8, !tbaa !13
  %index.next = add nuw i64 %index, 4
  %34 = icmp eq i64 %index.next, %n.vec
  br i1 %34, label %middle.block, label %vector.body, !llvm.loop !17

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

.lr.ph20:                                         ; preds = %.preheader17, %.lr.ph20
  %indvars.iv25 = phi i64 [ %indvars.iv.next26, %.lr.ph20 ], [ 0, %.preheader17 ]
  %35 = load ptr, ptr @threads, align 8, !tbaa !9
  %36 = getelementptr inbounds i64, ptr %35, i64 %indvars.iv25
  %37 = load i64, ptr %36, align 8, !tbaa !13
  %38 = tail call i32 @pthread_join(i64 noundef %37, ptr noundef null) #5
  %indvars.iv.next26 = add nuw nsw i64 %indvars.iv25, 1
  %39 = load i32, ptr @LENGTH, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = icmp slt i64 %indvars.iv.next26, %40
  br i1 %41, label %.lr.ph20, label %.preheader, !llvm.loop !20

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %2, %.preheader17, %.preheader
  %42 = tail call i32 @sem_destroy(ptr noundef nonnull @lock) #5
  %43 = load ptr, ptr @threads, align 8, !tbaa !9
  tail call void @free(ptr noundef %43) #5
  %44 = load ptr, ptr @sortedValues, align 8, !tbaa !9
  tail call void @free(ptr noundef %44) #5
  ret void

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv28 = phi i64 [ %indvars.iv.next29.3, %scalar.ph ], [ %indvars.iv28.unr, %scalar.ph.prol.loopexit ]
  %45 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv28
  %46 = load i64, ptr %45, align 8, !tbaa !13
  %47 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv28
  store i64 %46, ptr %47, align 8, !tbaa !13
  %indvars.iv.next29 = add nuw nsw i64 %indvars.iv28, 1
  %48 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next29
  %49 = load i64, ptr %48, align 8, !tbaa !13
  %50 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next29
  store i64 %49, ptr %50, align 8, !tbaa !13
  %indvars.iv.next29.1 = add nuw nsw i64 %indvars.iv28, 2
  %51 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next29.1
  %52 = load i64, ptr %51, align 8, !tbaa !13
  %53 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next29.1
  store i64 %52, ptr %53, align 8, !tbaa !13
  %indvars.iv.next29.2 = add nuw nsw i64 %indvars.iv28, 3
  %54 = getelementptr inbounds i64, ptr %22, i64 %indvars.iv.next29.2
  %55 = load i64, ptr %54, align 8, !tbaa !13
  %56 = getelementptr inbounds i64, ptr %0, i64 %indvars.iv.next29.2
  store i64 %55, ptr %56, align 8, !tbaa !13
  %indvars.iv.next29.3 = add nuw nsw i64 %indvars.iv28, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next29.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !21
}

; Function Attrs: nounwind
declare ptr @signal(i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind
declare i32 @sem_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 = { 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 #3 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !12, !18, !19}
!18 = !{!"llvm.loop.isvectorized", i32 1}
!19 = !{!"llvm.loop.unroll.runtime.disable"}
!20 = distinct !{!20, !12}
!21 = distinct !{!21, !12, !18}


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