; LLVM IR from AnneLivia/Competitive-Programming :: Online Judges/URI/2139 (main)

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

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 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 i32, align 4
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  br label %4

4:                                                ; preds = %147, %0
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(4) %3)
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr i8, ptr %7, i64 -24
  %9 = load i64, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %6, i64 %9
  %11 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %10)
  br i1 %11, label %12, label %148

12:                                               ; preds = %4
  %13 = load i32, ptr %3, align 4, !tbaa !8
  %14 = icmp eq i32 %13, 25
  br i1 %14, label %15, label %20

15:                                               ; preds = %12
  %16 = load i32, ptr %2, align 4, !tbaa !8
  %17 = icmp eq i32 %16, 12
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %147

20:                                               ; preds = %15, %12
  %21 = load i32, ptr %3, align 4, !tbaa !8
  %22 = icmp eq i32 %21, 24
  br i1 %22, label %23, label %28

23:                                               ; preds = %20
  %24 = load i32, ptr %2, align 4, !tbaa !8
  %25 = icmp eq i32 %24, 12
  br i1 %25, label %26, label %28

26:                                               ; preds = %23
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  br label %146

28:                                               ; preds = %23, %20
  %29 = load i32, ptr %3, align 4, !tbaa !8
  %30 = icmp sgt i32 %29, 25
  br i1 %30, label %31, label %36

31:                                               ; preds = %28
  %32 = load i32, ptr %2, align 4, !tbaa !8
  %33 = icmp eq i32 %32, 12
  br i1 %33, label %34, label %36

34:                                               ; preds = %31
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.2)
  br label %145

36:                                               ; preds = %31, %28
  %37 = load i32, ptr %2, align 4, !tbaa !8
  switch i32 %37, label %140 [
    i32 1, label %38
    i32 2, label %41
    i32 3, label %45
    i32 4, label %50
    i32 5, label %56
    i32 6, label %63
    i32 7, label %71
    i32 8, label %80
    i32 9, label %90
    i32 10, label %101
    i32 11, label %113
    i32 12, label %126
  ]

38:                                               ; preds = %36
  %39 = load i32, ptr %3, align 4, !tbaa !8
  %40 = sub nsw i32 360, %39
  store i32 %40, ptr %3, align 4, !tbaa !8
  br label %140

41:                                               ; preds = %36
  %42 = load i32, ptr %3, align 4, !tbaa !8
  %43 = add nsw i32 %42, 31
  %44 = sub nsw i32 360, %43
  store i32 %44, ptr %3, align 4, !tbaa !8
  br label %140

45:                                               ; preds = %36
  %46 = load i32, ptr %3, align 4, !tbaa !8
  %47 = add nsw i32 %46, 29
  %48 = add nsw i32 %47, 31
  %49 = sub nsw i32 360, %48
  store i32 %49, ptr %3, align 4, !tbaa !8
  br label %140

50:                                               ; preds = %36
  %51 = load i32, ptr %3, align 4, !tbaa !8
  %52 = add nsw i32 %51, 29
  %53 = add nsw i32 %52, 31
  %54 = add nsw i32 %53, 31
  %55 = sub nsw i32 360, %54
  store i32 %55, ptr %3, align 4, !tbaa !8
  br label %140

56:                                               ; preds = %36
  %57 = load i32, ptr %3, align 4, !tbaa !8
  %58 = add nsw i32 %57, 29
  %59 = add nsw i32 %58, 31
  %60 = add nsw i32 %59, 31
  %61 = add nsw i32 %60, 30
  %62 = sub nsw i32 360, %61
  store i32 %62, ptr %3, align 4, !tbaa !8
  br label %140

63:                                               ; preds = %36
  %64 = load i32, ptr %3, align 4, !tbaa !8
  %65 = add nsw i32 %64, 29
  %66 = add nsw i32 %65, 31
  %67 = add nsw i32 %66, 31
  %68 = add nsw i32 %67, 30
  %69 = add nsw i32 %68, 31
  %70 = sub nsw i32 360, %69
  store i32 %70, ptr %3, align 4, !tbaa !8
  br label %140

71:                                               ; preds = %36
  %72 = load i32, ptr %3, align 4, !tbaa !8
  %73 = add nsw i32 %72, 29
  %74 = add nsw i32 %73, 31
  %75 = add nsw i32 %74, 31
  %76 = add nsw i32 %75, 30
  %77 = add nsw i32 %76, 31
  %78 = add nsw i32 %77, 30
  %79 = sub nsw i32 360, %78
  store i32 %79, ptr %3, align 4, !tbaa !8
  br label %140

80:                                               ; preds = %36
  %81 = load i32, ptr %3, align 4, !tbaa !8
  %82 = add nsw i32 %81, 29
  %83 = add nsw i32 %82, 31
  %84 = add nsw i32 %83, 31
  %85 = add nsw i32 %84, 30
  %86 = add nsw i32 %85, 31
  %87 = add nsw i32 %86, 30
  %88 = add nsw i32 %87, 31
  %89 = sub nsw i32 360, %88
  store i32 %89, ptr %3, align 4, !tbaa !8
  br label %140

90:                                               ; preds = %36
  %91 = load i32, ptr %3, align 4, !tbaa !8
  %92 = add nsw i32 %91, 29
  %93 = add nsw i32 %92, 31
  %94 = add nsw i32 %93, 31
  %95 = add nsw i32 %94, 30
  %96 = add nsw i32 %95, 31
  %97 = add nsw i32 %96, 30
  %98 = add nsw i32 %97, 31
  %99 = add nsw i32 %98, 31
  %100 = sub nsw i32 360, %99
  store i32 %100, ptr %3, align 4, !tbaa !8
  br label %140

101:                                              ; preds = %36
  %102 = load i32, ptr %3, align 4, !tbaa !8
  %103 = add nsw i32 %102, 29
  %104 = add nsw i32 %103, 31
  %105 = add nsw i32 %104, 31
  %106 = add nsw i32 %105, 30
  %107 = add nsw i32 %106, 31
  %108 = add nsw i32 %107, 30
  %109 = add nsw i32 %108, 31
  %110 = add nsw i32 %109, 31
  %111 = add nsw i32 %110, 30
  %112 = sub nsw i32 360, %111
  store i32 %112, ptr %3, align 4, !tbaa !8
  br label %140

113:                                              ; preds = %36
  %114 = load i32, ptr %3, align 4, !tbaa !8
  %115 = add nsw i32 %114, 29
  %116 = add nsw i32 %115, 31
  %117 = add nsw i32 %116, 31
  %118 = add nsw i32 %117, 30
  %119 = add nsw i32 %118, 31
  %120 = add nsw i32 %119, 30
  %121 = add nsw i32 %120, 31
  %122 = add nsw i32 %121, 31
  %123 = add nsw i32 %122, 30
  %124 = add nsw i32 %123, 31
  %125 = sub nsw i32 360, %124
  store i32 %125, ptr %3, align 4, !tbaa !8
  br label %140

126:                                              ; preds = %36
  %127 = load i32, ptr %3, align 4, !tbaa !8
  %128 = add nsw i32 %127, 29
  %129 = add nsw i32 %128, 31
  %130 = add nsw i32 %129, 31
  %131 = add nsw i32 %130, 30
  %132 = add nsw i32 %131, 31
  %133 = add nsw i32 %132, 30
  %134 = add nsw i32 %133, 31
  %135 = add nsw i32 %134, 31
  %136 = add nsw i32 %135, 30
  %137 = add nsw i32 %136, 31
  %138 = add nsw i32 %137, 30
  %139 = sub nsw i32 360, %138
  store i32 %139, ptr %3, align 4, !tbaa !8
  br label %140

140:                                              ; preds = %126, %113, %101, %90, %80, %71, %63, %56, %50, %45, %41, %38, %36
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
  %142 = load i32, ptr %3, align 4, !tbaa !8
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %141, i32 noundef %142)
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %143, ptr noundef @.str.4)
  br label %145

145:                                              ; preds = %140, %34
  br label %146

146:                                              ; preds = %145, %26
  br label %147

147:                                              ; preds = %146, %18
  br label %4, !llvm.loop !11

148:                                              ; preds = %4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) #2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #2

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

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

!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 = 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::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" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [10 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #5
  %3 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr %4, i64 %7
  %9 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %8)
  br i1 %9, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %54
  %10 = load i32, ptr %2, align 4, !tbaa !8
  %11 = icmp eq i32 %10, 25
  %12 = load i32, ptr %1, align 4
  %13 = icmp eq i32 %12, 12
  %or.cond = select i1 %11, i1 %13, i1 false
  br i1 %or.cond, label %14, label %16

14:                                               ; preds = %.lr.ph
  %15 = 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 %54

16:                                               ; preds = %.lr.ph
  %17 = icmp eq i32 %10, 24
  %or.cond3 = select i1 %17, i1 %13, i1 false
  br i1 %or.cond3, label %18, label %20

18:                                               ; preds = %16
  %19 = 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.1)
  br label %54

20:                                               ; preds = %16
  %21 = icmp sgt i32 %10, 25
  %or.cond5 = select i1 %21, i1 %13, i1 false
  br i1 %or.cond5, label %22, label %24

22:                                               ; preds = %20
  %23 = 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.2)
  br label %54

24:                                               ; preds = %20
  switch i32 %12, label %49 [
    i32 1, label %25
    i32 2, label %27
    i32 3, label %29
    i32 4, label %31
    i32 5, label %33
    i32 6, label %35
    i32 7, label %37
    i32 8, label %39
    i32 9, label %41
    i32 10, label %43
    i32 11, label %45
    i32 12, label %47
  ]

25:                                               ; preds = %24
  %26 = sub nsw i32 360, %10
  store i32 %26, ptr %2, align 4, !tbaa !8
  br label %49

27:                                               ; preds = %24
  %28 = sub nsw i32 329, %10
  store i32 %28, ptr %2, align 4, !tbaa !8
  br label %49

29:                                               ; preds = %24
  %30 = sub nsw i32 300, %10
  store i32 %30, ptr %2, align 4, !tbaa !8
  br label %49

31:                                               ; preds = %24
  %32 = sub nsw i32 269, %10
  store i32 %32, ptr %2, align 4, !tbaa !8
  br label %49

33:                                               ; preds = %24
  %34 = sub nsw i32 239, %10
  store i32 %34, ptr %2, align 4, !tbaa !8
  br label %49

35:                                               ; preds = %24
  %36 = sub nsw i32 208, %10
  store i32 %36, ptr %2, align 4, !tbaa !8
  br label %49

37:                                               ; preds = %24
  %38 = sub nsw i32 178, %10
  store i32 %38, ptr %2, align 4, !tbaa !8
  br label %49

39:                                               ; preds = %24
  %40 = sub nsw i32 147, %10
  store i32 %40, ptr %2, align 4, !tbaa !8
  br label %49

41:                                               ; preds = %24
  %42 = sub nsw i32 116, %10
  store i32 %42, ptr %2, align 4, !tbaa !8
  br label %49

43:                                               ; preds = %24
  %44 = sub nsw i32 86, %10
  store i32 %44, ptr %2, align 4, !tbaa !8
  br label %49

45:                                               ; preds = %24
  %46 = sub nsw i32 55, %10
  store i32 %46, ptr %2, align 4, !tbaa !8
  br label %49

47:                                               ; preds = %24
  %48 = sub nsw i32 25, %10
  store i32 %48, ptr %2, align 4, !tbaa !8
  br label %49

49:                                               ; preds = %47, %45, %43, %41, %39, %37, %35, %33, %31, %29, %27, %25, %24
  %50 = 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.3)
  %51 = load i32, ptr %2, align 4, !tbaa !8
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %50, i32 noundef %51)
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull @.str.4)
  br label %54

54:                                               ; preds = %18, %49, %22, %14
  %55 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %1)
  %56 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %55, ptr noundef nonnull align 4 dereferenceable(4) %2)
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  %58 = getelementptr i8, ptr %57, i64 -24
  %59 = load i64, ptr %58, align 8
  %60 = getelementptr inbounds i8, ptr %56, i64 %59
  %61 = call noundef zeroext i1 @_ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv(ptr noundef nonnull align 8 dereferenceable(264) %60)
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge:                                      ; preds = %54, %0
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret i32 0
}

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

declare noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #2

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

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

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}


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