; LLVM IR from upupming/algorithm :: kick-start/2020/2020G-C.ll (Z5solvev)

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

@w = external dso_local global i64, align 8
@n = external dso_local global i64, align 8
@x = external dso_local global [100010 x i64], align 16
@sum = external dso_local global [100010 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z5solvev() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i32, align 4
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  store i64 9223372036854775807, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %146, %0
  %12 = load i32, ptr %2, align 4, !tbaa !9
  %13 = sext i32 %12 to i64
  %14 = load i64, ptr @w, align 8, !tbaa !5
  %15 = icmp slt i64 %13, %14
  br i1 %15, label %17, label %16

16:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %149

17:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %18 = load i32, ptr %2, align 4, !tbaa !9
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %19
  %21 = load i64, ptr %20, align 8, !tbaa !5
  store i64 %21, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %22 = load i64, ptr %3, align 8, !tbaa !5
  %23 = mul nsw i64 2, %22
  %24 = load i64, ptr @n, align 8, !tbaa !5
  %25 = sub nsw i64 %23, %24
  %26 = sdiv i64 %25, 2
  store i64 %26, ptr %4, align 8, !tbaa !5
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %28 = icmp sle i64 %27, 0
  br i1 %28, label %29, label %35

29:                                               ; preds = %17
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = mul nsw i64 2, %30
  %32 = load i64, ptr @n, align 8, !tbaa !5
  %33 = add nsw i64 %31, %32
  %34 = sdiv i64 %33, 2
  store i64 %34, ptr %4, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %29, %17
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %36 = load i64, ptr @w, align 8, !tbaa !5
  %37 = getelementptr inbounds i64, ptr @x, i64 %36
  %38 = call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef @x, ptr noundef %37, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %39 = ptrtoint ptr %38 to i64
  %40 = sub i64 %39, ptrtoint (ptr @x to i64)
  %41 = sdiv exact i64 %40, 8
  %42 = trunc i64 %41 to i32
  store i32 %42, ptr %5, align 4, !tbaa !9
  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 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %43 = load i32, ptr %2, align 4, !tbaa !9
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %9, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = icmp slt i32 %45, %46
  br i1 %47, label %48, label %91

48:                                               ; preds = %35
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !5
  %53 = load i64, ptr @n, align 8, !tbaa !5
  %54 = load i64, ptr %3, align 8, !tbaa !5
  %55 = sub nsw i64 %53, %54
  %56 = load i32, ptr %5, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = mul nsw i64 %55, %57
  %59 = add nsw i64 %52, %58
  store i64 %59, ptr %6, align 8, !tbaa !5
  %60 = load i64, ptr %3, align 8, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = sub nsw i32 %61, %62
  %64 = sext i32 %63 to i64
  %65 = mul nsw i64 %60, %64
  %66 = load i32, ptr %9, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %70 = load i32, ptr %5, align 4, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %71
  %73 = load i64, ptr %72, align 8, !tbaa !5
  %74 = sub nsw i64 %69, %73
  %75 = sub nsw i64 %65, %74
  store i64 %75, ptr %7, align 8, !tbaa !5
  %76 = load i64, ptr @w, align 8, !tbaa !5
  %77 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = sub nsw i64 %78, %82
  %84 = load i64, ptr %3, align 8, !tbaa !5
  %85 = load i64, ptr @w, align 8, !tbaa !5
  %86 = load i32, ptr %9, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = sub nsw i64 %85, %87
  %89 = mul nsw i64 %84, %88
  %90 = sub nsw i64 %83, %89
  store i64 %90, ptr %8, align 8, !tbaa !5
  br label %135

91:                                               ; preds = %35
  %92 = load i64, ptr %3, align 8, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = mul nsw i64 %92, %94
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %97
  %99 = load i64, ptr %98, align 8, !tbaa !5
  %100 = sub nsw i64 %95, %99
  store i64 %100, ptr %6, align 8, !tbaa !5
  %101 = load i32, ptr %5, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %102
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %106
  %108 = load i64, ptr %107, align 8, !tbaa !5
  %109 = sub nsw i64 %104, %108
  %110 = load i64, ptr %3, align 8, !tbaa !5
  %111 = load i32, ptr %5, align 4, !tbaa !9
  %112 = load i32, ptr %9, align 4, !tbaa !9
  %113 = sub nsw i32 %111, %112
  %114 = sext i32 %113 to i64
  %115 = mul nsw i64 %110, %114
  %116 = sub nsw i64 %109, %115
  store i64 %116, ptr %7, align 8, !tbaa !5
  %117 = load i64, ptr @w, align 8, !tbaa !5
  %118 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %117
  %119 = load i64, ptr %118, align 8, !tbaa !5
  %120 = load i32, ptr %5, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !5
  %124 = sub nsw i64 %119, %123
  %125 = sub nsw i64 0, %124
  %126 = load i64, ptr @n, align 8, !tbaa !5
  %127 = load i64, ptr %3, align 8, !tbaa !5
  %128 = add nsw i64 %126, %127
  %129 = load i64, ptr @w, align 8, !tbaa !5
  %130 = load i32, ptr %5, align 4, !tbaa !9
  %131 = sext i32 %130 to i64
  %132 = sub nsw i64 %129, %131
  %133 = mul nsw i64 %128, %132
  %134 = add nsw i64 %125, %133
  store i64 %134, ptr %8, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %91, %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %136 = load i64, ptr %6, align 8, !tbaa !5
  %137 = call noundef i64 @_ZSt3absx(i64 noundef %136)
  %138 = load i64, ptr %7, align 8, !tbaa !5
  %139 = call noundef i64 @_ZSt3absx(i64 noundef %138)
  %140 = add nsw i64 %137, %139
  %141 = load i64, ptr %8, align 8, !tbaa !5
  %142 = call noundef i64 @_ZSt3absx(i64 noundef %141)
  %143 = add nsw i64 %140, %142
  store i64 %143, ptr %10, align 8, !tbaa !5
  %144 = 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) %10)
  %145 = load i64, ptr %144, align 8, !tbaa !5
  store i64 %145, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, 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 4, 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
  br label %146

146:                                              ; preds = %135
  %147 = load i32, ptr %2, align 4, !tbaa !9
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %2, align 4, !tbaa !9
  br label %11, !llvm.loop !11

149:                                              ; preds = %16
  %150 = load i64, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret i64 %150
}

; 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 uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) #3

; 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)) #3

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

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 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 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 #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 = !{!"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"}


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

@w = external dso_local local_unnamed_addr global i64, align 8
@n = external dso_local local_unnamed_addr global i64, align 8
@x = external dso_local global [100010 x i64], align 16
@sum = external dso_local local_unnamed_addr global [100010 x i64], align 16

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i64 9223372036854775807, ptr %1, align 8, !tbaa !5
  %4 = load i64, ptr @w, align 8, !tbaa !5
  %5 = icmp sgt i64 %4, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %61, %0
  %6 = phi i64 [ 9223372036854775807, %0 ], [ %68, %61 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  ret i64 %6

.lr.ph:                                           ; preds = %0, %61
  %indvars.iv = phi i64 [ %indvars.iv.next, %61 ], [ 0, %0 ]
  %7 = phi i64 [ %69, %61 ], [ %4, %0 ]
  %8 = getelementptr inbounds [100010 x i64], ptr @x, i64 0, i64 %indvars.iv
  %9 = load i64, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %10 = shl nsw i64 %9, 1
  %11 = load i64, ptr @n, align 8, !tbaa !5
  %12 = sub nsw i64 %10, %11
  %13 = icmp slt i64 %12, 2
  %14 = add nsw i64 %11, %10
  %spec.select = select i1 %13, i64 %14, i64 %12
  %storemerge = sdiv i64 %spec.select, 2
  store i64 %storemerge, ptr %2, align 8, !tbaa !5
  %15 = getelementptr inbounds i64, ptr @x, i64 %7
  %16 = call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef nonnull @x, ptr noundef nonnull %15, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %17 = ptrtoint ptr %16 to i64
  %18 = sub i64 %17, ptrtoint (ptr @x to i64)
  %19 = lshr exact i64 %18, 3
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %sext51 = shl i64 %18, 29
  %20 = ashr i64 %sext51, 32
  %.not = icmp slt i64 %indvars.iv, %20
  br i1 %.not, label %40, label %21

21:                                               ; preds = %.lr.ph
  %sext40 = shl i64 %18, 29
  %22 = ashr i64 %sext40, 32
  %23 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %22
  %24 = load i64, ptr %23, align 8, !tbaa !5
  %25 = load i64, ptr @n, align 8, !tbaa !5
  %26 = sub nsw i64 %25, %9
  %27 = mul nsw i64 %26, %22
  %28 = add nsw i64 %27, %24
  %29 = sub nsw i64 %indvars.iv.next, %19
  %sext52 = shl i64 %29, 32
  %30 = ashr exact i64 %sext52, 32
  %31 = mul nsw i64 %9, %30
  %32 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %.neg41 = add i64 %24, %31
  %34 = sub i64 %.neg41, %33
  %35 = load i64, ptr @w, align 8, !tbaa !5
  %36 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = sub i64 %37, %33
  %.neg42 = sub i64 %indvars.iv.next, %35
  %.neg43 = mul i64 %.neg42, %9
  %39 = add i64 %38, %.neg43
  br label %61

40:                                               ; preds = %.lr.ph
  %41 = mul nsw i64 %9, %indvars.iv.next
  %42 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %indvars.iv.next
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = sub nsw i64 %41, %43
  %sext = shl i64 %18, 29
  %45 = ashr i64 %sext, 32
  %46 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %45
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = sub nsw i64 %19, %indvars.iv.next
  %sext53 = shl i64 %48, 32
  %49 = ashr exact i64 %sext53, 32
  %50 = mul nsw i64 %9, %49
  %51 = add i64 %43, %50
  %52 = sub i64 %47, %51
  %53 = load i64, ptr @w, align 8, !tbaa !5
  %54 = getelementptr inbounds [100010 x i64], ptr @sum, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %.neg = sub i64 %47, %55
  %56 = load i64, ptr @n, align 8, !tbaa !5
  %57 = add nsw i64 %56, %9
  %58 = sub nsw i64 %53, %45
  %59 = mul nsw i64 %57, %58
  %60 = add nsw i64 %.neg, %59
  br label %61

61:                                               ; preds = %40, %21
  %.035 = phi i64 [ %28, %21 ], [ %44, %40 ]
  %.034 = phi i64 [ %34, %21 ], [ %52, %40 ]
  %.033 = phi i64 [ %39, %21 ], [ %60, %40 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %62 = call noundef i64 @_ZSt3absx(i64 noundef %.035)
  %63 = call noundef i64 @_ZSt3absx(i64 noundef %.034)
  %64 = add nsw i64 %63, %62
  %65 = call noundef i64 @_ZSt3absx(i64 noundef %.033)
  %66 = add nsw i64 %64, %65
  store i64 %66, ptr %3, align 8, !tbaa !5
  %67 = 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) %3)
  %68 = load i64, ptr %67, align 8, !tbaa !5
  store i64 %68, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  %69 = load i64, ptr @w, align 8, !tbaa !5
  %70 = icmp sgt i64 %69, %indvars.iv.next
  br i1 %70, label %.lr.ph, label %._crit_edge, !llvm.loop !9
}

; 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 uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absx(i64 noundef) local_unnamed_addr #3

; 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 #3

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

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 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 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 #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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


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