; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/237 Division 2/Problem B (B)

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

@a = external dso_local global x86_fp80, align 16
@d = external dso_local global x86_fp80, align 16
@x = external dso_local global x86_fp80, align 16
@y = external dso_local global x86_fp80, align 16
@n = external dso_local global i32, align 4
@cur = external dso_local global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 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 x86_fp80, align 16
  store i32 0, ptr %1, align 4
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 16 dereferenceable(16) @a)
  %5 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 16 dereferenceable(16) @d)
  %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) @n)
  br label %7

7:                                                ; preds = %12, %0
  %8 = load x86_fp80, ptr @d, align 16, !tbaa !5
  %9 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %10 = fmul x86_fp80 0xK40018000000000000000, %9
  %11 = fcmp oge x86_fp80 %8, %10
  br i1 %11, label %12, label %16

12:                                               ; preds = %7
  %13 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %14 = load x86_fp80, ptr @d, align 16, !tbaa !5
  %15 = call x86_fp80 @llvm.fmuladd.f80(x86_fp80 0xKC0018000000000000000, x86_fp80 %13, x86_fp80 %14)
  store x86_fp80 %15, ptr @d, align 16, !tbaa !5
  br label %7, !llvm.loop !9

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

17:                                               ; preds = %124, %16
  %18 = load i32, ptr %2, align 4, !tbaa !11
  %19 = load i32, ptr @n, align 4, !tbaa !11
  %20 = icmp slt i32 %18, %19
  br i1 %20, label %22, label %21

21:                                               ; preds = %17
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  br label %127

22:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  %23 = load x86_fp80, ptr @d, align 16, !tbaa !5
  store x86_fp80 %23, ptr %3, align 16, !tbaa !5
  br label %24

24:                                               ; preds = %117, %22
  %25 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %26 = fcmp ogt x86_fp80 %25, 0xK00000000000000000000
  br i1 %26, label %27, label %118

27:                                               ; preds = %24
  %28 = load i32, ptr @cur, align 4, !tbaa !11
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %51

30:                                               ; preds = %27
  %31 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %32 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %33 = fadd x86_fp80 %31, %32
  %34 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %35 = fcmp olt x86_fp80 %33, %34
  br i1 %35, label %36, label %40

36:                                               ; preds = %30
  %37 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %38 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %39 = fadd x86_fp80 %38, %37
  store x86_fp80 %39, ptr @x, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !5
  br label %50

40:                                               ; preds = %30
  %41 = load i32, ptr @cur, align 4, !tbaa !11
  %42 = add nsw i32 %41, 1
  %43 = srem i32 %42, 4
  store i32 %43, ptr @cur, align 4, !tbaa !11
  %44 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %45 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %46 = fsub x86_fp80 %44, %45
  %47 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %48 = fsub x86_fp80 %47, %46
  store x86_fp80 %48, ptr %3, align 16, !tbaa !5
  %49 = load x86_fp80, ptr @a, align 16, !tbaa !5
  store x86_fp80 %49, ptr @x, align 16, !tbaa !5
  br label %50

50:                                               ; preds = %40, %36
  br label %76

51:                                               ; preds = %27
  %52 = load i32, ptr @cur, align 4, !tbaa !11
  %53 = icmp eq i32 %52, 1
  br i1 %53, label %54, label %75

54:                                               ; preds = %51
  %55 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %56 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %57 = fadd x86_fp80 %55, %56
  %58 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %59 = fcmp olt x86_fp80 %57, %58
  br i1 %59, label %60, label %64

60:                                               ; preds = %54
  %61 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %62 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %63 = fadd x86_fp80 %62, %61
  store x86_fp80 %63, ptr @y, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !5
  br label %74

64:                                               ; preds = %54
  %65 = load i32, ptr @cur, align 4, !tbaa !11
  %66 = add nsw i32 %65, 1
  %67 = srem i32 %66, 4
  store i32 %67, ptr @cur, align 4, !tbaa !11
  %68 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %69 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %70 = fsub x86_fp80 %68, %69
  %71 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %72 = fsub x86_fp80 %71, %70
  store x86_fp80 %72, ptr %3, align 16, !tbaa !5
  %73 = load x86_fp80, ptr @a, align 16, !tbaa !5
  store x86_fp80 %73, ptr @y, align 16, !tbaa !5
  br label %74

74:                                               ; preds = %64, %60
  br label %75

75:                                               ; preds = %74, %51
  br label %76

76:                                               ; preds = %75, %50
  %77 = load i32, ptr @cur, align 4, !tbaa !11
  %78 = icmp eq i32 %77, 2
  br i1 %78, label %79, label %96

79:                                               ; preds = %76
  %80 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %81 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %82 = fsub x86_fp80 %80, %81
  %83 = fcmp ogt x86_fp80 %82, 0xK00000000000000000000
  br i1 %83, label %84, label %88

84:                                               ; preds = %79
  %85 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %86 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %87 = fsub x86_fp80 %86, %85
  store x86_fp80 %87, ptr @x, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !5
  br label %95

88:                                               ; preds = %79
  %89 = load i32, ptr @cur, align 4, !tbaa !11
  %90 = add nsw i32 %89, 1
  %91 = srem i32 %90, 4
  store i32 %91, ptr @cur, align 4, !tbaa !11
  %92 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %93 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %94 = fsub x86_fp80 %93, %92
  store x86_fp80 %94, ptr %3, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr @x, align 16, !tbaa !5
  br label %95

95:                                               ; preds = %88, %84
  br label %117

96:                                               ; preds = %76
  %97 = load i32, ptr @cur, align 4, !tbaa !11
  %98 = icmp eq i32 %97, 3
  br i1 %98, label %99, label %116

99:                                               ; preds = %96
  %100 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %101 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %102 = fsub x86_fp80 %100, %101
  %103 = fcmp ogt x86_fp80 %102, 0xK00000000000000000000
  br i1 %103, label %104, label %108

104:                                              ; preds = %99
  %105 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %106 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %107 = fsub x86_fp80 %106, %105
  store x86_fp80 %107, ptr @y, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr %3, align 16, !tbaa !5
  br label %115

108:                                              ; preds = %99
  %109 = load i32, ptr @cur, align 4, !tbaa !11
  %110 = add nsw i32 %109, 1
  %111 = srem i32 %110, 4
  store i32 %111, ptr @cur, align 4, !tbaa !11
  %112 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %113 = load x86_fp80, ptr %3, align 16, !tbaa !5
  %114 = fsub x86_fp80 %113, %112
  store x86_fp80 %114, ptr %3, align 16, !tbaa !5
  store x86_fp80 0xK00000000000000000000, ptr @y, align 16, !tbaa !5
  br label %115

115:                                              ; preds = %108, %104
  br label %116

116:                                              ; preds = %115, %96
  br label %117

117:                                              ; preds = %116, %95
  br label %24, !llvm.loop !13

118:                                              ; preds = %24
  %119 = load x86_fp80, ptr @x, align 16, !tbaa !5
  %120 = fptrunc x86_fp80 %119 to double
  %121 = load x86_fp80, ptr @y, align 16, !tbaa !5
  %122 = fptrunc x86_fp80 %121 to double
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str, double noundef %120, double noundef %122)
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  br label %124

124:                                              ; preds = %118
  %125 = load i32, ptr %2, align 4, !tbaa !11
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr %2, align 4, !tbaa !11
  br label %17, !llvm.loop !14

127:                                              ; preds = %21
  ret i32 0
}

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

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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #3

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

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 = { "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 speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}


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

@a = external dso_local global x86_fp80, align 16
@d = external dso_local global x86_fp80, align 16
@x = external dso_local local_unnamed_addr global x86_fp80, align 16
@y = external dso_local local_unnamed_addr global x86_fp80, align 16
@n = external dso_local global i32, align 4
@cur = external dso_local local_unnamed_addr global i32, align 4
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@.str = external hidden unnamed_addr constant [13 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 16 dereferenceable(16) @a)
  %2 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERe(ptr noundef nonnull align 8 dereferenceable(16) %1, ptr noundef nonnull align 16 dereferenceable(16) @d)
  %3 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(4) @n)
  %4 = load x86_fp80, ptr @a, align 16, !tbaa !5
  %5 = fmul x86_fp80 %4, 0xK40018000000000000000
  %d.promoted = load x86_fp80, ptr @d, align 16, !tbaa !5
  %6 = fcmp ult x86_fp80 %d.promoted, %5
  br i1 %6, label %.preheader, label %.lr.ph

..preheader_crit_edge:                            ; preds = %.lr.ph
  store x86_fp80 %10, ptr @d, align 16, !tbaa !5
  br label %.preheader

.preheader:                                       ; preds = %..preheader_crit_edge, %0
  %7 = load i32, ptr @n, align 4, !tbaa !9
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph35, label %._crit_edge36

.lr.ph:                                           ; preds = %0, %.lr.ph
  %9 = phi x86_fp80 [ %10, %.lr.ph ], [ %d.promoted, %0 ]
  %10 = tail call x86_fp80 @llvm.fmuladd.f80(x86_fp80 %4, x86_fp80 0xKC0018000000000000000, x86_fp80 %9)
  %11 = fcmp ult x86_fp80 %10, %5
  br i1 %11, label %..preheader_crit_edge, label %.lr.ph, !llvm.loop !11

._crit_edge36:                                    ; preds = %._crit_edge, %.preheader
  ret i32 0

.lr.ph35:                                         ; preds = %.preheader, %._crit_edge
  %.01434 = phi i32 [ %52, %._crit_edge ], [ 0, %.preheader ]
  %12 = load x86_fp80, ptr @d, align 16, !tbaa !5
  %13 = fcmp ogt x86_fp80 %12, 0xK00000000000000000000
  %x.promoted = load x86_fp80, ptr @x, align 16, !tbaa !5
  %y.promoted = load x86_fp80, ptr @y, align 16, !tbaa !5
  br i1 %13, label %.lr.ph33, label %._crit_edge

.lr.ph33:                                         ; preds = %.lr.ph35
  %cur.promoted = load i32, ptr @cur, align 4, !tbaa !9
  %14 = load x86_fp80, ptr @a, align 16
  br label %15

15:                                               ; preds = %.lr.ph33, %43
  %.032 = phi x86_fp80 [ %12, %.lr.ph33 ], [ %.2, %43 ]
  %.pr3031 = phi i32 [ %cur.promoted, %.lr.ph33 ], [ %.pr29, %43 ]
  %16 = phi x86_fp80 [ %y.promoted, %.lr.ph33 ], [ %45, %43 ]
  %17 = phi x86_fp80 [ %x.promoted, %.lr.ph33 ], [ %44, %43 ]
  switch i32 %.pr3031, label %43 [
    i32 0, label %18
    i32 1, label %24
    i32 2, label %30
    i32 3, label %37
  ]

18:                                               ; preds = %15
  %19 = fadd x86_fp80 %.032, %17
  %20 = fcmp olt x86_fp80 %19, %14
  br i1 %20, label %21, label %.thread

21:                                               ; preds = %18
  store x86_fp80 %19, ptr @x, align 16, !tbaa !5
  br label %._crit_edge

.thread:                                          ; preds = %18
  store i32 1, ptr @cur, align 4, !tbaa !9
  %22 = fsub x86_fp80 %17, %14
  %23 = fadd x86_fp80 %.032, %22
  store x86_fp80 %14, ptr @x, align 16, !tbaa !5
  br label %43

24:                                               ; preds = %15
  %25 = fadd x86_fp80 %.032, %16
  %26 = fcmp olt x86_fp80 %25, %14
  br i1 %26, label %27, label %.thread25

27:                                               ; preds = %24
  store x86_fp80 %25, ptr @y, align 16, !tbaa !5
  br label %._crit_edge

.thread25:                                        ; preds = %24
  store i32 2, ptr @cur, align 4, !tbaa !9
  %28 = fsub x86_fp80 %16, %14
  %29 = fadd x86_fp80 %.032, %28
  store x86_fp80 %14, ptr @y, align 16, !tbaa !5
  br label %30

30:                                               ; preds = %15, %.thread25
  %31 = phi x86_fp80 [ %14, %.thread25 ], [ %16, %15 ]
  %.127 = phi x86_fp80 [ %29, %.thread25 ], [ %.032, %15 ]
  %32 = fsub x86_fp80 %17, %.127
  %33 = fcmp ogt x86_fp80 %32, 0xK00000000000000000000
  br i1 %33, label %34, label %35

34:                                               ; preds = %30
  store x86_fp80 %32, ptr @x, align 16, !tbaa !5
  br label %._crit_edge

35:                                               ; preds = %30
  store i32 3, ptr @cur, align 4, !tbaa !9
  %36 = fsub x86_fp80 %.127, %17
  store x86_fp80 0xK00000000000000000000, ptr @x, align 16, !tbaa !5
  br label %43

37:                                               ; preds = %15
  %38 = fsub x86_fp80 %16, %.032
  %39 = fcmp ogt x86_fp80 %38, 0xK00000000000000000000
  br i1 %39, label %40, label %41

40:                                               ; preds = %37
  store x86_fp80 %38, ptr @y, align 16, !tbaa !5
  br label %._crit_edge

41:                                               ; preds = %37
  store i32 0, ptr @cur, align 4, !tbaa !9
  %42 = fsub x86_fp80 %.032, %16
  store x86_fp80 0xK00000000000000000000, ptr @y, align 16, !tbaa !5
  br label %43

43:                                               ; preds = %15, %.thread, %41, %35
  %44 = phi x86_fp80 [ 0xK00000000000000000000, %35 ], [ %17, %41 ], [ %14, %.thread ], [ %17, %15 ]
  %45 = phi x86_fp80 [ %31, %35 ], [ 0xK00000000000000000000, %41 ], [ %16, %.thread ], [ %16, %15 ]
  %.pr29 = phi i32 [ 3, %35 ], [ 0, %41 ], [ 1, %.thread ], [ %.pr3031, %15 ]
  %.2 = phi x86_fp80 [ %36, %35 ], [ %42, %41 ], [ %23, %.thread ], [ %.032, %15 ]
  %46 = fcmp ogt x86_fp80 %.2, 0xK00000000000000000000
  br i1 %46, label %15, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %43, %.lr.ph35, %21, %27, %40, %34
  %47 = phi x86_fp80 [ %38, %40 ], [ %31, %34 ], [ %25, %27 ], [ %16, %21 ], [ %y.promoted, %.lr.ph35 ], [ %45, %43 ]
  %48 = phi x86_fp80 [ %17, %40 ], [ %32, %34 ], [ %17, %27 ], [ %19, %21 ], [ %x.promoted, %.lr.ph35 ], [ %44, %43 ]
  %49 = fptrunc x86_fp80 %48 to double
  %50 = fptrunc x86_fp80 %47 to double
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, double noundef %49, double noundef %50)
  %52 = add nuw nsw i32 %.01434, 1
  %53 = load i32, ptr @n, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %.lr.ph35, label %._crit_edge36, !llvm.loop !14
}

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

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 nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare x86_fp80 @llvm.fmuladd.f80(x86_fp80, x86_fp80, x86_fp80) #3

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) 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 = { 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 = { "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 speculatable willreturn memory(none) }
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" }

!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 = !{!"long double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass