; LLVM IR from DionysiosB/CodeForces :: 0400-0499 (408B-Garland)

; 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::__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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [5 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 [26 x i32], align 16
  %4 = alloca [26 x i32], align 16
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i64, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #7
  store i32 26, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 104, ptr %3) #7
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 104, ptr %4) #7
  call void @llvm.memset.p0.i64(ptr align 16 %4, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %17 unwind label %27

17:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #7
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %18 unwind label %31

18:                                               ; preds = %17
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  %19 = 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) %5)
          to label %20 unwind label %35

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

21:                                               ; preds = %51, %20
  %22 = load i32, ptr %11, align 4, !tbaa !5
  %23 = sext i32 %22 to i64
  %24 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %39, label %26

26:                                               ; preds = %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %58

27:                                               ; preds = %0
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %7, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #7
  br label %153

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %7, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %8, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #7
  br label %152

35:                                               ; preds = %58, %18
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %7, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %8, align 4
  br label %151

39:                                               ; preds = %21
  %40 = load i32, ptr %11, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %41)
          to label %43 unwind label %54

43:                                               ; preds = %39
  %44 = load i8, ptr %42, align 1, !tbaa !9
  %45 = sext i8 %44 to i32
  %46 = sub nsw i32 %45, 97
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %48, align 4, !tbaa !5
  br label %51

51:                                               ; preds = %43
  %52 = load i32, ptr %11, align 4, !tbaa !5
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %11, align 4, !tbaa !5
  br label %21, !llvm.loop !10

54:                                               ; preds = %39
  %55 = landingpad { ptr, i32 }
          cleanup
  %56 = extractvalue { ptr, i32 } %55, 0
  store ptr %56, ptr %7, align 8
  %57 = extractvalue { ptr, i32 } %55, 1
  store i32 %57, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %151

58:                                               ; preds = %26
  %59 = 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) %9)
          to label %60 unwind label %35

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

61:                                               ; preds = %79, %60
  %62 = load i32, ptr %12, align 4, !tbaa !5
  %63 = sext i32 %62 to i64
  %64 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %67, label %66

66:                                               ; preds = %61
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %86

67:                                               ; preds = %61
  %68 = load i32, ptr %12, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %9, i64 noundef %69)
          to label %71 unwind label %82

71:                                               ; preds = %67
  %72 = load i8, ptr %70, align 1, !tbaa !9
  %73 = sext i8 %72 to i32
  %74 = sub nsw i32 %73, 97
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds [26 x i32], ptr %4, i64 0, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %76, align 4, !tbaa !5
  br label %79

79:                                               ; preds = %71
  %80 = load i32, ptr %12, align 4, !tbaa !5
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %12, align 4, !tbaa !5
  br label %61, !llvm.loop !12

82:                                               ; preds = %67
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %151

86:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #7
  store i8 1, ptr %13, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  store i64 0, ptr %14, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %132, %86
  %88 = load i32, ptr %15, align 4, !tbaa !5
  %89 = icmp slt i32 %88, 26
  br i1 %89, label %91, label %90

90:                                               ; preds = %87
  store i32 8, ptr %16, align 4
  br label %135

91:                                               ; preds = %87
  %92 = load i32, ptr %15, align 4, !tbaa !5
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [26 x i32], ptr %4, i64 0, i64 %93
  %95 = load i32, ptr %94, align 4, !tbaa !5
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %97, label %104

97:                                               ; preds = %91
  %98 = load i32, ptr %15, align 4, !tbaa !5
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %99
  %101 = load i32, ptr %100, align 4, !tbaa !5
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %104

103:                                              ; preds = %97
  store i8 0, ptr %13, align 1, !tbaa !13
  store i32 8, ptr %16, align 4
  br label %135

104:                                              ; preds = %97, %91
  %105 = load i32, ptr %15, align 4, !tbaa !5
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [26 x i32], ptr %4, i64 0, i64 %106
  %108 = load i32, ptr %107, align 4, !tbaa !5
  %109 = load i32, ptr %15, align 4, !tbaa !5
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !5
  %113 = icmp sle i32 %108, %112
  br i1 %113, label %114, label %122

114:                                              ; preds = %104
  %115 = load i32, ptr %15, align 4, !tbaa !5
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [26 x i32], ptr %4, i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !5
  %119 = sext i32 %118 to i64
  %120 = load i64, ptr %14, align 8, !tbaa !15
  %121 = add nsw i64 %120, %119
  store i64 %121, ptr %14, align 8, !tbaa !15
  br label %130

122:                                              ; preds = %104
  %123 = load i32, ptr %15, align 4, !tbaa !5
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %124
  %126 = load i32, ptr %125, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = load i64, ptr %14, align 8, !tbaa !15
  %129 = add nsw i64 %128, %127
  store i64 %129, ptr %14, align 8, !tbaa !15
  br label %130

130:                                              ; preds = %122, %114
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  %133 = load i32, ptr %15, align 4, !tbaa !5
  %134 = add nsw i32 %133, 1
  store i32 %134, ptr %15, align 4, !tbaa !5
  br label %87, !llvm.loop !17

135:                                              ; preds = %103, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  br label %136

136:                                              ; preds = %135
  %137 = load i8, ptr %13, align 1, !tbaa !13, !range !18, !noundef !19
  %138 = trunc i8 %137 to i1
  br i1 %138, label %139, label %141

139:                                              ; preds = %136
  %140 = load i64, ptr %14, align 8, !tbaa !15
  br label %142

141:                                              ; preds = %136
  br label %142

142:                                              ; preds = %141, %139
  %143 = phi i64 [ %140, %139 ], [ -1, %141 ]
  %144 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1, i64 noundef %143)
          to label %145 unwind label %147

145:                                              ; preds = %142
  store i32 0, ptr %1, align 4
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 104, 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 = %142
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %7, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #7
  br label %151

151:                                              ; preds = %147, %82, %54, %35
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %152

152:                                              ; preds = %151, %31
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %153

153:                                              ; preds = %152, %27
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 104, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #7
  br label %154

154:                                              ; preds = %153
  %155 = load ptr, ptr %7, align 8
  %156 = load i32, ptr %8, align 4
  %157 = insertvalue { ptr, i32 } poison, ptr %155, 0
  %158 = insertvalue { ptr, i32 } %157, i32 %156, 1
  resume { ptr, i32 } %158
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

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

; 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

declare i32 @printf(ptr noundef, ...) #6

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { "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 }

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


; 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::__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::allocator" = type { i8 }

@.str = external hidden unnamed_addr constant [1 x i8], align 1
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.1 = external hidden unnamed_addr constant [5 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 [26 x i32], align 16
  %2 = alloca [26 x i32], align 16
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::allocator", align 1
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) %1, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %2) #8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(104) %2, i8 0, i64 104, i1 false)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %7 unwind label %13

7:                                                ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull @.str, ptr noundef nonnull align 1 dereferenceable(1) %6)
          to label %8 unwind label %15

8:                                                ; preds = %7
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  %9 = 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 %.preheader36 unwind label %17

.preheader36:                                     ; preds = %8
  %10 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %.not = icmp eq i64 %10, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %.preheader36
  %11 = 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) %5)
          to label %.preheader35 unwind label %17

.preheader35:                                     ; preds = %._crit_edge
  %12 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %.not42 = icmp eq i64 %12, 0
  br i1 %.not42, label %.preheader, label %.lr.ph39

13:                                               ; preds = %0
  %14 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #8
  br label %195

15:                                               ; preds = %7
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #8
  br label %194

17:                                               ; preds = %._crit_edge, %8
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  br label %194

.lr.ph:                                           ; preds = %.preheader36, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader36 ]
  %19 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %3, i64 noundef %indvars.iv)
  %20 = load i8, ptr %19, align 1, !tbaa !5
  %21 = sext i8 %20 to i64
  %22 = add nsw i64 %21, -97
  %23 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %22
  %24 = load i32, ptr %23, align 4, !tbaa !8
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr %23, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  %27 = icmp ugt i64 %26, %indvars.iv.next
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !10

.lr.ph39:                                         ; preds = %.preheader35, %.lr.ph39
  %indvars.iv44 = phi i64 [ %indvars.iv.next45, %.lr.ph39 ], [ 0, %.preheader35 ]
  %28 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv44)
  %29 = load i8, ptr %28, align 1, !tbaa !5
  %30 = sext i8 %29 to i64
  %31 = add nsw i64 %30, -97
  %32 = getelementptr inbounds [26 x i32], ptr %2, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !8
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !8
  %indvars.iv.next45 = add nuw nsw i64 %indvars.iv44, 1
  %35 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  %36 = icmp ugt i64 %35, %indvars.iv.next45
  br i1 %36, label %.lr.ph39, label %.preheader, !llvm.loop !12

.preheader:                                       ; preds = %.preheader35, %.lr.ph39
  %37 = load i32, ptr %2, align 16, !tbaa !8
  %38 = icmp sgt i32 %37, 0
  %39 = load i32, ptr %1, align 16, !tbaa !8
  %40 = icmp eq i32 %39, 0
  %or.cond = select i1 %38, i1 %40, i1 false
  br i1 %or.cond, label %191, label %._crit_edge50

._crit_edge50:                                    ; preds = %.preheader
  %41 = getelementptr inbounds i8, ptr %2, i64 4
  %42 = load i32, ptr %41, align 4, !tbaa !8
  %43 = icmp sgt i32 %42, 0
  %44 = getelementptr inbounds i8, ptr %1, i64 4
  %45 = load i32, ptr %44, align 4, !tbaa !8
  %46 = icmp eq i32 %45, 0
  %or.cond.1 = select i1 %43, i1 %46, i1 false
  br i1 %or.cond.1, label %191, label %._crit_edge50.1

._crit_edge50.1:                                  ; preds = %._crit_edge50
  %47 = getelementptr inbounds i8, ptr %2, i64 8
  %48 = load i32, ptr %47, align 8, !tbaa !8
  %49 = icmp sgt i32 %48, 0
  %50 = getelementptr inbounds i8, ptr %1, i64 8
  %51 = load i32, ptr %50, align 8, !tbaa !8
  %52 = icmp eq i32 %51, 0
  %or.cond.2 = select i1 %49, i1 %52, i1 false
  br i1 %or.cond.2, label %191, label %._crit_edge50.2

._crit_edge50.2:                                  ; preds = %._crit_edge50.1
  %53 = getelementptr inbounds i8, ptr %2, i64 12
  %54 = load i32, ptr %53, align 4, !tbaa !8
  %55 = icmp sgt i32 %54, 0
  %56 = getelementptr inbounds i8, ptr %1, i64 12
  %57 = load i32, ptr %56, align 4, !tbaa !8
  %58 = icmp eq i32 %57, 0
  %or.cond.3 = select i1 %55, i1 %58, i1 false
  br i1 %or.cond.3, label %191, label %._crit_edge50.3

._crit_edge50.3:                                  ; preds = %._crit_edge50.2
  %59 = getelementptr inbounds i8, ptr %2, i64 16
  %60 = load i32, ptr %59, align 16, !tbaa !8
  %61 = icmp sgt i32 %60, 0
  %62 = getelementptr inbounds i8, ptr %1, i64 16
  %63 = load i32, ptr %62, align 16, !tbaa !8
  %64 = icmp eq i32 %63, 0
  %or.cond.4 = select i1 %61, i1 %64, i1 false
  br i1 %or.cond.4, label %191, label %._crit_edge50.4

._crit_edge50.4:                                  ; preds = %._crit_edge50.3
  %65 = getelementptr inbounds i8, ptr %2, i64 20
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = icmp sgt i32 %66, 0
  %68 = getelementptr inbounds i8, ptr %1, i64 20
  %69 = load i32, ptr %68, align 4, !tbaa !8
  %70 = icmp eq i32 %69, 0
  %or.cond.5 = select i1 %67, i1 %70, i1 false
  br i1 %or.cond.5, label %191, label %._crit_edge50.5

._crit_edge50.5:                                  ; preds = %._crit_edge50.4
  %71 = getelementptr inbounds i8, ptr %2, i64 24
  %72 = load i32, ptr %71, align 8, !tbaa !8
  %73 = icmp sgt i32 %72, 0
  %74 = getelementptr inbounds i8, ptr %1, i64 24
  %75 = load i32, ptr %74, align 8, !tbaa !8
  %76 = icmp eq i32 %75, 0
  %or.cond.6 = select i1 %73, i1 %76, i1 false
  br i1 %or.cond.6, label %191, label %._crit_edge50.6

._crit_edge50.6:                                  ; preds = %._crit_edge50.5
  %77 = getelementptr inbounds i8, ptr %2, i64 28
  %78 = load i32, ptr %77, align 4, !tbaa !8
  %79 = icmp sgt i32 %78, 0
  %80 = getelementptr inbounds i8, ptr %1, i64 28
  %81 = load i32, ptr %80, align 4, !tbaa !8
  %82 = icmp eq i32 %81, 0
  %or.cond.7 = select i1 %79, i1 %82, i1 false
  br i1 %or.cond.7, label %191, label %._crit_edge50.7

._crit_edge50.7:                                  ; preds = %._crit_edge50.6
  %83 = getelementptr inbounds i8, ptr %2, i64 32
  %84 = load i32, ptr %83, align 16, !tbaa !8
  %85 = icmp sgt i32 %84, 0
  %86 = getelementptr inbounds i8, ptr %1, i64 32
  %87 = load i32, ptr %86, align 16, !tbaa !8
  %88 = icmp eq i32 %87, 0
  %or.cond.8 = select i1 %85, i1 %88, i1 false
  br i1 %or.cond.8, label %191, label %._crit_edge50.8

._crit_edge50.8:                                  ; preds = %._crit_edge50.7
  %89 = getelementptr inbounds i8, ptr %2, i64 36
  %90 = load i32, ptr %89, align 4, !tbaa !8
  %91 = icmp sgt i32 %90, 0
  %92 = getelementptr inbounds i8, ptr %1, i64 36
  %93 = load i32, ptr %92, align 4, !tbaa !8
  %94 = icmp eq i32 %93, 0
  %or.cond.9 = select i1 %91, i1 %94, i1 false
  br i1 %or.cond.9, label %191, label %._crit_edge50.9

._crit_edge50.9:                                  ; preds = %._crit_edge50.8
  %95 = getelementptr inbounds i8, ptr %2, i64 40
  %96 = load i32, ptr %95, align 8, !tbaa !8
  %97 = icmp sgt i32 %96, 0
  %98 = getelementptr inbounds i8, ptr %1, i64 40
  %99 = load i32, ptr %98, align 8, !tbaa !8
  %100 = icmp eq i32 %99, 0
  %or.cond.10 = select i1 %97, i1 %100, i1 false
  br i1 %or.cond.10, label %191, label %._crit_edge50.10

._crit_edge50.10:                                 ; preds = %._crit_edge50.9
  %101 = getelementptr inbounds i8, ptr %2, i64 44
  %102 = load i32, ptr %101, align 4, !tbaa !8
  %103 = icmp sgt i32 %102, 0
  %104 = getelementptr inbounds i8, ptr %1, i64 44
  %105 = load i32, ptr %104, align 4, !tbaa !8
  %106 = icmp eq i32 %105, 0
  %or.cond.11 = select i1 %103, i1 %106, i1 false
  br i1 %or.cond.11, label %191, label %._crit_edge50.11

._crit_edge50.11:                                 ; preds = %._crit_edge50.10
  %107 = getelementptr inbounds i8, ptr %2, i64 48
  %108 = load i32, ptr %107, align 16, !tbaa !8
  %109 = icmp sgt i32 %108, 0
  %110 = getelementptr inbounds i8, ptr %1, i64 48
  %111 = load i32, ptr %110, align 16, !tbaa !8
  %112 = icmp eq i32 %111, 0
  %or.cond.12 = select i1 %109, i1 %112, i1 false
  br i1 %or.cond.12, label %191, label %._crit_edge50.12

._crit_edge50.12:                                 ; preds = %._crit_edge50.11
  %113 = getelementptr inbounds i8, ptr %2, i64 52
  %114 = load i32, ptr %113, align 4, !tbaa !8
  %115 = icmp sgt i32 %114, 0
  %116 = getelementptr inbounds i8, ptr %1, i64 52
  %117 = load i32, ptr %116, align 4, !tbaa !8
  %118 = icmp eq i32 %117, 0
  %or.cond.13 = select i1 %115, i1 %118, i1 false
  br i1 %or.cond.13, label %191, label %._crit_edge50.13

._crit_edge50.13:                                 ; preds = %._crit_edge50.12
  %119 = getelementptr inbounds i8, ptr %2, i64 56
  %120 = load i32, ptr %119, align 8, !tbaa !8
  %121 = icmp sgt i32 %120, 0
  %122 = getelementptr inbounds i8, ptr %1, i64 56
  %123 = load i32, ptr %122, align 8, !tbaa !8
  %124 = icmp eq i32 %123, 0
  %or.cond.14 = select i1 %121, i1 %124, i1 false
  br i1 %or.cond.14, label %191, label %._crit_edge50.14

._crit_edge50.14:                                 ; preds = %._crit_edge50.13
  %125 = getelementptr inbounds i8, ptr %2, i64 60
  %126 = load i32, ptr %125, align 4, !tbaa !8
  %127 = icmp sgt i32 %126, 0
  %128 = getelementptr inbounds i8, ptr %1, i64 60
  %129 = load i32, ptr %128, align 4, !tbaa !8
  %130 = icmp eq i32 %129, 0
  %or.cond.15 = select i1 %127, i1 %130, i1 false
  br i1 %or.cond.15, label %191, label %._crit_edge50.15

._crit_edge50.15:                                 ; preds = %._crit_edge50.14
  %131 = getelementptr inbounds i8, ptr %2, i64 64
  %132 = load i32, ptr %131, align 16, !tbaa !8
  %133 = icmp sgt i32 %132, 0
  %134 = getelementptr inbounds i8, ptr %1, i64 64
  %135 = load i32, ptr %134, align 16, !tbaa !8
  %136 = icmp eq i32 %135, 0
  %or.cond.16 = select i1 %133, i1 %136, i1 false
  br i1 %or.cond.16, label %191, label %._crit_edge50.16

._crit_edge50.16:                                 ; preds = %._crit_edge50.15
  %137 = getelementptr inbounds i8, ptr %2, i64 68
  %138 = load i32, ptr %137, align 4, !tbaa !8
  %139 = icmp sgt i32 %138, 0
  %140 = getelementptr inbounds i8, ptr %1, i64 68
  %141 = load i32, ptr %140, align 4, !tbaa !8
  %142 = icmp eq i32 %141, 0
  %or.cond.17 = select i1 %139, i1 %142, i1 false
  br i1 %or.cond.17, label %191, label %._crit_edge50.17

._crit_edge50.17:                                 ; preds = %._crit_edge50.16
  %143 = getelementptr inbounds i8, ptr %2, i64 72
  %144 = load i32, ptr %143, align 8, !tbaa !8
  %145 = icmp sgt i32 %144, 0
  %146 = getelementptr inbounds i8, ptr %1, i64 72
  %147 = load i32, ptr %146, align 8, !tbaa !8
  %148 = icmp eq i32 %147, 0
  %or.cond.18 = select i1 %145, i1 %148, i1 false
  br i1 %or.cond.18, label %191, label %._crit_edge50.18

._crit_edge50.18:                                 ; preds = %._crit_edge50.17
  %149 = getelementptr inbounds i8, ptr %2, i64 76
  %150 = load i32, ptr %149, align 4, !tbaa !8
  %151 = icmp sgt i32 %150, 0
  %152 = getelementptr inbounds i8, ptr %1, i64 76
  %153 = load i32, ptr %152, align 4, !tbaa !8
  %154 = icmp eq i32 %153, 0
  %or.cond.19 = select i1 %151, i1 %154, i1 false
  br i1 %or.cond.19, label %191, label %._crit_edge50.19

._crit_edge50.19:                                 ; preds = %._crit_edge50.18
  %155 = getelementptr inbounds i8, ptr %2, i64 80
  %156 = load i32, ptr %155, align 16, !tbaa !8
  %157 = icmp sgt i32 %156, 0
  %158 = getelementptr inbounds i8, ptr %1, i64 80
  %159 = load i32, ptr %158, align 16, !tbaa !8
  %160 = icmp eq i32 %159, 0
  %or.cond.20 = select i1 %157, i1 %160, i1 false
  br i1 %or.cond.20, label %191, label %._crit_edge50.20

._crit_edge50.20:                                 ; preds = %._crit_edge50.19
  %161 = getelementptr inbounds i8, ptr %2, i64 84
  %162 = load i32, ptr %161, align 4, !tbaa !8
  %163 = icmp sgt i32 %162, 0
  %164 = getelementptr inbounds i8, ptr %1, i64 84
  %165 = load i32, ptr %164, align 4, !tbaa !8
  %166 = icmp eq i32 %165, 0
  %or.cond.21 = select i1 %163, i1 %166, i1 false
  br i1 %or.cond.21, label %191, label %._crit_edge50.21

._crit_edge50.21:                                 ; preds = %._crit_edge50.20
  %167 = getelementptr inbounds i8, ptr %2, i64 88
  %168 = load i32, ptr %167, align 8, !tbaa !8
  %169 = icmp sgt i32 %168, 0
  %170 = getelementptr inbounds i8, ptr %1, i64 88
  %171 = load i32, ptr %170, align 8, !tbaa !8
  %172 = icmp eq i32 %171, 0
  %or.cond.22 = select i1 %169, i1 %172, i1 false
  br i1 %or.cond.22, label %191, label %._crit_edge50.22

._crit_edge50.22:                                 ; preds = %._crit_edge50.21
  %173 = getelementptr inbounds i8, ptr %2, i64 92
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = icmp sgt i32 %174, 0
  %176 = getelementptr inbounds i8, ptr %1, i64 92
  %177 = load i32, ptr %176, align 4, !tbaa !8
  %178 = icmp eq i32 %177, 0
  %or.cond.23 = select i1 %175, i1 %178, i1 false
  br i1 %or.cond.23, label %191, label %._crit_edge50.23

._crit_edge50.23:                                 ; preds = %._crit_edge50.22
  %179 = getelementptr inbounds i8, ptr %2, i64 96
  %180 = load i32, ptr %179, align 16, !tbaa !8
  %181 = icmp sgt i32 %180, 0
  %182 = getelementptr inbounds i8, ptr %1, i64 96
  %183 = load i32, ptr %182, align 16, !tbaa !8
  %184 = icmp eq i32 %183, 0
  %or.cond.24 = select i1 %181, i1 %184, i1 false
  br i1 %or.cond.24, label %191, label %._crit_edge50.24

._crit_edge50.24:                                 ; preds = %._crit_edge50.23
  %185 = getelementptr inbounds i8, ptr %2, i64 100
  %186 = load i32, ptr %185, align 4, !tbaa !8
  %187 = icmp sgt i32 %186, 0
  %188 = getelementptr inbounds i8, ptr %1, i64 100
  %189 = load i32, ptr %188, align 4, !tbaa !8
  %190 = icmp eq i32 %189, 0
  %or.cond.25 = select i1 %187, i1 %190, i1 false
  br i1 %or.cond.25, label %191, label %._crit_edge50.25

._crit_edge50.25:                                 ; preds = %._crit_edge50.24
  %. = call i32 @llvm.smin.i32(i32 %37, i32 %39)
  %.pn34 = sext i32 %. to i64
  %..1 = call i32 @llvm.smin.i32(i32 %42, i32 %45)
  %.pn34.1 = sext i32 %..1 to i64
  %.1.1 = add nsw i64 %.pn34, %.pn34.1
  %..2 = call i32 @llvm.smin.i32(i32 %48, i32 %51)
  %.pn34.2 = sext i32 %..2 to i64
  %.1.2 = add nsw i64 %.1.1, %.pn34.2
  %..3 = call i32 @llvm.smin.i32(i32 %54, i32 %57)
  %.pn34.3 = sext i32 %..3 to i64
  %.1.3 = add nsw i64 %.1.2, %.pn34.3
  %..4 = call i32 @llvm.smin.i32(i32 %60, i32 %63)
  %.pn34.4 = sext i32 %..4 to i64
  %.1.4 = add nsw i64 %.1.3, %.pn34.4
  %..5 = call i32 @llvm.smin.i32(i32 %66, i32 %69)
  %.pn34.5 = sext i32 %..5 to i64
  %.1.5 = add nsw i64 %.1.4, %.pn34.5
  %..6 = call i32 @llvm.smin.i32(i32 %72, i32 %75)
  %.pn34.6 = sext i32 %..6 to i64
  %.1.6 = add nsw i64 %.1.5, %.pn34.6
  %..7 = call i32 @llvm.smin.i32(i32 %78, i32 %81)
  %.pn34.7 = sext i32 %..7 to i64
  %.1.7 = add nsw i64 %.1.6, %.pn34.7
  %..8 = call i32 @llvm.smin.i32(i32 %84, i32 %87)
  %.pn34.8 = sext i32 %..8 to i64
  %.1.8 = add nsw i64 %.1.7, %.pn34.8
  %..9 = call i32 @llvm.smin.i32(i32 %90, i32 %93)
  %.pn34.9 = sext i32 %..9 to i64
  %.1.9 = add nsw i64 %.1.8, %.pn34.9
  %..10 = call i32 @llvm.smin.i32(i32 %96, i32 %99)
  %.pn34.10 = sext i32 %..10 to i64
  %.1.10 = add nsw i64 %.1.9, %.pn34.10
  %..11 = call i32 @llvm.smin.i32(i32 %102, i32 %105)
  %.pn34.11 = sext i32 %..11 to i64
  %.1.11 = add nsw i64 %.1.10, %.pn34.11
  %..12 = call i32 @llvm.smin.i32(i32 %108, i32 %111)
  %.pn34.12 = sext i32 %..12 to i64
  %.1.12 = add nsw i64 %.1.11, %.pn34.12
  %..13 = call i32 @llvm.smin.i32(i32 %114, i32 %117)
  %.pn34.13 = sext i32 %..13 to i64
  %.1.13 = add nsw i64 %.1.12, %.pn34.13
  %..14 = call i32 @llvm.smin.i32(i32 %120, i32 %123)
  %.pn34.14 = sext i32 %..14 to i64
  %.1.14 = add nsw i64 %.1.13, %.pn34.14
  %..15 = call i32 @llvm.smin.i32(i32 %126, i32 %129)
  %.pn34.15 = sext i32 %..15 to i64
  %.1.15 = add nsw i64 %.1.14, %.pn34.15
  %..16 = call i32 @llvm.smin.i32(i32 %132, i32 %135)
  %.pn34.16 = sext i32 %..16 to i64
  %.1.16 = add nsw i64 %.1.15, %.pn34.16
  %..17 = call i32 @llvm.smin.i32(i32 %138, i32 %141)
  %.pn34.17 = sext i32 %..17 to i64
  %.1.17 = add nsw i64 %.1.16, %.pn34.17
  %..18 = call i32 @llvm.smin.i32(i32 %144, i32 %147)
  %.pn34.18 = sext i32 %..18 to i64
  %.1.18 = add nsw i64 %.1.17, %.pn34.18
  %..19 = call i32 @llvm.smin.i32(i32 %150, i32 %153)
  %.pn34.19 = sext i32 %..19 to i64
  %.1.19 = add nsw i64 %.1.18, %.pn34.19
  %..20 = call i32 @llvm.smin.i32(i32 %156, i32 %159)
  %.pn34.20 = sext i32 %..20 to i64
  %.1.20 = add nsw i64 %.1.19, %.pn34.20
  %..21 = call i32 @llvm.smin.i32(i32 %162, i32 %165)
  %.pn34.21 = sext i32 %..21 to i64
  %.1.21 = add nsw i64 %.1.20, %.pn34.21
  %..22 = call i32 @llvm.smin.i32(i32 %168, i32 %171)
  %.pn34.22 = sext i32 %..22 to i64
  %.1.22 = add nsw i64 %.1.21, %.pn34.22
  %..23 = call i32 @llvm.smin.i32(i32 %174, i32 %177)
  %.pn34.23 = sext i32 %..23 to i64
  %.1.23 = add nsw i64 %.1.22, %.pn34.23
  %..24 = call i32 @llvm.smin.i32(i32 %180, i32 %183)
  %.pn34.24 = sext i32 %..24 to i64
  %.1.24 = add nsw i64 %.1.23, %.pn34.24
  %..25 = call i32 @llvm.smin.i32(i32 %186, i32 %189)
  %.pn34.25 = sext i32 %..25 to i64
  %.1.25 = add nsw i64 %.1.24, %.pn34.25
  br label %191

191:                                              ; preds = %._crit_edge50.25, %._crit_edge50.24, %._crit_edge50.23, %._crit_edge50.22, %._crit_edge50.21, %._crit_edge50.20, %._crit_edge50.19, %._crit_edge50.18, %._crit_edge50.17, %._crit_edge50.16, %._crit_edge50.15, %._crit_edge50.14, %._crit_edge50.13, %._crit_edge50.12, %._crit_edge50.11, %._crit_edge50.10, %._crit_edge50.9, %._crit_edge50.8, %._crit_edge50.7, %._crit_edge50.6, %._crit_edge50.5, %._crit_edge50.4, %._crit_edge50.3, %._crit_edge50.2, %._crit_edge50.1, %._crit_edge50, %.preheader
  %192 = phi i64 [ -1, %.preheader ], [ -1, %._crit_edge50 ], [ -1, %._crit_edge50.1 ], [ -1, %._crit_edge50.2 ], [ -1, %._crit_edge50.3 ], [ -1, %._crit_edge50.4 ], [ -1, %._crit_edge50.5 ], [ -1, %._crit_edge50.6 ], [ -1, %._crit_edge50.7 ], [ -1, %._crit_edge50.8 ], [ -1, %._crit_edge50.9 ], [ -1, %._crit_edge50.10 ], [ -1, %._crit_edge50.11 ], [ -1, %._crit_edge50.12 ], [ -1, %._crit_edge50.13 ], [ -1, %._crit_edge50.14 ], [ -1, %._crit_edge50.15 ], [ -1, %._crit_edge50.16 ], [ -1, %._crit_edge50.17 ], [ -1, %._crit_edge50.18 ], [ -1, %._crit_edge50.19 ], [ -1, %._crit_edge50.20 ], [ -1, %._crit_edge50.21 ], [ -1, %._crit_edge50.22 ], [ -1, %._crit_edge50.23 ], [ -1, %._crit_edge50.24 ], [ %.1.25, %._crit_edge50.25 ]
  %193 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i64 noundef %192)
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #8
  ret i32 0

194:                                              ; preds = %17, %15
  %.pn = phi { ptr, i32 } [ %18, %17 ], [ %16, %15 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  br label %195

195:                                              ; preds = %194, %13
  %.pn.pn = phi { ptr, i32 } [ %.pn, %194 ], [ %14, %13 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn.pn
}

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 align 2

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

; 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 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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #6

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree nounwind "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 nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !9, i64 0}
!9 = !{!"int", !6, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = distinct !{!12, !11}


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