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

; 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
@m = external dso_local global i32, align 4
@len = external dso_local global i32, align 4
@inv_len = external dso_local global i32, align 4
@tot = external dso_local global i32, align 4
@prime = external dso_local global [50001 x i32], align 16
@vis = external dso_local global [50001 x i32], align 16
@x = external dso_local global [65536 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 2, ptr %2, align 4, !tbaa !5
  br label %7

7:                                                ; preds = %62, %0
  %8 = load i32, ptr %2, align 4, !tbaa !5
  %9 = icmp slt i32 %8, 50001
  br i1 %9, label %11, label %10

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

11:                                               ; preds = %7
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds [50001 x i32], ptr @vis, i64 0, i64 %13
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %23, label %17

17:                                               ; preds = %11
  %18 = load i32, ptr %2, align 4, !tbaa !5
  %19 = load i32, ptr @tot, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr @tot, align 4, !tbaa !5
  %21 = sext i32 %19 to i64
  %22 = getelementptr inbounds [50001 x i32], ptr @prime, i64 0, i64 %21
  store i32 %18, ptr %22, align 4, !tbaa !5
  br label %23

23:                                               ; preds = %17, %11
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  br label %24

24:                                               ; preds = %52, %23
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = load i32, ptr @tot, align 4, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %36

28:                                               ; preds = %24
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = load i32, ptr %4, align 4, !tbaa !5
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [50001 x i32], ptr @prime, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = mul nsw i32 %29, %33
  store i32 %34, ptr %5, align 4, !tbaa !5
  %35 = icmp slt i32 %34, 50001
  br label %36

36:                                               ; preds = %28, %24
  %37 = phi i1 [ false, %24 ], [ %35, %28 ]
  br i1 %37, label %39, label %38

38:                                               ; preds = %36
  store i32 5, ptr %3, align 4
  br label %55

39:                                               ; preds = %36
  %40 = load i32, ptr %5, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [50001 x i32], ptr @vis, i64 0, i64 %41
  store i32 1, ptr %42, align 4, !tbaa !5
  %43 = load i32, ptr %2, align 4, !tbaa !5
  %44 = load i32, ptr %4, align 4, !tbaa !5
  %45 = sext i32 %44 to i64
  %46 = getelementptr inbounds [50001 x i32], ptr @prime, i64 0, i64 %45
  %47 = load i32, ptr %46, align 4, !tbaa !5
  %48 = srem i32 %43, %47
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %51

50:                                               ; preds = %39
  store i32 5, ptr %3, align 4
  br label %55

51:                                               ; preds = %39
  br label %52

52:                                               ; preds = %51
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %4, align 4, !tbaa !5
  br label %24, !llvm.loop !9

55:                                               ; preds = %50, %38
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  br label %56

56:                                               ; preds = %55
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [50001 x i32], ptr @vis, i64 0, i64 %58
  %60 = load i32, ptr %59, align 4, !tbaa !5
  %61 = xor i32 %60, 1
  store i32 %61, ptr %59, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %56
  %63 = load i32, ptr %2, align 4, !tbaa !5
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %2, align 4, !tbaa !5
  br label %7, !llvm.loop !11

65:                                               ; preds = %10
  br label %66

66:                                               ; preds = %117, %65
  %67 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n, ptr noundef @m)
  %68 = icmp eq i32 %67, 2
  br i1 %68, label %69, label %121

69:                                               ; preds = %66
  store i32 0, ptr @len, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %76, %69
  %71 = load i32, ptr @len, align 4, !tbaa !5
  %72 = shl i32 1, %71
  %73 = load i32, ptr @m, align 4, !tbaa !5
  %74 = icmp sle i32 %72, %73
  br i1 %74, label %75, label %79

75:                                               ; preds = %70
  br label %76

76:                                               ; preds = %75
  %77 = load i32, ptr @len, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr @len, align 4, !tbaa !5
  br label %70, !llvm.loop !12

79:                                               ; preds = %70
  %80 = load i32, ptr @len, align 4, !tbaa !5
  %81 = call noundef i32 @_Z7mod_powii(i32 noundef 500000004, i32 noundef %80)
  store i32 %81, ptr @inv_len, align 4, !tbaa !5
  %82 = load i32, ptr @len, align 4, !tbaa !5
  %83 = shl i32 1, %82
  store i32 %83, ptr @len, align 4, !tbaa !5
  %84 = load i32, ptr @m, align 4, !tbaa !5
  %85 = add nsw i32 %84, 1
  %86 = sext i32 %85 to i64
  %87 = mul i64 %86, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 @x, ptr align 16 @vis, i64 %87, i1 false)
  %88 = load i32, ptr @m, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds i32, ptr @x, i64 %89
  %91 = getelementptr inbounds i32, ptr %90, i64 1
  %92 = load i32, ptr @len, align 4, !tbaa !5
  %93 = load i32, ptr @m, align 4, !tbaa !5
  %94 = sub nsw i32 %92, %93
  %95 = sub nsw i32 %94, 1
  %96 = sext i32 %95 to i64
  %97 = mul i64 %96, 4
  call void @llvm.memset.p0.i64(ptr align 4 %91, i8 0, i64 %97, i1 false)
  %98 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FWTPiii(ptr noundef @x, i32 noundef %98, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %99

99:                                               ; preds = %114, %79
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = load i32, ptr @len, align 4, !tbaa !5
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %104, label %103

103:                                              ; preds = %99
  store i32 13, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %117

104:                                              ; preds = %99
  %105 = load i32, ptr %6, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [65536 x i32], ptr @x, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr @n, align 4, !tbaa !5
  %110 = call noundef i32 @_Z7mod_powii(i32 noundef %108, i32 noundef %109)
  %111 = load i32, ptr %6, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds [65536 x i32], ptr @x, i64 0, i64 %112
  store i32 %110, ptr %113, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %104
  %115 = load i32, ptr %6, align 4, !tbaa !5
  %116 = add nsw i32 %115, 1
  store i32 %116, ptr %6, align 4, !tbaa !5
  br label %99, !llvm.loop !13

117:                                              ; preds = %103
  %118 = load i32, ptr @len, align 4, !tbaa !5
  call void @_Z3FWTPiii(ptr noundef @x, i32 noundef %118, i32 noundef 1)
  %119 = load i32, ptr @x, align 16, !tbaa !5
  %120 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %119)
  br label %66, !llvm.loop !14

121:                                              ; preds = %66
  ret i32 0
}

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z3FWTPiii(ptr noundef, i32 noundef, i32 noundef) #6

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { "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 nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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 #7 = { 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}
!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"

@n = external dso_local global i32, align 4
@m = external dso_local global i32, align 4
@len = external dso_local local_unnamed_addr global i32, align 4
@inv_len = external dso_local local_unnamed_addr global i32, align 4
@tot = external dso_local local_unnamed_addr global i32, align 4
@prime = external dso_local local_unnamed_addr global [50001 x i32], align 16
@vis = external dso_local local_unnamed_addr global [50001 x i32], align 16
@x = external dso_local global [65536 x i32], align 16
@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %tot.promoted = load i32, ptr @tot, align 4, !tbaa !5
  br label %3

.preheader21:                                     ; preds = %.critedge
  %1 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %2 = icmp eq i32 %1, 2
  br i1 %2, label %.preheader, label %._crit_edge29

3:                                                ; preds = %0, %.critedge
  %indvars.iv32 = phi i64 [ 2, %0 ], [ %indvars.iv.next33, %.critedge ]
  %4 = phi i32 [ %tot.promoted, %0 ], [ %13, %.critedge ]
  %5 = getelementptr inbounds [50001 x i32], ptr @vis, i64 0, i64 %indvars.iv32
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not20 = icmp eq i32 %6, 0
  br i1 %.not20, label %7, label %12

7:                                                ; preds = %3
  %8 = add nsw i32 %4, 1
  store i32 %8, ptr @tot, align 4, !tbaa !5
  %9 = sext i32 %4 to i64
  %10 = getelementptr inbounds [50001 x i32], ptr @prime, i64 0, i64 %9
  %11 = trunc nuw nsw i64 %indvars.iv32 to i32
  store i32 %11, ptr %10, align 4, !tbaa !5
  br label %12

12:                                               ; preds = %7, %3
  %13 = phi i32 [ %8, %7 ], [ %4, %3 ]
  %14 = icmp sgt i32 %13, 0
  br i1 %14, label %.lr.ph.preheader, label %.critedge

.lr.ph.preheader:                                 ; preds = %12
  %15 = zext nneg i32 %13 to i64
  %16 = trunc nuw nsw i64 %indvars.iv32 to i32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %21
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %21 ]
  %17 = getelementptr inbounds [50001 x i32], ptr @prime, i64 0, i64 %indvars.iv
  %18 = load i32, ptr %17, align 4, !tbaa !5
  %19 = mul nsw i32 %18, %16
  %20 = icmp slt i32 %19, 50001
  br i1 %20, label %21, label %.critedge.loopexit

21:                                               ; preds = %.lr.ph
  %22 = sext i32 %19 to i64
  %23 = getelementptr inbounds [50001 x i32], ptr @vis, i64 0, i64 %22
  store i32 1, ptr %23, align 4, !tbaa !5
  %24 = srem i32 %16, %18
  %25 = icmp ne i32 %24, 0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = icmp ult i64 %indvars.iv.next, %15
  %or.cond = select i1 %25, i1 %26, i1 false
  br i1 %or.cond, label %.lr.ph, label %.critedge.loopexit, !llvm.loop !9

.critedge.loopexit:                               ; preds = %21, %.lr.ph
  %.pre = load i32, ptr %5, align 4, !tbaa !5
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %12
  %27 = phi i32 [ %.pre, %.critedge.loopexit ], [ %6, %12 ]
  %28 = xor i32 %27, 1
  store i32 %28, ptr %5, align 4, !tbaa !5
  %indvars.iv.next33 = add nuw nsw i64 %indvars.iv32, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next33, 50001
  br i1 %exitcond.not, label %.preheader21, label %3, !llvm.loop !11

.preheader:                                       ; preds = %.preheader21, %._crit_edge
  %29 = load i32, ptr @m, align 4, !tbaa !5
  br label %30

30:                                               ; preds = %30, %.preheader
  %storemerge = phi i32 [ %32, %30 ], [ 0, %.preheader ]
  %31 = shl nuw i32 1, %storemerge
  %.not = icmp sgt i32 %31, %29
  %32 = add nuw nsw i32 %storemerge, 1
  br i1 %.not, label %33, label %30, !llvm.loop !12

33:                                               ; preds = %30
  store i32 %storemerge, ptr @len, align 4, !tbaa !5
  %34 = tail call noundef i32 @_Z7mod_powii(i32 noundef 500000004, i32 noundef %storemerge)
  store i32 %34, ptr @inv_len, align 4, !tbaa !5
  %35 = load i32, ptr @len, align 4, !tbaa !5
  %36 = shl nuw i32 1, %35
  store i32 %36, ptr @len, align 4, !tbaa !5
  %37 = load i32, ptr @m, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  %39 = sext i32 %38 to i64
  %40 = shl nsw i64 %39, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 16 @x, ptr nonnull align 16 @vis, i64 %40, i1 false)
  %41 = sext i32 %37 to i64
  %gep = getelementptr i32, ptr getelementptr inbounds (i8, ptr @x, i64 4), i64 %41
  %42 = xor i32 %37, -1
  %43 = add i32 %36, %42
  %44 = sext i32 %43 to i64
  %45 = shl nsw i64 %44, 2
  tail call void @llvm.memset.p0.i64(ptr nonnull align 4 %gep, i8 0, i64 %45, i1 false)
  tail call void @_Z3FWTPiii(ptr noundef nonnull @x, i32 noundef %36, i32 noundef 0)
  %46 = load i32, ptr @len, align 4, !tbaa !5
  %47 = icmp sgt i32 %46, 0
  br i1 %47, label %.lr.ph28, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph28, %33
  %.lcssa = phi i32 [ %46, %33 ], [ %56, %.lr.ph28 ]
  tail call void @_Z3FWTPiii(ptr noundef nonnull @x, i32 noundef %.lcssa, i32 noundef 1)
  %48 = load i32, ptr @x, align 16, !tbaa !5
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %48)
  %50 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n, ptr noundef nonnull @m)
  %51 = icmp eq i32 %50, 2
  br i1 %51, label %.preheader, label %._crit_edge29, !llvm.loop !13

.lr.ph28:                                         ; preds = %33, %.lr.ph28
  %indvars.iv35 = phi i64 [ %indvars.iv.next36, %.lr.ph28 ], [ 0, %33 ]
  %52 = getelementptr inbounds [65536 x i32], ptr @x, i64 0, i64 %indvars.iv35
  %53 = load i32, ptr %52, align 4, !tbaa !5
  %54 = load i32, ptr @n, align 4, !tbaa !5
  %55 = tail call noundef i32 @_Z7mod_powii(i32 noundef %53, i32 noundef %54)
  store i32 %55, ptr %52, align 4, !tbaa !5
  %indvars.iv.next36 = add nuw nsw i64 %indvars.iv35, 1
  %56 = load i32, ptr @len, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = icmp slt i64 %indvars.iv.next36, %57
  br i1 %58, label %.lr.ph28, label %._crit_edge, !llvm.loop !14

._crit_edge29:                                    ; preds = %._crit_edge, %.preheader21
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z3FWTPiii(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #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 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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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" }

!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}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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