; LLVM IR from AdarshGaur/Competitive-Programming :: Codeforces/Codeforces Round #779 (Div. 2)/1658D1 - 388535 (Easy Version).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" }

@_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 [18 x i64], align 16
  %7 = alloca [18 x i64], align 16
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca 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 %2, align 8, !tbaa !5
  %16 = add nsw i64 %15, 1
  %17 = call ptr @llvm.stacksave.p0()
  store ptr %17, ptr %3, align 8
  %18 = alloca i64, i64 %16, align 16
  store i64 %16, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store i64 0, ptr %5, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %28, %0
  %20 = load i64, ptr %5, align 8, !tbaa !5
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = icmp sle i64 %20, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %19
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  br label %31

24:                                               ; preds = %19
  %25 = load i64, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds i64, ptr %18, i64 %25
  %27 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %26)
  br label %28

28:                                               ; preds = %24
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = add nsw i64 %29, 1
  store i64 %30, ptr %5, align 8, !tbaa !5
  br label %19, !llvm.loop !9

31:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 144, ptr %6) #5
  call void @llvm.memset.p0.i64(ptr align 16 %6, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %75, %31
  %33 = load i64, ptr %8, align 8, !tbaa !5
  %34 = icmp slt i64 %33, 18
  br i1 %34, label %36, label %35

35:                                               ; preds = %32
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %78

36:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %71, %36
  %38 = load i64, ptr %10, align 8, !tbaa !5
  %39 = load i64, ptr %2, align 8, !tbaa !5
  %40 = icmp sle i64 %38, %39
  br i1 %40, label %42, label %41

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

42:                                               ; preds = %37
  %43 = load i64, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds i64, ptr %18, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !5
  %46 = load i64, ptr %8, align 8, !tbaa !5
  %47 = trunc i64 %46 to i32
  %48 = shl i32 1, %47
  %49 = sext i32 %48 to i64
  %50 = and i64 %45, %49
  %51 = icmp ne i64 %50, 0
  br i1 %51, label %52, label %57

52:                                               ; preds = %42
  %53 = load i64, ptr %8, align 8, !tbaa !5
  %54 = getelementptr inbounds [18 x i64], ptr %6, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !5
  %56 = add nsw i64 %55, 1
  store i64 %56, ptr %54, align 8, !tbaa !5
  br label %57

57:                                               ; preds = %52, %42
  %58 = load i64, ptr %10, align 8, !tbaa !5
  %59 = load i64, ptr %8, align 8, !tbaa !5
  %60 = trunc i64 %59 to i32
  %61 = shl i32 1, %60
  %62 = sext i32 %61 to i64
  %63 = and i64 %58, %62
  %64 = icmp ne i64 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %57
  %66 = load i64, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds [18 x i64], ptr %7, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !5
  %69 = add nsw i64 %68, 1
  store i64 %69, ptr %67, align 8, !tbaa !5
  br label %70

70:                                               ; preds = %65, %57
  br label %71

71:                                               ; preds = %70
  %72 = load i64, ptr %10, align 8, !tbaa !5
  %73 = add nsw i64 %72, 1
  store i64 %73, ptr %10, align 8, !tbaa !5
  br label %37, !llvm.loop !11

74:                                               ; preds = %41
  br label %75

75:                                               ; preds = %74
  %76 = load i64, ptr %8, align 8, !tbaa !5
  %77 = add nsw i64 %76, 1
  store i64 %77, ptr %8, align 8, !tbaa !5
  br label %32, !llvm.loop !12

78:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %99, %78
  %80 = load i64, ptr %12, align 8, !tbaa !5
  %81 = icmp slt i64 %80, 18
  br i1 %81, label %83, label %82

82:                                               ; preds = %79
  store i32 11, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %102

83:                                               ; preds = %79
  %84 = load i64, ptr %12, align 8, !tbaa !5
  %85 = getelementptr inbounds [18 x i64], ptr %6, i64 0, i64 %84
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = load i64, ptr %12, align 8, !tbaa !5
  %88 = getelementptr inbounds [18 x i64], ptr %7, i64 0, i64 %87
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = icmp ne i64 %86, %89
  br i1 %90, label %91, label %98

91:                                               ; preds = %83
  %92 = load i64, ptr %12, align 8, !tbaa !5
  %93 = trunc i64 %92 to i32
  %94 = shl i32 1, %93
  %95 = sext i32 %94 to i64
  %96 = load i64, ptr %11, align 8, !tbaa !5
  %97 = or i64 %96, %95
  store i64 %97, ptr %11, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %91, %83
  br label %99

99:                                               ; preds = %98
  %100 = load i64, ptr %12, align 8, !tbaa !5
  %101 = add nsw i64 %100, 1
  store i64 %101, ptr %12, align 8, !tbaa !5
  br label %79, !llvm.loop !13

102:                                              ; preds = %82
  %103 = load i64, ptr %11, align 8, !tbaa !5
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %103)
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %104, ptr noundef @.str)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr %6) #5
  %106 = load ptr, ptr %3, align 8
  call void @llvm.stackrestore.p0(ptr %106)
  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: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}
!13 = distinct !{!13, !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" }

@_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 [18 x i64], align 16
  %4 = alloca [18 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %5 = 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)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERl(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %7 = load i64, ptr %2, align 8, !tbaa !5
  %8 = add nsw i64 %7, 1
  %9 = call ptr @llvm.stacksave.p0()
  %10 = alloca i64, i64 %8, align 16
  %11 = load i64, ptr %2, align 8, !tbaa !5
  %.not29 = icmp slt i64 %11, 0
  br i1 %.not29, label %._crit_edge.thread, label %.lr.ph

._crit_edge.thread:                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(144) %3, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(144) %4, i8 0, i64 144, i1 false)
  br label %.preheader

._crit_edge:                                      ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %3) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(144) %3, i8 0, i64 144, i1 false)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %4) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(144) %4, i8 0, i64 144, i1 false)
  %.not2531 = icmp slt i64 %15, 0
  br i1 %.not2531, label %.preheader, label %.preheader28

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02330 = phi i64 [ %14, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds i64, ptr %10, i64 %.02330
  %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) %12)
  %14 = add nuw nsw i64 %.02330, 1
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.02330, %15
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.preheader28:                                     ; preds = %._crit_edge, %._crit_edge34
  %.02235 = phi i64 [ %83, %._crit_edge34 ], [ 0, %._crit_edge ]
  %16 = trunc nuw i64 %.02235 to i32
  %17 = shl nuw i32 1, %16
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [18 x i64], ptr %3, i64 0, i64 %.02235
  %20 = getelementptr inbounds [18 x i64], ptr %4, i64 0, i64 %.02235
  br label %84

