; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/86 Beta Division 1/Problem A (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::__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 }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@state = external dso_local global i32, align 4
@c1 = external dso_local global i32, align 4
@c2 = external dso_local global i32, align 4
@c3 = external dso_local global i32, align 4
@g = external dso_local global i32, align 4
@t = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3adjv() #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4nounv() #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4verbv() #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %1 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %2 = 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) @_Z1sB5cxx11)
  %3 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #4
  %4 = icmp ult i64 %3, 3
  br i1 %4, label %5, label %7

5:                                                ; preds = %0
  %6 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

7:                                                ; preds = %0
  %8 = call noundef i32 @_Z3adjv()
  store i32 %8, ptr @g, align 4, !tbaa !5
  %9 = load i32, ptr @g, align 4, !tbaa !5
  %10 = icmp ne i32 %9, -1
  br i1 %10, label %11, label %12

11:                                               ; preds = %7
  store i32 1, ptr @c1, align 4, !tbaa !5
  store i32 1, ptr @state, align 4, !tbaa !5
  br label %30

12:                                               ; preds = %7
  %13 = call noundef i32 @_Z4nounv()
  store i32 %13, ptr @g, align 4, !tbaa !5
  %14 = load i32, ptr @g, align 4, !tbaa !5
  %15 = icmp ne i32 %14, -1
  br i1 %15, label %16, label %19

16:                                               ; preds = %12
  store i32 2, ptr @state, align 4, !tbaa !5
  %17 = load i32, ptr @c2, align 4, !tbaa !5
  %18 = add nsw i32 %17, 1
  store i32 %18, ptr @c2, align 4, !tbaa !5
  br label %29

19:                                               ; preds = %12
  %20 = call noundef i32 @_Z4verbv()
  store i32 %20, ptr @g, align 4, !tbaa !5
  %21 = load i32, ptr @g, align 4, !tbaa !5
  %22 = icmp ne i32 %21, -1
  br i1 %22, label %23, label %26

23:                                               ; preds = %19
  store i32 3, ptr @state, align 4, !tbaa !5
  %24 = load i32, ptr @c3, align 4, !tbaa !5
  %25 = add nsw i32 %24, 1
  store i32 %25, ptr @c3, align 4, !tbaa !5
  br label %28

26:                                               ; preds = %19
  %27 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

28:                                               ; preds = %23
  br label %29

29:                                               ; preds = %28, %16
  br label %30

30:                                               ; preds = %29, %11
  br label %31

31:                                               ; preds = %88, %46, %30
  %32 = 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) @_Z1sB5cxx11)
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %32, i64 %35
  %37 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %36)
  br i1 %37, label %38, label %89

38:                                               ; preds = %31
  %39 = load i32, ptr @state, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 1
  br i1 %40, label %41, label %65

41:                                               ; preds = %38
  %42 = call noundef i32 @_Z3adjv()
  store i32 %42, ptr @t, align 4, !tbaa !5
  %43 = load i32, ptr @t, align 4, !tbaa !5
  %44 = load i32, ptr @g, align 4, !tbaa !5
  %45 = icmp eq i32 %43, %44
  br i1 %45, label %46, label %49

46:                                               ; preds = %41
  %47 = load i32, ptr @c1, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr @c1, align 4, !tbaa !5
  br label %31, !llvm.loop !11

49:                                               ; preds = %41
  %50 = load i32, ptr @t, align 4, !tbaa !5
  %51 = icmp eq i32 %50, -1
  br i1 %51, label %52, label %62

52:                                               ; preds = %49
  %53 = call noundef i32 @_Z4nounv()
  %54 = load i32, ptr @g, align 4, !tbaa !5
  %55 = icmp ne i32 %53, %54
  br i1 %55, label %56, label %58

56:                                               ; preds = %52
  %57 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

58:                                               ; preds = %52
  %59 = load i32, ptr @c2, align 4, !tbaa !5
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr @c2, align 4, !tbaa !5
  store i32 3, ptr @state, align 4, !tbaa !5
  br label %61

61:                                               ; preds = %58
  br label %64

62:                                               ; preds = %49
  %63 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

64:                                               ; preds = %61
  br label %88

65:                                               ; preds = %38
  %66 = load i32, ptr @state, align 4, !tbaa !5
  %67 = icmp eq i32 %66, 2
  br i1 %67, label %68, label %78

68:                                               ; preds = %65
  %69 = call noundef i32 @_Z4verbv()
  %70 = load i32, ptr @g, align 4, !tbaa !5
  %71 = icmp ne i32 %69, %70
  br i1 %71, label %72, label %74

72:                                               ; preds = %68
  %73 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

74:                                               ; preds = %68
  %75 = load i32, ptr @c3, align 4, !tbaa !5
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr @c3, align 4, !tbaa !5
  store i32 3, ptr @state, align 4, !tbaa !5
  br label %77

77:                                               ; preds = %74
  br label %87

78:                                               ; preds = %65
  %79 = call noundef i32 @_Z4verbv()
  %80 = load i32, ptr @g, align 4, !tbaa !5
  %81 = icmp ne i32 %79, %80
  br i1 %81, label %82, label %84

82:                                               ; preds = %78
  %83 = call i32 @puts(ptr noundef @.str.7)
  store i32 0, ptr %1, align 4
  br label %107

84:                                               ; preds = %78
  %85 = load i32, ptr @c3, align 4, !tbaa !5
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr @c3, align 4, !tbaa !5
  br label %87

87:                                               ; preds = %84, %77
  br label %88

88:                                               ; preds = %87, %64
  br label %31, !llvm.loop !11

89:                                               ; preds = %31
  %90 = load i32, ptr @c1, align 4, !tbaa !5
  %91 = load i32, ptr @c2, align 4, !tbaa !5
  %92 = add nsw i32 %90, %91
  %93 = load i32, ptr @c3, align 4, !tbaa !5
  %94 = add nsw i32 %92, %93
  %95 = icmp eq i32 %94, 1
  br i1 %95, label %96, label %98

96:                                               ; preds = %89
  %97 = call i32 @puts(ptr noundef @.str.8)
  br label %106

98:                                               ; preds = %89
  %99 = load i32, ptr @c2, align 4, !tbaa !5
  %100 = icmp ne i32 %99, 1
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = call i32 @puts(ptr noundef @.str.7)
  br label %105

103:                                              ; preds = %98
  %104 = call i32 @puts(ptr noundef @.str.8)
  br label %105

105:                                              ; preds = %103, %101
  br label %106

106:                                              ; preds = %105, %96
  store i32 0, ptr %1, align 4
  br label %107

107:                                              ; preds = %106, %82, %72, %62, %56, %26, %5
  %108 = load i32, ptr %1, align 4
  ret i32 %108
}

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

declare i32 @puts(ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { "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 = { 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 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; 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 }

@_Z1sB5cxx11 = external dso_local global %"class.std::__cxx11::basic_string", align 8
@state = external dso_local local_unnamed_addr global i32, align 4
@c1 = external dso_local local_unnamed_addr global i32, align 4
@c2 = external dso_local local_unnamed_addr global i32, align 4
@c3 = external dso_local local_unnamed_addr global i32, align 4
@g = external dso_local local_unnamed_addr global i32, align 4
@t = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z3adjv() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4nounv() local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z4verbv() local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 {
  %1 = 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) @_Z1sB5cxx11)
  %2 = tail call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) @_Z1sB5cxx11) #5
  %3 = icmp ult i64 %2, 3
  br i1 %3, label %.loopexit, label %4

4:                                                ; preds = %0
  %5 = tail call noundef i32 @_Z3adjv()
  store i32 %5, ptr @g, align 4, !tbaa !5
  %.not = icmp eq i32 %5, -1
  br i1 %.not, label %7, label %6

6:                                                ; preds = %4
  store i32 1, ptr @c1, align 4, !tbaa !5
  store i32 1, ptr @state, align 4, !tbaa !5
  br label %17

7:                                                ; preds = %4
  %8 = tail call noundef i32 @_Z4nounv()
  store i32 %8, ptr @g, align 4, !tbaa !5
  %.not2 = icmp eq i32 %8, -1
  br i1 %.not2, label %12, label %9

9:                                                ; preds = %7
  store i32 2, ptr @state, align 4, !tbaa !5
  %10 = load i32, ptr @c2, align 4, !tbaa !5
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr @c2, align 4, !tbaa !5
  br label %17

12:                                               ; preds = %7
  %13 = tail call noundef i32 @_Z4verbv()
  store i32 %13, ptr @g, align 4, !tbaa !5
  %.not3 = icmp eq i32 %13, -1
  br i1 %.not3, label %.loopexit, label %14

14:                                               ; preds = %12
  store i32 3, ptr @state, align 4, !tbaa !5
  %15 = load i32, ptr @c3, align 4, !tbaa !5
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr @c3, align 4, !tbaa !5
  br label %17

17:                                               ; preds = %9, %14, %6
  %18 = 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) @_Z1sB5cxx11)
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr i8, ptr %19, i64 -24
  %21 = load i64, ptr %20, align 8
  %22 = getelementptr inbounds i8, ptr %18, i64 %21
  %23 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %22)
  br i1 %23, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %17, %.backedge
  %24 = load i32, ptr @state, align 4, !tbaa !5
  switch i32 %24, label %52 [
    i32 1, label %25
    i32 2, label %46
  ]

25:                                               ; preds = %.lr.ph
  %26 = tail call noundef i32 @_Z3adjv()
  store i32 %26, ptr @t, align 4, !tbaa !5
  %27 = load i32, ptr @g, align 4, !tbaa !5
  %28 = icmp eq i32 %26, %27
  br i1 %28, label %29, label %38

29:                                               ; preds = %25
  %30 = load i32, ptr @c1, align 4, !tbaa !5
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr @c1, align 4, !tbaa !5
  br label %.backedge

.backedge:                                        ; preds = %43, %55, %49, %29
  %32 = 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) @_Z1sB5cxx11)
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr i8, ptr %33, i64 -24
  %35 = load i64, ptr %34, align 8
  %36 = getelementptr inbounds i8, ptr %32, i64 %35
  %37 = tail call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %36)
  br i1 %37, label %.lr.ph, label %._crit_edge, !llvm.loop !11

38:                                               ; preds = %25
  %39 = icmp eq i32 %26, -1
  br i1 %39, label %40, label %.loopexit

40:                                               ; preds = %38
  %41 = tail call noundef i32 @_Z4nounv()
  %42 = load i32, ptr @g, align 4, !tbaa !5
  %.not7 = icmp eq i32 %41, %42
  br i1 %.not7, label %43, label %.loopexit

43:                                               ; preds = %40
  %44 = load i32, ptr @c2, align 4, !tbaa !5
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr @c2, align 4, !tbaa !5
  store i32 3, ptr @state, align 4, !tbaa !5
  br label %.backedge

46:                                               ; preds = %.lr.ph
  %47 = tail call noundef i32 @_Z4verbv()
  %48 = load i32, ptr @g, align 4, !tbaa !5
  %.not6 = icmp eq i32 %47, %48
  br i1 %.not6, label %49, label %.loopexit

49:                                               ; preds = %46
  %50 = load i32, ptr @c3, align 4, !tbaa !5
  %51 = add nsw i32 %50, 1
  store i32 %51, ptr @c3, align 4, !tbaa !5
  store i32 3, ptr @state, align 4, !tbaa !5
  br label %.backedge

52:                                               ; preds = %.lr.ph
  %53 = tail call noundef i32 @_Z4verbv()
  %54 = load i32, ptr @g, align 4, !tbaa !5
  %.not5 = icmp eq i32 %53, %54
  br i1 %.not5, label %55, label %.loopexit

55:                                               ; preds = %52
  %56 = load i32, ptr @c3, align 4, !tbaa !5
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr @c3, align 4, !tbaa !5
  br label %.backedge

._crit_edge:                                      ; preds = %.backedge, %17
  %58 = load i32, ptr @c1, align 4, !tbaa !5
  %59 = load i32, ptr @c2, align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  %61 = load i32, ptr @c3, align 4, !tbaa !5
  %62 = add nsw i32 %60, %61
  %63 = icmp eq i32 %62, 1
  br i1 %63, label %.loopexit, label %64

64:                                               ; preds = %._crit_edge
  %.not4 = icmp eq i32 %59, 1
  %.str.8..str.7 = select i1 %.not4, ptr @.str.8, ptr @.str.7
  br label %.loopexit

.loopexit:                                        ; preds = %52, %46, %38, %40, %64, %._crit_edge, %12, %0
  %.str.8.sink = phi ptr [ @.str.7, %0 ], [ @.str.7, %12 ], [ @.str.8, %._crit_edge ], [ %.str.8..str.7, %64 ], [ @.str.7, %40 ], [ @.str.7, %38 ], [ @.str.7, %46 ], [ @.str.7, %52 ]
  %65 = tail call i32 @puts(ptr noundef nonnull dereferenceable(1) %.str.8.sink)
  ret i32 0
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @puts(ptr nocapture noundef readonly) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { 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 #2 = { 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 #3 = { "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 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass