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

; 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.Node = type { i32, i32 }

@n = external dso_local global i32, align 4
@ans = external dso_local global [100001 x i64], align 16
@x = external dso_local global [100001 x %struct.Node], align 16
@y = external dso_local global [100001 x %struct.Node], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK4NodeS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #1 {
  %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 i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca %struct.Node, align 4
  %9 = alloca %struct.Node, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @n)
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %11

11:                                               ; preds = %35, %0
  %12 = load i32, ptr %2, align 4, !tbaa !5
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = icmp sle i32 %12, %13
  br i1 %14, label %15, label %38

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4, ptr noundef %5)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %17 = getelementptr inbounds %struct.Node, ptr %8, i32 0, i32 0
  %18 = load i32, ptr %4, align 4, !tbaa !5
  %19 = load i32, ptr %5, align 4, !tbaa !5
  %20 = add nsw i32 %18, %19
  store i32 %20, ptr %17, align 4, !tbaa !9
  %21 = getelementptr inbounds %struct.Node, ptr %8, i32 0, i32 1
  %22 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %22, ptr %21, align 4, !tbaa !11
  %23 = load i32, ptr %2, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %24
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %26 = getelementptr inbounds %struct.Node, ptr %9, i32 0, i32 0
  %27 = load i32, ptr %4, align 4, !tbaa !5
  %28 = load i32, ptr %5, align 4, !tbaa !5
  %29 = sub nsw i32 %27, %28
  store i32 %29, ptr %26, align 4, !tbaa !9
  %30 = getelementptr inbounds %struct.Node, ptr %9, i32 0, i32 1
  %31 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %31, ptr %30, align 4, !tbaa !11
  %32 = load i32, ptr %2, align 4, !tbaa !5
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %33
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 4 %9, i64 8, i1 false), !tbaa.struct !12
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %35

35:                                               ; preds = %15
  %36 = load i32, ptr %2, align 4, !tbaa !5
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %2, align 4, !tbaa !5
  br label %11, !llvm.loop !13

38:                                               ; preds = %11
  %39 = load i32, ptr @n, align 4, !tbaa !5
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %struct.Node, ptr @x, i64 %40
  %42 = getelementptr inbounds %struct.Node, ptr %41, i64 1
  call void @_ZSt4sortIP4NodePFbRKS0_S3_EEvT_S6_T0_(ptr noundef getelementptr inbounds (%struct.Node, ptr @x, i64 1), ptr noundef %42, ptr noundef @_Z3cmpRK4NodeS1_)
  store i64 0, ptr %7, align 8, !tbaa !15
  store i64 0, ptr %6, align 8, !tbaa !15
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %43

43:                                               ; preds = %56, %38
  %44 = load i32, ptr %2, align 4, !tbaa !5
  %45 = load i32, ptr @n, align 4, !tbaa !5
  %46 = icmp sle i32 %44, %45
  br i1 %46, label %47, label %59

47:                                               ; preds = %43
  %48 = load i32, ptr %2, align 4, !tbaa !5
  %49 = sext i32 %48 to i64
  %50 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %49
  %51 = getelementptr inbounds %struct.Node, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 8, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = load i64, ptr %6, align 8, !tbaa !15
  %55 = add nsw i64 %54, %53
  store i64 %55, ptr %6, align 8, !tbaa !15
  br label %56

56:                                               ; preds = %47
  %57 = load i32, ptr %2, align 4, !tbaa !5
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %2, align 4, !tbaa !5
  br label %43, !llvm.loop !17

59:                                               ; preds = %43
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %60

60:                                               ; preds = %107, %59
  %61 = load i32, ptr %2, align 4, !tbaa !5
  %62 = load i32, ptr @n, align 4, !tbaa !5
  %63 = icmp sle i32 %61, %62
  br i1 %63, label %64, label %110

64:                                               ; preds = %60
  %65 = load i64, ptr %6, align 8, !tbaa !15
  %66 = load i32, ptr %2, align 4, !tbaa !5
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.Node, ptr %68, i32 0, i32 0
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = sext i32 %70 to i64
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = sub nsw i32 %72, 1
  %74 = shl i32 %73, 1
  %75 = load i32, ptr @n, align 4, !tbaa !5
  %76 = sub nsw i32 %74, %75
  %77 = sext i32 %76 to i64
  %78 = mul nsw i64 %71, %77
  %79 = add nsw i64 %65, %78
  %80 = load i64, ptr %7, align 8, !tbaa !15
  %81 = sub nsw i64 %79, %80
  %82 = load i32, ptr %2, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %83
  %85 = getelementptr inbounds %struct.Node, ptr %84, i32 0, i32 1
  %86 = load i32, ptr %85, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !15
  %90 = add nsw i64 %89, %81
  store i64 %90, ptr %88, align 8, !tbaa !15
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %92
  %94 = getelementptr inbounds %struct.Node, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = load i64, ptr %6, align 8, !tbaa !15
  %98 = sub nsw i64 %97, %96
  store i64 %98, ptr %6, align 8, !tbaa !15
  %99 = load i32, ptr %2, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %100
  %102 = getelementptr inbounds %struct.Node, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = load i64, ptr %7, align 8, !tbaa !15
  %106 = add nsw i64 %105, %104
  store i64 %106, ptr %7, align 8, !tbaa !15
  br label %107

107:                                              ; preds = %64
  %108 = load i32, ptr %2, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %2, align 4, !tbaa !5
  br label %60, !llvm.loop !18

110:                                              ; preds = %60
  %111 = load i32, ptr @n, align 4, !tbaa !5
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds %struct.Node, ptr @y, i64 %112
  %114 = getelementptr inbounds %struct.Node, ptr %113, i64 1
  call void @_ZSt4sortIP4NodePFbRKS0_S3_EEvT_S6_T0_(ptr noundef getelementptr inbounds (%struct.Node, ptr @y, i64 1), ptr noundef %114, ptr noundef @_Z3cmpRK4NodeS1_)
  store i64 0, ptr %7, align 8, !tbaa !15
  store i64 0, ptr %6, align 8, !tbaa !15
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %128, %110
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = load i32, ptr @n, align 4, !tbaa !5
  %118 = icmp sle i32 %116, %117
  br i1 %118, label %119, label %131

119:                                              ; preds = %115
  %120 = load i32, ptr %2, align 4, !tbaa !5
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %121
  %123 = getelementptr inbounds %struct.Node, ptr %122, i32 0, i32 0
  %124 = load i32, ptr %123, align 8, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = load i64, ptr %6, align 8, !tbaa !15
  %127 = add nsw i64 %126, %125
  store i64 %127, ptr %6, align 8, !tbaa !15
  br label %128

128:                                              ; preds = %119
  %129 = load i32, ptr %2, align 4, !tbaa !5
  %130 = add nsw i32 %129, 1
  store i32 %130, ptr %2, align 4, !tbaa !5
  br label %115, !llvm.loop !19

131:                                              ; preds = %115
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %132

132:                                              ; preds = %179, %131
  %133 = load i32, ptr %2, align 4, !tbaa !5
  %134 = load i32, ptr @n, align 4, !tbaa !5
  %135 = icmp sle i32 %133, %134
  br i1 %135, label %136, label %182

136:                                              ; preds = %132
  %137 = load i64, ptr %6, align 8, !tbaa !15
  %138 = load i32, ptr %2, align 4, !tbaa !5
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %139
  %141 = getelementptr inbounds %struct.Node, ptr %140, i32 0, i32 0
  %142 = load i32, ptr %141, align 8, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = load i32, ptr %2, align 4, !tbaa !5
  %145 = sub nsw i32 %144, 1
  %146 = shl i32 %145, 1
  %147 = load i32, ptr @n, align 4, !tbaa !5
  %148 = sub nsw i32 %146, %147
  %149 = sext i32 %148 to i64
  %150 = mul nsw i64 %143, %149
  %151 = add nsw i64 %137, %150
  %152 = load i64, ptr %7, align 8, !tbaa !15
  %153 = sub nsw i64 %151, %152
  %154 = load i32, ptr %2, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %155
  %157 = getelementptr inbounds %struct.Node, ptr %156, i32 0, i32 1
  %158 = load i32, ptr %157, align 4, !tbaa !11
  %159 = sext i32 %158 to i64
  %160 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %159
  %161 = load i64, ptr %160, align 8, !tbaa !15
  %162 = add nsw i64 %161, %153
  store i64 %162, ptr %160, align 8, !tbaa !15
  %163 = load i32, ptr %2, align 4, !tbaa !5
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %164
  %166 = getelementptr inbounds %struct.Node, ptr %165, i32 0, i32 0
  %167 = load i32, ptr %166, align 8, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = load i64, ptr %6, align 8, !tbaa !15
  %170 = sub nsw i64 %169, %168
  store i64 %170, ptr %6, align 8, !tbaa !15
  %171 = load i32, ptr %2, align 4, !tbaa !5
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %172
  %174 = getelementptr inbounds %struct.Node, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = load i64, ptr %7, align 8, !tbaa !15
  %178 = add nsw i64 %177, %176
  store i64 %178, ptr %7, align 8, !tbaa !15
  br label %179

179:                                              ; preds = %136
  %180 = load i32, ptr %2, align 4, !tbaa !5
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %2, align 4, !tbaa !5
  br label %132, !llvm.loop !20

182:                                              ; preds = %132
  store i32 2, ptr %2, align 4, !tbaa !5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %183

183:                                              ; preds = %200, %182
  %184 = load i32, ptr %2, align 4, !tbaa !5
  %185 = load i32, ptr @n, align 4, !tbaa !5
  %186 = icmp sle i32 %184, %185
  br i1 %186, label %187, label %203

187:                                              ; preds = %183
  %188 = load i32, ptr %2, align 4, !tbaa !5
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %189
  %191 = load i64, ptr %190, align 8, !tbaa !15
  %192 = load i32, ptr %3, align 4, !tbaa !5
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %193
  %195 = load i64, ptr %194, align 8, !tbaa !15
  %196 = icmp slt i64 %191, %195
  br i1 %196, label %197, label %199

197:                                              ; preds = %187
  %198 = load i32, ptr %2, align 4, !tbaa !5
  store i32 %198, ptr %3, align 4, !tbaa !5
  br label %199

199:                                              ; preds = %197, %187
  br label %200

200:                                              ; preds = %199
  %201 = load i32, ptr %2, align 4, !tbaa !5
  %202 = add nsw i32 %201, 1
  store i32 %202, ptr %2, align 4, !tbaa !5
  br label %183, !llvm.loop !21

203:                                              ; preds = %183
  %204 = load i32, ptr %3, align 4, !tbaa !5
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %205
  %207 = load i64, ptr %206, align 8, !tbaa !15
  %208 = ashr i64 %207, 1
  %209 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %208)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #2

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

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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #6 = { 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, !6, i64 0}
!10 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4}
!11 = !{!10, !6, i64 4}
!12 = !{i64 0, i64 4, !5, i64 4, i64 4, !5}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !16, i64 0}
!16 = !{!"long long", !7, i64 0}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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.Node = type { i32, i32 }

@n = external dso_local global i32, align 4
@ans = external dso_local local_unnamed_addr global [100001 x i64], align 16
@x = external dso_local global [100001 x %struct.Node], align 16
@y = external dso_local global [100001 x %struct.Node], align 16
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [6 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z3cmpRK4NodeS1_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @n)
  %4 = load i32, ptr @n, align 4, !tbaa !5
  %.not66 = icmp slt i32 %4, 1
  br i1 %.not66, label %.._crit_edge_crit_edge, label %.lr.ph

.._crit_edge_crit_edge:                           ; preds = %0
  %.pre = sext i32 %4 to i64
  br label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %5 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = load i32, ptr %2, align 4, !tbaa !5
  %8 = add nsw i32 %7, %6
  %9 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %indvars.iv
  store i32 %8, ptr %9, align 8, !tbaa !5
  %.sroa.42.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 4
  %10 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %10, ptr %.sroa.42.0..sroa_idx, align 4, !tbaa !5
  %11 = sub nsw i32 %6, %7
  %12 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %indvars.iv
  store i32 %11, ptr %12, align 8, !tbaa !5
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 4
  store i32 %10, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %13 = load i32, ptr @n, align 4, !tbaa !5
  %14 = sext i32 %13 to i64
  %.not.not = icmp slt i64 %indvars.iv, %14
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %.._crit_edge_crit_edge
  %.pre-phi = phi i64 [ %.pre, %.._crit_edge_crit_edge ], [ %14, %.lr.ph ]
  %15 = getelementptr inbounds %struct.Node, ptr @x, i64 %.pre-phi
  %16 = getelementptr inbounds i8, ptr %15, i64 8
  call void @_ZSt4sortIP4NodePFbRKS0_S3_EEvT_S6_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @x, i64 8), ptr noundef nonnull %16, ptr noundef nonnull @_Z3cmpRK4NodeS1_)
  %17 = load i32, ptr @n, align 4, !tbaa !5
  %.not5668 = icmp slt i32 %17, 1
  br i1 %.not5668, label %._crit_edge80, label %.lr.ph72.preheader

.lr.ph72.preheader:                               ; preds = %._crit_edge
  %18 = add nuw i32 %17, 1
  %wide.trip.count = zext i32 %18 to i64
  %min.iters.check = icmp ult i32 %17, 5
  br i1 %min.iters.check, label %.lr.ph72.preheader159, label %vector.ph

.lr.ph72.preheader159:                            ; preds = %middle.block, %.lr.ph72.preheader
  %indvars.iv103.ph = phi i64 [ 1, %.lr.ph72.preheader ], [ %ind.end, %middle.block ]
  %.04669.ph = phi i64 [ 0, %.lr.ph72.preheader ], [ %30, %middle.block ]
  br label %.lr.ph72

vector.ph:                                        ; preds = %.lr.ph72.preheader
  %19 = zext nneg i32 %17 to i64
  %n.mod.vf = and i64 %19, 3
  %20 = icmp eq i64 %n.mod.vf, 0
  %21 = select i1 %20, i64 4, i64 %n.mod.vf
  %n.vec = sub nsw i64 %19, %21
  %ind.end = add nsw i64 %n.vec, 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %27, %vector.body ]
  %vec.phi133 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %28, %vector.body ]
  %offset.idx = or disjoint i64 %index, 1
  %22 = or disjoint i64 %index, 3
  %23 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %offset.idx
  %24 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %22
  %wide.vec = load <4 x i32>, ptr %23, align 8, !tbaa !11
  %wide.vec134 = load <4 x i32>, ptr %24, align 8, !tbaa !11
  %strided.vec = shufflevector <4 x i32> %wide.vec, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec135 = shufflevector <4 x i32> %wide.vec134, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %25 = sext <2 x i32> %strided.vec to <2 x i64>
  %26 = sext <2 x i32> %strided.vec135 to <2 x i64>
  %27 = add <2 x i64> %vec.phi, %25
  %28 = add <2 x i64> %vec.phi133, %26
  %index.next = add nuw i64 %index, 4
  %29 = icmp eq i64 %index.next, %n.vec
  br i1 %29, label %middle.block, label %vector.body, !llvm.loop !13

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i64> %28, %27
  %30 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx)
  br label %.lr.ph72.preheader159

.preheader63:                                     ; preds = %.lr.ph72
  br i1 %.not5668, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %.preheader63
  %31 = add nuw i32 %17, 1
  %wide.trip.count109 = zext i32 %31 to i64
  br label %36

.lr.ph72:                                         ; preds = %.lr.ph72.preheader159, %.lr.ph72
  %indvars.iv103 = phi i64 [ %indvars.iv.next104, %.lr.ph72 ], [ %indvars.iv103.ph, %.lr.ph72.preheader159 ]
  %.04669 = phi i64 [ %35, %.lr.ph72 ], [ %.04669.ph, %.lr.ph72.preheader159 ]
  %32 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %indvars.iv103
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = add nsw i64 %.04669, %34
  %indvars.iv.next104 = add nuw nsw i64 %indvars.iv103, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next104, %wide.trip.count
  br i1 %exitcond.not, label %.preheader63, label %.lr.ph72, !llvm.loop !16

36:                                               ; preds = %.lr.ph79, %36
  %indvars.iv106 = phi i64 [ 1, %.lr.ph79 ], [ %indvars.iv.next107, %36 ]
  %.14777 = phi i64 [ %35, %.lr.ph79 ], [ %52, %36 ]
  %.05076 = phi i64 [ 0, %.lr.ph79 ], [ %53, %36 ]
  %37 = getelementptr inbounds [100001 x %struct.Node], ptr @x, i64 0, i64 %indvars.iv106
  %38 = load i32, ptr %37, align 8, !tbaa !11
  %39 = sext i32 %38 to i64
  %indvars.iv106.tr = trunc i64 %indvars.iv106 to i32
  %40 = shl i32 %indvars.iv106.tr, 1
  %reass.sub = sub i32 %40, %17
  %41 = add i32 %reass.sub, -2
  %42 = sext i32 %41 to i64
  %43 = mul nsw i64 %39, %42
  %44 = getelementptr inbounds i8, ptr %37, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !17
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !18
  %49 = sub i64 %.14777, %.05076
  %50 = add i64 %49, %43
  %51 = add nsw i64 %50, %48
  store i64 %51, ptr %47, align 8, !tbaa !18
  %52 = sub nsw i64 %.14777, %39
  %53 = add nsw i64 %.05076, %39
  %indvars.iv.next107 = add nuw nsw i64 %indvars.iv106, 1
  %exitcond110.not = icmp eq i64 %indvars.iv.next107, %wide.trip.count109
  br i1 %exitcond110.not, label %._crit_edge80, label %36, !llvm.loop !20

._crit_edge80:                                    ; preds = %36, %._crit_edge, %.preheader63
  %54 = sext i32 %17 to i64
  %55 = getelementptr inbounds %struct.Node, ptr @y, i64 %54
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  call void @_ZSt4sortIP4NodePFbRKS0_S3_EEvT_S6_T0_(ptr noundef nonnull getelementptr inbounds (i8, ptr @y, i64 8), ptr noundef nonnull %56, ptr noundef nonnull @_Z3cmpRK4NodeS1_)
  %57 = load i32, ptr @n, align 4, !tbaa !5
  %.not5881 = icmp slt i32 %57, 1
  br i1 %.not5881, label %._crit_edge97, label %.lr.ph85.preheader

.lr.ph85.preheader:                               ; preds = %._crit_edge80
  %58 = add nuw i32 %57, 1
  %wide.trip.count114 = zext i32 %58 to i64
  %min.iters.check138 = icmp ult i32 %57, 5
  br i1 %min.iters.check138, label %.lr.ph85.preheader156, label %vector.ph139

.lr.ph85.preheader156:                            ; preds = %middle.block136, %.lr.ph85.preheader
  %indvars.iv111.ph = phi i64 [ 1, %.lr.ph85.preheader ], [ %ind.end142, %middle.block136 ]
  %.24882.ph = phi i64 [ 0, %.lr.ph85.preheader ], [ %70, %middle.block136 ]
  br label %.lr.ph85

vector.ph139:                                     ; preds = %.lr.ph85.preheader
  %59 = zext nneg i32 %57 to i64
  %n.mod.vf140 = and i64 %59, 3
  %60 = icmp eq i64 %n.mod.vf140, 0
  %61 = select i1 %60, i64 4, i64 %n.mod.vf140
  %n.vec141 = sub nsw i64 %59, %61
  %ind.end142 = add nsw i64 %n.vec141, 1
  br label %vector.body144

vector.body144:                                   ; preds = %vector.body144, %vector.ph139
  %index145 = phi i64 [ 0, %vector.ph139 ], [ %index.next153, %vector.body144 ]
  %vec.phi146 = phi <2 x i64> [ zeroinitializer, %vector.ph139 ], [ %67, %vector.body144 ]
  %vec.phi147 = phi <2 x i64> [ zeroinitializer, %vector.ph139 ], [ %68, %vector.body144 ]
  %offset.idx148 = or disjoint i64 %index145, 1
  %62 = or disjoint i64 %index145, 3
  %63 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %offset.idx148
  %64 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %62
  %wide.vec149 = load <4 x i32>, ptr %63, align 8, !tbaa !11
  %wide.vec150 = load <4 x i32>, ptr %64, align 8, !tbaa !11
  %strided.vec151 = shufflevector <4 x i32> %wide.vec149, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %strided.vec152 = shufflevector <4 x i32> %wide.vec150, <4 x i32> poison, <2 x i32> <i32 0, i32 2>
  %65 = sext <2 x i32> %strided.vec151 to <2 x i64>
  %66 = sext <2 x i32> %strided.vec152 to <2 x i64>
  %67 = add <2 x i64> %vec.phi146, %65
  %68 = add <2 x i64> %vec.phi147, %66
  %index.next153 = add nuw i64 %index145, 4
  %69 = icmp eq i64 %index.next153, %n.vec141
  br i1 %69, label %middle.block136, label %vector.body144, !llvm.loop !21

middle.block136:                                  ; preds = %vector.body144
  %bin.rdx154 = add <2 x i64> %68, %67
  %70 = call i64 @llvm.vector.reduce.add.v2i64(<2 x i64> %bin.rdx154)
  br label %.lr.ph85.preheader156

.preheader62:                                     ; preds = %.lr.ph85
  br i1 %.not5881, label %._crit_edge97, label %.lr.ph92

.lr.ph92:                                         ; preds = %.preheader62
  %71 = add nuw i32 %57, 1
  %wide.trip.count119 = zext i32 %71 to i64
  br label %80

.lr.ph85:                                         ; preds = %.lr.ph85.preheader156, %.lr.ph85
  %indvars.iv111 = phi i64 [ %indvars.iv.next112, %.lr.ph85 ], [ %indvars.iv111.ph, %.lr.ph85.preheader156 ]
  %.24882 = phi i64 [ %75, %.lr.ph85 ], [ %.24882.ph, %.lr.ph85.preheader156 ]
  %72 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %indvars.iv111
  %73 = load i32, ptr %72, align 8, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = add nsw i64 %.24882, %74
  %indvars.iv.next112 = add nuw nsw i64 %indvars.iv111, 1
  %exitcond115.not = icmp eq i64 %indvars.iv.next112, %wide.trip.count114
  br i1 %exitcond115.not, label %.preheader62, label %.lr.ph85, !llvm.loop !22

.preheader:                                       ; preds = %80
  %.not6093 = icmp eq i32 %57, 1
  br i1 %.not6093, label %._crit_edge97, label %.lr.ph96.preheader

.lr.ph96.preheader:                               ; preds = %.preheader
  %76 = add nuw i32 %57, 1
  %wide.trip.count124 = zext i32 %76 to i64
  %77 = add nsw i64 %wide.trip.count124, -2
  %78 = add nsw i64 %wide.trip.count124, -3
  %xtraiter = and i64 %77, 3
  %79 = icmp ult i64 %78, 3
  br i1 %79, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96.preheader.new

.lr.ph96.preheader.new:                           ; preds = %.lr.ph96.preheader
  %unroll_iter = and i64 %77, -4
  br label %.lr.ph96

80:                                               ; preds = %.lr.ph92, %80
  %indvars.iv116 = phi i64 [ 1, %.lr.ph92 ], [ %indvars.iv.next117, %80 ]
  %.34990 = phi i64 [ %75, %.lr.ph92 ], [ %96, %80 ]
  %.15189 = phi i64 [ 0, %.lr.ph92 ], [ %97, %80 ]
  %81 = getelementptr inbounds [100001 x %struct.Node], ptr @y, i64 0, i64 %indvars.iv116
  %82 = load i32, ptr %81, align 8, !tbaa !11
  %83 = sext i32 %82 to i64
  %indvars.iv116.tr = trunc i64 %indvars.iv116 to i32
  %84 = shl i32 %indvars.iv116.tr, 1
  %reass.sub99 = sub i32 %84, %57
  %85 = add i32 %reass.sub99, -2
  %86 = sext i32 %85 to i64
  %87 = mul nsw i64 %83, %86
  %88 = getelementptr inbounds i8, ptr %81, i64 4
  %89 = load i32, ptr %88, align 4, !tbaa !17
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %90
  %92 = load i64, ptr %91, align 8, !tbaa !18
  %93 = sub i64 %.34990, %.15189
  %94 = add i64 %93, %87
  %95 = add nsw i64 %94, %92
  store i64 %95, ptr %91, align 8, !tbaa !18
  %96 = sub nsw i64 %.34990, %83
  %97 = add nsw i64 %.15189, %83
  %indvars.iv.next117 = add nuw nsw i64 %indvars.iv116, 1
  %exitcond120.not = icmp eq i64 %indvars.iv.next117, %wide.trip.count119
  br i1 %exitcond120.not, label %.preheader, label %80, !llvm.loop !23

.lr.ph96:                                         ; preds = %.lr.ph96, %.lr.ph96.preheader.new
  %indvars.iv121 = phi i64 [ 2, %.lr.ph96.preheader.new ], [ %indvars.iv.next122.3, %.lr.ph96 ]
  %.04494 = phi i32 [ 1, %.lr.ph96.preheader.new ], [ %spec.select.3, %.lr.ph96 ]
  %niter = phi i64 [ 0, %.lr.ph96.preheader.new ], [ %niter.next.3, %.lr.ph96 ]
  %98 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv121
  %99 = load i64, ptr %98, align 16, !tbaa !18
  %100 = sext i32 %.04494 to i64
  %101 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %100
  %102 = load i64, ptr %101, align 8, !tbaa !18
  %103 = icmp slt i64 %99, %102
  %104 = trunc nuw nsw i64 %indvars.iv121 to i32
  %spec.select = select i1 %103, i32 %104, i32 %.04494
  %indvars.iv.next122 = or disjoint i64 %indvars.iv121, 1
  %105 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv.next122
  %106 = load i64, ptr %105, align 8, !tbaa !18
  %107 = sext i32 %spec.select to i64
  %108 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %107
  %109 = load i64, ptr %108, align 8, !tbaa !18
  %110 = icmp slt i64 %106, %109
  %111 = trunc nuw nsw i64 %indvars.iv.next122 to i32
  %spec.select.1 = select i1 %110, i32 %111, i32 %spec.select
  %indvars.iv.next122.1 = add nuw nsw i64 %indvars.iv121, 2
  %112 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv.next122.1
  %113 = load i64, ptr %112, align 16, !tbaa !18
  %114 = sext i32 %spec.select.1 to i64
  %115 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %114
  %116 = load i64, ptr %115, align 8, !tbaa !18
  %117 = icmp slt i64 %113, %116
  %118 = trunc nuw nsw i64 %indvars.iv.next122.1 to i32
  %spec.select.2 = select i1 %117, i32 %118, i32 %spec.select.1
  %indvars.iv.next122.2 = add nuw nsw i64 %indvars.iv121, 3
  %119 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv.next122.2
  %120 = load i64, ptr %119, align 8, !tbaa !18
  %121 = sext i32 %spec.select.2 to i64
  %122 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %121
  %123 = load i64, ptr %122, align 8, !tbaa !18
  %124 = icmp slt i64 %120, %123
  %125 = trunc nuw nsw i64 %indvars.iv.next122.2 to i32
  %spec.select.3 = select i1 %124, i32 %125, i32 %spec.select.2
  %indvars.iv.next122.3 = add nuw nsw i64 %indvars.iv121, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96, !llvm.loop !24

._crit_edge97.loopexit.unr-lcssa:                 ; preds = %.lr.ph96, %.lr.ph96.preheader
  %spec.select.lcssa.ph = phi i32 [ poison, %.lr.ph96.preheader ], [ %spec.select.3, %.lr.ph96 ]
  %indvars.iv121.unr = phi i64 [ 2, %.lr.ph96.preheader ], [ %indvars.iv.next122.3, %.lr.ph96 ]
  %.04494.unr = phi i32 [ 1, %.lr.ph96.preheader ], [ %spec.select.3, %.lr.ph96 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge97.loopexit, label %.lr.ph96.epil

.lr.ph96.epil:                                    ; preds = %._crit_edge97.loopexit.unr-lcssa, %.lr.ph96.epil
  %indvars.iv121.epil = phi i64 [ %indvars.iv.next122.epil, %.lr.ph96.epil ], [ %indvars.iv121.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %.04494.epil = phi i32 [ %spec.select.epil, %.lr.ph96.epil ], [ %.04494.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph96.epil ], [ 0, %._crit_edge97.loopexit.unr-lcssa ]
  %126 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %indvars.iv121.epil
  %127 = load i64, ptr %126, align 8, !tbaa !18
  %128 = sext i32 %.04494.epil to i64
  %129 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %128
  %130 = load i64, ptr %129, align 8, !tbaa !18
  %131 = icmp slt i64 %127, %130
  %132 = trunc nuw nsw i64 %indvars.iv121.epil to i32
  %spec.select.epil = select i1 %131, i32 %132, i32 %.04494.epil
  %indvars.iv.next122.epil = add nuw nsw i64 %indvars.iv121.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge97.loopexit, label %.lr.ph96.epil, !llvm.loop !25

._crit_edge97.loopexit:                           ; preds = %.lr.ph96.epil, %._crit_edge97.loopexit.unr-lcssa
  %spec.select.lcssa = phi i32 [ %spec.select.lcssa.ph, %._crit_edge97.loopexit.unr-lcssa ], [ %spec.select.epil, %.lr.ph96.epil ]
  %133 = sext i32 %spec.select.lcssa to i64
  br label %._crit_edge97

._crit_edge97:                                    ; preds = %._crit_edge80, %.preheader62, %._crit_edge97.loopexit, %.preheader
  %.044.lcssa = phi i64 [ 1, %.preheader ], [ %133, %._crit_edge97.loopexit ], [ 1, %.preheader62 ], [ 1, %._crit_edge80 ]
  %134 = getelementptr inbounds [100001 x i64], ptr @ans, i64 0, i64 %.044.lcssa
  %135 = load i64, ptr %134, align 8, !tbaa !18
  %136 = ashr i64 %135, 1
  %137 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %136)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIP4NodePFbRKS0_S3_EEvT_S6_T0_(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.add.v2i64(<2 x i64>) #5

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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 = !{!12, !6, i64 0}
!12 = !{!"_ZTS4Node", !6, i64 0, !6, i64 4}
!13 = distinct !{!13, !10, !14, !15}
!14 = !{!"llvm.loop.isvectorized", i32 1}
!15 = !{!"llvm.loop.unroll.runtime.disable"}
!16 = distinct !{!16, !10, !15, !14}
!17 = !{!12, !6, i64 4}
!18 = !{!19, !19, i64 0}
!19 = !{!"long long", !7, i64 0}
!20 = distinct !{!20, !10}
!21 = distinct !{!21, !10, !14, !15}
!22 = distinct !{!22, !10, !15, !14}
!23 = distinct !{!23, !10}
!24 = distinct !{!24, !10}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}


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