; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces/cf1516_B.ll (Z5solvev)

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

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [2010 x i64], align 16
@prefix_xor = external dso_local global [2010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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 uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %8

8:                                                ; preds = %18, %0
  %9 = load i32, ptr %2, align 4, !tbaa !5
  %10 = load i32, ptr %1, align 4, !tbaa !5
  %11 = icmp sle i32 %9, %10
  br i1 %11, label %13, label %12

12:                                               ; preds = %8
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %21

13:                                               ; preds = %8
  %14 = load i32, ptr %2, align 4, !tbaa !5
  %15 = sext i32 %14 to i64
  %16 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %15
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %16)
  br label %18

18:                                               ; preds = %13
  %19 = load i32, ptr %2, align 4, !tbaa !5
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %2, align 4, !tbaa !5
  br label %8, !llvm.loop !9

21:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %41, %21
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = load i32, ptr %1, align 4, !tbaa !5
  %25 = icmp sle i32 %23, %24
  br i1 %25, label %27, label %26

26:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  br label %44

27:                                               ; preds = %22
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = sext i32 %28 to i64
  %30 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %29
  %31 = load i64, ptr %30, align 8, !tbaa !11
  %32 = load i32, ptr %3, align 4, !tbaa !5
  %33 = sub nsw i32 %32, 1
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %34
  %36 = load i64, ptr %35, align 8, !tbaa !11
  %37 = xor i64 %31, %36
  %38 = load i32, ptr %3, align 4, !tbaa !5
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %39
  store i64 %37, ptr %40, align 8, !tbaa !11
  br label %41

41:                                               ; preds = %27
  %42 = load i32, ptr %3, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %3, align 4, !tbaa !5
  br label %22, !llvm.loop !13

44:                                               ; preds = %26
  %45 = load i32, ptr %1, align 4, !tbaa !5
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !11
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %50, label %52

50:                                               ; preds = %44
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  store i32 1, ptr %4, align 4
  br label %112

52:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #4
  store i32 1, ptr %5, align 4, !tbaa !5
  br label %53

53:                                               ; preds = %105, %52
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = icmp sle i32 %54, %55
  br i1 %56, label %58, label %57

57:                                               ; preds = %53
  store i32 8, ptr %4, align 4
  br label %108

58:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  %59 = load i32, ptr %5, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %6, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %99, %58
  %62 = load i32, ptr %6, align 4, !tbaa !5
  %63 = load i32, ptr %1, align 4, !tbaa !5
  %64 = icmp slt i32 %62, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %61
  store i32 11, ptr %4, align 4
  br label %102

66:                                               ; preds = %61
  %67 = load i32, ptr %5, align 4, !tbaa !5
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %68
  %70 = load i64, ptr %69, align 8, !tbaa !11
  %71 = load i32, ptr %6, align 4, !tbaa !5
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !11
  %75 = load i32, ptr %5, align 4, !tbaa !5
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %76
  %78 = load i64, ptr %77, align 8, !tbaa !11
  %79 = xor i64 %74, %78
  %80 = icmp eq i64 %70, %79
  br i1 %80, label %81, label %98

81:                                               ; preds = %66
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = sext i32 %82 to i64
  %84 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %83
  %85 = load i64, ptr %84, align 8, !tbaa !11
  %86 = load i32, ptr %1, align 4, !tbaa !5
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !11
  %90 = load i32, ptr %6, align 4, !tbaa !5
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %91
  %93 = load i64, ptr %92, align 8, !tbaa !11
  %94 = xor i64 %89, %93
  %95 = icmp eq i64 %85, %94
  br i1 %95, label %96, label %98

96:                                               ; preds = %81
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  store i32 1, ptr %4, align 4
  br label %102

98:                                               ; preds = %81, %66
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %6, align 4, !tbaa !5
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %6, align 4, !tbaa !5
  br label %61, !llvm.loop !14

102:                                              ; preds = %96, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %103 = load i32, ptr %4, align 4
  switch i32 %103, label %108 [
    i32 11, label %104
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104
  %106 = load i32, ptr %5, align 4, !tbaa !5
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %5, align 4, !tbaa !5
  br label %53, !llvm.loop !15

108:                                              ; preds = %102, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #4
  %109 = load i32, ptr %4, align 4
  switch i32 %109, label %112 [
    i32 8, label %110
  ]

110:                                              ; preds = %108
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  store i32 0, ptr %4, align 4
  br label %112

112:                                              ; preds = %110, %108, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  %113 = load i32, ptr %4, align 4
  switch i32 %113, label %115 [
    i32 0, label %114
    i32 1, label %114
  ]

114:                                              ; preds = %112, %112
  ret void

115:                                              ; preds = %112
  unreachable
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #3

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !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"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [2010 x i64], align 16
@prefix_xor = external dso_local local_unnamed_addr global [2010 x i64], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.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 uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #4
  %2 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %3 = load i32, ptr %1, align 4, !tbaa !5
  %.not33 = icmp slt i32 %3, 1
  br i1 %.not33, label %._crit_edge.thread, label %.lr.ph

.preheader:                                       ; preds = %.lr.ph
  %.not2835 = icmp slt i32 %8, 1
  br i1 %.not2835, label %._crit_edge, label %.lr.ph37.preheader

.lr.ph37.preheader:                               ; preds = %.preheader
  %.pre = load i64, ptr @prefix_xor, align 16, !tbaa !9
  %4 = zext nneg i32 %8 to i64
  %xtraiter = and i64 %4, 3
  %5 = icmp ult i32 %8, 4
  br i1 %5, label %._crit_edge.loopexit.unr-lcssa, label %.lr.ph37.preheader.new

.lr.ph37.preheader.new:                           ; preds = %.lr.ph37.preheader
  %unroll_iter = and i64 %4, 2147483644
  br label %.lr.ph37

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 1, %0 ]
  %6 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = sext i32 %8 to i64
  %.not.not = icmp slt i64 %indvars.iv, %9
  br i1 %.not.not, label %.lr.ph, label %.preheader, !llvm.loop !11

._crit_edge.loopexit.unr-lcssa:                   ; preds = %.lr.ph37, %.lr.ph37.preheader
  %.unr = phi i64 [ %.pre, %.lr.ph37.preheader ], [ %41, %.lr.ph37 ]
  %indvars.iv47.unr = phi i64 [ 1, %.lr.ph37.preheader ], [ %indvars.iv.next48.3, %.lr.ph37 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge, label %.lr.ph37.epil

.lr.ph37.epil:                                    ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph37.epil
  %10 = phi i64 [ %13, %.lr.ph37.epil ], [ %.unr, %._crit_edge.loopexit.unr-lcssa ]
  %indvars.iv47.epil = phi i64 [ %indvars.iv.next48.epil, %.lr.ph37.epil ], [ %indvars.iv47.unr, %._crit_edge.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.lr.ph37.epil ], [ 0, %._crit_edge.loopexit.unr-lcssa ]
  %11 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv47.epil
  %12 = load i64, ptr %11, align 8, !tbaa !9
  %13 = xor i64 %10, %12
  %14 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv47.epil
  store i64 %13, ptr %14, align 8, !tbaa !9
  %indvars.iv.next48.epil = add nuw nsw i64 %indvars.iv47.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_edge, label %.lr.ph37.epil, !llvm.loop !13

._crit_edge:                                      ; preds = %._crit_edge.loopexit.unr-lcssa, %.lr.ph37.epil, %.preheader
  %15 = sext i32 %8 to i64
  %16 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %15
  %17 = load i64, ptr %16, align 8, !tbaa !9
  %18 = icmp eq i64 %17, 0
  br i1 %18, label %.loopexit, label %.critedge.preheader

._crit_edge.thread:                               ; preds = %0
  %19 = sext i32 %3 to i64
  %20 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %19
  %21 = load i64, ptr %20, align 8, !tbaa !9
  %22 = icmp eq i64 %21, 0
  br i1 %22, label %.loopexit, label %.critedge32

.critedge.preheader:                              ; preds = %._crit_edge
  br i1 %.not2835, label %.critedge32, label %.lr.ph44

.lr.ph44:                                         ; preds = %.critedge.preheader
  %23 = zext nneg i32 %8 to i64
  %24 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %23
  %25 = add nuw i32 %8, 1
  %wide.trip.count60 = zext i32 %25 to i64
  br label %43

.lr.ph37:                                         ; preds = %.lr.ph37, %.lr.ph37.preheader.new
  %26 = phi i64 [ %.pre, %.lr.ph37.preheader.new ], [ %41, %.lr.ph37 ]
  %indvars.iv47 = phi i64 [ 1, %.lr.ph37.preheader.new ], [ %indvars.iv.next48.3, %.lr.ph37 ]
  %niter = phi i64 [ 0, %.lr.ph37.preheader.new ], [ %niter.next.3, %.lr.ph37 ]
  %27 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv47
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = xor i64 %26, %28
  %30 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv47
  store i64 %29, ptr %30, align 8, !tbaa !9
  %indvars.iv.next48 = add nuw nsw i64 %indvars.iv47, 1
  %31 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv.next48
  %32 = load i64, ptr %31, align 8, !tbaa !9
  %33 = xor i64 %29, %32
  %34 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv.next48
  store i64 %33, ptr %34, align 8, !tbaa !9
  %indvars.iv.next48.1 = add nuw nsw i64 %indvars.iv47, 2
  %35 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv.next48.1
  %36 = load i64, ptr %35, align 8, !tbaa !9
  %37 = xor i64 %33, %36
  %38 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv.next48.1
  store i64 %37, ptr %38, align 8, !tbaa !9
  %indvars.iv.next48.2 = add nuw nsw i64 %indvars.iv47, 3
  %39 = getelementptr inbounds [2010 x i64], ptr @a, i64 0, i64 %indvars.iv.next48.2
  %40 = load i64, ptr %39, align 8, !tbaa !9
  %41 = xor i64 %37, %40
  %42 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv.next48.2
  store i64 %41, ptr %42, align 8, !tbaa !9
  %indvars.iv.next48.3 = add nuw nsw i64 %indvars.iv47, 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_edge.loopexit.unr-lcssa, label %.lr.ph37, !llvm.loop !15

.critedge.loopexit:                               ; preds = %53, %43
  %indvars.iv.next51 = add nuw nsw i64 %indvars.iv50, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next58, %wide.trip.count60
  br i1 %exitcond61.not, label %.critedge32, label %43, !llvm.loop !16

43:                                               ; preds = %.lr.ph44, %.critedge.loopexit
  %indvars.iv57 = phi i64 [ 1, %.lr.ph44 ], [ %indvars.iv.next58, %.critedge.loopexit ]
  %indvars.iv50 = phi i64 [ 2, %.lr.ph44 ], [ %indvars.iv.next51, %.critedge.loopexit ]
  %indvars.iv.next58 = add nuw nsw i64 %indvars.iv57, 1
  %.not3038 = icmp slt i64 %indvars.iv.next58, %15
  br i1 %.not3038, label %.lr.ph41, label %.critedge.loopexit

.lr.ph41:                                         ; preds = %43
  %44 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv57
  br label %45

45:                                               ; preds = %.lr.ph41, %53
  %indvars.iv52 = phi i64 [ %indvars.iv50, %.lr.ph41 ], [ %indvars.iv.next53, %53 ]
  %46 = getelementptr inbounds [2010 x i64], ptr @prefix_xor, i64 0, i64 %indvars.iv52
  %47 = load i64, ptr %46, align 8, !tbaa !9
  %48 = icmp eq i64 %47, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %45
  %50 = load i64, ptr %44, align 8, !tbaa !9
  %51 = load i64, ptr %24, align 8, !tbaa !9
  %52 = icmp eq i64 %50, %51
  br i1 %52, label %.loopexit, label %53

53:                                               ; preds = %45, %49
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %exitcond56.not = icmp eq i64 %indvars.iv.next53, %23
  br i1 %exitcond56.not, label %.critedge.loopexit, label %45, !llvm.loop !17

.critedge32:                                      ; preds = %.critedge.loopexit, %._crit_edge.thread, %.critedge.preheader
  br label %.loopexit

.loopexit:                                        ; preds = %49, %._crit_edge, %._crit_edge.thread, %.critedge32
  %.str.sink = phi ptr [ @.str.1, %.critedge32 ], [ @.str, %._crit_edge.thread ], [ @.str, %._crit_edge ], [ @.str, %49 ]
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull %.str.sink)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #4
  ret void
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #3

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #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 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.unroll.disable"}
!15 = distinct !{!15, !12}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}


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