; LLVM IR from eyangch/competitive-programming :: CSES/Introductory_Problems (palindrome_reorder)

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

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca [26 x i32], align 16
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %15 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %16 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %17 = getelementptr i8, ptr %16, i64 -24
  %18 = load i64, ptr %17, align 8
  %19 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %18
  %20 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %19, ptr noundef null)
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  %22 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11) #6
  %23 = trunc i64 %22 to i32
  store i32 %23, ptr %2, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 104, ptr %3) #6
  %24 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
  %25 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 0
  %26 = getelementptr inbounds i32, ptr %25, i64 26
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  store i32 0, ptr %4, align 4, !tbaa !8
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef %24, ptr noundef %26, ptr noundef nonnull align 4 dereferenceable(4) %4)
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store i32 0, ptr %5, align 4, !tbaa !8
  br label %27

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

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

32:                                               ; preds = %27
  %33 = load i32, ptr %5, align 4, !tbaa !8
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %34)
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = sext i8 %36 to i32
  %38 = sub nsw i32 %37, 65
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %39
  %41 = load i32, ptr %40, align 4, !tbaa !8
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %40, align 4, !tbaa !8
  br label %43

43:                                               ; preds = %32
  %44 = load i32, ptr %5, align 4, !tbaa !8
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %5, align 4, !tbaa !8
  br label %27, !llvm.loop !12

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

47:                                               ; preds = %58, %46
  %48 = load i32, ptr %7, align 4, !tbaa !8
  %49 = icmp slt i32 %48, 26
  br i1 %49, label %51, label %50

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

51:                                               ; preds = %47
  %52 = load i32, ptr %7, align 4, !tbaa !8
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !8
  %56 = load i32, ptr %6, align 4, !tbaa !8
  %57 = add nsw i32 %56, %55
  store i32 %57, ptr %6, align 4, !tbaa !8
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %7, align 4, !tbaa !8
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !8
  br label %47, !llvm.loop !14

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 -1, ptr %8, align 4, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  store i32 0, ptr %9, align 4, !tbaa !8
  br label %62

62:                                               ; preds = %90, %61
  %63 = load i32, ptr %9, align 4, !tbaa !8
  %64 = icmp slt i32 %63, 26
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  store i32 8, ptr %10, align 4
  br label %93

66:                                               ; preds = %62
  %67 = load i32, ptr %9, align 4, !tbaa !8
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !8
  %71 = srem i32 %70, 2
  %72 = icmp eq i32 %71, 1
  br i1 %72, label %73, label %79

73:                                               ; preds = %66
  %74 = load i32, ptr %8, align 4, !tbaa !8
  %75 = icmp ne i32 %74, -1
  br i1 %75, label %76, label %79

76:                                               ; preds = %73
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %93

79:                                               ; preds = %73, %66
  %80 = load i32, ptr %9, align 4, !tbaa !8
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %81
  %83 = load i32, ptr %82, align 4, !tbaa !8
  %84 = srem i32 %83, 2
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %88

86:                                               ; preds = %79
  %87 = load i32, ptr %9, align 4, !tbaa !8
  store i32 %87, ptr %8, align 4, !tbaa !8
  br label %88

88:                                               ; preds = %86, %79
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = load i32, ptr %9, align 4, !tbaa !8
  %92 = add nsw i32 %91, 1
  store i32 %92, ptr %9, align 4, !tbaa !8
  br label %62, !llvm.loop !15

93:                                               ; preds = %76, %65
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %94 = load i32, ptr %10, align 4
  switch i32 %94, label %173 [
    i32 8, label %95
  ]

95:                                               ; preds = %93
  %96 = load i32, ptr %8, align 4, !tbaa !8
  %97 = icmp ne i32 %96, -1
  br i1 %97, label %98, label %105

98:                                               ; preds = %95
  %99 = load i32, ptr %2, align 4, !tbaa !8
  %100 = srem i32 %99, 2
  %101 = icmp ne i32 %100, 1
  br i1 %101, label %102, label %105

102:                                              ; preds = %98
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %103, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %173

105:                                              ; preds = %98, %95
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !8
  br label %106

106:                                              ; preds = %131, %105
  %107 = load i32, ptr %11, align 4, !tbaa !8
  %108 = icmp slt i32 %107, 26
  br i1 %108, label %110, label %109

109:                                              ; preds = %106
  store i32 11, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %134

110:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !8
  br label %111

111:                                              ; preds = %127, %110
  %112 = load i32, ptr %12, align 4, !tbaa !8
  %113 = load i32, ptr %11, align 4, !tbaa !8
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !8
  %117 = sdiv i32 %116, 2
  %118 = icmp slt i32 %112, %117
  br i1 %118, label %120, label %119

119:                                              ; preds = %111
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %130

120:                                              ; preds = %111
  %121 = load i32, ptr %11, align 4, !tbaa !8
  %122 = add nsw i32 %121, 65
  %123 = trunc i32 %122 to i8
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %123)
  %125 = load i32, ptr %6, align 4, !tbaa !8
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %6, align 4, !tbaa !8
  br label %127

127:                                              ; preds = %120
  %128 = load i32, ptr %12, align 4, !tbaa !8
  %129 = add nsw i32 %128, 1
  store i32 %129, ptr %12, align 4, !tbaa !8
  br label %111, !llvm.loop !16

130:                                              ; preds = %119
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %11, align 4, !tbaa !8
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %11, align 4, !tbaa !8
  br label %106, !llvm.loop !17

134:                                              ; preds = %109
  %135 = load i32, ptr %8, align 4, !tbaa !8
  %136 = icmp ne i32 %135, -1
  br i1 %136, label %137, label %142

137:                                              ; preds = %134
  %138 = load i32, ptr %8, align 4, !tbaa !8
  %139 = add nsw i32 %138, 65
  %140 = trunc i32 %139 to i8
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %140)
  br label %142

142:                                              ; preds = %137, %134
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 25, ptr %13, align 4, !tbaa !8
  br label %143

143:                                              ; preds = %168, %142
  %144 = load i32, ptr %13, align 4, !tbaa !8
  %145 = icmp sge i32 %144, 0
  br i1 %145, label %147, label %146

146:                                              ; preds = %143
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %171

147:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  store i32 0, ptr %14, align 4, !tbaa !8
  br label %148

148:                                              ; preds = %164, %147
  %149 = load i32, ptr %14, align 4, !tbaa !8
  %150 = load i32, ptr %13, align 4, !tbaa !8
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds [26 x i32], ptr %3, i64 0, i64 %151
  %153 = load i32, ptr %152, align 4, !tbaa !8
  %154 = sdiv i32 %153, 2
  %155 = icmp slt i32 %149, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %148
  store i32 20, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  br label %167

157:                                              ; preds = %148
  %158 = load i32, ptr %13, align 4, !tbaa !8
  %159 = add nsw i32 %158, 65
  %160 = trunc i32 %159 to i8
  %161 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %160)
  %162 = load i32, ptr %6, align 4, !tbaa !8
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %6, align 4, !tbaa !8
  br label %164

164:                                              ; preds = %157
  %165 = load i32, ptr %14, align 4, !tbaa !8
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %14, align 4, !tbaa !8
  br label %148, !llvm.loop !18

167:                                              ; preds = %156
  br label %168

168:                                              ; preds = %167
  %169 = load i32, ptr %13, align 4, !tbaa !8
  %170 = add nsw i32 %169, -1
  store i32 %170, ptr %13, align 4, !tbaa !8
  br label %143, !llvm.loop !19

171:                                              ; preds = %146
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  store i32 0, ptr %1, align 4
  store i32 1, ptr %10, align 4
  br label %173

173:                                              ; preds = %171, %102, %93
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 104, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %174 = load i32, ptr %1, align 4
  ret i32 %174
}

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

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

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

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

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

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

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

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

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_istream" = type { ptr, i64, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca [26 x i32], align 16
  %2 = alloca i32, align 4
  %3 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %4 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %5 = getelementptr i8, ptr %4, i64 -24
  %6 = load i64, ptr %5, align 8
  %7 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %6
  %8 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %7, ptr noundef null)
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZStrsIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11)
  %10 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11) #6
  %11 = trunc i64 %10 to i32
  call void @llvm.lifetime.start.p0(i64 104, ptr nonnull %1) #6
  %12 = getelementptr inbounds i8, ptr %1, i64 104
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  store i32 0, ptr %2, align 4, !tbaa !8
  call void @_ZSt4fillIPiiEvT_S1_RKT0_(ptr noundef nonnull %1, ptr noundef nonnull %12, ptr noundef nonnull align 4 dereferenceable(4) %2)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #6
  %13 = icmp sgt i32 %11, 0
  br i1 %13, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %0
  %wide.trip.count = and i64 %10, 2147483647
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %14 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) @_Z6secondB5cxx11, i64 noundef %indvars.iv)
  %15 = load i8, ptr %14, align 1, !tbaa !11
  %16 = sext i8 %15 to i64
  %17 = add nsw i64 %16, -65
  %18 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !8
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %18, align 4, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %0
  %21 = getelementptr inbounds i8, ptr %1, i64 12
  %22 = load i32, ptr %21, align 4, !tbaa !8
  %23 = getelementptr inbounds i8, ptr %1, i64 16
  %24 = load i32, ptr %23, align 16, !tbaa !8
  %25 = getelementptr inbounds i8, ptr %1, i64 20
  %26 = load i32, ptr %25, align 4, !tbaa !8
  %27 = getelementptr inbounds i8, ptr %1, i64 24
  %28 = load i32, ptr %27, align 8, !tbaa !8
  %29 = getelementptr inbounds i8, ptr %1, i64 28
  %30 = load i32, ptr %29, align 4, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %1, i64 32
  %32 = load i32, ptr %31, align 16, !tbaa !8
  %33 = getelementptr inbounds i8, ptr %1, i64 36
  %34 = load i32, ptr %33, align 4, !tbaa !8
  %35 = getelementptr inbounds i8, ptr %1, i64 40
  %36 = load i32, ptr %35, align 8, !tbaa !8
  %37 = getelementptr inbounds i8, ptr %1, i64 44
  %38 = load i32, ptr %37, align 4, !tbaa !8
  %39 = getelementptr inbounds i8, ptr %1, i64 48
  %40 = load i32, ptr %39, align 16, !tbaa !8
  %41 = getelementptr inbounds i8, ptr %1, i64 52
  %42 = load i32, ptr %41, align 4, !tbaa !8
  %43 = getelementptr inbounds i8, ptr %1, i64 56
  %44 = load i32, ptr %43, align 8, !tbaa !8
  %45 = getelementptr inbounds i8, ptr %1, i64 60
  %46 = load i32, ptr %45, align 4, !tbaa !8
  %47 = getelementptr inbounds i8, ptr %1, i64 64
  %48 = load i32, ptr %47, align 16, !tbaa !8
  %49 = getelementptr inbounds i8, ptr %1, i64 68
  %50 = load i32, ptr %49, align 4, !tbaa !8
  %51 = getelementptr inbounds i8, ptr %1, i64 72
  %52 = load i32, ptr %51, align 8, !tbaa !8
  %53 = getelementptr inbounds i8, ptr %1, i64 76
  %54 = load i32, ptr %53, align 4, !tbaa !8
  %55 = getelementptr inbounds i8, ptr %1, i64 80
  %56 = load i32, ptr %55, align 16, !tbaa !8
  %57 = getelementptr inbounds i8, ptr %1, i64 84
  %58 = load i32, ptr %57, align 4, !tbaa !8
  %59 = getelementptr inbounds i8, ptr %1, i64 88
  %60 = load i32, ptr %59, align 8, !tbaa !8
  %61 = getelementptr inbounds i8, ptr %1, i64 92
  %62 = load i32, ptr %61, align 4, !tbaa !8
  %63 = getelementptr inbounds i8, ptr %1, i64 96
  %64 = load i32, ptr %63, align 16, !tbaa !8
  %65 = getelementptr inbounds i8, ptr %1, i64 100
  %66 = load i32, ptr %65, align 4, !tbaa !8
  %67 = load i32, ptr %1, align 16, !tbaa !8
  %68 = and i32 %67, -2147483647
  %69 = icmp eq i32 %68, 1
  %70 = getelementptr inbounds i8, ptr %1, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !8
  %72 = and i32 %71, -2147483647
  %73 = icmp eq i32 %72, 1
  %or.cond.1 = select i1 %73, i1 %69, i1 false
  br i1 %or.cond.1, label %.sink.split, label %74

74:                                               ; preds = %.loopexit
  %75 = getelementptr inbounds i8, ptr %1, i64 8
  %76 = load i32, ptr %75, align 8, !tbaa !8
  %77 = and i32 %76, -2147483647
  %78 = icmp eq i32 %77, 1
  %79 = select i1 %73, i1 true, i1 %69
  %or.cond.2 = select i1 %78, i1 %79, i1 false
  br i1 %or.cond.2, label %.sink.split, label %80

80:                                               ; preds = %74
  %not. = xor i1 %69, true
  %spec.select = sext i1 %not. to i32
  %spec.select.1 = select i1 %73, i32 1, i32 %spec.select
  %spec.select.2 = select i1 %78, i32 2, i32 %spec.select.1
  %81 = and i32 %22, -2147483647
  %82 = icmp eq i32 %81, 1
  %83 = icmp ne i32 %spec.select.2, -1
  %or.cond.3 = select i1 %82, i1 %83, i1 false
  br i1 %or.cond.3, label %.sink.split, label %84

84:                                               ; preds = %80
  %spec.select.3 = select i1 %82, i32 3, i32 %spec.select.2
  %85 = and i32 %24, -2147483647
  %86 = icmp eq i32 %85, 1
  %87 = icmp ne i32 %spec.select.3, -1
  %or.cond.4 = select i1 %86, i1 %87, i1 false
  br i1 %or.cond.4, label %.sink.split, label %88

88:                                               ; preds = %84
  %spec.select.4 = select i1 %86, i32 4, i32 %spec.select.3
  %89 = and i32 %26, -2147483647
  %90 = icmp eq i32 %89, 1
  %91 = icmp ne i32 %spec.select.4, -1
  %or.cond.5 = select i1 %90, i1 %91, i1 false
  br i1 %or.cond.5, label %.sink.split, label %92

92:                                               ; preds = %88
  %spec.select.5 = select i1 %90, i32 5, i32 %spec.select.4
  %93 = and i32 %28, -2147483647
  %94 = icmp eq i32 %93, 1
  %95 = icmp ne i32 %spec.select.5, -1
  %or.cond.6 = select i1 %94, i1 %95, i1 false
  br i1 %or.cond.6, label %.sink.split, label %96

96:                                               ; preds = %92
  %spec.select.6 = select i1 %94, i32 6, i32 %spec.select.5
  %97 = and i32 %30, -2147483647
  %98 = icmp eq i32 %97, 1
  %99 = icmp ne i32 %spec.select.6, -1
  %or.cond.7 = select i1 %98, i1 %99, i1 false
  br i1 %or.cond.7, label %.sink.split, label %100

100:                                              ; preds = %96
  %spec.select.7 = select i1 %98, i32 7, i32 %spec.select.6
  %101 = and i32 %32, -2147483647
  %102 = icmp eq i32 %101, 1
  %103 = icmp ne i32 %spec.select.7, -1
  %or.cond.8 = select i1 %102, i1 %103, i1 false
  br i1 %or.cond.8, label %.sink.split, label %104

104:                                              ; preds = %100
  %spec.select.8 = select i1 %102, i32 8, i32 %spec.select.7
  %105 = and i32 %34, -2147483647
  %106 = icmp eq i32 %105, 1
  %107 = icmp ne i32 %spec.select.8, -1
  %or.cond.9 = select i1 %106, i1 %107, i1 false
  br i1 %or.cond.9, label %.sink.split, label %108

108:                                              ; preds = %104
  %spec.select.9 = select i1 %106, i32 9, i32 %spec.select.8
  %109 = and i32 %36, -2147483647
  %110 = icmp eq i32 %109, 1
  %111 = icmp ne i32 %spec.select.9, -1
  %or.cond.10 = select i1 %110, i1 %111, i1 false
  br i1 %or.cond.10, label %.sink.split, label %112

112:                                              ; preds = %108
  %spec.select.10 = select i1 %110, i32 10, i32 %spec.select.9
  %113 = and i32 %38, -2147483647
  %114 = icmp eq i32 %113, 1
  %115 = icmp ne i32 %spec.select.10, -1
  %or.cond.11 = select i1 %114, i1 %115, i1 false
  br i1 %or.cond.11, label %.sink.split, label %116

116:                                              ; preds = %112
  %spec.select.11 = select i1 %114, i32 11, i32 %spec.select.10
  %117 = and i32 %40, -2147483647
  %118 = icmp eq i32 %117, 1
  %119 = icmp ne i32 %spec.select.11, -1
  %or.cond.12 = select i1 %118, i1 %119, i1 false
  br i1 %or.cond.12, label %.sink.split, label %120

120:                                              ; preds = %116
  %spec.select.12 = select i1 %118, i32 12, i32 %spec.select.11
  %121 = and i32 %42, -2147483647
  %122 = icmp eq i32 %121, 1
  %123 = icmp ne i32 %spec.select.12, -1
  %or.cond.13 = select i1 %122, i1 %123, i1 false
  br i1 %or.cond.13, label %.sink.split, label %124

124:                                              ; preds = %120
  %spec.select.13 = select i1 %122, i32 13, i32 %spec.select.12
  %125 = and i32 %44, -2147483647
  %126 = icmp eq i32 %125, 1
  %127 = icmp ne i32 %spec.select.13, -1
  %or.cond.14 = select i1 %126, i1 %127, i1 false
  br i1 %or.cond.14, label %.sink.split, label %128

128:                                              ; preds = %124
  %spec.select.14 = select i1 %126, i32 14, i32 %spec.select.13
  %129 = and i32 %46, -2147483647
  %130 = icmp eq i32 %129, 1
  %131 = icmp ne i32 %spec.select.14, -1
  %or.cond.15 = select i1 %130, i1 %131, i1 false
  br i1 %or.cond.15, label %.sink.split, label %132

132:                                              ; preds = %128
  %spec.select.15 = select i1 %130, i32 15, i32 %spec.select.14
  %133 = and i32 %48, -2147483647
  %134 = icmp eq i32 %133, 1
  %135 = icmp ne i32 %spec.select.15, -1
  %or.cond.16 = select i1 %134, i1 %135, i1 false
  br i1 %or.cond.16, label %.sink.split, label %136

136:                                              ; preds = %132
  %spec.select.16 = select i1 %134, i32 16, i32 %spec.select.15
  %137 = and i32 %50, -2147483647
  %138 = icmp eq i32 %137, 1
  %139 = icmp ne i32 %spec.select.16, -1
  %or.cond.17 = select i1 %138, i1 %139, i1 false
  br i1 %or.cond.17, label %.sink.split, label %140

140:                                              ; preds = %136
  %spec.select.17 = select i1 %138, i32 17, i32 %spec.select.16
  %141 = and i32 %52, -2147483647
  %142 = icmp eq i32 %141, 1
  %143 = icmp ne i32 %spec.select.17, -1
  %or.cond.18 = select i1 %142, i1 %143, i1 false
  br i1 %or.cond.18, label %.sink.split, label %144

144:                                              ; preds = %140
  %spec.select.18 = select i1 %142, i32 18, i32 %spec.select.17
  %145 = and i32 %54, -2147483647
  %146 = icmp eq i32 %145, 1
  %147 = icmp ne i32 %spec.select.18, -1
  %or.cond.19 = select i1 %146, i1 %147, i1 false
  br i1 %or.cond.19, label %.sink.split, label %148

148:                                              ; preds = %144
  %spec.select.19 = select i1 %146, i32 19, i32 %spec.select.18
  %149 = and i32 %56, -2147483647
  %150 = icmp eq i32 %149, 1
  %151 = icmp ne i32 %spec.select.19, -1
  %or.cond.20 = select i1 %150, i1 %151, i1 false
  br i1 %or.cond.20, label %.sink.split, label %152

152:                                              ; preds = %148
  %spec.select.20 = select i1 %150, i32 20, i32 %spec.select.19
  %153 = and i32 %58, -2147483647
  %154 = icmp eq i32 %153, 1
  %155 = icmp ne i32 %spec.select.20, -1
  %or.cond.21 = select i1 %154, i1 %155, i1 false
  br i1 %or.cond.21, label %.sink.split, label %156

156:                                              ; preds = %152
  %spec.select.21 = select i1 %154, i32 21, i32 %spec.select.20
  %157 = and i32 %60, -2147483647
  %158 = icmp eq i32 %157, 1
  %159 = icmp ne i32 %spec.select.21, -1
  %or.cond.22 = select i1 %158, i1 %159, i1 false
  br i1 %or.cond.22, label %.sink.split, label %160

160:                                              ; preds = %156
  %spec.select.22 = select i1 %158, i32 22, i32 %spec.select.21
  %161 = and i32 %62, -2147483647
  %162 = icmp eq i32 %161, 1
  %163 = icmp ne i32 %spec.select.22, -1
  %or.cond.23 = select i1 %162, i1 %163, i1 false
  br i1 %or.cond.23, label %.sink.split, label %164

164:                                              ; preds = %160
  %spec.select.23 = select i1 %162, i32 23, i32 %spec.select.22
  %165 = and i32 %64, -2147483647
  %166 = icmp eq i32 %165, 1
  %167 = icmp ne i32 %spec.select.23, -1
  %or.cond.24 = select i1 %166, i1 %167, i1 false
  br i1 %or.cond.24, label %.sink.split, label %168

168:                                              ; preds = %164
  %spec.select.24 = select i1 %166, i32 24, i32 %spec.select.23
  %169 = and i32 %66, -2147483647
  %170 = icmp eq i32 %169, 1
  %171 = icmp ne i32 %spec.select.24, -1
  %or.cond.25 = select i1 %170, i1 %171, i1 false
  br i1 %or.cond.25, label %.sink.split, label %.critedge

.critedge:                                        ; preds = %168
  %spec.select.25 = select i1 %170, i32 25, i32 %spec.select.24
  %.not = icmp eq i32 %spec.select.25, -1
  %172 = and i32 %11, -2147483647
  %.not48 = icmp eq i32 %172, 1
  %or.cond49 = or i1 %.not48, %.not
  br i1 %or.cond49, label %.preheader50, label %.sink.split

.preheader50:                                     ; preds = %.critedge, %._crit_edge
  %indvars.iv83 = phi i64 [ %indvars.iv.next84, %._crit_edge ], [ 0, %.critedge ]
  %173 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %indvars.iv83
  %174 = load i32, ptr %173, align 4, !tbaa !8
  %175 = icmp sgt i32 %174, 1
  br i1 %175, label %.lr.ph62, label %._crit_edge

.lr.ph62:                                         ; preds = %.preheader50
  %176 = trunc i64 %indvars.iv83 to i8
  %177 = add nuw nsw i8 %176, 65
  br label %179

178:                                              ; preds = %._crit_edge
  br i1 %.not, label %.preheader.preheader, label %185

._crit_edge:                                      ; preds = %179, %.preheader50
  %indvars.iv.next84 = add nuw nsw i64 %indvars.iv83, 1
  %exitcond86.not = icmp eq i64 %indvars.iv.next84, 26
  br i1 %exitcond86.not, label %178, label %.preheader50, !llvm.loop !14

179:                                              ; preds = %.lr.ph62, %179
  %.03661 = phi i32 [ 0, %.lr.ph62 ], [ %181, %179 ]
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %177)
  %181 = add nuw nsw i32 %.03661, 1
  %182 = load i32, ptr %173, align 4, !tbaa !8
  %183 = sdiv i32 %182, 2
  %184 = icmp slt i32 %181, %183
  br i1 %184, label %179, label %._crit_edge, !llvm.loop !15

185:                                              ; preds = %178
  %186 = trunc nsw i32 %spec.select.25 to i8
  %187 = add nsw i8 %186, 65
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %187)
  br label %.preheader.preheader

.preheader.preheader:                             ; preds = %185, %178
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge68
  %indvars.iv87 = phi i64 [ %indvars.iv.next88, %._crit_edge68 ], [ 25, %.preheader.preheader ]
  %189 = getelementptr inbounds [26 x i32], ptr %1, i64 0, i64 %indvars.iv87
  %190 = load i32, ptr %189, align 4, !tbaa !8
  %191 = icmp sgt i32 %190, 1
  br i1 %191, label %.lr.ph67, label %._crit_edge68

.lr.ph67:                                         ; preds = %.preheader
  %192 = trunc i64 %indvars.iv87 to i8
  %193 = add i8 %192, 65
  br label %194

._crit_edge68:                                    ; preds = %194, %.preheader
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, -1
  %.not90 = icmp eq i64 %indvars.iv87, 0
  br i1 %.not90, label %.loopexit91, label %.preheader, !llvm.loop !16

194:                                              ; preds = %.lr.ph67, %194
  %.066 = phi i32 [ 0, %.lr.ph67 ], [ %196, %194 ]
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i8 noundef signext %193)
  %196 = add nuw nsw i32 %.066, 1
  %197 = load i32, ptr %189, align 4, !tbaa !8
  %198 = sdiv i32 %197, 2
  %199 = icmp slt i32 %196, %198
  br i1 %199, label %194, label %._crit_edge68, !llvm.loop !17

.sink.split:                                      ; preds = %.critedge, %.loopexit, %74, %80, %84, %88, %92, %96, %100, %104, %108, %112, %116, %120, %124, %128, %132, %136, %140, %144, %148, %152, %156, %160, %164, %168
  %200 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %.loopexit91

.loopexit91:                                      ; preds = %._crit_edge68, %.sink.split
  %.sink = phi ptr [ %200, %.sink.split ], [ @_ZSt4cout, %._crit_edge68 ]
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %.sink, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 104, ptr nonnull %1) #6
  ret i32 0
}

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

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

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

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

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

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

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

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

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

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

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

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


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