; LLVM IR from tangjz/acm-icpc :: 51nod (1145)

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

@p = external dso_local global i64, align 8
@A = external dso_local global %struct.Fibonacci, align 8
@L = external dso_local global i32, align 4
@R = external dso_local global i32, align 4
@n = external dso_local global i64, align 8
@que = external dso_local global [2001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Fibonacci, align 8
  %10 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %11 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  %12 = load i32, ptr @R, align 4, !tbaa !5
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr @R, align 4, !tbaa !5
  %14 = sext i32 %12 to i64
  %15 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %14
  store i64 0, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 10, ptr %2, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 1, ptr %3, align 8, !tbaa !9
  br label %16

16:                                               ; preds = %99, %0
  %17 = load i64, ptr %2, align 8, !tbaa !9
  %18 = load i64, ptr @p, align 8, !tbaa !9
  %19 = icmp sle i64 %17, %18
  br i1 %19, label %21, label %20

20:                                               ; preds = %16
  store i32 2, ptr %4, align 4
  br label %102

21:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %22 = load i32, ptr @R, align 4, !tbaa !5
  store i32 %22, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %23 = load i64, ptr %2, align 8, !tbaa !9
  %24 = icmp sle i64 %23, 10
  br i1 %24, label %25, label %26

25:                                               ; preds = %21
  br label %31

26:                                               ; preds = %21
  %27 = load i64, ptr %2, align 8, !tbaa !9
  %28 = icmp sle i64 %27, 1000
  %29 = zext i1 %28 to i64
  %30 = select i1 %28, i32 5, i32 10
  br label %31

31:                                               ; preds = %26, %25
  %32 = phi i32 [ 60, %25 ], [ %30, %26 ]
  store i32 %32, ptr %6, align 4, !tbaa !5
  br label %33

33:                                               ; preds = %83, %31
  %34 = load i32, ptr @L, align 4, !tbaa !5
  %35 = load i32, ptr @R, align 4, !tbaa !5
  %36 = icmp ne i32 %34, %35
  br i1 %36, label %37, label %84

37:                                               ; preds = %33
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %38 = load i32, ptr @L, align 4, !tbaa !5
  %39 = add nsw i32 %38, 1
  store i32 %39, ptr @L, align 4, !tbaa !5
  %40 = sext i32 %38 to i64
  %41 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %40
  %42 = load i64, ptr %41, align 8, !tbaa !9
  store i64 %42, ptr %7, align 8, !tbaa !9
  %43 = load i32, ptr @L, align 4, !tbaa !5
  %44 = icmp eq i32 %43, 2001
  br i1 %44, label %45, label %46

45:                                               ; preds = %37
  store i32 0, ptr @L, align 4, !tbaa !5
  br label %46

46:                                               ; preds = %45, %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %77, %46
  %48 = load i32, ptr %8, align 4, !tbaa !5
  %49 = load i32, ptr %6, align 4, !tbaa !5
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 7, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %83

52:                                               ; preds = %47
  %53 = load i64, ptr @n, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  %54 = load i64, ptr %7, align 8, !tbaa !9
  %55 = call { i64, i64 } @_ZN9Fibonacci3powEx(ptr noundef nonnull align 8 dereferenceable(16) @A, i64 noundef %54)
  %56 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %57 = extractvalue { i64, i64 } %55, 0
  store i64 %57, ptr %56, align 8
  %58 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %59 = extractvalue { i64, i64 } %55, 1
  store i64 %59, ptr %58, align 8
  %60 = getelementptr inbounds %struct.Fibonacci, ptr %9, i32 0, i32 1
  %61 = load i64, ptr %60, align 8, !tbaa !11
  %62 = sub nsw i64 %53, %61
  %63 = load i64, ptr %2, align 8, !tbaa !9
  %64 = srem i64 %62, %63
  %65 = icmp eq i64 %64, 0
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  br i1 %65, label %66, label %76

66:                                               ; preds = %52
  %67 = load i64, ptr %7, align 8, !tbaa !9
  %68 = load i32, ptr %5, align 4, !tbaa !5
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %5, align 4, !tbaa !5
  %70 = sext i32 %68 to i64
  %71 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %70
  store i64 %67, ptr %71, align 8, !tbaa !9
  %72 = load i32, ptr %5, align 4, !tbaa !5
  %73 = icmp eq i32 %72, 2001
  br i1 %73, label %74, label %75

74:                                               ; preds = %66
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %74, %66
  br label %76

76:                                               ; preds = %75, %52
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %8, align 4, !tbaa !5
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %8, align 4, !tbaa !5
  %80 = load i64, ptr %3, align 8, !tbaa !9
  %81 = load i64, ptr %7, align 8, !tbaa !9
  %82 = add nsw i64 %81, %80
  store i64 %82, ptr %7, align 8, !tbaa !9
  br label %47, !llvm.loop !13

83:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  br label %33, !llvm.loop !15

84:                                               ; preds = %33
  %85 = load i32, ptr %5, align 4, !tbaa !5
  store i32 %85, ptr @R, align 4, !tbaa !5
  %86 = load i32, ptr %6, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = load i64, ptr %3, align 8, !tbaa !9
  %89 = mul nsw i64 %88, %87
  store i64 %89, ptr %3, align 8, !tbaa !9
  %90 = load i64, ptr %2, align 8, !tbaa !9
  %91 = load i64, ptr @p, align 8, !tbaa !9
  %92 = sdiv i64 %91, 10
  %93 = icmp sgt i64 %90, %92
  br i1 %93, label %94, label %95

94:                                               ; preds = %84
  store i32 2, ptr %4, align 4
  br label %96

95:                                               ; preds = %84
  store i32 0, ptr %4, align 4
  br label %96

96:                                               ; preds = %95, %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %97 = load i32, ptr %4, align 4
  switch i32 %97, label %102 [
    i32 0, label %98
  ]

98:                                               ; preds = %96
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %2, align 8, !tbaa !9
  %101 = mul nsw i64 %100, 10
  store i64 %101, ptr %2, align 8, !tbaa !9
  br label %16, !llvm.loop !16

102:                                              ; preds = %96, %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  br label %103

103:                                              ; preds = %102
  %104 = load i32, ptr @L, align 4, !tbaa !5
  %105 = load i32, ptr @R, align 4, !tbaa !5
  %106 = icmp eq i32 %104, %105
  br i1 %106, label %107, label %109

107:                                              ; preds = %103
  %108 = call i32 @puts(ptr noundef @.str.1)
  br label %140

109:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %110 = load i32, ptr @L, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %111
  %113 = load i64, ptr %112, align 8, !tbaa !9
  store i64 %113, ptr %10, align 8, !tbaa !9
  br label %114

114:                                              ; preds = %135, %109
  %115 = load i32, ptr @L, align 4, !tbaa !5
  %116 = load i32, ptr @R, align 4, !tbaa !5
  %117 = icmp ne i32 %115, %116
  br i1 %117, label %118, label %136

118:                                              ; preds = %114
  %119 = load i64, ptr %10, align 8, !tbaa !9
  %120 = load i32, ptr @L, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !9
  %124 = icmp sgt i64 %119, %123
  br i1 %124, label %125, label %130

125:                                              ; preds = %118
  %126 = load i32, ptr @L, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %127
  %129 = load i64, ptr %128, align 8, !tbaa !9
  store i64 %129, ptr %10, align 8, !tbaa !9
  br label %130

130:                                              ; preds = %125, %118
  %131 = load i32, ptr @L, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr @L, align 4, !tbaa !5
  %133 = icmp eq i32 %132, 2001
  br i1 %133, label %134, label %135

134:                                              ; preds = %130
  store i32 0, ptr @L, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %134, %130
  br label %114, !llvm.loop !17

136:                                              ; preds = %114
  %137 = load i64, ptr %10, align 8, !tbaa !9
  %138 = add nsw i64 %137, 1
  %139 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %138)
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %140

140:                                              ; preds = %136, %107
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN9Fibonacci3powEx(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

declare i32 @puts(ptr noundef) #2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { 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 = { 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 = !{!12, !10, i64 8}
!12 = !{!"_ZTS9Fibonacci", !10, i64 0, !10, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

@p = external dso_local local_unnamed_addr global i64, align 8
@A = external dso_local global %struct.Fibonacci, align 8
@L = external dso_local local_unnamed_addr global i32, align 4
@R = external dso_local local_unnamed_addr global i32, align 4
@n = external dso_local global i64, align 8
@que = external dso_local local_unnamed_addr global [2001 x i64], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %2 = load i32, ptr @R, align 4, !tbaa !5
  %3 = add nsw i32 %2, 1
  store i32 %3, ptr @R, align 4, !tbaa !5
  %4 = sext i32 %2 to i64
  %5 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %4
  store i64 0, ptr %5, align 8, !tbaa !9
  %6 = load i64, ptr @p, align 8, !tbaa !9
  %.not42 = icmp slt i64 %6, 10
  %.pre58 = load i32, ptr @L, align 4
  br i1 %.not42, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %0, %40
  %7 = phi i64 [ %37, %40 ], [ %6, %0 ]
  %8 = phi i32 [ %38, %40 ], [ %.pre58, %0 ]
  %9 = phi i32 [ %.027.lcssa, %40 ], [ %3, %0 ]
  %.02244 = phi i64 [ %43, %40 ], [ 10, %0 ]
  %.02343 = phi i64 [ %42, %40 ], [ 1, %0 ]
  %10 = icmp ult i64 %.02244, 11
  %11 = icmp ult i64 %.02244, 1001
  %12 = select i1 %11, i32 5, i32 10
  %13 = select i1 %10, i32 60, i32 %12
  %.not3340 = icmp eq i32 %8, %9
  br i1 %.not3340, label %._crit_edge, label %.lr.ph

.loopexit:                                        ; preds = %34
  %14 = load i32, ptr @L, align 4
  %15 = load i32, ptr @R, align 4, !tbaa !5
  %.not33 = icmp eq i32 %14, %15
  br i1 %.not33, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !11

.lr.ph:                                           ; preds = %.lr.ph46, %.loopexit
  %16 = phi i32 [ %14, %.loopexit ], [ %8, %.lr.ph46 ]
  %.02741 = phi i32 [ %.2, %.loopexit ], [ %9, %.lr.ph46 ]
  %17 = add nsw i32 %16, 1
  %18 = sext i32 %16 to i64
  %19 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %18
  %20 = load i64, ptr %19, align 8, !tbaa !9
  %21 = icmp eq i32 %17, 2001
  %spec.store.select36 = select i1 %21, i32 0, i32 %17
  store i32 %spec.store.select36, ptr @L, align 4
  br label %22

22:                                               ; preds = %.lr.ph, %34
  %.02439 = phi i32 [ 0, %.lr.ph ], [ %35, %34 ]
  %.02538 = phi i64 [ %20, %.lr.ph ], [ %36, %34 ]
  %.12837 = phi i32 [ %.02741, %.lr.ph ], [ %.2, %34 ]
  %23 = load i64, ptr @n, align 8, !tbaa !9
  %24 = tail call { i64, i64 } @_ZN9Fibonacci3powEx(ptr noundef nonnull align 8 dereferenceable(16) @A, i64 noundef %.02538)
  %25 = extractvalue { i64, i64 } %24, 1
  %26 = sub nsw i64 %23, %25
  %27 = srem i64 %26, %.02244
  %28 = icmp eq i64 %27, 0
  br i1 %28, label %29, label %34

29:                                               ; preds = %22
  %30 = add nsw i32 %.12837, 1
  %31 = sext i32 %.12837 to i64
  %32 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %31
  store i64 %.02538, ptr %32, align 8, !tbaa !9
  %33 = icmp eq i32 %30, 2001
  %spec.store.select = select i1 %33, i32 0, i32 %30
  br label %34

34:                                               ; preds = %22, %29
  %.2 = phi i32 [ %spec.store.select, %29 ], [ %.12837, %22 ]
  %35 = add nuw nsw i32 %.02439, 1
  %36 = add nsw i64 %.02538, %.02343
  %exitcond.not = icmp eq i32 %35, %13
  br i1 %exitcond.not, label %.loopexit, label %22, !llvm.loop !13

._crit_edge.loopexit:                             ; preds = %.loopexit
  %.pre57 = load i64, ptr @p, align 8, !tbaa !9
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.lr.ph46
  %37 = phi i64 [ %7, %.lr.ph46 ], [ %.pre57, %._crit_edge.loopexit ]
  %38 = phi i32 [ %8, %.lr.ph46 ], [ %14, %._crit_edge.loopexit ]
  %.027.lcssa = phi i32 [ %8, %.lr.ph46 ], [ %.2, %._crit_edge.loopexit ]
  store i32 %.027.lcssa, ptr @R, align 4, !tbaa !5
  %39 = sdiv i64 %37, 10
  %.not34 = icmp sgt i64 %.02244, %39
  br i1 %.not34, label %._crit_edge47, label %40

40:                                               ; preds = %._crit_edge
  %41 = zext nneg i32 %13 to i64
  %42 = mul nuw nsw i64 %.02343, %41
  %43 = mul nuw nsw i64 %.02244, 10
  %.not = icmp sgt i64 %43, %37
  br i1 %.not, label %._crit_edge47, label %.lr.ph46, !llvm.loop !14

._crit_edge47:                                    ; preds = %._crit_edge, %40, %0
  %44 = phi i32 [ %3, %0 ], [ %.027.lcssa, %40 ], [ %.027.lcssa, %._crit_edge ]
  %L.promoted = phi i32 [ %.pre58, %0 ], [ %38, %40 ], [ %38, %._crit_edge ]
  %45 = icmp eq i32 %L.promoted, %44
  br i1 %45, label %46, label %.lr.ph54.preheader

46:                                               ; preds = %._crit_edge47
  %47 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str.1)
  br label %59

.lr.ph54.preheader:                               ; preds = %._crit_edge47
  %48 = sext i32 %L.promoted to i64
  %49 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %48
  %50 = load i64, ptr %49, align 8, !tbaa !9
  br label %.lr.ph54

.lr.ph54:                                         ; preds = %.lr.ph54.preheader, %.lr.ph54
  %.052 = phi i64 [ %spec.select, %.lr.ph54 ], [ %50, %.lr.ph54.preheader ]
  %spec.store.select14951 = phi i32 [ %spec.store.select1, %.lr.ph54 ], [ %L.promoted, %.lr.ph54.preheader ]
  %51 = sext i32 %spec.store.select14951 to i64
  %52 = getelementptr inbounds [2001 x i64], ptr @que, i64 0, i64 %51
  %53 = load i64, ptr %52, align 8, !tbaa !9
  %spec.select = tail call i64 @llvm.smin.i64(i64 %.052, i64 %53)
  %54 = add nsw i32 %spec.store.select14951, 1
  %55 = icmp eq i32 %54, 2001
  %spec.store.select1 = select i1 %55, i32 0, i32 %54
  %.not35 = icmp eq i32 %spec.store.select1, %44
  br i1 %.not35, label %56, label %.lr.ph54, !llvm.loop !15

56:                                               ; preds = %.lr.ph54
  store i32 %44, ptr @L, align 4
  %57 = add nsw i64 %spec.select, 1
  %58 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %57)
  br label %59

59:                                               ; preds = %56, %46
  ret i32 0
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN9Fibonacci3powEx(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #3

attributes #0 = { 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 #1 = { 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 #2 = { 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 = { 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 = !{!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}


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