; LLVM IR from tangjz/acm-icpc :: hdu (6275)

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

@t = external dso_local global i32, align 4
@mx = external dso_local global i32, align 4
@n = external dso_local global i64, align 8
@lim = external dso_local global i64, align 8
@ans = external dso_local global i64, align 8
@.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 i64 @_Z5solvexxx(i64 noundef, i64 noundef, i64 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 x86_fp80, align 16
  %3 = alloca x86_fp80, align 16
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %10 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef @t)
  br label %11

11:                                               ; preds = %94, %0
  %12 = load i32, ptr @t, align 4, !tbaa !5
  %13 = add nsw i32 %12, -1
  store i32 %13, ptr @t, align 4, !tbaa !5
  %14 = icmp ne i32 %12, 0
  br i1 %14, label %15, label %97

15:                                               ; preds = %11
  %16 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef @n)
  store i32 1, ptr @mx, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %24, %15
  %18 = load i32, ptr @mx, align 4, !tbaa !5
  %19 = zext i32 %18 to i64
  %20 = shl i64 1, %19
  %21 = load i64, ptr @n, align 8, !tbaa !9
  %22 = icmp sle i64 %20, %21
  br i1 %22, label %23, label %27

23:                                               ; preds = %17
  br label %24

24:                                               ; preds = %23
  %25 = load i32, ptr @mx, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr @mx, align 4, !tbaa !5
  br label %17, !llvm.loop !11

27:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  %28 = load i64, ptr @n, align 8, !tbaa !9
  %29 = sitofp i64 %28 to x86_fp80
  %30 = call x86_fp80 @sqrtl(x86_fp80 noundef %29) #6
  %31 = load i32, ptr @mx, align 4, !tbaa !5
  %32 = sitofp i32 %31 to x86_fp80
  %33 = fdiv x86_fp80 %30, %32
  store x86_fp80 %33, ptr %2, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !13
  %34 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) %3)
  %35 = load x86_fp80, ptr %34, align 16, !tbaa !13
  %36 = fptosi x86_fp80 %35 to i64
  store i64 %36, ptr @lim, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  store i64 0, ptr @ans, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  br label %37

37:                                               ; preds = %92, %27
  %38 = load i64, ptr %4, align 8, !tbaa !9
  %39 = load i64, ptr @n, align 8, !tbaa !9
  %40 = icmp slt i64 %38, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %37
  store i32 7, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %94

42:                                               ; preds = %37
  %43 = load i64, ptr @n, align 8, !tbaa !9
  %44 = load i64, ptr %4, align 8, !tbaa !9
  %45 = add nsw i64 %44, 1
  %46 = sdiv i64 %43, %45
  store i64 %46, ptr %6, align 8, !tbaa !9
  %47 = load i64, ptr @n, align 8, !tbaa !9
  %48 = load i64, ptr %6, align 8, !tbaa !9
  %49 = sdiv i64 %47, %48
  store i64 %49, ptr %5, align 8, !tbaa !9
  %50 = load i64, ptr %6, align 8, !tbaa !9
  %51 = load i64, ptr @lim, align 8, !tbaa !9
  %52 = icmp sle i64 %50, %51
  br i1 %52, label %53, label %66

53:                                               ; preds = %42
  %54 = load i64, ptr @n, align 8, !tbaa !9
  %55 = load i64, ptr %5, align 8, !tbaa !9
  %56 = load i64, ptr %6, align 8, !tbaa !9
  %57 = mul nsw i64 %55, %56
  %58 = sub nsw i64 %54, %57
  %59 = load i64, ptr %6, align 8, !tbaa !9
  %60 = load i64, ptr %5, align 8, !tbaa !9
  %61 = load i64, ptr %4, align 8, !tbaa !9
  %62 = sub nsw i64 %60, %61
  %63 = call noundef i64 @_Z5solvexxx(i64 noundef %58, i64 noundef %59, i64 noundef %62)
  %64 = load i64, ptr @ans, align 8, !tbaa !9
  %65 = xor i64 %64, %63
  store i64 %65, ptr @ans, align 8, !tbaa !9
  br label %91

66:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %67 = load i64, ptr @n, align 8, !tbaa !9
  %68 = load i64, ptr %5, align 8, !tbaa !9
  %69 = load i64, ptr %6, align 8, !tbaa !9
  %70 = mul nsw i64 %68, %69
  %71 = sub nsw i64 %67, %70
  store i64 %71, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %72 = load i64, ptr @n, align 8, !tbaa !9
  %73 = load i64, ptr %4, align 8, !tbaa !9
  %74 = load i64, ptr %6, align 8, !tbaa !9
  %75 = mul nsw i64 %73, %74
  %76 = sub nsw i64 %72, %75
  store i64 %76, ptr %9, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %86, %66
  %78 = load i64, ptr %8, align 8, !tbaa !9
  %79 = load i64, ptr %9, align 8, !tbaa !9
  %80 = icmp slt i64 %78, %79
  br i1 %80, label %82, label %81

81:                                               ; preds = %77
  store i32 10, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %90

82:                                               ; preds = %77
  %83 = load i64, ptr %8, align 8, !tbaa !9
  %84 = load i64, ptr @ans, align 8, !tbaa !9
  %85 = xor i64 %84, %83
  store i64 %85, ptr @ans, align 8, !tbaa !9
  br label %86

86:                                               ; preds = %82
  %87 = load i64, ptr %6, align 8, !tbaa !9
  %88 = load i64, ptr %8, align 8, !tbaa !9
  %89 = add nsw i64 %88, %87
  store i64 %89, ptr %8, align 8, !tbaa !9
  br label %77, !llvm.loop !15

90:                                               ; preds = %81
  br label %91

91:                                               ; preds = %90, %53
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr %5, align 8, !tbaa !9
  store i64 %93, ptr %4, align 8, !tbaa !9
  br label %37, !llvm.loop !16

94:                                               ; preds = %41
  %95 = load i64, ptr @ans, align 8, !tbaa !9
  %96 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, i64 noundef %95)
  br label %11, !llvm.loop !17

97:                                               ; preds = %11
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) #4

; Function Attrs: nounwind
declare x86_fp80 @sqrtl(x86_fp80 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 = { 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 = { inlinehint 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 #5 = { 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 #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, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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

@t = external dso_local global i32, align 4
@mx = external dso_local local_unnamed_addr global i32, align 4
@n = external dso_local global i64, align 8
@lim = external dso_local local_unnamed_addr global i64, align 8
@ans = external dso_local local_unnamed_addr global i64, align 8
@.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 i64 @_Z5solvexxx(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = alloca x86_fp80, align 16
  %2 = alloca x86_fp80, align 16
  %3 = tail call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull @t)
  %4 = load i32, ptr @t, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr @t, align 4, !tbaa !5
  %.not28 = icmp eq i32 %4, 0
  br i1 %.not28, label %._crit_edge31, label %.lr.ph30

.lr.ph30:                                         ; preds = %0, %._crit_edge
  %6 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull @n)
  %7 = load i64, ptr @n, align 8, !tbaa !9
  br label %8

8:                                                ; preds = %8, %.lr.ph30
  %indvars.iv = phi i64 [ %indvars.iv.next, %8 ], [ 1, %.lr.ph30 ]
  %9 = shl nuw i64 1, %indvars.iv
  %.not22 = icmp sgt i64 %9, %7
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br i1 %.not22, label %10, label %8, !llvm.loop !11

10:                                               ; preds = %8
  %11 = trunc nuw nsw i64 %indvars.iv to i32
  store i32 %11, ptr @mx, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #7
  %12 = sitofp i64 %7 to x86_fp80
  %13 = call x86_fp80 @sqrtl(x86_fp80 noundef %12) #7
  %14 = load i32, ptr @mx, align 4, !tbaa !5
  %15 = sitofp i32 %14 to x86_fp80
  %16 = fdiv x86_fp80 %13, %15
  store x86_fp80 %16, ptr %1, align 16, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #7
  store x86_fp80 0xK00000000000000000000, ptr %2, align 16, !tbaa !13
  %17 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) %2)
  %18 = load x86_fp80, ptr %17, align 16, !tbaa !13
  %19 = fptosi x86_fp80 %18 to i64
  store i64 %19, ptr @lim, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #7
  store i64 0, ptr @ans, align 8, !tbaa !9
  %20 = load i64, ptr @n, align 8, !tbaa !9
  %21 = icmp sgt i64 %20, 0
  br i1 %21, label %.lr.ph27, label %._crit_edge

._crit_edge:                                      ; preds = %.loopexit, %10
  %22 = phi i64 [ 0, %10 ], [ %ans.promoted34, %.loopexit ]
  %23 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, i64 noundef %22)
  %24 = load i32, ptr @t, align 4, !tbaa !5
  %25 = add nsw i32 %24, -1
  store i32 %25, ptr @t, align 4, !tbaa !5
  %.not = icmp eq i32 %24, 0
  br i1 %.not, label %._crit_edge31, label %.lr.ph30, !llvm.loop !15

.lr.ph27:                                         ; preds = %10, %.loopexit
  %26 = phi i64 [ %64, %.loopexit ], [ %20, %10 ]
  %ans.promoted = phi i64 [ %ans.promoted34, %.loopexit ], [ 0, %10 ]
  %27 = phi i64 [ %65, %.loopexit ], [ %19, %10 ]
  %.026 = phi i64 [ %30, %.loopexit ], [ 0, %10 ]
  %28 = add nuw nsw i64 %.026, 1
  %29 = udiv i64 %26, %28
  %30 = sdiv i64 %26, %29
  %.recomposed = srem i64 %26, %29
  %.not23 = icmp sgt i64 %29, %27
  %31 = mul nsw i64 %30, %29
  br i1 %.not23, label %38, label %32

32:                                               ; preds = %.lr.ph27
  %33 = sub nsw i64 %26, %31
  %34 = sub nsw i64 %30, %.026
  %35 = call noundef i64 @_Z5solvexxx(i64 noundef %33, i64 noundef %29, i64 noundef %34)
  %36 = load i64, ptr @ans, align 8, !tbaa !9
  %37 = xor i64 %36, %35
  store i64 %37, ptr @ans, align 8, !tbaa !9
  %.pre = load i64, ptr @lim, align 8, !tbaa !9
  %.pre36 = load i64, ptr @n, align 8, !tbaa !9
  br label %.loopexit