.preheader.loopexit38:                            ; preds = %._crit_edge34
  %.pre = load i64, ptr %3, align 16, !tbaa !5
  %.pre42 = load i64, ptr %4, align 16, !tbaa !5
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 8
  %.pre43 = load i64, ptr %.phi.trans.insert, align 8, !tbaa !5
  %.phi.trans.insert44 = getelementptr inbounds i8, ptr %4, i64 8
  %.pre45 = load i64, ptr %.phi.trans.insert44, align 8, !tbaa !5
  %.phi.trans.insert46 = getelementptr inbounds i8, ptr %3, i64 16
  %.pre47 = load i64, ptr %.phi.trans.insert46, align 16, !tbaa !5
  %.phi.trans.insert48 = getelementptr inbounds i8, ptr %4, i64 16
  %.pre49 = load i64, ptr %.phi.trans.insert48, align 16, !tbaa !5
  %.phi.trans.insert50 = getelementptr inbounds i8, ptr %3, i64 24
  %.pre51 = load i64, ptr %.phi.trans.insert50, align 8, !tbaa !5
  %.phi.trans.insert52 = getelementptr inbounds i8, ptr %4, i64 24
  %.pre53 = load i64, ptr %.phi.trans.insert52, align 8, !tbaa !5
  %.phi.trans.insert54 = getelementptr inbounds i8, ptr %3, i64 32
  %.pre55 = load i64, ptr %.phi.trans.insert54, align 16, !tbaa !5
  %.phi.trans.insert56 = getelementptr inbounds i8, ptr %4, i64 32
  %.pre57 = load i64, ptr %.phi.trans.insert56, align 16, !tbaa !5
  %.phi.trans.insert58 = getelementptr inbounds i8, ptr %3, i64 40
  %.pre59 = load i64, ptr %.phi.trans.insert58, align 8, !tbaa !5
  %.phi.trans.insert60 = getelementptr inbounds i8, ptr %4, i64 40
  %.pre61 = load i64, ptr %.phi.trans.insert60, align 8, !tbaa !5
  %.phi.trans.insert62 = getelementptr inbounds i8, ptr %3, i64 48
  %.pre63 = load i64, ptr %.phi.trans.insert62, align 16, !tbaa !5
  %.phi.trans.insert64 = getelementptr inbounds i8, ptr %4, i64 48
  %.pre65 = load i64, ptr %.phi.trans.insert64, align 16, !tbaa !5
  %.phi.trans.insert66 = getelementptr inbounds i8, ptr %3, i64 56
  %.pre67 = load i64, ptr %.phi.trans.insert66, align 8, !tbaa !5
  %.phi.trans.insert68 = getelementptr inbounds i8, ptr %4, i64 56
  %.pre69 = load i64, ptr %.phi.trans.insert68, align 8, !tbaa !5
  %.phi.trans.insert70 = getelementptr inbounds i8, ptr %3, i64 64
  %.pre71 = load i64, ptr %.phi.trans.insert70, align 16, !tbaa !5
  %.phi.trans.insert72 = getelementptr inbounds i8, ptr %4, i64 64
  %.pre73 = load i64, ptr %.phi.trans.insert72, align 16, !tbaa !5
  %.phi.trans.insert74 = getelementptr inbounds i8, ptr %3, i64 72
  %.pre75 = load i64, ptr %.phi.trans.insert74, align 8, !tbaa !5
  %.phi.trans.insert76 = getelementptr inbounds i8, ptr %4, i64 72
  %.pre77 = load i64, ptr %.phi.trans.insert76, align 8, !tbaa !5
  %.phi.trans.insert78 = getelementptr inbounds i8, ptr %3, i64 80
  %.pre79 = load i64, ptr %.phi.trans.insert78, align 16, !tbaa !5
  %.phi.trans.insert80 = getelementptr inbounds i8, ptr %4, i64 80
  %.pre81 = load i64, ptr %.phi.trans.insert80, align 16, !tbaa !5
  %.phi.trans.insert82 = getelementptr inbounds i8, ptr %3, i64 88
  %.pre83 = load i64, ptr %.phi.trans.insert82, align 8, !tbaa !5
  %.phi.trans.insert84 = getelementptr inbounds i8, ptr %4, i64 88
  %.pre85 = load i64, ptr %.phi.trans.insert84, align 8, !tbaa !5
  %.phi.trans.insert86 = getelementptr inbounds i8, ptr %3, i64 96
  %.pre87 = load i64, ptr %.phi.trans.insert86, align 16, !tbaa !5
  %.phi.trans.insert88 = getelementptr inbounds i8, ptr %4, i64 96
  %.pre89 = load i64, ptr %.phi.trans.insert88, align 16, !tbaa !5
  %.phi.trans.insert90 = getelementptr inbounds i8, ptr %3, i64 104
  %.pre91 = load i64, ptr %.phi.trans.insert90, align 8, !tbaa !5
  %.phi.trans.insert92 = getelementptr inbounds i8, ptr %4, i64 104
  %.pre93 = load i64, ptr %.phi.trans.insert92, align 8, !tbaa !5
  %.phi.trans.insert94 = getelementptr inbounds i8, ptr %3, i64 112
  %.pre95 = load i64, ptr %.phi.trans.insert94, align 16, !tbaa !5
  %.phi.trans.insert96 = getelementptr inbounds i8, ptr %4, i64 112
  %.pre97 = load i64, ptr %.phi.trans.insert96, align 16, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %._crit_edge, %._crit_edge.thread, %.preheader.loopexit38
  %21 = phi i64 [ %.pre97, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %22 = phi i64 [ %.pre95, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %23 = phi i64 [ %.pre93, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %24 = phi i64 [ %.pre91, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %25 = phi i64 [ %.pre89, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %26 = phi i64 [ %.pre87, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %27 = phi i64 [ %.pre85, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %28 = phi i64 [ %.pre83, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %29 = phi i64 [ %.pre81, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %30 = phi i64 [ %.pre79, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %31 = phi i64 [ %.pre77, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %32 = phi i64 [ %.pre75, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %33 = phi i64 [ %.pre73, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %34 = phi i64 [ %.pre71, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %35 = phi i64 [ %.pre69, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %36 = phi i64 [ %.pre67, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %37 = phi i64 [ %.pre65, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %38 = phi i64 [ %.pre63, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %39 = phi i64 [ %.pre61, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %40 = phi i64 [ %.pre59, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %41 = phi i64 [ %.pre57, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %42 = phi i64 [ %.pre55, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %43 = phi i64 [ %.pre53, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %44 = phi i64 [ %.pre51, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %45 = phi i64 [ %.pre49, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %46 = phi i64 [ %.pre47, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %47 = phi i64 [ %.pre45, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %48 = phi i64 [ %.pre43, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %49 = phi i64 [ %.pre42, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %50 = phi i64 [ %.pre, %.preheader.loopexit38 ], [ 0, %._crit_edge.thread ], [ 0, %._crit_edge ]
  %.not24 = icmp ne i64 %50, %49
  %51 = zext i1 %.not24 to i64
  %.not24.1 = icmp eq i64 %48, %47
  %52 = select i1 %.not24.1, i64 0, i64 2
  %.1.1 = or disjoint i64 %52, %51
  %.not24.2 = icmp eq i64 %46, %45
  %53 = select i1 %.not24.2, i64 0, i64 4
  %.1.2 = or disjoint i64 %53, %.1.1
  %.not24.3 = icmp eq i64 %44, %43
  %54 = select i1 %.not24.3, i64 0, i64 8
  %.1.3 = or disjoint i64 %54, %.1.2
  %.not24.4 = icmp eq i64 %42, %41
  %55 = select i1 %.not24.4, i64 0, i64 16
  %.1.4 = or disjoint i64 %55, %.1.3
  %.not24.5 = icmp eq i64 %40, %39
  %56 = select i1 %.not24.5, i64 0, i64 32
  %.1.5 = or disjoint i64 %56, %.1.4
  %.not24.6 = icmp eq i64 %38, %37
  %57 = select i1 %.not24.6, i64 0, i64 64
  %.1.6 = or i64 %57, %.1.5
  %.not24.7 = icmp eq i64 %36, %35
  %58 = select i1 %.not24.7, i64 0, i64 128
  %.1.7 = or i64 %58, %.1.6
  %.not24.8 = icmp eq i64 %34, %33
  %59 = select i1 %.not24.8, i64 0, i64 256
  %.1.8 = or i64 %59, %.1.7
  %.not24.9 = icmp eq i64 %32, %31
  %60 = select i1 %.not24.9, i64 0, i64 512
  %.1.9 = or i64 %60, %.1.8
  %.not24.10 = icmp eq i64 %30, %29
  %61 = select i1 %.not24.10, i64 0, i64 1024
  %.1.10 = or i64 %61, %.1.9
  %.not24.11 = icmp eq i64 %28, %27
  %62 = select i1 %.not24.11, i64 0, i64 2048
  %.1.11 = or i64 %62, %.1.10
  %.not24.12 = icmp eq i64 %26, %25
  %63 = select i1 %.not24.12, i64 0, i64 4096
  %.1.12 = or i64 %63, %.1.11
  %.not24.13 = icmp eq i64 %24, %23
  %64 = select i1 %.not24.13, i64 0, i64 8192
  %.1.13 = or i64 %64, %.1.12
  %.not24.14 = icmp eq i64 %22, %21
  %65 = select i1 %.not24.14, i64 0, i64 16384
  %.1.14 = or i64 %65, %.1.13
  %66 = getelementptr inbounds i8, ptr %3, i64 120
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %68 = getelementptr inbounds i8, ptr %4, i64 120
  %69 = load i64, ptr %68, align 8, !tbaa !5
  %.not24.15 = icmp eq i64 %67, %69
  %70 = select i1 %.not24.15, i64 0, i64 32768
  %.1.15 = or i64 %70, %.1.14
  %71 = getelementptr inbounds i8, ptr %3, i64 128
  %72 = load i64, ptr %71, align 16, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %4, i64 128
  %74 = load i64, ptr %73, align 16, !tbaa !5
  %.not24.16 = icmp eq i64 %72, %74
  %75 = select i1 %.not24.16, i64 0, i64 65536
  %.1.16 = or i64 %75, %.1.15
  %76 = getelementptr inbounds i8, ptr %3, i64 136
  %77 = load i64, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %4, i64 136
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %.not24.17 = icmp eq i64 %77, %79
  %80 = select i1 %.not24.17, i64 0, i64 131072
  %.1.17 = or i64 %80, %.1.16
  %81 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEl(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.1.17)
  %82 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %81, ptr noundef nonnull @.str)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %3) #5
  call void @llvm.stackrestore.p0(ptr %9)
  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

._crit_edge34:                                    ; preds = %96
  %83 = add nuw nsw i64 %.02235, 1
  %exitcond40.not = icmp eq i64 %83, 18
  br i1 %exitcond40.not, label %.preheader.loopexit38, label %.preheader28, !llvm.loop !11

84:                                               ; preds = %.preheader28, %96
  %.02132 = phi i64 [ 0, %.preheader28 ], [ %97, %96 ]
  %85 = getelementptr inbounds i64, ptr %10, i64 %.02132
  %86 = load i64, ptr %85, align 8, !tbaa !5
  %87 = and i64 %86, %18
  %.not26 = icmp eq i64 %87, 0
  br i1 %.not26, label %91, label %88

88:                                               ; preds = %84
  %89 = load i64, ptr %19, align 8, !tbaa !5
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %19, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %88, %84
  %92 = and i64 %.02132, %18
  %.not27 = icmp eq i64 %92, 0
  br i1 %.not27, label %96, label %93

93:                                               ; preds = %91
  %94 = load i64, ptr %20, align 8, !tbaa !5
  %95 = add nsw i64 %94, 1
  store i64 %95, ptr %20, align 8, !tbaa !5
  br label %96

96:                                               ; preds = %91, %93
  %97 = add nuw i64 %.02132, 1
  %exitcond.not = icmp eq i64 %.02132, %15
  br i1 %exitcond.not, label %._crit_edge34, label %84, !llvm.loop !12
}

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


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