; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces (cf545_E)

; 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.edge = type { i32, i32, i64 }

@ans = external dso_local global [300005 x i64], align 16
@pre = external dso_local global [300005 x i32], align 16
@sum = external dso_local global i64, align 8
@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@s = external dso_local global i32, align 4
@e = external dso_local global [600005 x %struct.edge], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiix(i32 noundef, i32 noundef, i64 noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8dijkstrai(i32 noundef) #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: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #3 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %11 = call noundef i32 @_Z4readv()
  store i32 %11, ptr @n, align 4, !tbaa !5
  %12 = call noundef i32 @_Z4readv()
  store i32 %12, ptr @m, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %13

13:                                               ; preds = %29, %0
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = load i32, ptr @m, align 4, !tbaa !5
  %16 = icmp sle i32 %14, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %32

18:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  %19 = call noundef i32 @_Z4readv()
  store i32 %19, ptr %3, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %20 = call noundef i32 @_Z4readv()
  store i32 %20, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %21 = call noundef i32 @_Z4readv()
  %22 = sext i32 %21 to i64
  store i64 %22, ptr %5, align 8, !tbaa !9
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %4, align 4, !tbaa !5
  %25 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z8add_edgeiix(i32 noundef %23, i32 noundef %24, i64 noundef %25)
  %26 = load i32, ptr %4, align 4, !tbaa !5
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = load i64, ptr %5, align 8, !tbaa !9
  call void @_Z8add_edgeiix(i32 noundef %26, i32 noundef %27, i64 noundef %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  br label %29

29:                                               ; preds = %18
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %2, align 4, !tbaa !5
  br label %13, !llvm.loop !11

32:                                               ; preds = %17
  %33 = call noundef i32 @_Z4readv()
  store i32 %33, ptr @s, align 4, !tbaa !5
  %34 = load i32, ptr @s, align 4, !tbaa !5
  call void @_Z8dijkstrai(i32 noundef %34)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 1, ptr %7, align 4, !tbaa !5
  br label %35

35:                                               ; preds = %64, %32
  %36 = load i32, ptr %7, align 4, !tbaa !5
  %37 = load i32, ptr @n, align 4, !tbaa !5
  %38 = icmp sle i32 %36, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  br label %67

40:                                               ; preds = %35
  %41 = load i32, ptr %7, align 4, !tbaa !5
  %42 = load i32, ptr @s, align 4, !tbaa !5
  %43 = icmp eq i32 %41, %42
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  br label %64

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %46 = load i32, ptr %7, align 4, !tbaa !5
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [300005 x i32], ptr @pre, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  store i32 %49, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [600005 x %struct.edge], ptr @e, i64 0, i64 %51
  %53 = getelementptr inbounds %struct.edge, ptr %52, i32 0, i32 2
  %54 = load i64, ptr %53, align 8, !tbaa !13
  store i64 %54, ptr %9, align 8, !tbaa !9
  %55 = load i64, ptr %9, align 8, !tbaa !9
  %56 = load i64, ptr @sum, align 8, !tbaa !9
  %57 = add nsw i64 %56, %55
  store i64 %57, ptr @sum, align 8, !tbaa !9
  %58 = load i32, ptr %8, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = load i32, ptr %6, align 4, !tbaa !5
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %6, align 4, !tbaa !5
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %62
  store i64 %59, ptr %63, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %64

64:                                               ; preds = %45, %44
  %65 = load i32, ptr %7, align 4, !tbaa !5
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %7, align 4, !tbaa !5
  br label %35, !llvm.loop !15

67:                                               ; preds = %39
  %68 = load i32, ptr %6, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i64, ptr @ans, i64 %69
  %71 = getelementptr inbounds i64, ptr %70, i64 1
  call void @_ZSt4sortIPxEvT_S1_(ptr noundef getelementptr inbounds (i64, ptr @ans, i64 1), ptr noundef %71)
  %72 = load i64, ptr @sum, align 8, !tbaa !9
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str, i64 noundef %72)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %74

74:                                               ; preds = %87, %67
  %75 = load i32, ptr %10, align 4, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !5
  %77 = icmp sle i32 %75, %76
  br i1 %77, label %79, label %78

78:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %90

79:                                               ; preds = %74
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %81
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = add nsw i64 %83, 1
  %85 = sdiv i64 %84, 2
  %86 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %85)
  br label %87

87:                                               ; preds = %79
  %88 = load i32, ptr %10, align 4, !tbaa !5
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %10, align 4, !tbaa !5
  br label %74, !llvm.loop !16

90:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret i32 0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z4readv() #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) #4

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

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 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 = { 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 #4 = { inlinehint 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 #5 = { "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 #6 = { 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 = !{!14, !10, i64 8}
!14 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !10, i64 8}
!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"

%struct.edge = type { i32, i32, i64 }

@ans = external dso_local global [300005 x i64], align 16
@pre = external dso_local local_unnamed_addr global [300005 x i32], align 16
@sum = external dso_local local_unnamed_addr global i64, align 8
@n = external dso_local local_unnamed_addr global i32, align 4
@m = external dso_local local_unnamed_addr global i32, align 4
@s = external dso_local local_unnamed_addr global i32, align 4
@e = external dso_local local_unnamed_addr global [600005 x %struct.edge], align 16
@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiix(i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8dijkstrai(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = tail call noundef i32 @_Z4readv()
  store i32 %1, ptr @n, align 4, !tbaa !5
  %2 = tail call noundef i32 @_Z4readv()
  store i32 %2, ptr @m, align 4, !tbaa !5
  %.not26 = icmp slt i32 %2, 1
  br i1 %.not26, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %3 = tail call noundef i32 @_Z4readv()
  store i32 %3, ptr @s, align 4, !tbaa !5
  tail call void @_Z8dijkstrai(i32 noundef %3)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not2428 = icmp slt i32 %4, 1
  br i1 %.not2428, label %._crit_edge33, label %.lr.ph32

.lr.ph32:                                         ; preds = %._crit_edge
  %sum.promoted = load i64, ptr @sum, align 8, !tbaa !9
  %5 = load i32, ptr @s, align 4, !tbaa !5
  %6 = zext i32 %5 to i64
  %7 = zext nneg i32 %4 to i64
  %xtraiter = and i64 %7, 1
  %8 = icmp eq i32 %4, 1
  br i1 %8, label %._crit_edge33.loopexit.unr-lcssa, label %.lr.ph32.new

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

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02127 = phi i32 [ %13, %.lr.ph ], [ 1, %0 ]
  %9 = tail call noundef i32 @_Z4readv()
  %10 = tail call noundef i32 @_Z4readv()
  %11 = tail call noundef i32 @_Z4readv()
  %12 = sext i32 %11 to i64
  tail call void @_Z8add_edgeiix(i32 noundef %9, i32 noundef %10, i64 noundef %12)
  tail call void @_Z8add_edgeiix(i32 noundef %10, i32 noundef %9, i64 noundef %12)
  %13 = add nuw nsw i32 %.02127, 1
  %14 = load i32, ptr @m, align 4, !tbaa !5
  %.not.not = icmp slt i32 %.02127, %14
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge33.loopexit.unr-lcssa:                 ; preds = %58, %.lr.ph32
  %.1.lcssa.ph = phi i32 [ poison, %.lr.ph32 ], [ %.1.1, %58 ]
  %indvars.iv.unr = phi i64 [ 1, %.lr.ph32 ], [ %indvars.iv.next.1, %58 ]
  %.02230.unr = phi i32 [ 0, %.lr.ph32 ], [ %.1.1, %58 ]
  %.unr = phi i64 [ %sum.promoted, %.lr.ph32 ], [ %59, %58 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge33, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge33.loopexit.unr-lcssa
  %15 = icmp eq i64 %indvars.iv.unr, %6
  br i1 %15, label %._crit_edge33, label %16

16:                                               ; preds = %.epil.preheader
  %17 = getelementptr inbounds [300005 x i32], ptr @pre, i64 0, i64 %indvars.iv.unr
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [600005 x %struct.edge], ptr @e, i64 0, i64 %19, i32 2
  %21 = load i64, ptr %20, align 8, !tbaa !13
  %22 = add nsw i64 %.unr, %21
  store i64 %22, ptr @sum, align 8, !tbaa !9
  %23 = add nsw i32 %.02230.unr, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %24
  store i64 %19, ptr %25, align 8, !tbaa !9
  br label %._crit_edge33

._crit_edge33:                                    ; preds = %._crit_edge33.loopexit.unr-lcssa, %16, %.epil.preheader, %._crit_edge
  %.022.lcssa = phi i32 [ 0, %._crit_edge ], [ %.1.lcssa.ph, %._crit_edge33.loopexit.unr-lcssa ], [ %.02230.unr, %.epil.preheader ], [ %23, %16 ]
  %26 = sext i32 %.022.lcssa to i64
  %27 = getelementptr inbounds i64, ptr @ans, i64 %26
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  tail call void @_ZSt4sortIPxEvT_S1_(ptr noundef nonnull getelementptr inbounds (i8, ptr @ans, i64 8), ptr noundef nonnull %28)
  %29 = load i64, ptr @sum, align 8, !tbaa !9
  %30 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, i64 noundef %29)
  %.not2534 = icmp slt i32 %.022.lcssa, 1
  br i1 %.not2534, label %._crit_edge38, label %.lr.ph37.preheader

.lr.ph37.preheader:                               ; preds = %._crit_edge33
  %31 = add nuw i32 %.022.lcssa, 1
  %wide.trip.count43 = zext i32 %31 to i64
  br label %.lr.ph37

32:                                               ; preds = %58, %.lr.ph32.new
  %indvars.iv = phi i64 [ 1, %.lr.ph32.new ], [ %indvars.iv.next.1, %58 ]
  %.02230 = phi i32 [ 0, %.lr.ph32.new ], [ %.1.1, %58 ]
  %33 = phi i64 [ %sum.promoted, %.lr.ph32.new ], [ %59, %58 ]
  %niter = phi i64 [ 0, %.lr.ph32.new ], [ %niter.next.1, %58 ]
  %34 = icmp eq i64 %indvars.iv, %6
  br i1 %34, label %45, label %35

35:                                               ; preds = %32
  %36 = getelementptr inbounds [300005 x i32], ptr @pre, i64 0, i64 %indvars.iv
  %37 = load i32, ptr %36, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [600005 x %struct.edge], ptr @e, i64 0, i64 %38, i32 2
  %40 = load i64, ptr %39, align 8, !tbaa !13
  %41 = add nsw i64 %33, %40
  store i64 %41, ptr @sum, align 8, !tbaa !9
  %42 = add nsw i32 %.02230, 1
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %43
  store i64 %38, ptr %44, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %32, %35
  %46 = phi i64 [ %33, %32 ], [ %41, %35 ]
  %.1 = phi i32 [ %.02230, %32 ], [ %42, %35 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %47 = icmp eq i64 %indvars.iv.next, %6
  br i1 %47, label %58, label %48

48:                                               ; preds = %45
  %49 = getelementptr inbounds [300005 x i32], ptr @pre, i64 0, i64 %indvars.iv.next
  %50 = load i32, ptr %49, align 4, !tbaa !5
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds [600005 x %struct.edge], ptr @e, i64 0, i64 %51, i32 2
  %53 = load i64, ptr %52, align 8, !tbaa !13
  %54 = add nsw i64 %46, %53
  store i64 %54, ptr @sum, align 8, !tbaa !9
  %55 = add nsw i32 %.1, 1
  %56 = sext i32 %55 to i64
  %57 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %56
  store i64 %51, ptr %57, align 8, !tbaa !9
  br label %58

58:                                               ; preds = %48, %45
  %59 = phi i64 [ %46, %45 ], [ %54, %48 ]
  %.1.1 = phi i32 [ %.1, %45 ], [ %55, %48 ]
  %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_edge33.loopexit.unr-lcssa, label %32, !llvm.loop !15

._crit_edge38:                                    ; preds = %.lr.ph37, %._crit_edge33
  ret i32 0

.lr.ph37:                                         ; preds = %.lr.ph37.preheader, %.lr.ph37
  %indvars.iv40 = phi i64 [ 1, %.lr.ph37.preheader ], [ %indvars.iv.next41, %.lr.ph37 ]
  %60 = getelementptr inbounds [300005 x i64], ptr @ans, i64 0, i64 %indvars.iv40
  %61 = load i64, ptr %60, align 8, !tbaa !9
  %62 = add nsw i64 %61, 1
  %63 = sdiv i64 %62, 2
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %63)
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %exitcond44.not = icmp eq i64 %indvars.iv.next41, %wide.trip.count43
  br i1 %exitcond44.not, label %._crit_edge38, label %.lr.ph37, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_Z4readv() local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPxEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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 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 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 #3 = { inlinehint 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 #4 = { 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" }

!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 = !{!14, !10, i64 8}
!14 = !{!"_ZTS4edge", !6, i64 0, !6, i64 4, !10, i64 8}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}


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