; LLVM IR from AdarshGaur/Competitive-Programming :: Codechef/Random Problems (Super Hashing)

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

@dp = external dso_local global [53 x [53 x [1380 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 [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i32, align 4
  %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 i64, align 8
  store i32 0, ptr %1, align 4
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %11 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %12 = getelementptr i8, ptr %11, i64 -24
  %13 = load i64, ptr %12, align 8
  %14 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %13
  %15 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %14, ptr noundef null)
  %16 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %18
  %20 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  store i64 1, ptr getelementptr inbounds ([1380 x i64], ptr getelementptr inbounds ([53 x [1380 x i64]], ptr getelementptr inbounds ([53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 1), i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !8
  store i64 1, ptr getelementptr inbounds ([53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 1), align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 2, ptr %2, align 8, !tbaa !8
  br label %21

21:                                               ; preds = %92, %0
  %22 = load i64, ptr %2, align 8, !tbaa !8
  %23 = icmp slt i64 %22, 53
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 2, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %95

25:                                               ; preds = %21
  %26 = load i64, ptr %2, align 8, !tbaa !8
  %27 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %26
  %28 = getelementptr inbounds [53 x [1380 x i64]], ptr %27, i64 0, i64 0
  %29 = getelementptr inbounds [1380 x i64], ptr %28, i64 0, i64 0
  store i64 1, ptr %29, align 16, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 1, ptr %4, align 8, !tbaa !8
  br label %30

30:                                               ; preds = %88, %25
  %31 = load i64, ptr %4, align 8, !tbaa !8
  %32 = load i64, ptr %2, align 8, !tbaa !8
  %33 = icmp sle i64 %31, %32
  br i1 %33, label %35, label %34

34:                                               ; preds = %30
  store i32 5, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %91

35:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 1, ptr %5, align 8, !tbaa !8
  br label %36

36:                                               ; preds = %84, %35
  %37 = load i64, ptr %5, align 8, !tbaa !8
  %38 = icmp slt i64 %37, 1380
  br i1 %38, label %40, label %39

39:                                               ; preds = %36
  store i32 8, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %87

40:                                               ; preds = %36
  %41 = load i64, ptr %2, align 8, !tbaa !8
  %42 = sub nsw i64 %41, 1
  %43 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %42
  %44 = load i64, ptr %4, align 8, !tbaa !8
  %45 = getelementptr inbounds [53 x [1380 x i64]], ptr %43, i64 0, i64 %44
  %46 = load i64, ptr %5, align 8, !tbaa !8
  %47 = getelementptr inbounds [1380 x i64], ptr %45, i64 0, i64 %46
  %48 = load i64, ptr %47, align 8, !tbaa !8
  %49 = load i64, ptr %2, align 8, !tbaa !8
  %50 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %49
  %51 = load i64, ptr %4, align 8, !tbaa !8
  %52 = getelementptr inbounds [53 x [1380 x i64]], ptr %50, i64 0, i64 %51
  %53 = load i64, ptr %5, align 8, !tbaa !8
  %54 = getelementptr inbounds [1380 x i64], ptr %52, i64 0, i64 %53
  store i64 %48, ptr %54, align 8, !tbaa !8
  %55 = load i64, ptr %5, align 8, !tbaa !8
  %56 = load i64, ptr %2, align 8, !tbaa !8
  %57 = sub nsw i64 %55, %56
  %58 = icmp sge i64 %57, 0
  br i1 %58, label %59, label %83

59:                                               ; preds = %40
  %60 = load i64, ptr %4, align 8, !tbaa !8
  %61 = sub nsw i64 %60, 1
  %62 = icmp sge i64 %61, 0
  br i1 %62, label %63, label %83

63:                                               ; preds = %59
  %64 = load i64, ptr %2, align 8, !tbaa !8
  %65 = sub nsw i64 %64, 1
  %66 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %65
  %67 = load i64, ptr %4, align 8, !tbaa !8
  %68 = sub nsw i64 %67, 1
  %69 = getelementptr inbounds [53 x [1380 x i64]], ptr %66, i64 0, i64 %68
  %70 = load i64, ptr %5, align 8, !tbaa !8
  %71 = load i64, ptr %2, align 8, !tbaa !8
  %72 = sub nsw i64 %70, %71
  %73 = getelementptr inbounds [1380 x i64], ptr %69, i64 0, i64 %72
  %74 = load i64, ptr %73, align 8, !tbaa !8
  %75 = load i64, ptr %2, align 8, !tbaa !8
  %76 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %75
  %77 = load i64, ptr %4, align 8, !tbaa !8
  %78 = getelementptr inbounds [53 x [1380 x i64]], ptr %76, i64 0, i64 %77
  %79 = load i64, ptr %5, align 8, !tbaa !8
  %80 = getelementptr inbounds [1380 x i64], ptr %78, i64 0, i64 %79
  %81 = load i64, ptr %80, align 8, !tbaa !8
  %82 = add nsw i64 %81, %74
  store i64 %82, ptr %80, align 8, !tbaa !8
  br label %83

83:                                               ; preds = %63, %59, %40
  br label %84

84:                                               ; preds = %83
  %85 = load i64, ptr %5, align 8, !tbaa !8
  %86 = add nsw i64 %85, 1
  store i64 %86, ptr %5, align 8, !tbaa !8
  br label %36, !llvm.loop !11

87:                                               ; preds = %39
  br label %88

88:                                               ; preds = %87
  %89 = load i64, ptr %4, align 8, !tbaa !8
  %90 = add nsw i64 %89, 1
  store i64 %90, ptr %4, align 8, !tbaa !8
  br label %30, !llvm.loop !13

91:                                               ; preds = %34
  br label %92

92:                                               ; preds = %91
  %93 = load i64, ptr %2, align 8, !tbaa !8
  %94 = add nsw i64 %93, 1
  store i64 %94, ptr %2, align 8, !tbaa !8
  br label %21, !llvm.loop !14

95:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %96 = 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 1, ptr %7, align 8, !tbaa !8
  br label %97

97:                                               ; preds = %128, %95
  %98 = load i64, ptr %7, align 8, !tbaa !8
  %99 = load i64, ptr %6, align 8, !tbaa !8
  %100 = icmp sle i64 %98, %99
  br i1 %100, label %102, label %101

101:                                              ; preds = %97
  store i32 11, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %131

102:                                              ; preds = %97
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %104 = load i64, ptr %7, align 8, !tbaa !8
  %105 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %103, i64 noundef %104)
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %105, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %108 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef nonnull align 8 dereferenceable(8) %9)
  %109 = load i64, ptr %9, align 8, !tbaa !8
  %110 = icmp sgt i64 %109, 1378
  br i1 %110, label %114, label %111

111:                                              ; preds = %102
  %112 = load i64, ptr %8, align 8, !tbaa !8
  %113 = icmp sgt i64 %112, 53
  br i1 %113, label %114, label %117

114:                                              ; preds = %111, %102
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef @.str.2)
  store i32 13, ptr %3, align 4
  br label %125

117:                                              ; preds = %111
  %118 = load i64, ptr %8, align 8, !tbaa !8
  %119 = getelementptr inbounds [53 x [1380 x i64]], ptr getelementptr inbounds ([53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 52), i64 0, i64 %118
  %120 = load i64, ptr %9, align 8, !tbaa !8
  %121 = getelementptr inbounds [1380 x i64], ptr %119, i64 0, i64 %120
  %122 = load i64, ptr %121, align 8, !tbaa !8
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %122)
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %123, ptr noundef @.str.2)
  store i32 0, ptr %3, align 4
  br label %125

125:                                              ; preds = %117, %114
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %126 = load i32, ptr %3, align 4
  switch i32 %126, label %133 [
    i32 0, label %127
    i32 13, label %128
  ]

127:                                              ; preds = %125
  br label %128

128:                                              ; preds = %127, %125
  %129 = load i64, ptr %7, align 8, !tbaa !8
  %130 = add nsw i64 %129, 1
  store i64 %130, ptr %7, align 8, !tbaa !8
  br label %97, !llvm.loop !15

131:                                              ; preds = %101
  store i32 0, ptr %1, align 4
  store i32 1, ptr %3, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  %132 = load i32, ptr %1, align 4
  ret i32 %132

133:                                              ; preds = %125
  unreachable
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) #2 align 2

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #1

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !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"

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

@dp = external dso_local local_unnamed_addr global [53 x [53 x [1380 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 [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = load ptr, ptr @_ZSt4cout, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt4cout, i64 %12
  %14 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 596168), align 8, !tbaa !8
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 585120), align 16, !tbaa !8
  br label %18

15:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %17 = load i64, ptr %1, align 8, !tbaa !8
  %.not40 = icmp slt i64 %17, 1
  br i1 %.not40, label %._crit_edge, label %.lr.ph

18:                                               ; preds = %0, %22
  %indvars.iv = phi i64 [ 3, %0 ], [ %indvars.iv.next, %22 ]
  %.03139 = phi i64 [ 2, %0 ], [ %23, %22 ]
  %19 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %.03139
  store i64 1, ptr %19, align 16, !tbaa !8
  %20 = add nsw i64 %.03139, -1
  br label %.preheader

.preheader:                                       ; preds = %18, %24
  %.03038 = phi i64 [ 1, %18 ], [ %25, %24 ]
  %21 = add nsw i64 %.03038, -1
  br label %26

22:                                               ; preds = %24
  %23 = add nuw nsw i64 %.03139, 1
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond45.not = icmp eq i64 %indvars.iv.next, 54
  br i1 %exitcond45.not, label %15, label %18, !llvm.loop !11

24:                                               ; preds = %36
  %25 = add nuw nsw i64 %.03038, 1
  %exitcond44.not = icmp eq i64 %25, %indvars.iv
  br i1 %exitcond44.not, label %22, label %.preheader, !llvm.loop !13

26:                                               ; preds = %.preheader, %36
  %.02937 = phi i64 [ 1, %.preheader ], [ %37, %36 ]
  %27 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %20, i64 %.03038, i64 %.02937
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %29 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %.03139, i64 %.03038, i64 %.02937
  store i64 %28, ptr %29, align 8, !tbaa !8
  %30 = sub nsw i64 %.02937, %.03139
  %31 = icmp sgt i64 %30, -1
  br i1 %31, label %32, label %36

32:                                               ; preds = %26
  %33 = getelementptr inbounds [53 x [53 x [1380 x i64]]], ptr @dp, i64 0, i64 %20, i64 %21, i64 %30
  %34 = load i64, ptr %33, align 8, !tbaa !8
  %35 = add nsw i64 %34, %28
  store i64 %35, ptr %29, align 8, !tbaa !8
  br label %36

36:                                               ; preds = %26, %32
  %37 = add nuw nsw i64 %.02937, 1
  %exitcond.not = icmp eq i64 %37, 1380
  br i1 %exitcond.not, label %24, label %26, !llvm.loop !14

._crit_edge:                                      ; preds = %53, %15
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0

.lr.ph:                                           ; preds = %15, %53
  %.041 = phi i64 [ %55, %53 ], [ 1, %15 ]
  %38 = 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)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) %38, i64 noundef %.041)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %41, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %43 = load i64, ptr %3, align 8, !tbaa !8
  %44 = icmp sgt i64 %43, 1378
  %45 = load i64, ptr %2, align 8
  %46 = icmp sgt i64 %45, 53
  %or.cond = select i1 %44, i1 true, i1 %46
  br i1 %or.cond, label %47, label %49

47:                                               ; preds = %.lr.ph
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef 0)
  br label %53

49:                                               ; preds = %.lr.ph
  %50 = getelementptr inbounds [53 x [1380 x i64]], ptr getelementptr inbounds (i8, ptr @dp, i64 30426240), i64 0, i64 %45, i64 %43
  %51 = load i64, ptr %50, align 8, !tbaa !8
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %51)
  br label %53

53:                                               ; preds = %49, %47
  %.sink = phi ptr [ %52, %49 ], [ %48, %47 ]
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %.sink, ptr noundef nonnull @.str.2)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  %55 = add nuw nsw i64 %.041, 1
  %56 = load i64, ptr %1, align 8, !tbaa !8
  %.not.not = icmp slt i64 %.041, %56
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !15
}

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264), ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #1

attributes #0 = { 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 #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"long long", !10, i64 0}
!10 = !{!"omnipotent char", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass