; LLVM IR from sunkafei/xcpc-algorithm-templates :: 算法/字符串算法/LCT维护隐式后缀树.ll (Z6extendii)

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

@par = external dso_local global [210000 x i32], align 16
@len = external dso_local global [210000 x i32], align 16
@go = external dso_local global [210000 x [26 x i32]], align 16
@fa = external dso_local global [210000 x i32], align 16
@pos = external dso_local global [210000 x i32], align 16
@root = external dso_local global i32, align 4
@last = external dso_local global i32, align 4

; 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 uwtable
declare dso_local void @_Z5splayi(i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z6accessii(i32 noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3cuti(i32 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8newstatei(i32 noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6extendii(i32 noundef %0, i32 noundef %1) #1 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  store i32 %0, ptr %3, align 4, !tbaa !5
  store i32 %1, ptr %4, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  %9 = load i32, ptr @last, align 4, !tbaa !5
  store i32 %9, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %10 = load i32, ptr %5, align 4, !tbaa !5
  %11 = sext i32 %10 to i64
  %12 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %11
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %14 = add nsw i32 %13, 1
  %15 = call noundef i32 @_Z8newstatei(i32 noundef %14)
  store i32 %15, ptr %6, align 4, !tbaa !5
  br label %16

16:                                               ; preds = %31, %2
  %17 = load i32, ptr %5, align 4, !tbaa !5
  %18 = icmp ne i32 %17, 0
  br i1 %18, label %19, label %29

19:                                               ; preds = %16
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %21
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [26 x i32], ptr %22, i64 0, i64 %24
  %26 = load i32, ptr %25, align 4, !tbaa !5
  %27 = icmp ne i32 %26, 0
  %28 = xor i1 %27, true
  br label %29

29:                                               ; preds = %19, %16
  %30 = phi i1 [ false, %16 ], [ %28, %19 ]
  br i1 %30, label %31, label %43

31:                                               ; preds = %29
  %32 = load i32, ptr %6, align 4, !tbaa !5
  %33 = load i32, ptr %5, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %34
  %36 = load i32, ptr %3, align 4, !tbaa !5
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [26 x i32], ptr %35, i64 0, i64 %37
  store i32 %32, ptr %38, align 4, !tbaa !5
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !5
  store i32 %42, ptr %5, align 4, !tbaa !5
  br label %16, !llvm.loop !9

43:                                               ; preds = %29
  %44 = load i32, ptr %5, align 4, !tbaa !5
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %55, label %46

46:                                               ; preds = %43
  %47 = load i32, ptr @root, align 4, !tbaa !5
  %48 = load i32, ptr %6, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %49
  store i32 %47, ptr %50, align 4, !tbaa !5
  %51 = load i32, ptr @root, align 4, !tbaa !5
  %52 = load i32, ptr %6, align 4, !tbaa !5
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %53
  store i32 %51, ptr %54, align 4, !tbaa !5
  br label %164

55:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %56 = load i32, ptr %5, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %57
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [26 x i32], ptr %58, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  store i32 %62, ptr %7, align 4, !tbaa !5
  %63 = load i32, ptr %5, align 4, !tbaa !5
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %64
  %66 = load i32, ptr %65, align 4, !tbaa !5
  %67 = add nsw i32 %66, 1
  %68 = load i32, ptr %7, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = icmp eq i32 %67, %71
  br i1 %72, label %73, label %82

73:                                               ; preds = %55
  %74 = load i32, ptr %7, align 4, !tbaa !5
  %75 = load i32, ptr %6, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %76
  store i32 %74, ptr %77, align 4, !tbaa !5
  %78 = load i32, ptr %7, align 4, !tbaa !5
  %79 = load i32, ptr %6, align 4, !tbaa !5
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %80
  store i32 %78, ptr %81, align 4, !tbaa !5
  br label %163

82:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %83 = load i32, ptr %5, align 4, !tbaa !5
  %84 = sext i32 %83 to i64
  %85 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %84
  %86 = load i32, ptr %85, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  %88 = call noundef i32 @_Z8newstatei(i32 noundef %87)
  store i32 %88, ptr %8, align 4, !tbaa !5
  %89 = load i32, ptr %8, align 4, !tbaa !5
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %90
  %92 = getelementptr inbounds [26 x i32], ptr %91, i64 0, i64 0
  %93 = load i32, ptr %7, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %94
  %96 = getelementptr inbounds [26 x i32], ptr %95, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %92, ptr align 8 %96, i64 104, i1 false)
  %97 = load i32, ptr %7, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %98
  %100 = load i32, ptr %99, align 4, !tbaa !5
  %101 = load i32, ptr %8, align 4, !tbaa !5
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %102
  store i32 %100, ptr %103, align 4, !tbaa !5
  %104 = load i32, ptr %7, align 4, !tbaa !5
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %105
  %107 = load i32, ptr %106, align 4, !tbaa !5
  %108 = load i32, ptr %8, align 4, !tbaa !5
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %109
  store i32 %107, ptr %110, align 4, !tbaa !5
  %111 = load i32, ptr %7, align 4, !tbaa !5
  call void @_Z3cuti(i32 noundef %111)
  %112 = load i32, ptr %7, align 4, !tbaa !5
  %113 = sext i32 %112 to i64
  %114 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %113
  %115 = load i32, ptr %114, align 4, !tbaa !5
  %116 = load i32, ptr %8, align 4, !tbaa !5
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %117
  store i32 %115, ptr %118, align 4, !tbaa !5
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %120 = load i32, ptr %7, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %121
  store i32 %119, ptr %122, align 4, !tbaa !5
  %123 = load i32, ptr %8, align 4, !tbaa !5
  %124 = load i32, ptr %7, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %125
  store i32 %123, ptr %126, align 4, !tbaa !5
  %127 = load i32, ptr %8, align 4, !tbaa !5
  %128 = load i32, ptr %6, align 4, !tbaa !5
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %129
  store i32 %127, ptr %130, align 4, !tbaa !5
  %131 = load i32, ptr %8, align 4, !tbaa !5
  %132 = load i32, ptr %6, align 4, !tbaa !5
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %133
  store i32 %131, ptr %134, align 4, !tbaa !5
  br label %135

135:                                              ; preds = %150, %82
  %136 = load i32, ptr %5, align 4, !tbaa !5
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %148

138:                                              ; preds = %135
  %139 = load i32, ptr %5, align 4, !tbaa !5
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %140
  %142 = load i32, ptr %3, align 4, !tbaa !5
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds [26 x i32], ptr %141, i64 0, i64 %143
  %145 = load i32, ptr %144, align 4, !tbaa !5
  %146 = load i32, ptr %7, align 4, !tbaa !5
  %147 = icmp eq i32 %145, %146
  br label %148

148:                                              ; preds = %138, %135
  %149 = phi i1 [ false, %135 ], [ %147, %138 ]
  br i1 %149, label %150, label %162

150:                                              ; preds = %148
  %151 = load i32, ptr %8, align 4, !tbaa !5
  %152 = load i32, ptr %5, align 4, !tbaa !5
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %153
  %155 = load i32, ptr %3, align 4, !tbaa !5
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [26 x i32], ptr %154, i64 0, i64 %156
  store i32 %151, ptr %157, align 4, !tbaa !5
  %158 = load i32, ptr %5, align 4, !tbaa !5
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %159
  %161 = load i32, ptr %160, align 4, !tbaa !5
  store i32 %161, ptr %5, align 4, !tbaa !5
  br label %135, !llvm.loop !11

162:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  br label %163

163:                                              ; preds = %162, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %164

164:                                              ; preds = %163, %46
  %165 = load i32, ptr %6, align 4, !tbaa !5
  store i32 %165, ptr @last, align 4, !tbaa !5
  %166 = load i32, ptr @last, align 4, !tbaa !5
  %167 = load i32, ptr %4, align 4, !tbaa !5
  call void @_Z6accessii(i32 noundef %166, i32 noundef %167)
  %168 = load i32, ptr @last, align 4, !tbaa !5
  call void @_Z5splayi(i32 noundef %168)
  %169 = load i32, ptr %4, align 4, !tbaa !5
  %170 = load i32, ptr @last, align 4, !tbaa !5
  %171 = sext i32 %170 to i64
  %172 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %171
  store i32 %169, ptr %172, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  ret void
}

; 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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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}


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

@par = external dso_local local_unnamed_addr global [210000 x i32], align 16
@len = external dso_local local_unnamed_addr global [210000 x i32], align 16
@go = external dso_local local_unnamed_addr global [210000 x [26 x i32]], align 16
@fa = external dso_local local_unnamed_addr global [210000 x i32], align 16
@pos = external dso_local local_unnamed_addr global [210000 x i32], align 16
@root = external dso_local local_unnamed_addr global i32, align 4
@last = external dso_local local_unnamed_addr global i32, align 4

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z5splayi(i32 noundef) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z3cuti(i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z8newstatei(i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z6extendii(i32 noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = load i32, ptr @last, align 4, !tbaa !5
  %4 = sext i32 %3 to i64
  %5 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  %8 = tail call noundef i32 @_Z8newstatei(i32 noundef %7)
  %.not57 = icmp eq i32 %3, 0
  br i1 %.not57, label %.critedge53, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %9 = sext i32 %0 to i64
  br label %10

10:                                               ; preds = %.lr.ph, %14
  %.058 = phi i32 [ %3, %.lr.ph ], [ %16, %14 ]
  %11 = sext i32 %.058 to i64
  %12 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %11, i64 %9
  %13 = load i32, ptr %12, align 4, !tbaa !5
  %.not51 = icmp eq i32 %13, 0
  br i1 %.not51, label %14, label %.critedge

14:                                               ; preds = %10
  store i32 %8, ptr %12, align 4, !tbaa !5
  %15 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %11
  %16 = load i32, ptr %15, align 4, !tbaa !5
  %.not = icmp eq i32 %16, 0
  br i1 %.not, label %.critedge53, label %10, !llvm.loop !9

.critedge53:                                      ; preds = %14, %2
  %17 = load i32, ptr @root, align 4, !tbaa !5
  br label %.critedge2.sink.split

.critedge:                                        ; preds = %10
  %18 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %11
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  %21 = sext i32 %13 to i64
  %22 = getelementptr inbounds [210000 x i32], ptr @len, i64 0, i64 %21
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = icmp eq i32 %20, %23
  br i1 %24, label %.critedge2.sink.split, label %25

25:                                               ; preds = %.critedge
  %26 = tail call noundef i32 @_Z8newstatei(i32 noundef %20)
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %27
  %29 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %21
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(104) %28, ptr noundef nonnull align 8 dereferenceable(104) %29, i64 104, i1 false)
  %30 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %21
  %31 = load i32, ptr %30, align 4, !tbaa !5
  %32 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %27
  store i32 %31, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %27
  store i32 %31, ptr %33, align 4, !tbaa !5
  tail call void @_Z3cuti(i32 noundef %13)
  %34 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %21
  %35 = load i32, ptr %34, align 4, !tbaa !5
  %36 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %27
  store i32 %35, ptr %36, align 4, !tbaa !5
  %37 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %21
  store i32 %26, ptr %37, align 4, !tbaa !5
  store i32 %26, ptr %30, align 4, !tbaa !5
  %38 = sext i32 %8 to i64
  %39 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %38
  store i32 %26, ptr %39, align 4, !tbaa !5
  %40 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %38
  store i32 %26, ptr %40, align 4, !tbaa !5
  br label %41

41:                                               ; preds = %25, %46
  %.159 = phi i32 [ %.058, %25 ], [ %48, %46 ]
  %42 = sext i32 %.159 to i64
  %43 = getelementptr inbounds [210000 x [26 x i32]], ptr @go, i64 0, i64 %42, i64 %9
  %44 = load i32, ptr %43, align 4, !tbaa !5
  %45 = icmp eq i32 %44, %13
  br i1 %45, label %46, label %.critedge2

46:                                               ; preds = %41
  store i32 %26, ptr %43, align 4, !tbaa !5
  %47 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %42
  %48 = load i32, ptr %47, align 4, !tbaa !5
  %.not52 = icmp eq i32 %48, 0
  br i1 %.not52, label %.critedge2, label %41, !llvm.loop !11

.critedge2.sink.split:                            ; preds = %.critedge, %.critedge53
  %.lcssa.sink69 = phi i32 [ %17, %.critedge53 ], [ %13, %.critedge ]
  %49 = sext i32 %8 to i64
  %50 = getelementptr inbounds [210000 x i32], ptr @par, i64 0, i64 %49
  store i32 %.lcssa.sink69, ptr %50, align 4, !tbaa !5
  %51 = getelementptr inbounds [210000 x i32], ptr @fa, i64 0, i64 %49
  store i32 %.lcssa.sink69, ptr %51, align 4, !tbaa !5
  br label %.critedge2

.critedge2:                                       ; preds = %46, %41, %.critedge2.sink.split
  store i32 %8, ptr @last, align 4, !tbaa !5
  tail call void @_Z6accessii(i32 noundef %8, i32 noundef %1)
  %52 = load i32, ptr @last, align 4, !tbaa !5
  tail call void @_Z5splayi(i32 noundef %52)
  %53 = load i32, ptr @last, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds [210000 x i32], ptr @pos, i64 0, i64 %54
  store i32 %1, ptr %55, align 4, !tbaa !5
  ret void
}

; 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) #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 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }

!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}


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