; LLVM IR from Tunghohin/Competitive_Coding :: Poj/poj1511.ll (Z5solvei)

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

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@head = external dso_local global [1000010 x i32], align 16
@tot = external dso_local global i32, align 4
@dist = external dso_local global [1000010 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiiib(i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4spfai(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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvei(i32 noundef %0) #1 {
  %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
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store i32 %0, ptr %2, align 4, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 16 @head, i8 0, i64 4000040, i1 false)
  store i32 0, ptr @tot, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %12 = call noundef i32 @_Z4readv()
  store i32 %12, ptr %3, align 4, !tbaa !5
  %13 = call noundef i32 @_Z4readv()
  store i32 %13, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %29, %1
  %15 = load i32, ptr %5, align 4, !tbaa !5
  %16 = load i32, ptr %4, align 4, !tbaa !5
  %17 = icmp sle i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %32

19:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %20 = call noundef i32 @_Z4readv()
  store i32 %20, ptr %6, align 4, !tbaa !5
  %21 = call noundef i32 @_Z4readv()
  store i32 %21, ptr %7, align 4, !tbaa !5
  %22 = call noundef i32 @_Z4readv()
  store i32 %22, ptr %8, align 4, !tbaa !5
  %23 = load i32, ptr %6, align 4, !tbaa !5
  %24 = load i32, ptr %7, align 4, !tbaa !5
  %25 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z8add_edgeiiib(i32 noundef %23, i32 noundef %24, i32 noundef %25, i1 noundef zeroext true)
  %26 = load i32, ptr %7, align 4, !tbaa !5
  %27 = load i32, ptr %6, align 4, !tbaa !5
  %28 = load i32, ptr %8, align 4, !tbaa !5
  call void @_Z8add_edgeiiib(i32 noundef %26, i32 noundef %27, i32 noundef %28, i1 noundef zeroext false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %29

29:                                               ; preds = %19
  %30 = load i32, ptr %5, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %5, align 4, !tbaa !5
  br label %14, !llvm.loop !9

32:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  store i64 0, ptr %9, align 8, !tbaa !11
  call void @_Z4spfai(i32 noundef 1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 1, ptr %10, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %46, %32
  %34 = load i32, ptr %10, align 4, !tbaa !5
  %35 = load i32, ptr %3, align 4, !tbaa !5
  %36 = icmp sle i32 %34, %35
  br i1 %36, label %38, label %37

37:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %49

38:                                               ; preds = %33
  %39 = load i32, ptr %10, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  %43 = sext i32 %42 to i64
  %44 = load i64, ptr %9, align 8, !tbaa !11
  %45 = add nsw i64 %44, %43
  store i64 %45, ptr %9, align 8, !tbaa !11
  br label %46

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

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

50:                                               ; preds = %63, %49
  %51 = load i32, ptr %11, align 4, !tbaa !5
  %52 = load i32, ptr %3, align 4, !tbaa !5
  %53 = icmp sle i32 %51, %52
  br i1 %53, label %55, label %54

54:                                               ; preds = %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %66

55:                                               ; preds = %50
  %56 = load i32, ptr %11, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = load i64, ptr %9, align 8, !tbaa !11
  %62 = add nsw i64 %61, %60
  store i64 %62, ptr %9, align 8, !tbaa !11
  br label %63

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

66:                                               ; preds = %54
  %67 = load i64, ptr %9, align 8, !tbaa !11
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %68, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #1 align 2

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { 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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !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"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }

@head = external dso_local local_unnamed_addr global [1000010 x i32], align 16
@tot = external dso_local local_unnamed_addr global i32, align 4
@dist = external dso_local local_unnamed_addr global [1000010 x i32], align 16
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z8add_edgeiiib(i32 noundef, i32 noundef, i32 noundef, i1 noundef zeroext) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvei(i32 noundef %0) local_unnamed_addr #1 {
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(4000040) @head, i8 0, i64 4000040, i1 false)
  store i32 0, ptr @tot, align 4, !tbaa !5
  %2 = tail call noundef i32 @_Z4readv()
  %3 = tail call noundef i32 @_Z4readv()
  %.not26 = icmp slt i32 %3, 1
  br i1 %.not26, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  tail call void @_Z4spfai(i32 noundef 1)
  %.not2428 = icmp slt i32 %2, 1
  br i1 %.not2428, label %._crit_edge33.thread, label %.lr.ph32.preheader

._crit_edge33.thread:                             ; preds = %._crit_edge
  tail call void @_Z4spfai(i32 noundef 0)
  br label %._crit_edge39

.lr.ph32.preheader:                               ; preds = %._crit_edge
  %4 = add nuw i32 %2, 1
  %wide.trip.count = zext i32 %4 to i64
  %5 = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %.lr.ph32.preheader76, label %vector.ph

.lr.ph32.preheader76:                             ; preds = %middle.block, %.lr.ph32.preheader
  %indvars.iv.ph = phi i64 [ 1, %.lr.ph32.preheader ], [ %ind.end, %middle.block ]
  %.02129.ph = phi i64 [ 0, %.lr.ph32.preheader ], [ %13, %middle.block ]
  br label %.lr.ph32

vector.ph:                                        ; preds = %.lr.ph32.preheader
  %n.vec = and i64 %5, 2147483644
  %ind.end = or disjoint i64 %n.vec, 1
  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 ], [ %10, %vector.body ]
  %vec.phi52 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %11, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %6 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %offset.idx
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %wide.load = load <2 x i32>, ptr %6, align 4, !tbaa !5
  %wide.load53 = load <2 x i32>, ptr %7, align 4, !tbaa !5
  %8 = sext <2 x i32> %wide.load to <2 x i64>
  %9 = sext <2 x i32> %wide.load53 to <2 x i64>
  %10 = add <2 x i64> %vec.phi, %8
  %11 = add <2 x i64> %vec.phi52, %9
  %index.next = add nuw i64 %index, 4
  %12 = icmp eq i64 %index.next, %n.vec
  br i1 %12, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %11, %10
  %13 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %n.vec, %5
  br i1 %cmp.n, label %._crit_edge33, label %.lr.ph32.preheader76

.lr.ph:                                           ; preds = %1, %.lr.ph
  %.02227 = phi i32 [ %17, %.lr.ph ], [ 1, %1 ]
  %14 = tail call noundef i32 @_Z4readv()
  %15 = tail call noundef i32 @_Z4readv()
  %16 = tail call noundef i32 @_Z4readv()
  tail call void @_Z8add_edgeiiib(i32 noundef %14, i32 noundef %15, i32 noundef %16, i1 noundef zeroext true)
  tail call void @_Z8add_edgeiiib(i32 noundef %15, i32 noundef %14, i32 noundef %16, i1 noundef zeroext false)
  %17 = add nuw i32 %.02227, 1
  %exitcond.not = icmp eq i32 %.02227, %3
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

._crit_edge33:                                    ; preds = %.lr.ph32, %middle.block
  %.lcssa51 = phi i64 [ %13, %middle.block ], [ %32, %.lr.ph32 ]
  tail call void @_Z4spfai(i32 noundef 0)
  br i1 %.not2428, label %._crit_edge39, label %.lr.ph38.preheader

.lr.ph38.preheader:                               ; preds = %._crit_edge33
  %18 = add nuw i32 %2, 1
  %wide.trip.count47 = zext i32 %18 to i64
  %19 = zext nneg i32 %2 to i64
  %min.iters.check56 = icmp ult i32 %2, 4
  br i1 %min.iters.check56, label %.lr.ph38.preheader73, label %vector.ph57

.lr.ph38.preheader73:                             ; preds = %middle.block54, %.lr.ph38.preheader
  %indvars.iv44.ph = phi i64 [ 1, %.lr.ph38.preheader ], [ %ind.end60, %middle.block54 ]
  %.135.ph = phi i64 [ %.lcssa51, %.lr.ph38.preheader ], [ %28, %middle.block54 ]
  br label %.lr.ph38

vector.ph57:                                      ; preds = %.lr.ph38.preheader
  %n.vec59 = and i64 %19, 2147483644
  %ind.end60 = or disjoint i64 %n.vec59, 1
  %20 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %.lcssa51, i64 0
  br label %vector.body62

vector.body62:                                    ; preds = %vector.body62, %vector.ph57
  %index63 = phi i64 [ 0, %vector.ph57 ], [ %index.next69, %vector.body62 ]
  %vec.phi64 = phi <2 x i64> [ %20, %vector.ph57 ], [ %25, %vector.body62 ]
  %vec.phi65 = phi <2 x i64> [ zeroinitializer, %vector.ph57 ], [ %26, %vector.body62 ]
  %offset.idx66 = or disjoint i64 %index63, 1
  %21 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %offset.idx66
  %22 = getelementptr inbounds i8, ptr %21, i64 8
  %wide.load67 = load <2 x i32>, ptr %21, align 4, !tbaa !5
  %wide.load68 = load <2 x i32>, ptr %22, align 4, !tbaa !5
  %23 = sext <2 x i32> %wide.load67 to <2 x i64>
  %24 = sext <2 x i32> %wide.load68 to <2 x i64>
  %25 = add <2 x i64> %vec.phi64, %23
  %26 = add <2 x i64> %vec.phi65, %24
  %index.next69 = add nuw i64 %index63, 4
  %27 = icmp eq i64 %index.next69, %n.vec59
  br i1 %27, label %middle.block54, label %vector.body62, !llvm.loop !14

middle.block54:                                   ; preds = %vector.body62
  %bin.rdx70 = add <2 x i64> %26, %25
  %28 = tail call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx70)
  %cmp.n71 = icmp eq i64 %n.vec59, %19
  br i1 %cmp.n71, label %._crit_edge39, label %.lr.ph38.preheader73

.lr.ph32:                                         ; preds = %.lr.ph32.preheader76, %.lr.ph32
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph32 ], [ %indvars.iv.ph, %.lr.ph32.preheader76 ]
  %.02129 = phi i64 [ %32, %.lr.ph32 ], [ %.02129.ph, %.lr.ph32.preheader76 ]
  %29 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %indvars.iv
  %30 = load i32, ptr %29, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = add nsw i64 %.02129, %31
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond43.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond43.not, label %._crit_edge33, label %.lr.ph32, !llvm.loop !15

._crit_edge39:                                    ; preds = %.lr.ph38, %middle.block54, %._crit_edge33.thread, %._crit_edge33
  %.1.lcssa = phi i64 [ %.lcssa51, %._crit_edge33 ], [ 0, %._crit_edge33.thread ], [ %28, %middle.block54 ], [ %38, %.lr.ph38 ]
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.1.lcssa)
  %34 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %33, i8 noundef signext 10)
  ret void

.lr.ph38:                                         ; preds = %.lr.ph38.preheader73, %.lr.ph38
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %.lr.ph38 ], [ %indvars.iv44.ph, %.lr.ph38.preheader73 ]
  %.135 = phi i64 [ %38, %.lr.ph38 ], [ %.135.ph, %.lr.ph38.preheader73 ]
  %35 = getelementptr inbounds [1000010 x i32], ptr @dist, i64 0, i64 %indvars.iv44
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = add nsw i64 %.135, %37
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next45, %wide.trip.count47
  br i1 %exitcond48.not, label %._crit_edge39, label %.lr.ph38, !llvm.loop !16
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #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 nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10, !11, !12}
!15 = distinct !{!15, !10, !12, !11}
!16 = distinct !{!16, !10, !12, !11}


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