; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Educational Codeforces Round 127 (Rated for Div. 2)/D.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" }
%"class.std::initializer_list" = type { ptr, i64 }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::initializer_list", align 8
  %10 = alloca [3 x i64], align 8
  %11 = alloca %"class.std::initializer_list", align 8
  %12 = alloca [3 x i64], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %15 = load i64, ptr %1, align 8, !tbaa !5
  %16 = call ptr @llvm.stacksave.p0()
  store ptr %16, ptr %3, align 8
  %17 = alloca i64, i64 %15, align 16
  store i64 %15, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store i64 2000000000000000000, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %18

18:                                               ; preds = %50, %0
  %19 = load i64, ptr %8, align 8, !tbaa !5
  %20 = load i64, ptr %1, align 8, !tbaa !5
  %21 = icmp slt i64 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %53

23:                                               ; preds = %18
  %24 = load i64, ptr %8, align 8, !tbaa !5
  %25 = getelementptr inbounds i64, ptr %17, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = load i64, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds i64, ptr %17, i64 %27
  %29 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %30 = load i64, ptr %29, align 8, !tbaa !5
  store i64 %30, ptr %6, align 8, !tbaa !5
  %31 = load i64, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds i64, ptr %17, i64 %31
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %34 = load i64, ptr %33, align 8, !tbaa !5
  store i64 %34, ptr %7, align 8, !tbaa !5
  %35 = load i64, ptr %8, align 8, !tbaa !5
  %36 = icmp sgt i64 %35, 0
  br i1 %36, label %37, label %49

37:                                               ; preds = %23
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds i64, ptr %17, i64 %38
  %40 = load i64, ptr %39, align 8, !tbaa !5
  %41 = load i64, ptr %8, align 8, !tbaa !5
  %42 = sub nsw i64 %41, 1
  %43 = getelementptr inbounds i64, ptr %17, i64 %42
  %44 = load i64, ptr %43, align 8, !tbaa !5
  %45 = sub nsw i64 %40, %44
  %46 = call noundef i64 @_ZSt3absl(i64 noundef %45)
  %47 = load i64, ptr %5, align 8, !tbaa !5
  %48 = add nsw i64 %47, %46
  store i64 %48, ptr %5, align 8, !tbaa !5
  br label %49

49:                                               ; preds = %37, %23
  br label %50

50:                                               ; preds = %49
  %51 = load i64, ptr %8, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %8, align 8, !tbaa !5
  br label %18, !llvm.loop !9

53:                                               ; preds = %22
  %54 = load i64, ptr %6, align 8, !tbaa !5
  %55 = icmp sgt i64 %54, 1
  br i1 %55, label %56, label %79

56:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  %57 = getelementptr inbounds i64, ptr %17, i64 0
  %58 = load i64, ptr %57, align 16, !tbaa !5
  %59 = sub nsw i64 %58, 1
  store i64 %59, ptr %10, align 8, !tbaa !5
  %60 = getelementptr inbounds i64, ptr %10, i64 1
  %61 = load i64, ptr %6, align 8, !tbaa !5
  %62 = sub nsw i64 %61, 1
  %63 = mul nsw i64 2, %62
  store i64 %63, ptr %60, align 8, !tbaa !5
  %64 = getelementptr inbounds i64, ptr %10, i64 2
  %65 = load i64, ptr %1, align 8, !tbaa !5
  %66 = sub nsw i64 %65, 1
  %67 = getelementptr inbounds i64, ptr %17, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = sub nsw i64 %68, 1
  store i64 %69, ptr %64, align 8, !tbaa !5
  %70 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 0
  store ptr %10, ptr %70, align 8, !tbaa !11
  %71 = getelementptr inbounds %"class.std::initializer_list", ptr %9, i32 0, i32 1
  store i64 3, ptr %71, align 8, !tbaa !14
  %72 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8
  %74 = getelementptr inbounds { ptr, i64 }, ptr %9, i32 0, i32 1
  %75 = load i64, ptr %74, align 8
  %76 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr %73, i64 %75)
  %77 = load i64, ptr %5, align 8, !tbaa !5
  %78 = add nsw i64 %77, %76
  store i64 %78, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  br label %79

79:                                               ; preds = %56, %53
  %80 = load i64, ptr %7, align 8, !tbaa !5
  %81 = load i64, ptr %2, align 8, !tbaa !5
  %82 = icmp slt i64 %80, %81
  br i1 %82, label %83, label %109

83:                                               ; preds = %79
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #5
  %84 = load i64, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds i64, ptr %17, i64 0
  %86 = load i64, ptr %85, align 16, !tbaa !5
  %87 = sub nsw i64 %84, %86
  store i64 %87, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds i64, ptr %12, i64 1
  %89 = load i64, ptr %2, align 8, !tbaa !5
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = sub nsw i64 %89, %90
  %92 = mul nsw i64 2, %91
  store i64 %92, ptr %88, align 8, !tbaa !5
  %93 = getelementptr inbounds i64, ptr %12, i64 2
  %94 = load i64, ptr %2, align 8, !tbaa !5
  %95 = load i64, ptr %1, align 8, !tbaa !5
  %96 = sub nsw i64 %95, 1
  %97 = getelementptr inbounds i64, ptr %17, i64 %96
  %98 = load i64, ptr %97, align 8, !tbaa !5
  %99 = sub nsw i64 %94, %98
  store i64 %99, ptr %93, align 8, !tbaa !5
  %100 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 0
  store ptr %12, ptr %100, align 8, !tbaa !11
  %101 = getelementptr inbounds %"class.std::initializer_list", ptr %11, i32 0, i32 1
  store i64 3, ptr %101, align 8, !tbaa !14
  %102 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8
  %104 = getelementptr inbounds { ptr, i64 }, ptr %11, i32 0, i32 1
  %105 = load i64, ptr %104, align 8
  %106 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr %103, i64 %105)
  %107 = load i64, ptr %5, align 8, !tbaa !5
  %108 = add nsw i64 %107, %106
  store i64 %108, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #5
  br label %109

109:                                              ; preds = %83, %79
  %110 = load i64, ptr %5, align 8, !tbaa !5
  %111 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %110)
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %111, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %113 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %113)
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #5
  ret void
}

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare ptr @llvm.stacksave.p0() #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absl(i64 noundef) #3

; 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 dso_local noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr, i64) #4

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIlE", !13, i64 0, !6, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!12, !6, i64 8}


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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca [3 x i64], align 8
  %6 = alloca [3 x i64], align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %7 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = call ptr @llvm.stacksave.p0()
  %11 = alloca i64, i64 %9, align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 2000000000000000000, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  store i64 0, ptr %4, align 8, !tbaa !5
  %12 = load i64, ptr %1, align 8, !tbaa !5
  %13 = icmp sgt i64 %12, 0
  br i1 %13, label %14, label %._crit_edge.thread

14:                                               ; preds = %0
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %16 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %17 = load i64, ptr %16, align 8, !tbaa !5
  store i64 %17, ptr %3, align 8, !tbaa !5
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %19 = load i64, ptr %18, align 8, !tbaa !5
  store i64 %19, ptr %4, align 8, !tbaa !5
  %.pre = load i64, ptr %1, align 8, !tbaa !5
  %20 = icmp sgt i64 %.pre, 1
  br i1 %20, label %.lr.ph.peel.next, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.peel.next, %14
  %.1.lcssa = phi i64 [ 0, %14 ], [ %33, %.lr.ph.peel.next ]
  %.lcssa18 = phi i64 [ %.pre, %14 ], [ %35, %.lr.ph.peel.next ]
  %.pre20 = load i64, ptr %3, align 8, !tbaa !5
  %21 = icmp sgt i64 %.pre20, 1
  br i1 %21, label %._crit_edge.thread, label %50

.lr.ph.peel.next:                                 ; preds = %14, %.lr.ph.peel.next
  %.016 = phi i64 [ %33, %.lr.ph.peel.next ], [ 0, %14 ]
  %.01415 = phi i64 [ %34, %.lr.ph.peel.next ], [ 1, %14 ]
  %22 = getelementptr inbounds i64, ptr %11, i64 %.01415
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %25 = load i64, ptr %24, align 8, !tbaa !5
  store i64 %25, ptr %3, align 8, !tbaa !5
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %27 = load i64, ptr %26, align 8, !tbaa !5
  store i64 %27, ptr %4, align 8, !tbaa !5
  %28 = load i64, ptr %22, align 8, !tbaa !5
  %29 = getelementptr i8, ptr %22, i64 -8
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = sub nsw i64 %28, %30
  %32 = call noundef i64 @_ZSt3absl(i64 noundef %31)
  %33 = add nsw i64 %32, %.016
  %34 = add nuw nsw i64 %.01415, 1
  %35 = load i64, ptr %1, align 8, !tbaa !5
  %36 = icmp slt i64 %34, %35
  br i1 %36, label %.lr.ph.peel.next, label %._crit_edge, !llvm.loop !9

._crit_edge.thread:                               ; preds = %0, %._crit_edge
  %.lcssa24 = phi i64 [ %.lcssa18, %._crit_edge ], [ %12, %0 ]
  %.0.lcssa23 = phi i64 [ %.1.lcssa, %._crit_edge ], [ 0, %0 ]
  %37 = phi i64 [ %.pre20, %._crit_edge ], [ 2000000000000000000, %0 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  %38 = load i64, ptr %11, align 16, !tbaa !5
  %39 = add nsw i64 %38, -1
  store i64 %39, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %5, i64 8
  %41 = shl nuw i64 %37, 1
  %42 = add i64 %41, -2
  store i64 %42, ptr %40, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %5, i64 16
  %44 = getelementptr i64, ptr %11, i64 %.lcssa24
  %45 = getelementptr i8, ptr %44, i64 -8
  %46 = load i64, ptr %45, align 8, !tbaa !5
  %47 = add nsw i64 %46, -1
  store i64 %47, ptr %43, align 8, !tbaa !5
  %48 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %5, i64 3)
  %49 = add nsw i64 %48, %.0.lcssa23
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  br label %50

50:                                               ; preds = %._crit_edge.thread, %._crit_edge
  %.2 = phi i64 [ %49, %._crit_edge.thread ], [ %.1.lcssa, %._crit_edge ]
  %51 = load i64, ptr %4, align 8, !tbaa !5
  %52 = load i64, ptr %2, align 8, !tbaa !5
  %53 = icmp slt i64 %51, %52
  br i1 %53, label %54, label %68

54:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  %55 = load i64, ptr %11, align 16, !tbaa !5
  %56 = sub nsw i64 %52, %55
  store i64 %56, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %6, i64 8
  %58 = sub nsw i64 %52, %51
  %59 = shl nsw i64 %58, 1
  store i64 %59, ptr %57, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %6, i64 16
  %61 = load i64, ptr %1, align 8, !tbaa !5
  %62 = getelementptr i64, ptr %11, i64 %61
  %63 = getelementptr i8, ptr %62, i64 -8
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = sub nsw i64 %52, %64
  store i64 %65, ptr %60, align 8, !tbaa !5
  %66 = call noundef i64 @_ZSt3minIlET_St16initializer_listIS0_E(ptr nonnull %6, i64 3)
  %67 = add nsw i64 %66, %.2
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  br label %68

68:                                               ; preds = %54, %50
  %.3 = phi i64 [ %67, %54 ], [ %.2, %50 ]
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.3)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.stackrestore.p0(ptr %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret void
}

; 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 uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(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
declare ptr @llvm.stacksave.p0() #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZSt3absl(i64 noundef) 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) #1

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn
declare void @llvm.stackrestore.p0(ptr) #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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn }
attributes #3 = { 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 #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 = { 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass