; LLVM IR from abeaumont/competitive-programming :: kattis (quickbrownfox)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::__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] }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca [26 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  %15 = 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)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %16 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %3)
          to label %17 unwind label %23

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

18:                                               ; preds = %140, %17
  %19 = load i32, ptr %6, align 4, !tbaa !5
  %20 = load i32, ptr %2, align 4, !tbaa !5
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %27, label %22

22:                                               ; preds = %18
  store i32 2, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %145

23:                                               ; preds = %0
  %24 = landingpad { ptr, i32 }
          cleanup
  %25 = extractvalue { ptr, i32 } %24, 0
  store ptr %25, ptr %4, align 8
  %26 = extractvalue { ptr, i32 } %24, 1
  store i32 %26, ptr %5, align 4
  br label %147

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 26, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !5
  br label %28

28:                                               ; preds = %36, %27
  %29 = load i32, ptr %9, align 4, !tbaa !5
  %30 = icmp slt i32 %29, 26
  br i1 %30, label %32, label %31

31:                                               ; preds = %28
  store i32 5, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %39

32:                                               ; preds = %28
  %33 = load i32, ptr %9, align 4, !tbaa !5
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [26 x i8], ptr %8, i64 0, i64 %34
  store i8 0, ptr %35, align 1, !tbaa !9
  br label %36

36:                                               ; preds = %32
  %37 = load i32, ptr %9, align 4, !tbaa !5
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %9, align 4, !tbaa !5
  br label %28, !llvm.loop !11

39:                                               ; preds = %31
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %3)
          to label %41 unwind label %48

41:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !5
  br label %42

42:                                               ; preds = %79, %41
  %43 = load i32, ptr %10, align 4, !tbaa !5
  %44 = sext i32 %43 to i64
  %45 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  %46 = icmp ult i64 %44, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %42
  store i32 8, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %82

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %4, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %5, align 4
  br label %144

52:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #7
  %53 = load i32, ptr %10, align 4, !tbaa !5
  %54 = sext i32 %53 to i64
  %55 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %54)
          to label %56 unwind label %74

56:                                               ; preds = %52
  %57 = load i8, ptr %55, align 1, !tbaa !13
  %58 = sext i8 %57 to i32
  %59 = call i32 @tolower(i32 noundef %58) #8
  %60 = trunc i32 %59 to i8
  store i8 %60, ptr %11, align 1, !tbaa !13
  %61 = load i8, ptr %11, align 1, !tbaa !13
  %62 = sext i8 %61 to i32
  %63 = icmp sge i32 %62, 97
  br i1 %63, label %64, label %78

64:                                               ; preds = %56
  %65 = load i8, ptr %11, align 1, !tbaa !13
  %66 = sext i8 %65 to i32
  %67 = icmp sle i32 %66, 122
  br i1 %67, label %68, label %78

68:                                               ; preds = %64
  %69 = load i8, ptr %11, align 1, !tbaa !13
  %70 = sext i8 %69 to i32
  %71 = sub nsw i32 %70, 97
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [26 x i8], ptr %8, i64 0, i64 %72
  store i8 1, ptr %73, align 1, !tbaa !9
  br label %78

74:                                               ; preds = %52
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %4, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %144

78:                                               ; preds = %68, %64, %56
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #7
  br label %79

79:                                               ; preds = %78
  %80 = load i32, ptr %10, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %10, align 4, !tbaa !5
  br label %42, !llvm.loop !14

82:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  store i8 0, ptr %12, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %95, %82
  %84 = load i32, ptr %13, align 4, !tbaa !5
  %85 = icmp slt i32 %84, 26
  br i1 %85, label %87, label %86

86:                                               ; preds = %83
  store i32 11, ptr %7, align 4
  br label %98

87:                                               ; preds = %83
  %88 = load i32, ptr %13, align 4, !tbaa !5
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds [26 x i8], ptr %8, i64 0, i64 %89
  %91 = load i8, ptr %90, align 1, !tbaa !9, !range !15, !noundef !16
  %92 = trunc i8 %91 to i1
  br i1 %92, label %94, label %93

93:                                               ; preds = %87
  store i8 1, ptr %12, align 1, !tbaa !9
  store i32 11, ptr %7, align 4
  br label %98

94:                                               ; preds = %87
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %13, align 4, !tbaa !5
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %13, align 4, !tbaa !5
  br label %83, !llvm.loop !17

98:                                               ; preds = %93, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %99

99:                                               ; preds = %98
  %100 = load i8, ptr %12, align 1, !tbaa !9, !range !15, !noundef !16
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %136

102:                                              ; preds = %99
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %104 unwind label %109

104:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %130, %104
  %106 = load i32, ptr %14, align 4, !tbaa !5
  %107 = icmp slt i32 %106, 26
  br i1 %107, label %113, label %108

108:                                              ; preds = %105
  store i32 14, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %133

109:                                              ; preds = %136, %133, %102
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %4, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %5, align 4
  br label %143

113:                                              ; preds = %105
  %114 = load i32, ptr %14, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [26 x i8], ptr %8, i64 0, i64 %115
  %117 = load i8, ptr %116, align 1, !tbaa !9, !range !15, !noundef !16
  %118 = trunc i8 %117 to i1
  br i1 %118, label %129, label %119

119:                                              ; preds = %113
  %120 = load i32, ptr %14, align 4, !tbaa !5
  %121 = add nsw i32 97, %120
  %122 = trunc i32 %121 to i8
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %122)
          to label %124 unwind label %125

124:                                              ; preds = %119
  br label %129

125:                                              ; preds = %119
  %126 = landingpad { ptr, i32 }
          cleanup
  %127 = extractvalue { ptr, i32 } %126, 0
  store ptr %127, ptr %4, align 8
  %128 = extractvalue { ptr, i32 } %126, 1
  store i32 %128, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %143

129:                                              ; preds = %124, %113
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %14, align 4, !tbaa !5
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %14, align 4, !tbaa !5
  br label %105, !llvm.loop !18

133:                                              ; preds = %108
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %135 unwind label %109

135:                                              ; preds = %133
  br label %139

136:                                              ; preds = %99
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
          to label %138 unwind label %109

138:                                              ; preds = %136
  br label %139

139:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 26, ptr %8) #7
  br label %140

140:                                              ; preds = %139
  %141 = load i32, ptr %6, align 4, !tbaa !5
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %6, align 4, !tbaa !5
  br label %18, !llvm.loop !19

143:                                              ; preds = %125, %109
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %144

144:                                              ; preds = %143, %74, %48
  call void @llvm.lifetime.end.p0(i64 26, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  br label %147

145:                                              ; preds = %22
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  %146 = load i32, ptr %1, align 4
  ret i32 %146

147:                                              ; preds = %144, %23
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %4, align 8
  %150 = load i32, ptr %5, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

; 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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

!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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !12}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !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" }
%"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] }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca [26 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #8
  %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)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %5 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %2)
          to label %.preheader39 unwind label %58

.preheader39:                                     ; preds = %0
  %6 = load i32, ptr %1, align 4, !tbaa !5
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %.lr.ph45.preheader, label %._crit_edge

.lr.ph45.preheader:                               ; preds = %.preheader39
  %8 = getelementptr inbounds i8, ptr %3, i64 1
  %9 = getelementptr inbounds i8, ptr %3, i64 2
  %10 = getelementptr inbounds i8, ptr %3, i64 3
  %11 = getelementptr inbounds i8, ptr %3, i64 4
  %12 = getelementptr inbounds i8, ptr %3, i64 5
  %13 = getelementptr inbounds i8, ptr %3, i64 6
  %14 = getelementptr inbounds i8, ptr %3, i64 7
  %15 = getelementptr inbounds i8, ptr %3, i64 8
  %16 = getelementptr inbounds i8, ptr %3, i64 9
  %17 = getelementptr inbounds i8, ptr %3, i64 10
  %18 = getelementptr inbounds i8, ptr %3, i64 11
  %19 = getelementptr inbounds i8, ptr %3, i64 12
  %20 = getelementptr inbounds i8, ptr %3, i64 13
  %21 = getelementptr inbounds i8, ptr %3, i64 14
  %22 = getelementptr inbounds i8, ptr %3, i64 15
  %23 = getelementptr inbounds i8, ptr %3, i64 16
  %24 = getelementptr inbounds i8, ptr %3, i64 17
  %25 = getelementptr inbounds i8, ptr %3, i64 18
  %26 = getelementptr inbounds i8, ptr %3, i64 19
  %27 = getelementptr inbounds i8, ptr %3, i64 20
  %28 = getelementptr inbounds i8, ptr %3, i64 21
  %29 = getelementptr inbounds i8, ptr %3, i64 22
  %30 = getelementptr inbounds i8, ptr %3, i64 23
  %31 = getelementptr inbounds i8, ptr %3, i64 24
  %32 = getelementptr inbounds i8, ptr %3, i64 25
  %33 = getelementptr inbounds i8, ptr %3, i64 1
  %34 = getelementptr inbounds i8, ptr %3, i64 2
  %35 = getelementptr inbounds i8, ptr %3, i64 3
  %36 = getelementptr inbounds i8, ptr %3, i64 4
  %37 = getelementptr inbounds i8, ptr %3, i64 5
  %38 = getelementptr inbounds i8, ptr %3, i64 6
  %39 = getelementptr inbounds i8, ptr %3, i64 7
  %40 = getelementptr inbounds i8, ptr %3, i64 8
  %41 = getelementptr inbounds i8, ptr %3, i64 9
  %42 = getelementptr inbounds i8, ptr %3, i64 10
  %43 = getelementptr inbounds i8, ptr %3, i64 11
  %44 = getelementptr inbounds i8, ptr %3, i64 12
  %45 = getelementptr inbounds i8, ptr %3, i64 13
  %46 = getelementptr inbounds i8, ptr %3, i64 14
  %47 = getelementptr inbounds i8, ptr %3, i64 15
  %48 = getelementptr inbounds i8, ptr %3, i64 16
  %49 = getelementptr inbounds i8, ptr %3, i64 17
  %50 = getelementptr inbounds i8, ptr %3, i64 18
  %51 = getelementptr inbounds i8, ptr %3, i64 19
  %52 = getelementptr inbounds i8, ptr %3, i64 20
  %53 = getelementptr inbounds i8, ptr %3, i64 21
  %54 = getelementptr inbounds i8, ptr %3, i64 22
  %55 = getelementptr inbounds i8, ptr %3, i64 23
  %56 = getelementptr inbounds i8, ptr %3, i64 24
  %57 = getelementptr inbounds i8, ptr %3, i64 25
  br label %.lr.ph45

._crit_edge:                                      ; preds = %266, %.preheader39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  ret i32 0

58:                                               ; preds = %0
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %271

.lr.ph45:                                         ; preds = %.lr.ph45.preheader, %266
  %.02844 = phi i32 [ %267, %266 ], [ 0, %.lr.ph45.preheader ]
  call void @llvm.lifetime.start.p0(i64 26, ptr nonnull %3) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(26) %3, i8 0, i64 26, i1 false), !tbaa !9
  %60 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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) %2)
          to label %.preheader38 unwind label %64

.preheader38:                                     ; preds = %.lr.ph45
  %61 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %.not = icmp eq i64 %61, 0
  br i1 %.not, label %.preheader37, label %.lr.ph

.preheader37:                                     ; preds = %75, %.preheader38
  %62 = load i8, ptr %3, align 16, !tbaa !9, !range !11, !noundef !12
  %63 = trunc nuw i8 %62 to i1
  br i1 %63, label %78, label %154

64:                                               ; preds = %.lr.ph45
  %65 = landingpad { ptr, i32 }
          cleanup
  br label %270

.lr.ph:                                           ; preds = %.preheader38, %75
  %indvars.iv = phi i64 [ %indvars.iv.next, %75 ], [ 0, %.preheader38 ]
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %2, i64 noundef %indvars.iv)
  %67 = load i8, ptr %66, align 1, !tbaa !13
  %68 = sext i8 %67 to i32
  %69 = call i32 @tolower(i32 noundef %68) #9
  %sext = shl i32 %69, 24
  %70 = ashr exact i32 %sext, 24
  %71 = add nsw i32 %70, -97
  %or.cond = icmp ult i32 %71, 26
  br i1 %or.cond, label %72, label %75

72:                                               ; preds = %.lr.ph
  %73 = zext nneg i32 %71 to i64
  %74 = getelementptr inbounds [26 x i8], ptr %3, i64 0, i64 %73
  store i8 1, ptr %74, align 1, !tbaa !9
  br label %75

75:                                               ; preds = %72, %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %76 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  %77 = icmp ugt i64 %76, %indvars.iv.next
  br i1 %77, label %.lr.ph, label %.preheader37, !llvm.loop !14

78:                                               ; preds = %.preheader37
  %79 = load i8, ptr %8, align 1, !tbaa !9, !range !11, !noundef !12
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %81, label %154

81:                                               ; preds = %78
  %82 = load i8, ptr %9, align 2, !tbaa !9, !range !11, !noundef !12
  %83 = trunc nuw i8 %82 to i1
  br i1 %83, label %84, label %154

84:                                               ; preds = %81
  %85 = load i8, ptr %10, align 1, !tbaa !9, !range !11, !noundef !12
  %86 = trunc nuw i8 %85 to i1
  br i1 %86, label %87, label %154

87:                                               ; preds = %84
  %88 = load i8, ptr %11, align 4, !tbaa !9, !range !11, !noundef !12
  %89 = trunc nuw i8 %88 to i1
  br i1 %89, label %90, label %154

90:                                               ; preds = %87
  %91 = load i8, ptr %12, align 1, !tbaa !9, !range !11, !noundef !12
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %93, label %154

93:                                               ; preds = %90
  %94 = load i8, ptr %13, align 2, !tbaa !9, !range !11, !noundef !12
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %154

96:                                               ; preds = %93
  %97 = load i8, ptr %14, align 1, !tbaa !9, !range !11, !noundef !12
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %99, label %154

99:                                               ; preds = %96
  %100 = load i8, ptr %15, align 8, !tbaa !9, !range !11, !noundef !12
  %101 = trunc nuw i8 %100 to i1
  br i1 %101, label %102, label %154

102:                                              ; preds = %99
  %103 = load i8, ptr %16, align 1, !tbaa !9, !range !11, !noundef !12
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %105, label %154

105:                                              ; preds = %102
  %106 = load i8, ptr %17, align 2, !tbaa !9, !range !11, !noundef !12
  %107 = trunc nuw i8 %106 to i1
  br i1 %107, label %108, label %154

108:                                              ; preds = %105
  %109 = load i8, ptr %18, align 1, !tbaa !9, !range !11, !noundef !12
  %110 = trunc nuw i8 %109 to i1
  br i1 %110, label %111, label %154

111:                                              ; preds = %108
  %112 = load i8, ptr %19, align 4, !tbaa !9, !range !11, !noundef !12
  %113 = trunc nuw i8 %112 to i1
  br i1 %113, label %114, label %154

114:                                              ; preds = %111
  %115 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %117, label %154

117:                                              ; preds = %114
  %118 = load i8, ptr %21, align 2, !tbaa !9, !range !11, !noundef !12
  %119 = trunc nuw i8 %118 to i1
  br i1 %119, label %120, label %154

120:                                              ; preds = %117
  %121 = load i8, ptr %22, align 1, !tbaa !9, !range !11, !noundef !12
  %122 = trunc nuw i8 %121 to i1
  br i1 %122, label %123, label %154

123:                                              ; preds = %120
  %124 = load i8, ptr %23, align 16, !tbaa !9, !range !11, !noundef !12
  %125 = trunc nuw i8 %124 to i1
  br i1 %125, label %126, label %154

126:                                              ; preds = %123
  %127 = load i8, ptr %24, align 1, !tbaa !9, !range !11, !noundef !12
  %128 = trunc nuw i8 %127 to i1
  br i1 %128, label %129, label %154

129:                                              ; preds = %126
  %130 = load i8, ptr %25, align 2, !tbaa !9, !range !11, !noundef !12
  %131 = trunc nuw i8 %130 to i1
  br i1 %131, label %132, label %154

132:                                              ; preds = %129
  %133 = load i8, ptr %26, align 1, !tbaa !9, !range !11, !noundef !12
  %134 = trunc nuw i8 %133 to i1
  br i1 %134, label %135, label %154

135:                                              ; preds = %132
  %136 = load i8, ptr %27, align 4, !tbaa !9, !range !11, !noundef !12
  %137 = trunc nuw i8 %136 to i1
  br i1 %137, label %138, label %154

138:                                              ; preds = %135
  %139 = load i8, ptr %28, align 1, !tbaa !9, !range !11, !noundef !12
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %141, label %154

141:                                              ; preds = %138
  %142 = load i8, ptr %29, align 2, !tbaa !9, !range !11, !noundef !12
  %143 = trunc nuw i8 %142 to i1
  br i1 %143, label %144, label %154

144:                                              ; preds = %141
  %145 = load i8, ptr %30, align 1, !tbaa !9, !range !11, !noundef !12
  %146 = trunc nuw i8 %145 to i1
  br i1 %146, label %147, label %154

147:                                              ; preds = %144
  %148 = load i8, ptr %31, align 8, !tbaa !9, !range !11, !noundef !12
  %149 = trunc nuw i8 %148 to i1
  br i1 %149, label %150, label %154

150:                                              ; preds = %147
  %151 = load i8, ptr %32, align 1, !tbaa !9, !range !11, !noundef !12
  %152 = trunc nuw i8 %151 to i1
  br i1 %152, label %.critedge, label %154

.critedge:                                        ; preds = %150
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
          to label %266 unwind label %158

154:                                              ; preds = %150, %147, %144, %141, %138, %135, %132, %129, %126, %123, %120, %117, %114, %111, %108, %105, %102, %99, %96, %93, %90, %87, %84, %81, %78, %.preheader37
  %155 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %.preheader.preheader unwind label %158

.preheader.preheader:                             ; preds = %154
  %156 = load i8, ptr %3, align 16, !tbaa !9, !range !11, !noundef !12
  %157 = trunc nuw i8 %156 to i1
  br i1 %157, label %.preheader.1, label %160

158:                                              ; preds = %.critedge, %264, %154
  %159 = landingpad { ptr, i32 }
          cleanup
  br label %270

160:                                              ; preds = %.preheader.preheader
  %161 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 97)
          to label %.preheader.1 unwind label %162

162:                                              ; preds = %262, %258, %254, %250, %246, %242, %238, %234, %230, %226, %222, %218, %214, %210, %206, %202, %198, %194, %190, %186, %182, %178, %174, %170, %166, %160
  %163 = landingpad { ptr, i32 }
          cleanup
  br label %270

.preheader.1:                                     ; preds = %.preheader.preheader, %160
  %164 = load i8, ptr %33, align 1, !tbaa !9, !range !11, !noundef !12
  %165 = trunc nuw i8 %164 to i1
  br i1 %165, label %.preheader.2, label %166

166:                                              ; preds = %.preheader.1
  %167 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 98)
          to label %.preheader.2 unwind label %162

.preheader.2:                                     ; preds = %166, %.preheader.1
  %168 = load i8, ptr %34, align 2, !tbaa !9, !range !11, !noundef !12
  %169 = trunc nuw i8 %168 to i1
  br i1 %169, label %.preheader.3, label %170

170:                                              ; preds = %.preheader.2
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 99)
          to label %.preheader.3 unwind label %162

.preheader.3:                                     ; preds = %170, %.preheader.2
  %172 = load i8, ptr %35, align 1, !tbaa !9, !range !11, !noundef !12
  %173 = trunc nuw i8 %172 to i1
  br i1 %173, label %.preheader.4, label %174

174:                                              ; preds = %.preheader.3
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 100)
          to label %.preheader.4 unwind label %162

.preheader.4:                                     ; preds = %174, %.preheader.3
  %176 = load i8, ptr %36, align 4, !tbaa !9, !range !11, !noundef !12
  %177 = trunc nuw i8 %176 to i1
  br i1 %177, label %.preheader.5, label %178

178:                                              ; preds = %.preheader.4
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 101)
          to label %.preheader.5 unwind label %162

.preheader.5:                                     ; preds = %178, %.preheader.4
  %180 = load i8, ptr %37, align 1, !tbaa !9, !range !11, !noundef !12
  %181 = trunc nuw i8 %180 to i1
  br i1 %181, label %.preheader.6, label %182

182:                                              ; preds = %.preheader.5
  %183 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 102)
          to label %.preheader.6 unwind label %162

.preheader.6:                                     ; preds = %182, %.preheader.5
  %184 = load i8, ptr %38, align 2, !tbaa !9, !range !11, !noundef !12
  %185 = trunc nuw i8 %184 to i1
  br i1 %185, label %.preheader.7, label %186

186:                                              ; preds = %.preheader.6
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 103)
          to label %.preheader.7 unwind label %162

.preheader.7:                                     ; preds = %186, %.preheader.6
  %188 = load i8, ptr %39, align 1, !tbaa !9, !range !11, !noundef !12
  %189 = trunc nuw i8 %188 to i1
  br i1 %189, label %.preheader.8, label %190

190:                                              ; preds = %.preheader.7
  %191 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 104)
          to label %.preheader.8 unwind label %162

.preheader.8:                                     ; preds = %190, %.preheader.7
  %192 = load i8, ptr %40, align 8, !tbaa !9, !range !11, !noundef !12
  %193 = trunc nuw i8 %192 to i1
  br i1 %193, label %.preheader.9, label %194

194:                                              ; preds = %.preheader.8
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 105)
          to label %.preheader.9 unwind label %162

.preheader.9:                                     ; preds = %194, %.preheader.8
  %196 = load i8, ptr %41, align 1, !tbaa !9, !range !11, !noundef !12
  %197 = trunc nuw i8 %196 to i1
  br i1 %197, label %.preheader.10, label %198

198:                                              ; preds = %.preheader.9
  %199 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 106)
          to label %.preheader.10 unwind label %162

.preheader.10:                                    ; preds = %198, %.preheader.9
  %200 = load i8, ptr %42, align 2, !tbaa !9, !range !11, !noundef !12
  %201 = trunc nuw i8 %200 to i1
  br i1 %201, label %.preheader.11, label %202

202:                                              ; preds = %.preheader.10
  %203 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 107)
          to label %.preheader.11 unwind label %162

.preheader.11:                                    ; preds = %202, %.preheader.10
  %204 = load i8, ptr %43, align 1, !tbaa !9, !range !11, !noundef !12
  %205 = trunc nuw i8 %204 to i1
  br i1 %205, label %.preheader.12, label %206

206:                                              ; preds = %.preheader.11
  %207 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 108)
          to label %.preheader.12 unwind label %162

.preheader.12:                                    ; preds = %206, %.preheader.11
  %208 = load i8, ptr %44, align 4, !tbaa !9, !range !11, !noundef !12
  %209 = trunc nuw i8 %208 to i1
  br i1 %209, label %.preheader.13, label %210

210:                                              ; preds = %.preheader.12
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 109)
          to label %.preheader.13 unwind label %162

.preheader.13:                                    ; preds = %210, %.preheader.12
  %212 = load i8, ptr %45, align 1, !tbaa !9, !range !11, !noundef !12
  %213 = trunc nuw i8 %212 to i1
  br i1 %213, label %.preheader.14, label %214

214:                                              ; preds = %.preheader.13
  %215 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 110)
          to label %.preheader.14 unwind label %162

.preheader.14:                                    ; preds = %214, %.preheader.13
  %216 = load i8, ptr %46, align 2, !tbaa !9, !range !11, !noundef !12
  %217 = trunc nuw i8 %216 to i1
  br i1 %217, label %.preheader.15, label %218

218:                                              ; preds = %.preheader.14
  %219 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 111)
          to label %.preheader.15 unwind label %162

.preheader.15:                                    ; preds = %218, %.preheader.14
  %220 = load i8, ptr %47, align 1, !tbaa !9, !range !11, !noundef !12
  %221 = trunc nuw i8 %220 to i1
  br i1 %221, label %.preheader.16, label %222

222:                                              ; preds = %.preheader.15
  %223 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 112)
          to label %.preheader.16 unwind label %162

.preheader.16:                                    ; preds = %222, %.preheader.15
  %224 = load i8, ptr %48, align 16, !tbaa !9, !range !11, !noundef !12
  %225 = trunc nuw i8 %224 to i1
  br i1 %225, label %.preheader.17, label %226

226:                                              ; preds = %.preheader.16
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 113)
          to label %.preheader.17 unwind label %162

.preheader.17:                                    ; preds = %226, %.preheader.16
  %228 = load i8, ptr %49, align 1, !tbaa !9, !range !11, !noundef !12
  %229 = trunc nuw i8 %228 to i1
  br i1 %229, label %.preheader.18, label %230

230:                                              ; preds = %.preheader.17
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 114)
          to label %.preheader.18 unwind label %162

.preheader.18:                                    ; preds = %230, %.preheader.17
  %232 = load i8, ptr %50, align 2, !tbaa !9, !range !11, !noundef !12
  %233 = trunc nuw i8 %232 to i1
  br i1 %233, label %.preheader.19, label %234

234:                                              ; preds = %.preheader.18
  %235 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 115)
          to label %.preheader.19 unwind label %162

.preheader.19:                                    ; preds = %234, %.preheader.18
  %236 = load i8, ptr %51, align 1, !tbaa !9, !range !11, !noundef !12
  %237 = trunc nuw i8 %236 to i1
  br i1 %237, label %.preheader.20, label %238

238:                                              ; preds = %.preheader.19
  %239 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 116)
          to label %.preheader.20 unwind label %162

.preheader.20:                                    ; preds = %238, %.preheader.19
  %240 = load i8, ptr %52, align 4, !tbaa !9, !range !11, !noundef !12
  %241 = trunc nuw i8 %240 to i1
  br i1 %241, label %.preheader.21, label %242

242:                                              ; preds = %.preheader.20
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 117)
          to label %.preheader.21 unwind label %162

.preheader.21:                                    ; preds = %242, %.preheader.20
  %244 = load i8, ptr %53, align 1, !tbaa !9, !range !11, !noundef !12
  %245 = trunc nuw i8 %244 to i1
  br i1 %245, label %.preheader.22, label %246

246:                                              ; preds = %.preheader.21
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 118)
          to label %.preheader.22 unwind label %162

.preheader.22:                                    ; preds = %246, %.preheader.21
  %248 = load i8, ptr %54, align 2, !tbaa !9, !range !11, !noundef !12
  %249 = trunc nuw i8 %248 to i1
  br i1 %249, label %.preheader.23, label %250

250:                                              ; preds = %.preheader.22
  %251 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 119)
          to label %.preheader.23 unwind label %162

.preheader.23:                                    ; preds = %250, %.preheader.22
  %252 = load i8, ptr %55, align 1, !tbaa !9, !range !11, !noundef !12
  %253 = trunc nuw i8 %252 to i1
  br i1 %253, label %.preheader.24, label %254

254:                                              ; preds = %.preheader.23
  %255 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 120)
          to label %.preheader.24 unwind label %162

.preheader.24:                                    ; preds = %254, %.preheader.23
  %256 = load i8, ptr %56, align 8, !tbaa !9, !range !11, !noundef !12
  %257 = trunc nuw i8 %256 to i1
  br i1 %257, label %.preheader.25, label %258

258:                                              ; preds = %.preheader.24
  %259 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 121)
          to label %.preheader.25 unwind label %162

.preheader.25:                                    ; preds = %258, %.preheader.24
  %260 = load i8, ptr %57, align 1, !tbaa !9, !range !11, !noundef !12
  %261 = trunc nuw i8 %260 to i1
  br i1 %261, label %264, label %262

262:                                              ; preds = %.preheader.25
  %263 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext 122)
          to label %264 unwind label %162

264:                                              ; preds = %262, %.preheader.25
  %265 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %266 unwind label %158

266:                                              ; preds = %.critedge, %264
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %3) #8
  %267 = add nuw nsw i32 %.02844, 1
  %268 = load i32, ptr %1, align 4, !tbaa !5
  %269 = icmp slt i32 %267, %268
  br i1 %269, label %.lr.ph45, label %._crit_edge, !llvm.loop !16

270:                                              ; preds = %158, %162, %64
  %.pn.pn = phi { ptr, i32 } [ %65, %64 ], [ %163, %162 ], [ %159, %158 ]
  call void @llvm.lifetime.end.p0(i64 26, ptr nonnull %3) #8
  br label %271

271:                                              ; preds = %270, %58
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %270 ], [ %59, %58 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn.pn
}

; 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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZSt7getlineIcSt11char_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 #4

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nofree nounwind willreturn memory(read)
declare i32 @tolower(i32 noundef) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

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

!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 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}


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