; LLVM IR from tangjz/acm-icpc :: lydsy (4233)

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

@n = external dso_local global i32, align 4
@mod = external dso_local global i32, align 4
@fib = external dso_local global [2 x i32], align 4
@f = external dso_local global [2 x [4001 x i32]], align 16
@cur = external dso_local global i32, align 4
@pre = external dso_local global i32, align 4
@ans = external dso_local global i32, align 4
@.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 [4 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %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
  store i32 0, ptr %1, align 4
  %7 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @mod)
  %8 = load i32, ptr @cur, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %9
  store i32 1, ptr %10, align 4, !tbaa !5
  %11 = load i32, ptr @cur, align 4, !tbaa !5
  %12 = sext i32 %11 to i64
  %13 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %12
  %14 = getelementptr inbounds [4001 x i32], ptr %13, i64 0, i64 0
  store i32 1, ptr %14, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %115, %0
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %18 = icmp sle i32 %16, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %118

20:                                               ; preds = %15
  %21 = load i32, ptr @pre, align 4, !tbaa !5
  %22 = xor i32 %21, 1
  store i32 %22, ptr @pre, align 4, !tbaa !5
  %23 = load i32, ptr @cur, align 4, !tbaa !5
  %24 = xor i32 %23, 1
  store i32 %24, ptr @cur, align 4, !tbaa !5
  %25 = load i32, ptr @pre, align 4, !tbaa !5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %26
  %28 = load i32, ptr %27, align 4, !tbaa !5
  %29 = load i32, ptr @cur, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %30
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = add nsw i32 %32, %28
  store i32 %33, ptr %31, align 4, !tbaa !5
  %34 = load i32, ptr @mod, align 4, !tbaa !5
  %35 = icmp sge i32 %33, %34
  br i1 %35, label %36, label %43

36:                                               ; preds = %20
  %37 = load i32, ptr @mod, align 4, !tbaa !5
  %38 = load i32, ptr @cur, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !5
  %42 = sub nsw i32 %41, %37
  store i32 %42, ptr %40, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %36, %20
  %44 = load i32, ptr @cur, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %45
  %47 = getelementptr inbounds [4001 x i32], ptr %46, i64 0, i64 0
  store i32 0, ptr %47, align 4, !tbaa !5
  %48 = load i32, ptr @cur, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %49
  %51 = getelementptr inbounds [4001 x i32], ptr %50, i64 0, i64 0
  %52 = getelementptr inbounds i32, ptr %51, i64 1
  %53 = load i32, ptr @pre, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %54
  %56 = getelementptr inbounds [4001 x i32], ptr %55, i64 0, i64 0
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = mul i64 %58, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %56, i64 %59, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #4
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %111, %43
  %61 = load i32, ptr %4, align 4, !tbaa !5
  %62 = load i32, ptr %2, align 4, !tbaa !5
  %63 = icmp slt i32 %61, %62
  br i1 %63, label %65, label %64

64:                                               ; preds = %60
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %114

65:                                               ; preds = %60
  %66 = load i32, ptr @cur, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %67
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [4001 x i32], ptr %68, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = load i32, ptr @cur, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = sext i32 %77 to i64
  %79 = load i32, ptr @pre, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %80
  %82 = load i32, ptr %4, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [4001 x i32], ptr %81, i64 0, i64 %83
  %85 = load i32, ptr %84, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = mul nsw i64 %78, %86
  %88 = sub nsw i64 %73, %87
  %89 = load i32, ptr @mod, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = srem i64 %88, %90
  %92 = trunc i64 %91 to i32
  %93 = load i32, ptr @cur, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %94
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [4001 x i32], ptr %95, i64 0, i64 %97
  store i32 %92, ptr %98, align 4, !tbaa !5
  %99 = icmp slt i32 %92, 0
  br i1 %99, label %100, label %110

100:                                              ; preds = %65
  %101 = load i32, ptr @mod, align 4, !tbaa !5
  %102 = load i32, ptr @cur, align 4, !tbaa !5
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %103
  %105 = load i32, ptr %4, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [4001 x i32], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = add nsw i32 %108, %101
  store i32 %109, ptr %107, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %100, %65
  br label %111

111:                                              ; preds = %110
  %112 = load i32, ptr %4, align 4, !tbaa !5
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %4, align 4, !tbaa !5
  br label %60, !llvm.loop !9

114:                                              ; preds = %64
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %2, align 4, !tbaa !5
  br label %15, !llvm.loop !11

118:                                              ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  br label %119

119:                                              ; preds = %150, %118
  %120 = load i32, ptr %5, align 4, !tbaa !5
  %121 = load i32, ptr @n, align 4, !tbaa !5
  %122 = icmp slt i32 %120, %121
  br i1 %122, label %124, label %123

123:                                              ; preds = %119
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  br label %153

124:                                              ; preds = %119
  %125 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %6)
  %126 = load i32, ptr @ans, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = load i32, ptr @cur, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %129
  %131 = load i32, ptr %5, align 4, !tbaa !5
  %132 = sext i32 %131 to i64
  %133 = getelementptr inbounds [4001 x i32], ptr %130, i64 0, i64 %132
  %134 = load i32, ptr %133, align 4, !tbaa !5
  %135 = sext i32 %134 to i64
  %136 = load i32, ptr %6, align 4, !tbaa !5
  %137 = sext i32 %136 to i64
  %138 = mul nsw i64 %135, %137
  %139 = sub nsw i64 %127, %138
  %140 = load i32, ptr @mod, align 4, !tbaa !5
  %141 = sext i32 %140 to i64
  %142 = srem i64 %139, %141
  %143 = trunc i64 %142 to i32
  store i32 %143, ptr @ans, align 4, !tbaa !5
  %144 = icmp slt i32 %143, 0
  br i1 %144, label %145, label %149

145:                                              ; preds = %124
  %146 = load i32, ptr @mod, align 4, !tbaa !5
  %147 = load i32, ptr @ans, align 4, !tbaa !5
  %148 = add nsw i32 %147, %146
  store i32 %148, ptr @ans, align 4, !tbaa !5
  br label %149

149:                                              ; preds = %145, %124
  br label %150

150:                                              ; preds = %149
  %151 = load i32, ptr %5, align 4, !tbaa !5
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %5, align 4, !tbaa !5
  br label %119, !llvm.loop !12

153:                                              ; preds = %123
  %154 = load i32, ptr @ans, align 4, !tbaa !5
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i32 noundef %154)
  ret i32 0
}

declare i32 @__isoc99_scanf(ptr 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: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, 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

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

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 = { "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: readwrite) }
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 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !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"

@n = external dso_local global i32, align 4
@mod = external dso_local global i32, align 4
@fib = external dso_local local_unnamed_addr global [2 x i32], align 4
@f = external dso_local local_unnamed_addr global [2 x [4001 x i32]], align 16
@cur = external dso_local local_unnamed_addr global i32, align 4
@pre = external dso_local local_unnamed_addr global i32, align 4
@ans = external dso_local local_unnamed_addr global i32, align 4
@.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 [4 x i8], align 1

; Function Attrs: mustprogress nofree norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @mod)
  %3 = load i32, ptr @cur, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %4
  store i32 1, ptr %5, align 4, !tbaa !5
  %6 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %4
  store i32 1, ptr %6, align 4, !tbaa !5
  %7 = load i32, ptr @n, align 4, !tbaa !5
  %.not21 = icmp slt i32 %7, 1
  br i1 %.not21, label %.thread, label %.lr.ph

.thread:                                          ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %.pre = load i32, ptr @ans, align 4, !tbaa !5
  br label %._crit_edge27

.lr.ph:                                           ; preds = %0
  %pre.promoted = load i32, ptr @pre, align 4, !tbaa !5
  %8 = load i32, ptr @mod, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %10 = add nuw i32 %7, 1
  %wide.trip.count33 = zext i32 %10 to i64
  br label %12

11:                                               ; preds = %30
  store i32 %15, ptr @pre, align 4, !tbaa !5
  store i32 %16, ptr @cur, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  br label %.lr.ph26

12:                                               ; preds = %.lr.ph, %30
  %indvars.iv30 = phi i64 [ 1, %.lr.ph ], [ %indvars.iv.next31, %30 ]
  %13 = phi i32 [ %pre.promoted, %.lr.ph ], [ %15, %30 ]
  %14 = phi i32 [ %3, %.lr.ph ], [ %16, %30 ]
  %15 = xor i32 %13, 1
  %16 = xor i32 %14, 1
  %17 = sext i32 %15 to i64
  %18 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = sext i32 %16 to i64
  %21 = getelementptr inbounds [2 x i32], ptr @fib, i64 0, i64 %20
  %22 = load i32, ptr %21, align 4, !tbaa !5
  %23 = add nsw i32 %22, %19
  %.not17 = icmp slt i32 %23, %8
  %24 = select i1 %.not17, i32 0, i32 %8
  %spec.select39 = sub nsw i32 %23, %24
  store i32 %spec.select39, ptr %21, align 4, !tbaa !5
  %25 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %20
  store i32 0, ptr %25, align 4, !tbaa !5
  %26 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %20, i64 1
  %27 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %17
  %28 = shl nuw nsw i64 %indvars.iv30, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(1) %26, ptr noundef nonnull align 4 dereferenceable(1) %27, i64 %28, i1 false)
  %29 = sext i32 %spec.select39 to i64
  br label %31

30:                                               ; preds = %31
  %indvars.iv.next31 = add nuw nsw i64 %indvars.iv30, 1
  %exitcond34.not = icmp eq i64 %indvars.iv.next31, %wide.trip.count33
  br i1 %exitcond34.not, label %11, label %12, !llvm.loop !9

31:                                               ; preds = %12, %31
  %indvars.iv = phi i64 [ 0, %12 ], [ %indvars.iv.next, %31 ]
  %32 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %20, i64 %indvars.iv
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %17, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = mul nsw i64 %37, %29
  %39 = sub nsw i64 %34, %38
  %40 = srem i64 %39, %9
  %41 = trunc nsw i64 %40 to i32
  %42 = icmp slt i64 %40, 0
  %43 = select i1 %42, i32 %8, i32 0
  %spec.select = add nsw i32 %43, %41
  store i32 %spec.select, ptr %32, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %indvars.iv30
  br i1 %exitcond.not, label %30, label %31, !llvm.loop !11

._crit_edge27:                                    ; preds = %.lr.ph26, %.thread
  %44 = phi i32 [ %.pre, %.thread ], [ %spec.select19, %.lr.ph26 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  %45 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i32 noundef %44)
  ret i32 0

.lr.ph26:                                         ; preds = %11, %.lr.ph26
  %indvars.iv35 = phi i64 [ %indvars.iv.next36, %.lr.ph26 ], [ 0, %11 ]
  %46 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1)
  %47 = load i32, ptr @ans, align 4, !tbaa !5
  %48 = sext i32 %47 to i64
  %49 = load i32, ptr @cur, align 4, !tbaa !5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds [2 x [4001 x i32]], ptr @f, i64 0, i64 %50, i64 %indvars.iv35
  %52 = load i32, ptr %51, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = load i32, ptr %1, align 4, !tbaa !5
  %55 = sext i32 %54 to i64
  %56 = mul nsw i64 %55, %53
  %57 = sub nsw i64 %48, %56
  %58 = load i32, ptr @mod, align 4, !tbaa !5
  %59 = sext i32 %58 to i64
  %60 = srem i64 %57, %59
  %61 = trunc nsw i64 %60 to i32
  %62 = icmp slt i64 %60, 0
  %63 = select i1 %62, i32 %58, i32 0
  %spec.select19 = add nsw i32 %63, %61
  store i32 %spec.select19, ptr @ans, align 4, !tbaa !5
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %64 = load i32, ptr @n, align 4, !tbaa !5
  %65 = sext i32 %64 to i64
  %66 = icmp slt i64 %indvars.iv.next36, %65
  br i1 %66, label %.lr.ph26, label %._crit_edge27, !llvm.loop !12
}

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

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

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

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


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