; LLVM IR from kazunetakahashi/atcoder :: 201610_12/1002_KUPC2016 (B)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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" }

@_Z1PB5cxx11 = external dso_local global [100010 x %"class.std::__cxx11::basic_string"], align 16
@a = external dso_local global [26 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 i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  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
  %12 = 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)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !5
  br label %14

14:                                               ; preds = %24, %0
  %15 = load i32, ptr %4, align 4, !tbaa !5
  %16 = load i32, ptr %2, align 4, !tbaa !5
  %17 = icmp slt i32 %15, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  br label %27

19:                                               ; preds = %14
  %20 = load i32, ptr %4, align 4, !tbaa !5
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds [100010 x %"class.std::__cxx11::basic_string"], ptr @_Z1PB5cxx11, i64 0, i64 %21
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %22)
  br label %24

24:                                               ; preds = %19
  %25 = load i32, ptr %4, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr %4, align 4, !tbaa !5
  br label %14, !llvm.loop !9

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef @a, ptr noundef getelementptr inbounds (i32, ptr @a, i64 26), ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  store i32 0, ptr %6, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %45, %27
  %29 = load i32, ptr %6, align 4, !tbaa !5
  %30 = load i32, ptr %2, align 4, !tbaa !5
  %31 = icmp slt i32 %29, %30
  br i1 %31, label %33, label %32

32:                                               ; preds = %28
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %48

33:                                               ; preds = %28
  %34 = load i32, ptr %6, align 4, !tbaa !5
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [100010 x %"class.std::__cxx11::basic_string"], ptr @_Z1PB5cxx11, i64 0, i64 %35
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %36, i64 noundef 0)
  %38 = load i8, ptr %37, align 1, !tbaa !11
  %39 = sext i8 %38 to i32
  %40 = sub nsw i32 %39, 65
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds [26 x i32], ptr @a, i64 0, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = add nsw i32 %43, 1
  store i32 %44, ptr %42, align 4, !tbaa !5
  br label %45

45:                                               ; preds = %33
  %46 = load i32, ptr %6, align 4, !tbaa !5
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %6, align 4, !tbaa !5
  br label %28, !llvm.loop !12

48:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  store i32 0, ptr %7, align 4, !tbaa !5
  br label %49

49:                                               ; preds = %89, %48
  br label %50

50:                                               ; preds = %49
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef @a, ptr noundef getelementptr inbounds (i32, ptr @a, i64 26))
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef @a, ptr noundef getelementptr inbounds (i32, ptr @a, i64 26))
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #6
  store i8 0, ptr %8, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %75, %50
  %52 = load i32, ptr %10, align 4, !tbaa !5
  %53 = icmp slt i32 %52, 26
  br i1 %53, label %55, label %54

54:                                               ; preds = %51
  store i32 10, ptr %11, align 4
  br label %78

55:                                               ; preds = %51
  %56 = load i32, ptr %10, align 4, !tbaa !5
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds [26 x i32], ptr @a, i64 0, i64 %57
  %59 = load i32, ptr %58, align 4, !tbaa !5
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %74

61:                                               ; preds = %55
  %62 = load i32, ptr %10, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds [26 x i32], ptr @a, i64 0, i64 %63
  %65 = load i32, ptr %64, align 4, !tbaa !5
  %66 = add nsw i32 %65, -1
  store i32 %66, ptr %64, align 4, !tbaa !5
  %67 = load i32, ptr %9, align 4, !tbaa !5
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %9, align 4, !tbaa !5
  %69 = load i32, ptr %9, align 4, !tbaa !5
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = icmp eq i32 %69, %70
  br i1 %71, label %72, label %73

72:                                               ; preds = %61
  store i8 1, ptr %8, align 1, !tbaa !13
  store i32 10, ptr %11, align 4
  br label %78

73:                                               ; preds = %61
  br label %74

74:                                               ; preds = %73, %55
  br label %75

75:                                               ; preds = %74
  %76 = load i32, ptr %10, align 4, !tbaa !5
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %10, align 4, !tbaa !5
  br label %51, !llvm.loop !15

78:                                               ; preds = %72, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  br label %79

79:                                               ; preds = %78
  %80 = load i8, ptr %8, align 1, !tbaa !13, !range !16, !noundef !17
  %81 = trunc i8 %80 to i1
  br i1 %81, label %82, label %85

82:                                               ; preds = %79
  %83 = load i32, ptr %7, align 4, !tbaa !5
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !5
  br label %86

85:                                               ; preds = %79
  store i32 9, ptr %11, align 4
  br label %87

86:                                               ; preds = %82
  store i32 0, ptr %11, align 4
  br label %87

87:                                               ; preds = %86, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #6
  %88 = load i32, ptr %11, align 4
  switch i32 %88, label %95 [
    i32 0, label %89
    i32 9, label %90
  ]

89:                                               ; preds = %87
  br label %49, !llvm.loop !18

90:                                               ; preds = %87
  %91 = load i32, ptr %7, align 4, !tbaa !5
  %92 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %91)
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %92, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %94 = load i32, ptr %1, align 4
  ret i32 %94

95:                                               ; preds = %87
  unreachable
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 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)) #3

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !10}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = distinct !{!18, !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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"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" }

@_Z1PB5cxx11 = external dso_local global [100010 x %"class.std::__cxx11::basic_string"], align 16
@a = external dso_local global [26 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 i32, align 4
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %4 = 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)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #6
  store i32 0, ptr %3, align 4, !tbaa !5
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull @a, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 104), ptr noundef nonnull align 4 dereferenceable(4) %3)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #6
  %8 = load i32, ptr %1, align 4, !tbaa !5
  %9 = icmp sgt i32 %8, 0
  br i1 %9, label %.lr.ph34, label %.preheader.preheader

.lr.ph:                                           ; preds = %0, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %0 ]
  %10 = getelementptr inbounds [100010 x %"class.std::__cxx11::basic_string"], ptr @_Z1PB5cxx11, i64 0, i64 %indvars.iv
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) %10)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %12 = load i32, ptr %1, align 4, !tbaa !5
  %13 = sext i32 %12 to i64
  %14 = icmp slt i64 %indvars.iv.next, %13
  br i1 %14, label %.lr.ph, label %._crit_edge, !llvm.loop !9

.lr.ph34:                                         ; preds = %._crit_edge, %.lr.ph34
  %indvars.iv38 = phi i64 [ %indvars.iv.next39, %.lr.ph34 ], [ 0, %._crit_edge ]
  %15 = getelementptr inbounds [100010 x %"class.std::__cxx11::basic_string"], ptr @_Z1PB5cxx11, i64 0, i64 %indvars.iv38
  %16 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %15, i64 noundef 0)
  %17 = load i8, ptr %16, align 1, !tbaa !11
  %18 = sext i8 %17 to i64
  %19 = add nsw i64 %18, -65
  %20 = getelementptr inbounds [26 x i32], ptr @a, i64 0, i64 %19
  %21 = load i32, ptr %20, align 4, !tbaa !5
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 4, !tbaa !5
  %indvars.iv.next39 = add nuw nsw i64 %indvars.iv38, 1
  %23 = load i32, ptr %1, align 4, !tbaa !5
  %24 = sext i32 %23 to i64
  %25 = icmp slt i64 %indvars.iv.next39, %24
  br i1 %25, label %.lr.ph34, label %.preheader.preheader, !llvm.loop !12

.preheader.preheader:                             ; preds = %.lr.ph34, %._crit_edge
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %.critedge
  %.020 = phi i32 [ %210, %.critedge ], [ 0, %.preheader.preheader ]
  call void @_ZSt4sortIPiEvT_S1_(ptr noundef nonnull @a, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 104))
  call void @_ZSt7reverseIPiEvT_S1_(ptr noundef nonnull @a, ptr noundef nonnull getelementptr inbounds (i8, ptr @a, i64 104))
  %26 = load i32, ptr %2, align 4
  %27 = load i32, ptr @a, align 16, !tbaa !5
  %28 = icmp sgt i32 %27, 0
  br i1 %28, label %29, label %32

29:                                               ; preds = %.preheader
  %30 = add nsw i32 %27, -1
  store i32 %30, ptr @a, align 16, !tbaa !5
  %31 = icmp eq i32 %26, 1
  br i1 %31, label %.critedge, label %32

32:                                               ; preds = %.preheader, %29
  %.1 = phi i32 [ 1, %29 ], [ 0, %.preheader ]
  %33 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %39

35:                                               ; preds = %32
  %36 = add nsw i32 %33, -1
  store i32 %36, ptr getelementptr inbounds (i8, ptr @a, i64 4), align 4, !tbaa !5
  %37 = add nuw nsw i32 %.1, 1
  %38 = icmp eq i32 %37, %26
  br i1 %38, label %.critedge, label %39

39:                                               ; preds = %35, %32
  %.1.1 = phi i32 [ %37, %35 ], [ %.1, %32 ]
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !5
  %41 = icmp sgt i32 %40, 0
  br i1 %41, label %42, label %46

42:                                               ; preds = %39
  %43 = add nsw i32 %40, -1
  store i32 %43, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !5
  %44 = add nuw nsw i32 %.1.1, 1
  %45 = icmp eq i32 %44, %26
  br i1 %45, label %.critedge, label %46

46:                                               ; preds = %42, %39
  %.1.2 = phi i32 [ %44, %42 ], [ %.1.1, %39 ]
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 12), align 4, !tbaa !5
  %48 = icmp sgt i32 %47, 0
  br i1 %48, label %49, label %53

49:                                               ; preds = %46
  %50 = add nsw i32 %47, -1
  store i32 %50, ptr getelementptr inbounds (i8, ptr @a, i64 12), align 4, !tbaa !5
  %51 = add nuw nsw i32 %.1.2, 1
  %52 = icmp eq i32 %51, %26
  br i1 %52, label %.critedge, label %53

53:                                               ; preds = %49, %46
  %.1.3 = phi i32 [ %51, %49 ], [ %.1.2, %46 ]
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !5
  %55 = icmp sgt i32 %54, 0
  br i1 %55, label %56, label %60

56:                                               ; preds = %53
  %57 = add nsw i32 %54, -1
  store i32 %57, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !5
  %58 = add nuw nsw i32 %.1.3, 1
  %59 = icmp eq i32 %58, %26
  br i1 %59, label %.critedge, label %60

60:                                               ; preds = %56, %53
  %.1.4 = phi i32 [ %58, %56 ], [ %.1.3, %53 ]
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 20), align 4, !tbaa !5
  %62 = icmp sgt i32 %61, 0
  br i1 %62, label %63, label %67

63:                                               ; preds = %60
  %64 = add nsw i32 %61, -1
  store i32 %64, ptr getelementptr inbounds (i8, ptr @a, i64 20), align 4, !tbaa !5
  %65 = add nuw nsw i32 %.1.4, 1
  %66 = icmp eq i32 %65, %26
  br i1 %66, label %.critedge, label %67

67:                                               ; preds = %63, %60
  %.1.5 = phi i32 [ %65, %63 ], [ %.1.4, %60 ]
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !5
  %69 = icmp sgt i32 %68, 0
  br i1 %69, label %70, label %74

70:                                               ; preds = %67
  %71 = add nsw i32 %68, -1
  store i32 %71, ptr getelementptr inbounds (i8, ptr @a, i64 24), align 8, !tbaa !5
  %72 = add nuw nsw i32 %.1.5, 1
  %73 = icmp eq i32 %72, %26
  br i1 %73, label %.critedge, label %74

74:                                               ; preds = %70, %67
  %.1.6 = phi i32 [ %72, %70 ], [ %.1.5, %67 ]
  %75 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 28), align 4, !tbaa !5
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %74
  %78 = add nsw i32 %75, -1
  store i32 %78, ptr getelementptr inbounds (i8, ptr @a, i64 28), align 4, !tbaa !5
  %79 = add nuw nsw i32 %.1.6, 1
  %80 = icmp eq i32 %79, %26
  br i1 %80, label %.critedge, label %81

81:                                               ; preds = %77, %74
  %.1.7 = phi i32 [ %79, %77 ], [ %.1.6, %74 ]
  %82 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !5
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %84, label %88

84:                                               ; preds = %81
  %85 = add nsw i32 %82, -1
  store i32 %85, ptr getelementptr inbounds (i8, ptr @a, i64 32), align 16, !tbaa !5
  %86 = add nuw nsw i32 %.1.7, 1
  %87 = icmp eq i32 %86, %26
  br i1 %87, label %.critedge, label %88

88:                                               ; preds = %84, %81
  %.1.8 = phi i32 [ %86, %84 ], [ %.1.7, %81 ]
  %89 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 36), align 4, !tbaa !5
  %90 = icmp sgt i32 %89, 0
  br i1 %90, label %91, label %95

91:                                               ; preds = %88
  %92 = add nsw i32 %89, -1
  store i32 %92, ptr getelementptr inbounds (i8, ptr @a, i64 36), align 4, !tbaa !5
  %93 = add nuw nsw i32 %.1.8, 1
  %94 = icmp eq i32 %93, %26
  br i1 %94, label %.critedge, label %95

95:                                               ; preds = %91, %88
  %.1.9 = phi i32 [ %93, %91 ], [ %.1.8, %88 ]
  %96 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !5
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %98, label %102

98:                                               ; preds = %95
  %99 = add nsw i32 %96, -1
  store i32 %99, ptr getelementptr inbounds (i8, ptr @a, i64 40), align 8, !tbaa !5
  %100 = add nuw nsw i32 %.1.9, 1
  %101 = icmp eq i32 %100, %26
  br i1 %101, label %.critedge, label %102

102:                                              ; preds = %98, %95
  %.1.10 = phi i32 [ %100, %98 ], [ %.1.9, %95 ]
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 44), align 4, !tbaa !5
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %109

105:                                              ; preds = %102
  %106 = add nsw i32 %103, -1
  store i32 %106, ptr getelementptr inbounds (i8, ptr @a, i64 44), align 4, !tbaa !5
  %107 = add nuw nsw i32 %.1.10, 1
  %108 = icmp eq i32 %107, %26
  br i1 %108, label %.critedge, label %109

109:                                              ; preds = %105, %102
  %.1.11 = phi i32 [ %107, %105 ], [ %.1.10, %102 ]
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !5
  %111 = icmp sgt i32 %110, 0
  br i1 %111, label %112, label %116

112:                                              ; preds = %109
  %113 = add nsw i32 %110, -1
  store i32 %113, ptr getelementptr inbounds (i8, ptr @a, i64 48), align 16, !tbaa !5
  %114 = add nuw nsw i32 %.1.11, 1
  %115 = icmp eq i32 %114, %26
  br i1 %115, label %.critedge, label %116

116:                                              ; preds = %112, %109
  %.1.12 = phi i32 [ %114, %112 ], [ %.1.11, %109 ]
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 52), align 4, !tbaa !5
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %119, label %123

119:                                              ; preds = %116
  %120 = add nsw i32 %117, -1
  store i32 %120, ptr getelementptr inbounds (i8, ptr @a, i64 52), align 4, !tbaa !5
  %121 = add nuw nsw i32 %.1.12, 1
  %122 = icmp eq i32 %121, %26
  br i1 %122, label %.critedge, label %123

123:                                              ; preds = %119, %116
  %.1.13 = phi i32 [ %121, %119 ], [ %.1.12, %116 ]
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !5
  %125 = icmp sgt i32 %124, 0
  br i1 %125, label %126, label %130

126:                                              ; preds = %123
  %127 = add nsw i32 %124, -1
  store i32 %127, ptr getelementptr inbounds (i8, ptr @a, i64 56), align 8, !tbaa !5
  %128 = add nuw nsw i32 %.1.13, 1
  %129 = icmp eq i32 %128, %26
  br i1 %129, label %.critedge, label %130

130:                                              ; preds = %126, %123
  %.1.14 = phi i32 [ %128, %126 ], [ %.1.13, %123 ]
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 60), align 4, !tbaa !5
  %132 = icmp sgt i32 %131, 0
  br i1 %132, label %133, label %137

133:                                              ; preds = %130
  %134 = add nsw i32 %131, -1
  store i32 %134, ptr getelementptr inbounds (i8, ptr @a, i64 60), align 4, !tbaa !5
  %135 = add nuw nsw i32 %.1.14, 1
  %136 = icmp eq i32 %135, %26
  br i1 %136, label %.critedge, label %137

137:                                              ; preds = %133, %130
  %.1.15 = phi i32 [ %135, %133 ], [ %.1.14, %130 ]
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !5
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %140, label %144

140:                                              ; preds = %137
  %141 = add nsw i32 %138, -1
  store i32 %141, ptr getelementptr inbounds (i8, ptr @a, i64 64), align 16, !tbaa !5
  %142 = add nuw nsw i32 %.1.15, 1
  %143 = icmp eq i32 %142, %26
  br i1 %143, label %.critedge, label %144

144:                                              ; preds = %140, %137
  %.1.16 = phi i32 [ %142, %140 ], [ %.1.15, %137 ]
  %145 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 68), align 4, !tbaa !5
  %146 = icmp sgt i32 %145, 0
  br i1 %146, label %147, label %151

147:                                              ; preds = %144
  %148 = add nsw i32 %145, -1
  store i32 %148, ptr getelementptr inbounds (i8, ptr @a, i64 68), align 4, !tbaa !5
  %149 = add nuw nsw i32 %.1.16, 1
  %150 = icmp eq i32 %149, %26
  br i1 %150, label %.critedge, label %151

151:                                              ; preds = %147, %144
  %.1.17 = phi i32 [ %149, %147 ], [ %.1.16, %144 ]
  %152 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !5
  %153 = icmp sgt i32 %152, 0
  br i1 %153, label %154, label %158

154:                                              ; preds = %151
  %155 = add nsw i32 %152, -1
  store i32 %155, ptr getelementptr inbounds (i8, ptr @a, i64 72), align 8, !tbaa !5
  %156 = add nuw nsw i32 %.1.17, 1
  %157 = icmp eq i32 %156, %26
  br i1 %157, label %.critedge, label %158

158:                                              ; preds = %154, %151
  %.1.18 = phi i32 [ %156, %154 ], [ %.1.17, %151 ]
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 76), align 4, !tbaa !5
  %160 = icmp sgt i32 %159, 0
  br i1 %160, label %161, label %165

161:                                              ; preds = %158
  %162 = add nsw i32 %159, -1
  store i32 %162, ptr getelementptr inbounds (i8, ptr @a, i64 76), align 4, !tbaa !5
  %163 = add nuw nsw i32 %.1.18, 1
  %164 = icmp eq i32 %163, %26
  br i1 %164, label %.critedge, label %165

165:                                              ; preds = %161, %158
  %.1.19 = phi i32 [ %163, %161 ], [ %.1.18, %158 ]
  %166 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !5
  %167 = icmp sgt i32 %166, 0
  br i1 %167, label %168, label %172

168:                                              ; preds = %165
  %169 = add nsw i32 %166, -1
  store i32 %169, ptr getelementptr inbounds (i8, ptr @a, i64 80), align 16, !tbaa !5
  %170 = add nuw nsw i32 %.1.19, 1
  %171 = icmp eq i32 %170, %26
  br i1 %171, label %.critedge, label %172

172:                                              ; preds = %168, %165
  %.1.20 = phi i32 [ %170, %168 ], [ %.1.19, %165 ]
  %173 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 84), align 4, !tbaa !5
  %174 = icmp sgt i32 %173, 0
  br i1 %174, label %175, label %179

175:                                              ; preds = %172
  %176 = add nsw i32 %173, -1
  store i32 %176, ptr getelementptr inbounds (i8, ptr @a, i64 84), align 4, !tbaa !5
  %177 = add nuw nsw i32 %.1.20, 1
  %178 = icmp eq i32 %177, %26
  br i1 %178, label %.critedge, label %179

179:                                              ; preds = %175, %172
  %.1.21 = phi i32 [ %177, %175 ], [ %.1.20, %172 ]
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !5
  %181 = icmp sgt i32 %180, 0
  br i1 %181, label %182, label %186

182:                                              ; preds = %179
  %183 = add nsw i32 %180, -1
  store i32 %183, ptr getelementptr inbounds (i8, ptr @a, i64 88), align 8, !tbaa !5
  %184 = add nuw nsw i32 %.1.21, 1
  %185 = icmp eq i32 %184, %26
  br i1 %185, label %.critedge, label %186

186:                                              ; preds = %182, %179
  %.1.22 = phi i32 [ %184, %182 ], [ %.1.21, %179 ]
  %187 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 92), align 4, !tbaa !5
  %188 = icmp sgt i32 %187, 0
  br i1 %188, label %189, label %193

189:                                              ; preds = %186
  %190 = add nsw i32 %187, -1
  store i32 %190, ptr getelementptr inbounds (i8, ptr @a, i64 92), align 4, !tbaa !5
  %191 = add nuw nsw i32 %.1.22, 1
  %192 = icmp eq i32 %191, %26
  br i1 %192, label %.critedge, label %193

193:                                              ; preds = %189, %186
  %.1.23 = phi i32 [ %191, %189 ], [ %.1.22, %186 ]
  %194 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 96), align 16, !tbaa !5
  %195 = icmp sgt i32 %194, 0
  br i1 %195, label %196, label %200

196:                                              ; preds = %193
  %197 = add nsw i32 %194, -1
  store i32 %197, ptr getelementptr inbounds (i8, ptr @a, i64 96), align 16, !tbaa !5
  %198 = add nuw nsw i32 %.1.23, 1
  %199 = icmp eq i32 %198, %26
  br i1 %199, label %.critedge, label %200

200:                                              ; preds = %196, %193
  %.1.24 = phi i32 [ %198, %196 ], [ %.1.23, %193 ]
  %201 = load i32, ptr getelementptr inbounds (i8, ptr @a, i64 100), align 4, !tbaa !5
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %203, label %207

203:                                              ; preds = %200
  %204 = add nsw i32 %201, -1
  store i32 %204, ptr getelementptr inbounds (i8, ptr @a, i64 100), align 4, !tbaa !5
  %205 = add nuw nsw i32 %.1.24, 1
  %206 = icmp eq i32 %205, %26
  br i1 %206, label %.critedge, label %207

207:                                              ; preds = %203, %200
  %208 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef %.020)
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %208, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #6
  ret i32 0

.critedge:                                        ; preds = %203, %196, %189, %182, %175, %168, %161, %154, %147, %140, %133, %126, %119, %112, %105, %98, %91, %84, %77, %70, %63, %56, %49, %42, %35, %29
  %210 = add nuw nsw i32 %.020, 1
  br label %.preheader
}

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

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt4sortIPiEvT_S1_(ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIPiEvT_S1_(ptr noundef, ptr noundef) 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 #2

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

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !10}


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