38:                                               ; preds = %.lr.ph27
  %39 = mul nsw i64 %29, %.026
  %40 = sub i64 %26, %39
  %41 = icmp slt i64 %39, %31
  br i1 %41, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %38
  %42 = sub i64 1, %30
  %43 = mul i64 %29, %42
  %44 = add i64 %26, %43
  %smax = call i64 @llvm.smax.i64(i64 %40, i64 %44)
  %45 = add i64 %43, %26
  %46 = sub i64 %smax, %45
  %47 = icmp slt i64 %44, %40
  %umin.neg = sext i1 %47 to i64
  %48 = select i1 %47, i64 2, i64 1
  %49 = add i64 %46, %umin.neg
  %umax = call i64 @llvm.umax.i64(i64 %29, i64 1)
  %50 = udiv i64 %49, %umax
  %51 = add i64 %48, %50
  %min.iters.check = icmp ult i64 %51, 4
  br i1 %min.iters.check, label %.lr.ph.preheader43, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %51, -4
  %52 = mul i64 %n.vec, %29
  %ind.end = add i64 %.recomposed, %52
  %.splatinsert = insertelement <2 x i64> poison, i64 %.recomposed, i64 0
  %.splat = shufflevector <2 x i64> %.splatinsert, <2 x i64> poison, <2 x i32> zeroinitializer
  %.splatinsert37 = insertelement <2 x i64> poison, i64 %29, i64 0
  %.splat38 = shufflevector <2 x i64> %.splatinsert37, <2 x i64> poison, <2 x i32> zeroinitializer
  %53 = mul nuw <2 x i64> %.splat38, <i64 0, i64 1>
  %induction = add <2 x i64> %.splat, %53
  %54 = shl i64 %29, 1
  %.splatinsert39 = insertelement <2 x i64> poison, i64 %54, i64 0
  %.splat40 = shufflevector <2 x i64> %.splatinsert39, <2 x i64> poison, <2 x i32> zeroinitializer
  %55 = insertelement <2 x i64> <i64 poison, i64 0>, i64 %ans.promoted, i64 0
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.ind = phi <2 x i64> [ %induction, %vector.ph ], [ %vec.ind.next, %vector.body ]
  %vec.phi = phi <2 x i64> [ %55, %vector.ph ], [ %56, %vector.body ]
  %vec.phi42 = phi <2 x i64> [ zeroinitializer, %vector.ph ], [ %57, %vector.body ]
  %step.add = add <2 x i64> %vec.ind, %.splat40
  %56 = xor <2 x i64> %vec.phi, %vec.ind
  %57 = xor <2 x i64> %vec.phi42, %step.add
  %index.next = add nuw i64 %index, 4
  %vec.ind.next = add <2 x i64> %step.add, %.splat40
  %58 = icmp eq i64 %index.next, %n.vec
  br i1 %58, label %middle.block, label %vector.body, !llvm.loop !16

middle.block:                                     ; preds = %vector.body
  %bin.rdx = xor <2 x i64> %57, %56
  %59 = call i64 @llvm.vector.reduce.xor.v2i64(<2 x i64> %bin.rdx)
  %cmp.n = icmp eq i64 %51, %n.vec
  br i1 %cmp.n, label %..loopexit_crit_edge, label %.lr.ph.preheader43

.lr.ph.preheader43:                               ; preds = %middle.block, %.lr.ph.preheader
  %.01924.ph = phi i64 [ %.recomposed, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.ph = phi i64 [ %ans.promoted, %.lr.ph.preheader ], [ %59, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader43, %.lr.ph
  %.01924 = phi i64 [ %62, %.lr.ph ], [ %.01924.ph, %.lr.ph.preheader43 ]
  %60 = phi i64 [ %61, %.lr.ph ], [ %.ph, %.lr.ph.preheader43 ]
  %61 = xor i64 %60, %.01924
  %62 = add nsw i64 %.01924, %29
  %63 = icmp slt i64 %62, %40
  br i1 %63, label %.lr.ph, label %..loopexit_crit_edge, !llvm.loop !19

..loopexit_crit_edge:                             ; preds = %.lr.ph, %middle.block
  %.lcssa = phi i64 [ %59, %middle.block ], [ %61, %.lr.ph ]
  store i64 %.lcssa, ptr @ans, align 8, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %38, %..loopexit_crit_edge, %32
  %64 = phi i64 [ %26, %38 ], [ %26, %..loopexit_crit_edge ], [ %.pre36, %32 ]
  %ans.promoted34 = phi i64 [ %ans.promoted, %38 ], [ %.lcssa, %..loopexit_crit_edge ], [ %37, %32 ]
  %65 = phi i64 [ %27, %38 ], [ %27, %..loopexit_crit_edge ], [ %.pre, %32 ]
  %66 = icmp slt i64 %30, %64
  br i1 %66, label %.lr.ph27, label %._crit_edge, !llvm.loop !20

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZSt3maxIeERKT_S2_S2_(ptr noundef nonnull align 16 dereferenceable(16), ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare x86_fp80 @sqrtl(x86_fp80 noundef) local_unnamed_addr #5

; 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.smax.i64(i64, i64) #6

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

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

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 #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 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 #5 = { mustprogress nofree nounwind willreturn memory(write) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"long double", !7, i64 0}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12, !17, !18}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !12, !18, !17}
!20 = distinct !{!20, !12}


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