; LLVM IR from Izaron/ACM-ICPC :: Russian Olympiad in Informatics/Final Stage 2016/fisher.ll (Z6getAnsv)

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

@p = external dso_local global i64, align 8
@pos = external dso_local global i64, align 8
@allFish = external dso_local global i64, align 8
@prodFish = external dso_local global i64, align 8
@navar = external dso_local global i64, align 8
@linksVal = external dso_local global [320005 x i64], align 16
@linksMn = external dso_local global [320005 x i64], align 16
@tree = external dso_local global [1280020 x i64], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z6getAnsv() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = load i64, ptr @allFish, align 8, !tbaa !5
  %13 = load i64, ptr @prodFish, align 8, !tbaa !5
  %14 = icmp sge i64 %12, %13
  br i1 %14, label %15, label %21

15:                                               ; preds = %0
  %16 = load i64, ptr @navar, align 8, !tbaa !5
  %17 = load i64, ptr @p, align 8, !tbaa !5
  %18 = load i64, ptr @pos, align 8, !tbaa !5
  %19 = mul nsw i64 %17, %18
  %20 = sub nsw i64 %16, %19
  store i64 %20, ptr %1, align 8
  br label %124

21:                                               ; preds = %0
  %22 = load i64, ptr @allFish, align 8, !tbaa !5
  %23 = load i64, ptr @linksVal, align 16, !tbaa !5
  %24 = icmp sle i64 %22, %23
  br i1 %24, label %25, label %33

25:                                               ; preds = %21
  %26 = load i64, ptr @allFish, align 8, !tbaa !5
  %27 = load i64, ptr @linksMn, align 16, !tbaa !5
  %28 = mul nsw i64 %26, %27
  %29 = load i64, ptr @p, align 8, !tbaa !5
  %30 = load i64, ptr @pos, align 8, !tbaa !5
  %31 = mul nsw i64 %29, %30
  %32 = sub nsw i64 %28, %31
  store i64 %32, ptr %1, align 8
  br label %124

33:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  store i64 0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  %34 = load i64, ptr @allFish, align 8, !tbaa !5
  store i64 %34, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  store i32 320004, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 1, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %35 = load i64, ptr @allFish, align 8, !tbaa !5
  store i64 %35, ptr %8, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %71, %33
  %37 = load i32, ptr %5, align 4, !tbaa !9
  %38 = load i32, ptr %6, align 4, !tbaa !9
  %39 = icmp ne i32 %37, %38
  br i1 %39, label %40, label %72

40:                                               ; preds = %36
  %41 = load i32, ptr %7, align 4, !tbaa !9
  %42 = mul nsw i32 %41, 2
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds [1280020 x i64], ptr @tree, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = load i64, ptr %8, align 8, !tbaa !5
  %47 = icmp sgt i64 %45, %46
  br i1 %47, label %48, label %55

48:                                               ; preds = %40
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = add nsw i32 %49, %50
  %52 = sdiv i32 %51, 2
  store i32 %52, ptr %6, align 4, !tbaa !9
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = mul nsw i32 %53, 2
  store i32 %54, ptr %7, align 4, !tbaa !9
  br label %71

55:                                               ; preds = %40
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = load i32, ptr %6, align 4, !tbaa !9
  %58 = add nsw i32 %56, %57
  %59 = sdiv i32 %58, 2
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %5, align 4, !tbaa !9
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = mul nsw i32 %61, 2
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [1280020 x i64], ptr @tree, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !5
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = sub nsw i64 %66, %65
  store i64 %67, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = mul nsw i32 %68, 2
  %70 = add nsw i32 %69, 1
  store i32 %70, ptr %7, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %55, %48
  br label %36, !llvm.loop !11

72:                                               ; preds = %36
  %73 = load i32, ptr %5, align 4, !tbaa !9
  %74 = sub nsw i32 %73, 2
  %75 = icmp sge i32 %74, 0
  br i1 %75, label %76, label %87

76:                                               ; preds = %72
  %77 = load i32, ptr %5, align 4, !tbaa !9
  %78 = sub nsw i32 %77, 2
  %79 = call noundef i64 @_Z7getValsiiiii(i32 noundef 1, i32 noundef 0, i32 noundef 320004, i32 noundef 0, i32 noundef %78)
  %80 = load i64, ptr %3, align 8, !tbaa !5
  %81 = sub nsw i64 %80, %79
  store i64 %81, ptr %3, align 8, !tbaa !5
  %82 = load i32, ptr %5, align 4, !tbaa !9
  %83 = sub nsw i32 %82, 2
  %84 = call noundef i64 @_Z6getAnsiiiii(i32 noundef 1, i32 noundef 0, i32 noundef 320004, i32 noundef 0, i32 noundef %83)
  %85 = load i64, ptr %2, align 8, !tbaa !5
  %86 = add nsw i64 %85, %84
  store i64 %86, ptr %2, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %76, %72
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %88 = load i32, ptr %5, align 4, !tbaa !9
  %89 = sub nsw i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !9
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %10, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %91 = load i32, ptr %90, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  store i32 %91, ptr %9, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %115, %87
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = load i32, ptr %5, align 4, !tbaa !9
  %95 = add nsw i32 %94, 3
  %96 = icmp sle i32 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  br label %118

98:                                               ; preds = %92
  %99 = load i32, ptr %9, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [320005 x i64], ptr @linksVal, i64 0, i64 %100
  %102 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %101)
  %103 = load i64, ptr %102, align 8, !tbaa !5
  store i64 %103, ptr %4, align 8, !tbaa !5
  %104 = load i64, ptr %4, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [320005 x i64], ptr @linksMn, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = mul nsw i64 %104, %108
  %110 = load i64, ptr %2, align 8, !tbaa !5
  %111 = add nsw i64 %110, %109
  store i64 %111, ptr %2, align 8, !tbaa !5
  %112 = load i64, ptr %4, align 8, !tbaa !5
  %113 = load i64, ptr %3, align 8, !tbaa !5
  %114 = sub nsw i64 %113, %112
  store i64 %114, ptr %3, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %98
  %116 = load i32, ptr %9, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %9, align 4, !tbaa !9
  br label %92, !llvm.loop !13

118:                                              ; preds = %97
  %119 = load i64, ptr %2, align 8, !tbaa !5
  %120 = load i64, ptr @pos, align 8, !tbaa !5
  %121 = load i64, ptr @p, align 8, !tbaa !5
  %122 = mul nsw i64 %120, %121
  %123 = sub nsw i64 %119, %122
  store i64 %123, ptr %1, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  br label %124

124:                                              ; preds = %118, %25, %15
  %125 = load i64, ptr %1, align 8
  ret i64 %125
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !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"

@p = external dso_local local_unnamed_addr global i64, align 8
@pos = external dso_local local_unnamed_addr global i64, align 8
@allFish = external dso_local local_unnamed_addr global i64, align 8
@prodFish = external dso_local local_unnamed_addr global i64, align 8
@navar = external dso_local local_unnamed_addr global i64, align 8
@linksVal = external dso_local global [320005 x i64], align 16
@linksMn = external dso_local local_unnamed_addr global [320005 x i64], align 16
@tree = external dso_local local_unnamed_addr global [1280020 x i64], align 16

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z6getAnsv() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = load i64, ptr @allFish, align 8, !tbaa !5
  %5 = load i64, ptr @prodFish, align 8, !tbaa !5
  %.not = icmp slt i64 %4, %5
  br i1 %.not, label %12, label %6

6:                                                ; preds = %0
  %7 = load i64, ptr @navar, align 8, !tbaa !5
  %8 = load i64, ptr @p, align 8, !tbaa !5
  %9 = load i64, ptr @pos, align 8, !tbaa !5
  %10 = mul nsw i64 %9, %8
  %11 = sub nsw i64 %7, %10
  br label %62

12:                                               ; preds = %0
  %13 = load i64, ptr @linksVal, align 16, !tbaa !5
  %.not40 = icmp sgt i64 %4, %13
  br i1 %.not40, label %21, label %14

14:                                               ; preds = %12
  %15 = load i64, ptr @linksMn, align 16, !tbaa !5
  %16 = mul nsw i64 %15, %4
  %17 = load i64, ptr @p, align 8, !tbaa !5
  %18 = load i64, ptr @pos, align 8, !tbaa !5
  %19 = mul nsw i64 %18, %17
  %20 = sub nsw i64 %16, %19
  br label %62

21:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #3
  store i64 %4, ptr %1, align 8, !tbaa !5
  br label %22

22:                                               ; preds = %21, %34
  %.02746 = phi i64 [ %4, %21 ], [ %.1, %34 ]
  %.02845 = phi i32 [ 1, %21 ], [ %.129, %34 ]
  %.03044 = phi i32 [ 320004, %21 ], [ %.131, %34 ]
  %.03243 = phi i32 [ 0, %21 ], [ %.133, %34 ]
  %23 = shl nsw i32 %.02845, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [1280020 x i64], ptr @tree, i64 0, i64 %24
  %26 = load i64, ptr %25, align 16, !tbaa !5
  %27 = icmp sgt i64 %26, %.02746
  %28 = add nsw i32 %.03044, %.03243
  %29 = sdiv i32 %28, 2
  br i1 %27, label %34, label %30

30:                                               ; preds = %22
  %31 = add nsw i32 %29, 1
  %32 = sub nsw i64 %.02746, %26
  %33 = or disjoint i32 %23, 1
  br label %34

34:                                               ; preds = %22, %30
  %.133 = phi i32 [ %31, %30 ], [ %.03243, %22 ]
  %.131 = phi i32 [ %.03044, %30 ], [ %29, %22 ]
  %.129 = phi i32 [ %33, %30 ], [ %23, %22 ]
  %.1 = phi i64 [ %32, %30 ], [ %.02746, %22 ]
  %.not41 = icmp eq i32 %.133, %.131
  br i1 %.not41, label %35, label %22, !llvm.loop !9

35:                                               ; preds = %34
  %36 = icmp sgt i32 %.133, 1
  br i1 %36, label %37, label %42

37:                                               ; preds = %35
  %38 = add nsw i32 %.133, -2
  %39 = tail call noundef i64 @_Z7getValsiiiii(i32 noundef 1, i32 noundef 0, i32 noundef 320004, i32 noundef 0, i32 noundef %38)
  %40 = sub nsw i64 %4, %39
  store i64 %40, ptr %1, align 8, !tbaa !5
  %41 = tail call noundef i64 @_Z6getAnsiiiii(i32 noundef 1, i32 noundef 0, i32 noundef 320004, i32 noundef 0, i32 noundef %38)
  br label %42

42:                                               ; preds = %37, %35
  %.035 = phi i64 [ %41, %37 ], [ 0, %35 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store i32 0, ptr %2, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  %43 = add nsw i32 %.133, -1
  store i32 %43, ptr %3, align 4, !tbaa !11
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %2, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %45 = load i32, ptr %44, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  %46 = add nsw i32 %.133, 3
  %.not4247 = icmp sgt i32 %45, %46
  br i1 %.not4247, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %42
  %47 = sext i32 %45 to i64
  %48 = add i32 %.133, 4
  br label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %42
  %.136.lcssa = phi i64 [ %.035, %42 ], [ %59, %.lr.ph ]
  %49 = load i64, ptr @pos, align 8, !tbaa !5
  %50 = load i64, ptr @p, align 8, !tbaa !5
  %51 = mul nsw i64 %50, %49
  %52 = sub nsw i64 %.136.lcssa, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  br label %62

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %47, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %.13648 = phi i64 [ %.035, %.lr.ph.preheader ], [ %59, %.lr.ph ]
  %53 = getelementptr inbounds [320005 x i64], ptr @linksVal, i64 0, i64 %indvars.iv
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %53)
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = getelementptr inbounds [320005 x i64], ptr @linksMn, i64 0, i64 %indvars.iv
  %57 = load i64, ptr %56, align 8, !tbaa !5
  %58 = mul nsw i64 %57, %55
  %59 = add nsw i64 %58, %.13648
  %60 = load i64, ptr %1, align 8, !tbaa !5
  %61 = sub nsw i64 %60, %55
  store i64 %61, ptr %1, align 8, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %48, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !13

62:                                               ; preds = %._crit_edge, %14, %6
  %.034 = phi i64 [ %11, %6 ], [ %20, %14 ], [ %52, %._crit_edge ]
  ret i64 %.034
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3maxIiERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #3 = { 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 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}


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