; LLVM IR from UtkarshPathrabe/Competitive-Coding :: SPOJ Solutions (CADYDIST)

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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5lesstPKvS0_(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6greattPKvS0_(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca [100001 x i64], align 16
  %9 = alloca [100001 x i64], align 16
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 800008, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 800008, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %25, %0
  %15 = load i32, ptr %10, align 4, !tbaa !5
  %16 = icmp sle i32 %15, 100000
  br i1 %16, label %18, label %17

17:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %28

18:                                               ; preds = %14
  %19 = load i32, ptr %10, align 4, !tbaa !5
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [100001 x i64], ptr %8, i64 0, i64 %20
  store i64 0, ptr %21, align 8, !tbaa !9
  %22 = load i32, ptr %10, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 %23
  store i64 0, ptr %24, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %18
  %26 = load i32, ptr %10, align 4, !tbaa !5
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %10, align 4, !tbaa !5
  br label %14, !llvm.loop !11

28:                                               ; preds = %17
  %29 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %30

30:                                               ; preds = %97, %28
  %31 = load i64, ptr %2, align 8, !tbaa !9
  %32 = icmp ne i64 %31, 0
  br i1 %32, label %33, label %101

33:                                               ; preds = %30
  store i64 0, ptr %5, align 8, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !9
  store i64 0, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %34

34:                                               ; preds = %46, %33
  %35 = load i32, ptr %11, align 4, !tbaa !5
  %36 = sext i32 %35 to i64
  %37 = load i64, ptr %2, align 8, !tbaa !9
  %38 = icmp slt i64 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %49

40:                                               ; preds = %34
  %41 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %3)
  %42 = load i64, ptr %3, align 8, !tbaa !9
  %43 = load i64, ptr %6, align 8, !tbaa !9
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %6, align 8, !tbaa !9
  %45 = getelementptr inbounds [100001 x i64], ptr %8, i64 0, i64 %43
  store i64 %42, ptr %45, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %40
  %47 = load i32, ptr %11, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %11, align 4, !tbaa !5
  br label %34, !llvm.loop !13

49:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %62, %49
  %51 = load i32, ptr %12, align 4, !tbaa !5
  %52 = sext i32 %51 to i64
  %53 = load i64, ptr %2, align 8, !tbaa !9
  %54 = icmp slt i64 %52, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  br label %65

56:                                               ; preds = %50
  %57 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %4)
  %58 = load i64, ptr %4, align 8, !tbaa !9
  %59 = load i64, ptr %7, align 8, !tbaa !9
  %60 = add nsw i64 %59, 1
  store i64 %60, ptr %7, align 8, !tbaa !9
  %61 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 %59
  store i64 %58, ptr %61, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %56
  %63 = load i32, ptr %12, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %12, align 4, !tbaa !5
  br label %50, !llvm.loop !14

65:                                               ; preds = %55
  %66 = getelementptr inbounds [100001 x i64], ptr %8, i64 0, i64 0
  %67 = load i64, ptr %6, align 8, !tbaa !9
  call void @qsort(ptr noundef %66, i64 noundef %67, i64 noundef 8, ptr noundef @_Z5lesstPKvS0_)
  %68 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 0
  %69 = load i64, ptr %7, align 8, !tbaa !9
  call void @qsort(ptr noundef %68, i64 noundef %69, i64 noundef 8, ptr noundef @_Z6greattPKvS0_)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %94, %65
  %71 = load i32, ptr %13, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = load i64, ptr %6, align 8, !tbaa !9
  %74 = icmp slt i64 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %97

76:                                               ; preds = %70
  %77 = load i32, ptr %13, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = getelementptr inbounds [100001 x i64], ptr %8, i64 0, i64 %78
  %80 = load i64, ptr %79, align 8, !tbaa !9
  %81 = load i32, ptr %13, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 %82
  %84 = load i64, ptr %83, align 8, !tbaa !9
  %85 = mul nsw i64 %80, %84
  %86 = load i64, ptr %5, align 8, !tbaa !9
  %87 = add nsw i64 %86, %85
  store i64 %87, ptr %5, align 8, !tbaa !9
  %88 = load i32, ptr %13, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [100001 x i64], ptr %8, i64 0, i64 %89
  store i64 0, ptr %90, align 8, !tbaa !9
  %91 = load i32, ptr %13, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 %92
  store i64 0, ptr %93, align 8, !tbaa !9
  br label %94

94:                                               ; preds = %76
  %95 = load i32, ptr %13, align 4, !tbaa !5
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %13, align 4, !tbaa !5
  br label %70, !llvm.loop !15

97:                                               ; preds = %75
  %98 = load i64, ptr %5, align 8, !tbaa !9
  %99 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %98)
  %100 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2)
  br label %30, !llvm.loop !16

101:                                              ; preds = %30
  call void @llvm.lifetime.end.p0(i64 800008, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 800008, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  ret i32 0
}

; 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

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

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #3

declare i32 @printf(ptr noundef, ...) #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 norecurse 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"long long", !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}


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

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z5lesstPKvS0_(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z6greattPKvS0_(ptr noundef, ptr noundef) #0

; Function Attrs: mustprogress nofree norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca [100001 x i64], align 16
  %5 = alloca [100001 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 800008, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 800008, ptr nonnull %5) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800008) %4, i8 0, i64 800008, i1 false), !tbaa !5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(800008) %5, i8 0, i64 800008, i1 false), !tbaa !5
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %7 = load i64, ptr %1, align 8, !tbaa !5
  %.not42 = icmp eq i64 %7, 0
  br i1 %.not42, label %._crit_edge43, label %.preheader28

.preheader28:                                     ; preds = %0, %._crit_edge40
  %8 = phi i64 [ %35, %._crit_edge40 ], [ %7, %0 ]
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge

.preheader:                                       ; preds = %.lr.ph
  %10 = icmp sgt i64 %15, 0
  br i1 %10, label %.lr.ph34, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader28, %.lr.ph
  %.02530 = phi i64 [ %13, %.lr.ph ], [ 0, %.preheader28 ]
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %2)
  %12 = load i64, ptr %2, align 8, !tbaa !5
  %13 = add nuw nsw i64 %.02530, 1
  %14 = getelementptr inbounds [100001 x i64], ptr %4, i64 0, i64 %.02530
  store i64 %12, ptr %14, align 8, !tbaa !5
  %15 = load i64, ptr %1, align 8, !tbaa !5
  %16 = icmp sgt i64 %15, %13
  br i1 %16, label %.lr.ph, label %.preheader, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph34, %.preheader28, %.preheader
  %.025.lcssa52 = phi i64 [ %13, %.preheader ], [ 0, %.preheader28 ], [ %13, %.lr.ph34 ]
  %.024.lcssa = phi i64 [ 0, %.preheader ], [ 0, %.preheader28 ], [ %29, %.lr.ph34 ]
  call void @qsort(ptr noundef nonnull %4, i64 noundef %.025.lcssa52, i64 noundef 8, ptr noundef nonnull @_Z5lesstPKvS0_)
  call void @qsort(ptr noundef nonnull %5, i64 noundef %.024.lcssa, i64 noundef 8, ptr noundef nonnull @_Z6greattPKvS0_)
  %.not44 = icmp eq i64 %.025.lcssa52, 0
  br i1 %.not44, label %._crit_edge40, label %.lr.ph39.preheader

.lr.ph39.preheader:                               ; preds = %._crit_edge
  %min.iters.check = icmp ult i64 %.025.lcssa52, 4
  br i1 %min.iters.check, label %.lr.ph39.preheader63, label %vector.ph

.lr.ph39.preheader63:                             ; preds = %middle.block, %.lr.ph39.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph39.preheader ], [ %n.vec, %middle.block ]
  %.02636.ph = phi i64 [ 0, %.lr.ph39.preheader ], [ %26, %middle.block ]
  br label %.lr.ph39

vector.ph:                                        ; preds = %.lr.ph39.preheader
  %n.vec = and i64 %.025.lcssa52, -4
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %23, %vector.body ]
  %vec.phi59 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %24, %vector.body ]
  %17 = getelementptr inbounds [100001 x i64], ptr %4, i64 0, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %wide.load = load <2 x i64>, ptr %17, align 16, !tbaa !5
  %wide.load60 = load <2 x i64>, ptr %18, align 16, !tbaa !5
  %19 = getelementptr inbounds [100001 x i64], ptr %5, i64 0, i64 %index
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load61 = load <2 x i64>, ptr %19, align 16, !tbaa !5
  %wide.load62 = load <2 x i64>, ptr %20, align 16, !tbaa !5
  %21 = mul nsw <2 x i64> %wide.load61, %wide.load
  %22 = mul nsw <2 x i64> %wide.load62, %wide.load60
  %23 = add <2 x i64> %21, %vec.phi
  %24 = add <2 x i64> %22, %vec.phi59
  store <2 x i64> zeroinitializer, ptr %17, align 16, !tbaa !5
  store <2 x i64> zeroinitializer, ptr %18, align 16, !tbaa !5
  store <2 x i64> zeroinitializer, ptr %19, align 16, !tbaa !5
  store <2 x i64> zeroinitializer, ptr %20, align 16, !tbaa !5
  %index.next = add nuw i64 %index, 4
  %25 = icmp eq i64 %index.next, %n.vec
  br i1 %25, label %middle.block, label %vector.body, !llvm.loop !11

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %24, %23
  %26 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %.025.lcssa52, %n.vec
  br i1 %cmp.n, label %._crit_edge40, label %.lr.ph39.preheader63

.lr.ph34:                                         ; preds = %.preheader, %.lr.ph34
  %.02432 = phi i64 [ %29, %.lr.ph34 ], [ 0, %.preheader ]
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %3)
  %28 = load i64, ptr %3, align 8, !tbaa !5
  %29 = add nuw nsw i64 %.02432, 1
  %30 = getelementptr inbounds [100001 x i64], ptr %5, i64 0, i64 %.02432
  store i64 %28, ptr %30, align 8, !tbaa !5
  %31 = load i64, ptr %1, align 8, !tbaa !5
  %32 = icmp sgt i64 %31, %29
  br i1 %32, label %.lr.ph34, label %._crit_edge, !llvm.loop !14

._crit_edge40:                                    ; preds = %.lr.ph39, %middle.block, %._crit_edge
  %.026.lcssa = phi i64 [ 0, %._crit_edge ], [ %26, %middle.block ], [ %41, %.lr.ph39 ]
  %33 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %.026.lcssa)
  %34 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1)
  %35 = load i64, ptr %1, align 8, !tbaa !5
  %.not = icmp eq i64 %35, 0
  br i1 %.not, label %._crit_edge43, label %.preheader28, !llvm.loop !15

.lr.ph39:                                         ; preds = %.lr.ph39.preheader63, %.lr.ph39
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph39 ], [ %indvars.iv.ph, %.lr.ph39.preheader63 ]
  %.02636 = phi i64 [ %41, %.lr.ph39 ], [ %.02636.ph, %.lr.ph39.preheader63 ]
  %36 = getelementptr inbounds [100001 x i64], ptr %4, i64 0, i64 %indvars.iv
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds [100001 x i64], ptr %5, i64 0, i64 %indvars.iv
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = mul nsw i64 %39, %37
  %41 = add nsw i64 %40, %.02636
  store i64 0, ptr %36, align 8, !tbaa !5
  store i64 0, ptr %38, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %.025.lcssa52
  br i1 %exitcond.not, label %._crit_edge40, label %.lr.ph39, !llvm.loop !16

._crit_edge43:                                    ; preds = %._crit_edge40, %0
  call void @llvm.lifetime.end.p0(i64 800008, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 800008, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  ret i32 0
}

; 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: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #4

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #6

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 nofree norecurse 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nofree "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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #7 = { 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 = !{!"long long", !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, !13}
!12 = !{!"llvm.loop.isvectorized", i32 1}
!13 = !{!"llvm.loop.unroll.runtime.disable"}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10, !13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopIdiomRecognizePass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass