; LLVM IR from kazunetakahashi/atcoder :: 2018/0811_ABC105 (C)

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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca [40 x i8], align 16
  %3 = alloca i8, align 1
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::allocator", align 1
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  store i32 0, ptr %1, align 4
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 40, ptr %2) #5
  %18 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
  %19 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 0
  %20 = getelementptr inbounds i8, ptr %19, i64 40
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #5
  store i8 0, ptr %3, align 1, !tbaa !5
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef %18, ptr noundef %20, ptr noundef nonnull align 1 dereferenceable(1) %3)
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %63, %0
  %22 = load i32, ptr %4, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 32
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 2, ptr %5, align 4
  br label %66

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %26 = load i32, ptr %4, align 4, !tbaa !9
  %27 = shl i32 1, %26
  %28 = sext i32 %27 to i64
  store i64 %28, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %29 = load i64, ptr %6, align 8, !tbaa !11
  %30 = mul nsw i64 2, %29
  store i64 %30, ptr %7, align 8, !tbaa !11
  %31 = load i64, ptr @N, align 8, !tbaa !11
  %32 = load i64, ptr %7, align 8, !tbaa !11
  %33 = srem i64 %31, %32
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %51

35:                                               ; preds = %25
  %36 = load i32, ptr %4, align 4, !tbaa !9
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 %37
  store i8 1, ptr %38, align 1, !tbaa !5
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = srem i32 %39, 2
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %42, label %46

42:                                               ; preds = %35
  %43 = load i64, ptr %6, align 8, !tbaa !11
  %44 = load i64, ptr @N, align 8, !tbaa !11
  %45 = sub nsw i64 %44, %43
  store i64 %45, ptr @N, align 8, !tbaa !11
  br label %50

46:                                               ; preds = %35
  %47 = load i64, ptr %6, align 8, !tbaa !11
  %48 = load i64, ptr @N, align 8, !tbaa !11
  %49 = add nsw i64 %48, %47
  store i64 %49, ptr @N, align 8, !tbaa !11
  br label %50

50:                                               ; preds = %46, %42
  br label %55

51:                                               ; preds = %25
  %52 = load i32, ptr %4, align 4, !tbaa !9
  %53 = sext i32 %52 to i64
  %54 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 %53
  store i8 0, ptr %54, align 1, !tbaa !5
  br label %55

55:                                               ; preds = %51, %50
  %56 = load i64, ptr @N, align 8, !tbaa !11
  %57 = icmp eq i64 %56, 0
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i32 2, ptr %5, align 4
  br label %60

59:                                               ; preds = %55
  store i32 0, ptr %5, align 4
  br label %60

60:                                               ; preds = %59, %58
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %61 = load i32, ptr %5, align 4
  switch i32 %61, label %66 [
    i32 0, label %62
  ]

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %4, align 4, !tbaa !9
  %65 = add nsw i32 %64, 1
  store i32 %65, ptr %4, align 4, !tbaa !9
  br label %21, !llvm.loop !13

66:                                               ; preds = %60, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %67

67:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 39, ptr %9, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %81, %67
  %69 = load i32, ptr %9, align 4, !tbaa !9
  %70 = icmp sge i32 %69, 0
  br i1 %70, label %72, label %71

71:                                               ; preds = %68
  store i32 5, ptr %5, align 4
  br label %84

72:                                               ; preds = %68
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !5, !range !15, !noundef !16
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %80

78:                                               ; preds = %72
  %79 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %79, ptr %8, align 4, !tbaa !9
  store i32 5, ptr %5, align 4
  br label %84

80:                                               ; preds = %72
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = add nsw i32 %82, -1
  store i32 %83, ptr %9, align 4, !tbaa !9
  br label %68, !llvm.loop !17

84:                                               ; preds = %78, %71
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %85

85:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef @.str, ptr noundef nonnull align 1 dereferenceable(1) %11)
          to label %86 unwind label %92

86:                                               ; preds = %85
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %87

87:                                               ; preds = %117, %86
  %88 = load i32, ptr %14, align 4, !tbaa !9
  %89 = load i32, ptr %8, align 4, !tbaa !9
  %90 = icmp sle i32 %88, %89
  br i1 %90, label %96, label %91

91:                                               ; preds = %87
  store i32 8, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %121

92:                                               ; preds = %85
  %93 = landingpad { ptr, i32 }
          cleanup
  %94 = extractvalue { ptr, i32 } %93, 0
  store ptr %94, ptr %12, align 8
  %95 = extractvalue { ptr, i32 } %93, 1
  store i32 %95, ptr %13, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  br label %132

96:                                               ; preds = %87
  %97 = load i32, ptr %14, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds [40 x i8], ptr %2, i64 0, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !5, !range !15, !noundef !16
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %109

102:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, ptr noundef @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %103 unwind label %105

103:                                              ; preds = %102
  %104 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  br label %116

105:                                              ; preds = %102
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %12, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  br label %120

109:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %110 unwind label %112

110:                                              ; preds = %109
  %111 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %116

112:                                              ; preds = %109
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %12, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %16) #5
  br label %120

116:                                              ; preds = %110, %103
  br label %117

117:                                              ; preds = %116
  %118 = load i32, ptr %14, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %14, align 4, !tbaa !9
  br label %87, !llvm.loop !18

120:                                              ; preds = %112, %105
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %131

121:                                              ; preds = %91
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %10)
          to label %123 unwind label %127

123:                                              ; preds = %121
  %124 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %122, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %125 unwind label %127

125:                                              ; preds = %123
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #5
  %126 = load i32, ptr %1, align 4
  ret i32 %126

127:                                              ; preds = %123, %121
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %12, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %13, align 4
  br label %131

131:                                              ; preds = %127, %120
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #5
  br label %132

132:                                              ; preds = %131, %92
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %2) #5
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %12, align 8
  %135 = load i32, ptr %13, align 4
  %136 = insertvalue { ptr, i32 } poison, ptr %134, 0
  %137 = insertvalue { ptr, i32 } %136, i32 %135, 1
  resume { ptr, i32 } %137
}

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) #1

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


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

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %1 = alloca [40 x i8], align 16
  %2 = alloca i8, align 1
  %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::__cxx11::basic_string", align 8
  %7 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %1) #5
  %8 = getelementptr inbounds i8, ptr %1, i64 40
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %2) #5
  store i8 0, ptr %2, align 1, !tbaa !5
  call void @_ZSt4fillIPbbEvT_S1_RKT0_(ptr noundef nonnull %1, ptr noundef nonnull %8, ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %2) #5
  %N.promoted = load i64, ptr @N, align 8, !tbaa !9
  br label %9

9:                                                ; preds = %24, %0
  %indvars.iv = phi i64 [ 0, %0 ], [ %indvars.iv.next, %24 ]
  %.pr3536 = phi i64 [ %N.promoted, %0 ], [ %.pr34, %24 ]
  %10 = trunc nuw nsw i64 %indvars.iv to i32
  %11 = shl nuw i32 1, %10
  %12 = sext i32 %11 to i64
  %13 = shl nsw i64 %12, 1
  %14 = srem i64 %.pr3536, %13
  %.not = icmp eq i64 %14, 0
  %15 = getelementptr inbounds [40 x i8], ptr %1, i64 0, i64 %indvars.iv
  br i1 %.not, label %23, label %16

16:                                               ; preds = %9
  store i8 1, ptr %15, align 1, !tbaa !5
  %17 = and i32 %10, 1
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %21

19:                                               ; preds = %16
  %20 = sub nsw i64 %.pr3536, %12
  store i64 %20, ptr @N, align 8, !tbaa !9
  br label %24

21:                                               ; preds = %16
  %22 = add nsw i64 %.pr3536, %12
  store i64 %22, ptr @N, align 8, !tbaa !9
  br label %24

23:                                               ; preds = %9
  store i8 0, ptr %15, align 1, !tbaa !5
  br label %24

24:                                               ; preds = %19, %21, %23
  %.pr34 = phi i64 [ %20, %19 ], [ %22, %21 ], [ %.pr3536, %23 ]
  %.not29 = icmp eq i64 %.pr34, 0
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 32
  %or.cond = select i1 %.not29, i1 true, i1 %exitcond.not
  br i1 %or.cond, label %25, label %9, !llvm.loop !11

25:                                               ; preds = %24
  %26 = getelementptr inbounds i8, ptr %1, i64 39
  %27 = load i8, ptr %26, align 1, !tbaa !5, !range !13, !noundef !14
  %28 = trunc nuw i8 %27 to i1
  br i1 %28, label %181, label %29

29:                                               ; preds = %25
  %30 = getelementptr inbounds i8, ptr %1, i64 38
  %31 = load i8, ptr %30, align 2, !tbaa !5, !range !13, !noundef !14
  %32 = trunc nuw i8 %31 to i1
  br i1 %32, label %181, label %33

33:                                               ; preds = %29
  %34 = getelementptr inbounds i8, ptr %1, i64 37
  %35 = load i8, ptr %34, align 1, !tbaa !5, !range !13, !noundef !14
  %36 = trunc nuw i8 %35 to i1
  br i1 %36, label %181, label %37

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %1, i64 36
  %39 = load i8, ptr %38, align 4, !tbaa !5, !range !13, !noundef !14
  %40 = trunc nuw i8 %39 to i1
  br i1 %40, label %181, label %41

41:                                               ; preds = %37
  %42 = getelementptr inbounds i8, ptr %1, i64 35
  %43 = load i8, ptr %42, align 1, !tbaa !5, !range !13, !noundef !14
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %181, label %45

45:                                               ; preds = %41
  %46 = getelementptr inbounds i8, ptr %1, i64 34
  %47 = load i8, ptr %46, align 2, !tbaa !5, !range !13, !noundef !14
  %48 = trunc nuw i8 %47 to i1
  br i1 %48, label %181, label %49

49:                                               ; preds = %45
  %50 = getelementptr inbounds i8, ptr %1, i64 33
  %51 = load i8, ptr %50, align 1, !tbaa !5, !range !13, !noundef !14
  %52 = trunc nuw i8 %51 to i1
  br i1 %52, label %181, label %53

53:                                               ; preds = %49
  %54 = getelementptr inbounds i8, ptr %1, i64 32
  %55 = load i8, ptr %54, align 16, !tbaa !5, !range !13, !noundef !14
  %56 = trunc nuw i8 %55 to i1
  br i1 %56, label %181, label %57

57:                                               ; preds = %53
  %58 = getelementptr inbounds i8, ptr %1, i64 31
  %59 = load i8, ptr %58, align 1, !tbaa !5, !range !13, !noundef !14
  %60 = trunc nuw i8 %59 to i1
  br i1 %60, label %181, label %61

61:                                               ; preds = %57
  %62 = getelementptr inbounds i8, ptr %1, i64 30
  %63 = load i8, ptr %62, align 2, !tbaa !5, !range !13, !noundef !14
  %64 = trunc nuw i8 %63 to i1
  br i1 %64, label %181, label %65

65:                                               ; preds = %61
  %66 = getelementptr inbounds i8, ptr %1, i64 29
  %67 = load i8, ptr %66, align 1, !tbaa !5, !range !13, !noundef !14
  %68 = trunc nuw i8 %67 to i1
  br i1 %68, label %181, label %69

69:                                               ; preds = %65
  %70 = getelementptr inbounds i8, ptr %1, i64 28
  %71 = load i8, ptr %70, align 4, !tbaa !5, !range !13, !noundef !14
  %72 = trunc nuw i8 %71 to i1
  br i1 %72, label %181, label %73

73:                                               ; preds = %69
  %74 = getelementptr inbounds i8, ptr %1, i64 27
  %75 = load i8, ptr %74, align 1, !tbaa !5, !range !13, !noundef !14
  %76 = trunc nuw i8 %75 to i1
  br i1 %76, label %181, label %77

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %1, i64 26
  %79 = load i8, ptr %78, align 2, !tbaa !5, !range !13, !noundef !14
  %80 = trunc nuw i8 %79 to i1
  br i1 %80, label %181, label %81

81:                                               ; preds = %77
  %82 = getelementptr inbounds i8, ptr %1, i64 25
  %83 = load i8, ptr %82, align 1, !tbaa !5, !range !13, !noundef !14
  %84 = trunc nuw i8 %83 to i1
  br i1 %84, label %181, label %85

85:                                               ; preds = %81
  %86 = getelementptr inbounds i8, ptr %1, i64 24
  %87 = load i8, ptr %86, align 8, !tbaa !5, !range !13, !noundef !14
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %181, label %89

89:                                               ; preds = %85
  %90 = getelementptr inbounds i8, ptr %1, i64 23
  %91 = load i8, ptr %90, align 1, !tbaa !5, !range !13, !noundef !14
  %92 = trunc nuw i8 %91 to i1
  br i1 %92, label %181, label %93

93:                                               ; preds = %89
  %94 = getelementptr inbounds i8, ptr %1, i64 22
  %95 = load i8, ptr %94, align 2, !tbaa !5, !range !13, !noundef !14
  %96 = trunc nuw i8 %95 to i1
  br i1 %96, label %181, label %97

97:                                               ; preds = %93
  %98 = getelementptr inbounds i8, ptr %1, i64 21
  %99 = load i8, ptr %98, align 1, !tbaa !5, !range !13, !noundef !14
  %100 = trunc nuw i8 %99 to i1
  br i1 %100, label %181, label %101

101:                                              ; preds = %97
  %102 = getelementptr inbounds i8, ptr %1, i64 20
  %103 = load i8, ptr %102, align 4, !tbaa !5, !range !13, !noundef !14
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %181, label %105

105:                                              ; preds = %101
  %106 = getelementptr inbounds i8, ptr %1, i64 19
  %107 = load i8, ptr %106, align 1, !tbaa !5, !range !13, !noundef !14
  %108 = trunc nuw i8 %107 to i1
  br i1 %108, label %181, label %109

109:                                              ; preds = %105
  %110 = getelementptr inbounds i8, ptr %1, i64 18
  %111 = load i8, ptr %110, align 2, !tbaa !5, !range !13, !noundef !14
  %112 = trunc nuw i8 %111 to i1
  br i1 %112, label %181, label %113

113:                                              ; preds = %109
  %114 = getelementptr inbounds i8, ptr %1, i64 17
  %115 = load i8, ptr %114, align 1, !tbaa !5, !range !13, !noundef !14
  %116 = trunc nuw i8 %115 to i1
  br i1 %116, label %181, label %117

117:                                              ; preds = %113
  %118 = getelementptr inbounds i8, ptr %1, i64 16
  %119 = load i8, ptr %118, align 16, !tbaa !5, !range !13, !noundef !14
  %120 = trunc nuw i8 %119 to i1
  br i1 %120, label %181, label %121

121:                                              ; preds = %117
  %122 = getelementptr inbounds i8, ptr %1, i64 15
  %123 = load i8, ptr %122, align 1, !tbaa !5, !range !13, !noundef !14
  %124 = trunc nuw i8 %123 to i1
  br i1 %124, label %181, label %125

125:                                              ; preds = %121
  %126 = getelementptr inbounds i8, ptr %1, i64 14
  %127 = load i8, ptr %126, align 2, !tbaa !5, !range !13, !noundef !14
  %128 = trunc nuw i8 %127 to i1
  br i1 %128, label %181, label %129

129:                                              ; preds = %125
  %130 = getelementptr inbounds i8, ptr %1, i64 13
  %131 = load i8, ptr %130, align 1, !tbaa !5, !range !13, !noundef !14
  %132 = trunc nuw i8 %131 to i1
  br i1 %132, label %181, label %133

133:                                              ; preds = %129
  %134 = getelementptr inbounds i8, ptr %1, i64 12
  %135 = load i8, ptr %134, align 4, !tbaa !5, !range !13, !noundef !14
  %136 = trunc nuw i8 %135 to i1
  br i1 %136, label %181, label %137

137:                                              ; preds = %133
  %138 = getelementptr inbounds i8, ptr %1, i64 11
  %139 = load i8, ptr %138, align 1, !tbaa !5, !range !13, !noundef !14
  %140 = trunc nuw i8 %139 to i1
  br i1 %140, label %181, label %141

141:                                              ; preds = %137
  %142 = getelementptr inbounds i8, ptr %1, i64 10
  %143 = load i8, ptr %142, align 2, !tbaa !5, !range !13, !noundef !14
  %144 = trunc nuw i8 %143 to i1
  br i1 %144, label %181, label %145

145:                                              ; preds = %141
  %146 = getelementptr inbounds i8, ptr %1, i64 9
  %147 = load i8, ptr %146, align 1, !tbaa !5, !range !13, !noundef !14
  %148 = trunc nuw i8 %147 to i1
  br i1 %148, label %181, label %149

149:                                              ; preds = %145
  %150 = getelementptr inbounds i8, ptr %1, i64 8
  %151 = load i8, ptr %150, align 8, !tbaa !5, !range !13, !noundef !14
  %152 = trunc nuw i8 %151 to i1
  br i1 %152, label %181, label %153

153:                                              ; preds = %149
  %154 = getelementptr inbounds i8, ptr %1, i64 7
  %155 = load i8, ptr %154, align 1, !tbaa !5, !range !13, !noundef !14
  %156 = trunc nuw i8 %155 to i1
  br i1 %156, label %181, label %157

157:                                              ; preds = %153
  %158 = getelementptr inbounds i8, ptr %1, i64 6
  %159 = load i8, ptr %158, align 2, !tbaa !5, !range !13, !noundef !14
  %160 = trunc nuw i8 %159 to i1
  br i1 %160, label %181, label %161

161:                                              ; preds = %157
  %162 = getelementptr inbounds i8, ptr %1, i64 5
  %163 = load i8, ptr %162, align 1, !tbaa !5, !range !13, !noundef !14
  %164 = trunc nuw i8 %163 to i1
  br i1 %164, label %181, label %165

165:                                              ; preds = %161
  %166 = getelementptr inbounds i8, ptr %1, i64 4
  %167 = load i8, ptr %166, align 4, !tbaa !5, !range !13, !noundef !14
  %168 = trunc nuw i8 %167 to i1
  br i1 %168, label %181, label %169

169:                                              ; preds = %165
  %170 = getelementptr inbounds i8, ptr %1, i64 3
  %171 = load i8, ptr %170, align 1, !tbaa !5, !range !13, !noundef !14
  %172 = trunc nuw i8 %171 to i1
  br i1 %172, label %181, label %173

173:                                              ; preds = %169
  %174 = getelementptr inbounds i8, ptr %1, i64 2
  %175 = load i8, ptr %174, align 2, !tbaa !5, !range !13, !noundef !14
  %176 = trunc nuw i8 %175 to i1
  br i1 %176, label %181, label %177

177:                                              ; preds = %173
  %178 = getelementptr inbounds i8, ptr %1, i64 1
  %179 = load i8, ptr %178, align 1, !tbaa !5, !range !13, !noundef !14
  %180 = trunc nuw i8 %179 to i1
  %spec.select = select i1 %180, i64 2, i64 1
  br label %181

181:                                              ; preds = %177, %173, %169, %165, %161, %157, %153, %149, %145, %141, %137, %133, %129, %125, %121, %117, %113, %109, %105, %101, %97, %93, %89, %85, %81, %77, %73, %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %29, %25
  %.026 = phi i64 [ 40, %25 ], [ 39, %29 ], [ 38, %33 ], [ 37, %37 ], [ 36, %41 ], [ 35, %45 ], [ 34, %49 ], [ 33, %53 ], [ 32, %57 ], [ 31, %61 ], [ 30, %65 ], [ 29, %69 ], [ 28, %73 ], [ 27, %77 ], [ 26, %81 ], [ 25, %85 ], [ 24, %89 ], [ 23, %93 ], [ 22, %97 ], [ 21, %101 ], [ 20, %105 ], [ 19, %109 ], [ 18, %113 ], [ 17, %117 ], [ 16, %121 ], [ 15, %125 ], [ 14, %129 ], [ 13, %133 ], [ 12, %137 ], [ 11, %141 ], [ 10, %145 ], [ 9, %149 ], [ 8, %153 ], [ 7, %157 ], [ 6, %161 ], [ 5, %165 ], [ 4, %169 ], [ 3, %173 ], [ %spec.select, %177 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  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 %.lr.ph.preheader unwind label %183

.lr.ph.preheader:                                 ; preds = %181
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %.lr.ph

._crit_edge:                                      ; preds = %198
  %182 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %199 unwind label %202

183:                                              ; preds = %181
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  br label %205

.lr.ph:                                           ; preds = %.lr.ph.preheader, %198
  %indvars.iv45 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next46, %198 ]
  %185 = getelementptr inbounds [40 x i8], ptr %1, i64 0, i64 %indvars.iv45
  %186 = load i8, ptr %185, align 1, !tbaa !5, !range !13, !noundef !14
  %187 = trunc nuw i8 %186 to i1
  br i1 %187, label %188, label %193

188:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %5, ptr noundef nonnull @.str.1, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %189 unwind label %191

189:                                              ; preds = %188
  %190 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %198

191:                                              ; preds = %188
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #5
  br label %204

193:                                              ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  invoke void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, ptr noundef nonnull @.str.2, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %194 unwind label %196

194:                                              ; preds = %193
  %195 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %198

196:                                              ; preds = %193
  %197 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  br label %204

198:                                              ; preds = %189, %194
  %indvars.iv.next46 = add nuw nsw i64 %indvars.iv45, 1
  %exitcond48.not = icmp eq i64 %indvars.iv.next46, %.026
  br i1 %exitcond48.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

199:                                              ; preds = %._crit_edge
  %200 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %182, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %201 unwind label %202

201:                                              ; preds = %199
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  ret i32 0

202:                                              ; preds = %199, %._crit_edge
  %203 = landingpad { ptr, i32 }
          cleanup
  br label %204

204:                                              ; preds = %191, %196, %202
  %.pn.pn = phi { ptr, i32 } [ %203, %202 ], [ %192, %191 ], [ %197, %196 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  br label %205

205:                                              ; preds = %204, %183
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %204 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %1) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4 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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = distinct !{!15, !12}


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