; LLVM IR from lzyrapx/Competitive-Programming :: HDUOJ (2082（母函数）)

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

@c1 = external dso_local global [55 x i32], align 16
@c2 = external dso_local global [55 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #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
  %7 = alloca [27 x i32], align 16
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 108, ptr %7) #6
  call void @llvm.memset.p0.i64(ptr align 16 %7, i8 0, i64 108, i1 false)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  br label %9

9:                                                ; preds = %124, %0
  %10 = load i32, ptr %2, align 4, !tbaa !5
  %11 = add nsw i32 %10, -1
  store i32 %11, ptr %2, align 4, !tbaa !5
  %12 = icmp ne i32 %10, 0
  br i1 %12, label %13, label %128

13:                                               ; preds = %9
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %22, %13
  %15 = load i32, ptr %3, align 4, !tbaa !5
  %16 = icmp slt i32 %15, 27
  br i1 %16, label %17, label %25

17:                                               ; preds = %14
  %18 = load i32, ptr %3, align 4, !tbaa !5
  %19 = sext i32 %18 to i64
  %20 = getelementptr inbounds [27 x i32], ptr %7, i64 0, i64 %19
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  br label %22

22:                                               ; preds = %17
  %23 = load i32, ptr %3, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr %3, align 4, !tbaa !5
  br label %14, !llvm.loop !9

25:                                               ; preds = %14
  call void @llvm.memset.p0.i64(ptr align 16 @c2, i8 0, i64 220, i1 false)
  call void @llvm.memset.p0.i64(ptr align 16 @c1, i8 0, i64 220, i1 false)
  store i32 0, ptr %3, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %40, %25
  %27 = load i32, ptr %3, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 51
  br i1 %28, label %29, label %34

29:                                               ; preds = %26
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = getelementptr inbounds [27 x i32], ptr %7, i64 0, i64 1
  %32 = load i32, ptr %31, align 4, !tbaa !5
  %33 = icmp sle i32 %30, %32
  br label %34

34:                                               ; preds = %29, %26
  %35 = phi i1 [ false, %26 ], [ %33, %29 ]
  br i1 %35, label %36, label %43

36:                                               ; preds = %34
  %37 = load i32, ptr %3, align 4, !tbaa !5
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %38
  store i32 1, ptr %39, align 4, !tbaa !5
  br label %40

40:                                               ; preds = %36
  %41 = load i32, ptr %3, align 4, !tbaa !5
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %3, align 4, !tbaa !5
  br label %26, !llvm.loop !11

43:                                               ; preds = %34
  store i32 2, ptr %3, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %107, %43
  %45 = load i32, ptr %3, align 4, !tbaa !5
  %46 = icmp sle i32 %45, 26
  br i1 %46, label %47, label %110

47:                                               ; preds = %44
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %48

48:                                               ; preds = %85, %47
  %49 = load i32, ptr %4, align 4, !tbaa !5
  %50 = icmp slt i32 %49, 51
  br i1 %50, label %51, label %88

51:                                               ; preds = %48
  store i32 0, ptr %5, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %80, %51
  %53 = load i32, ptr %4, align 4, !tbaa !5
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = add nsw i32 %53, %54
  %56 = icmp slt i32 %55, 51
  br i1 %56, label %57, label %66

57:                                               ; preds = %52
  %58 = load i32, ptr %5, align 4, !tbaa !5
  %59 = load i32, ptr %3, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds [27 x i32], ptr %7, i64 0, i64 %60
  %62 = load i32, ptr %61, align 4, !tbaa !5
  %63 = load i32, ptr %3, align 4, !tbaa !5
  %64 = mul nsw i32 %62, %63
  %65 = icmp sle i32 %58, %64
  br label %66

66:                                               ; preds = %57, %52
  %67 = phi i1 [ false, %52 ], [ %65, %57 ]
  br i1 %67, label %68, label %84

68:                                               ; preds = %66
  %69 = load i32, ptr %4, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %70
  %72 = load i32, ptr %71, align 4, !tbaa !5
  %73 = load i32, ptr %4, align 4, !tbaa !5
  %74 = load i32, ptr %5, align 4, !tbaa !5
  %75 = add nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [55 x i32], ptr @c2, i64 0, i64 %76
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, %72
  store i32 %79, ptr %77, align 4, !tbaa !5
  br label %80

80:                                               ; preds = %68
  %81 = load i32, ptr %3, align 4, !tbaa !5
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = add nsw i32 %82, %81
  store i32 %83, ptr %5, align 4, !tbaa !5
  br label %52, !llvm.loop !12

84:                                               ; preds = %66
  br label %85

85:                                               ; preds = %84
  %86 = load i32, ptr %4, align 4, !tbaa !5
  %87 = add nsw i32 %86, 1
  store i32 %87, ptr %4, align 4, !tbaa !5
  br label %48, !llvm.loop !13

88:                                               ; preds = %48
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %103, %88
  %90 = load i32, ptr %4, align 4, !tbaa !5
  %91 = icmp slt i32 %90, 51
  br i1 %91, label %92, label %106

92:                                               ; preds = %89
  %93 = load i32, ptr %4, align 4, !tbaa !5
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds [55 x i32], ptr @c2, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !5
  %97 = load i32, ptr %4, align 4, !tbaa !5
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %98
  store i32 %96, ptr %99, align 4, !tbaa !5
  %100 = load i32, ptr %4, align 4, !tbaa !5
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [55 x i32], ptr @c2, i64 0, i64 %101
  store i32 0, ptr %102, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %92
  %104 = load i32, ptr %4, align 4, !tbaa !5
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %4, align 4, !tbaa !5
  br label %89, !llvm.loop !14

106:                                              ; preds = %89
  br label %107

107:                                              ; preds = %106
  %108 = load i32, ptr %3, align 4, !tbaa !5
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %3, align 4, !tbaa !5
  br label %44, !llvm.loop !15

110:                                              ; preds = %44
  store i32 0, ptr %6, align 4, !tbaa !5
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %121, %110
  %112 = load i32, ptr %3, align 4, !tbaa !5
  %113 = icmp sle i32 %112, 50
  br i1 %113, label %114, label %124

114:                                              ; preds = %111
  %115 = load i32, ptr %3, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = load i32, ptr %6, align 4, !tbaa !5
  %120 = add nsw i32 %119, %118
  store i32 %120, ptr %6, align 4, !tbaa !5
  br label %121

121:                                              ; preds = %114
  %122 = load i32, ptr %3, align 4, !tbaa !5
  %123 = add nsw i32 %122, 1
  store i32 %123, ptr %3, align 4, !tbaa !5
  br label %111, !llvm.loop !16

124:                                              ; preds = %111
  %125 = load i32, ptr %6, align 4, !tbaa !5
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %125)
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  br label %9, !llvm.loop !17

128:                                              ; preds = %9
  call void @llvm.lifetime.end.p0(i64 108, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  ret i32 0
}

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = !{!"int", !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}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !10}
!16 = distinct !{!16, !10}
!17 = distinct !{!17, !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" }

@c1 = external dso_local local_unnamed_addr global [55 x i32], align 16
@c2 = external dso_local local_unnamed_addr global [55 x i32], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca [27 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #7
  call void @llvm.lifetime.start.p0(i64 108, ptr nonnull %2) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(108) %2, i8 0, i64 108, i1 false)
  %3 = 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)
  %4 = load i32, ptr %1, align 4, !tbaa !5
  %5 = add nsw i32 %4, -1
  store i32 %5, ptr %1, align 4, !tbaa !5
  %.not50 = icmp eq i32 %4, 0
  br i1 %.not50, label %._crit_edge, label %.preheader41.lr.ph

.preheader41.lr.ph:                               ; preds = %0
  %6 = getelementptr inbounds i8, ptr %2, i64 4
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %8 = getelementptr inbounds i8, ptr %2, i64 12
  %9 = getelementptr inbounds i8, ptr %2, i64 16
  %10 = getelementptr inbounds i8, ptr %2, i64 20
  %11 = getelementptr inbounds i8, ptr %2, i64 24
  %12 = getelementptr inbounds i8, ptr %2, i64 28
  %13 = getelementptr inbounds i8, ptr %2, i64 32
  %14 = getelementptr inbounds i8, ptr %2, i64 36
  %15 = getelementptr inbounds i8, ptr %2, i64 40
  %16 = getelementptr inbounds i8, ptr %2, i64 44
  %17 = getelementptr inbounds i8, ptr %2, i64 48
  %18 = getelementptr inbounds i8, ptr %2, i64 52
  %19 = getelementptr inbounds i8, ptr %2, i64 56
  %20 = getelementptr inbounds i8, ptr %2, i64 60
  %21 = getelementptr inbounds i8, ptr %2, i64 64
  %22 = getelementptr inbounds i8, ptr %2, i64 68
  %23 = getelementptr inbounds i8, ptr %2, i64 72
  %24 = getelementptr inbounds i8, ptr %2, i64 76
  %25 = getelementptr inbounds i8, ptr %2, i64 80
  %26 = getelementptr inbounds i8, ptr %2, i64 84
  %27 = getelementptr inbounds i8, ptr %2, i64 88
  %28 = getelementptr inbounds i8, ptr %2, i64 92
  %29 = getelementptr inbounds i8, ptr %2, i64 96
  %30 = getelementptr inbounds i8, ptr %2, i64 100
  %31 = getelementptr inbounds i8, ptr %2, i64 104
  br label %.preheader41

.preheader41:                                     ; preds = %.preheader41.lr.ph, %.preheader39.preheader
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %33 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %8)
  %35 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %36 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %11)
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %12)
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %13)
  %40 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %14)
  %41 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %42 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %16)
  %43 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %17)
  %44 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %18)
  %45 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %19)
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %20)
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %21)
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %22)
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %23)
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %24)
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %52 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %26)
  %53 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %27)
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %28)
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %29)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %30)
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %31)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(220) @c2, i8 0, i64 220, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(220) @c1, i8 0, i64 220, i1 false)
  %58 = load i32, ptr %6, align 4
  %59 = icmp sgt i32 %58, -1
  br i1 %59, label %.lr.ph.preheader, label %.preheader38.preheader

.lr.ph.preheader:                                 ; preds = %.preheader41
  %umin = call i32 @llvm.umin.i32(i32 %58, i32 50)
  %60 = add nuw nsw i32 %umin, 1
  %wide.trip.count = zext nneg i32 %60 to i64
  %min.iters.check = icmp ult i32 %58, 7
  br i1 %min.iters.check, label %.lr.ph.preheader82, label %vector.ph75

vector.ph75:                                      ; preds = %.lr.ph.preheader
  %n.vec = and i64 %wide.trip.count, 120
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr @c1, align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 16), align 16, !tbaa !5
  %61 = icmp eq i64 %n.vec, 8
  br i1 %61, label %middle.block73, label %vector.body77.1, !llvm.loop !9

vector.body77.1:                                  ; preds = %vector.ph75
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 32), align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 48), align 16, !tbaa !5
  %62 = icmp eq i64 %n.vec, 16
  br i1 %62, label %middle.block73, label %vector.body77.2, !llvm.loop !9

vector.body77.2:                                  ; preds = %vector.body77.1
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 64), align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 80), align 16, !tbaa !5
  %63 = icmp eq i64 %n.vec, 24
  br i1 %63, label %middle.block73, label %vector.body77.3, !llvm.loop !9

vector.body77.3:                                  ; preds = %vector.body77.2
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 96), align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 112), align 16, !tbaa !5
  %64 = icmp eq i64 %n.vec, 32
  br i1 %64, label %middle.block73, label %vector.body77.4, !llvm.loop !9

vector.body77.4:                                  ; preds = %vector.body77.3
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 128), align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 144), align 16, !tbaa !5
  %65 = icmp eq i64 %n.vec, 40
  br i1 %65, label %middle.block73, label %vector.body77.5, !llvm.loop !9

vector.body77.5:                                  ; preds = %vector.body77.4
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 160), align 16, !tbaa !5
  store <4 x i32> <i32 1, i32 1, i32 1, i32 1>, ptr getelementptr inbounds (i8, ptr @c1, i64 176), align 16, !tbaa !5
  br label %middle.block73

middle.block73:                                   ; preds = %vector.body77.5, %vector.body77.4, %vector.body77.3, %vector.body77.2, %vector.body77.1, %vector.ph75
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.preheader38.preheader, label %.lr.ph.preheader82

.lr.ph.preheader82:                               ; preds = %middle.block73, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block73 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader82, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader82 ]
  %66 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %indvars.iv
  store i32 1, ptr %66, align 4, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.preheader38.preheader, label %.lr.ph, !llvm.loop !13

.preheader38.preheader:                           ; preds = %.lr.ph, %middle.block73, %.preheader41
  br label %.preheader38

.preheader38:                                     ; preds = %.preheader38.preheader, %vector.body
  %indvars.iv53 = phi i64 [ %indvars.iv.next54, %vector.body ], [ 2, %.preheader38.preheader ]
  %67 = getelementptr inbounds [27 x i32], ptr %2, i64 0, i64 %indvars.iv53
  %68 = load i32, ptr %67, align 4, !tbaa !5
  %69 = trunc nuw nsw i64 %indvars.iv53 to i32
  %70 = mul nsw i32 %68, %69
  %71 = sext i32 %70 to i64
  br label %.preheader

.preheader:                                       ; preds = %.preheader38, %.critedge
  %indvars.iv58 = phi i64 [ 0, %.preheader38 ], [ %indvars.iv.next59, %.critedge ]
  %72 = getelementptr inbounds [55 x i32], ptr @c1, i64 0, i64 %indvars.iv58
  br label %73

73:                                               ; preds = %.preheader, %74
  %indvars.iv55 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next56, %74 ]
  %.not36 = icmp sgt i64 %indvars.iv55, %71
  br i1 %.not36, label %.critedge, label %74

74:                                               ; preds = %73
  %75 = add nuw nsw i64 %indvars.iv55, %indvars.iv58
  %76 = load i32, ptr %72, align 4, !tbaa !5
  %77 = getelementptr inbounds [55 x i32], ptr @c2, i64 0, i64 %75
  %78 = load i32, ptr %77, align 4, !tbaa !5
  %79 = add nsw i32 %78, %76
  store i32 %79, ptr %77, align 4, !tbaa !5
  %indvars.iv.next56 = add nuw nsw i64 %indvars.iv55, %indvars.iv53
  %80 = add nuw nsw i64 %indvars.iv.next56, %indvars.iv58
  %81 = icmp ult i64 %80, 51
  br i1 %81, label %73, label %.critedge, !llvm.loop !14

.critedge:                                        ; preds = %73, %74
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %exitcond61.not = icmp eq i64 %indvars.iv.next59, 51
  br i1 %exitcond61.not, label %vector.body, label %.preheader, !llvm.loop !15

vector.body:                                      ; preds = %.critedge
  %wide.load = load <4 x i32>, ptr @c2, align 16, !tbaa !5
  %wide.load72 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 16), align 16, !tbaa !5
  store <4 x i32> %wide.load, ptr @c1, align 16, !tbaa !5
  store <4 x i32> %wide.load72, ptr getelementptr inbounds (i8, ptr @c1, i64 16), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr @c2, align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 16), align 16, !tbaa !5
  %wide.load.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 32), align 16, !tbaa !5
  %wide.load72.1 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 48), align 16, !tbaa !5
  store <4 x i32> %wide.load.1, ptr getelementptr inbounds (i8, ptr @c1, i64 32), align 16, !tbaa !5
  store <4 x i32> %wide.load72.1, ptr getelementptr inbounds (i8, ptr @c1, i64 48), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 32), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 48), align 16, !tbaa !5
  %wide.load.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 64), align 16, !tbaa !5
  %wide.load72.2 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 80), align 16, !tbaa !5
  store <4 x i32> %wide.load.2, ptr getelementptr inbounds (i8, ptr @c1, i64 64), align 16, !tbaa !5
  store <4 x i32> %wide.load72.2, ptr getelementptr inbounds (i8, ptr @c1, i64 80), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 64), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 80), align 16, !tbaa !5
  %wide.load.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 96), align 16, !tbaa !5
  %wide.load72.3 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 112), align 16, !tbaa !5
  store <4 x i32> %wide.load.3, ptr getelementptr inbounds (i8, ptr @c1, i64 96), align 16, !tbaa !5
  store <4 x i32> %wide.load72.3, ptr getelementptr inbounds (i8, ptr @c1, i64 112), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 96), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 112), align 16, !tbaa !5
  %wide.load.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 128), align 16, !tbaa !5
  %wide.load72.4 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 144), align 16, !tbaa !5
  store <4 x i32> %wide.load.4, ptr getelementptr inbounds (i8, ptr @c1, i64 128), align 16, !tbaa !5
  store <4 x i32> %wide.load72.4, ptr getelementptr inbounds (i8, ptr @c1, i64 144), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 128), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 144), align 16, !tbaa !5
  %wide.load.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 160), align 16, !tbaa !5
  %wide.load72.5 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @c2, i64 176), align 16, !tbaa !5
  store <4 x i32> %wide.load.5, ptr getelementptr inbounds (i8, ptr @c1, i64 160), align 16, !tbaa !5
  store <4 x i32> %wide.load72.5, ptr getelementptr inbounds (i8, ptr @c1, i64 176), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 160), align 16, !tbaa !5
  store <4 x i32> zeroinitializer, ptr getelementptr inbounds (i8, ptr @c2, i64 176), align 16, !tbaa !5
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @c2, i64 192), align 16, !tbaa !5
  store i32 %82, ptr getelementptr inbounds (i8, ptr @c1, i64 192), align 16, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @c2, i64 192), align 16, !tbaa !5
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @c2, i64 196), align 4, !tbaa !5
  store i32 %83, ptr getelementptr inbounds (i8, ptr @c1, i64 196), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @c2, i64 196), align 4, !tbaa !5
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @c2, i64 200), align 8, !tbaa !5
  store i32 %84, ptr getelementptr inbounds (i8, ptr @c1, i64 200), align 8, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @c2, i64 200), align 8, !tbaa !5
  %indvars.iv.next54 = add nuw nsw i64 %indvars.iv53, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next54, 27
  br i1 %exitcond67.not, label %.preheader39.preheader, label %.preheader38, !llvm.loop !16

.preheader39.preheader:                           ; preds = %vector.body
  %85 = load <32 x i32>, ptr getelementptr inbounds (i8, ptr @c1, i64 4), align 4, !tbaa !5
  %86 = load <16 x i32>, ptr getelementptr inbounds (i8, ptr @c1, i64 132), align 4, !tbaa !5
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @c1, i64 196), align 4, !tbaa !5
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @c1, i64 200), align 8, !tbaa !5
  %89 = call i32 @llvm.vector.reduce.add.v32i32(<32 x i32> %85)
  %90 = call i32 @llvm.vector.reduce.add.v16i32(<16 x i32> %86)
  %op.rdx = add i32 %89, %90
  %op.rdx80 = add i32 %op.rdx, %87
  %op.rdx81 = add i32 %op.rdx80, %88
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %op.rdx81)
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %91, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %93 = load i32, ptr %1, align 4, !tbaa !5
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %1, align 4, !tbaa !5
  %.not = icmp eq i32 %93, 0
  br i1 %.not, label %._crit_edge, label %.preheader41, !llvm.loop !17

._crit_edge:                                      ; preds = %.preheader39.preheader, %0
  call void @llvm.lifetime.end.p0(i64 108, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #7
  ret i32 0
}

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

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

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 #3

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v32i32(<32 x i32>) #6

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v16i32(<16 x i32>) #6

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

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

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


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass