; LLVM IR from abeaumont/competitive-programming :: cses (2413)

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

@dp = external dso_local global [1000001 x [6 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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
  %4 = alloca i32, align 4
  store i32 0, ptr %1, align 4
  %5 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %6 = getelementptr i8, ptr %5, i64 -24
  %7 = load i64, ptr %6, align 8
  %8 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %7
  %9 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %8, ptr noundef null)
  %10 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  store i64 1, ptr getelementptr inbounds ([6 x i64], ptr @dp, i64 0, i64 1), align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  store i32 1, ptr %2, align 4, !tbaa !11
  br label %11

11:                                               ; preds = %107, %0
  %12 = load i32, ptr %2, align 4, !tbaa !11
  %13 = icmp sle i32 %12, 1000000
  br i1 %13, label %15, label %14

14:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  br label %110

15:                                               ; preds = %11
  %16 = load i32, ptr %2, align 4, !tbaa !11
  %17 = sub nsw i32 %16, 1
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %18
  %20 = getelementptr inbounds [6 x i64], ptr %19, i64 0, i64 0
  %21 = load i64, ptr %20, align 16, !tbaa !8
  %22 = load i32, ptr %2, align 4, !tbaa !11
  %23 = sub nsw i32 %22, 1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %24
  %26 = getelementptr inbounds [6 x i64], ptr %25, i64 0, i64 1
  %27 = load i64, ptr %26, align 8, !tbaa !8
  %28 = add nsw i64 %21, %27
  %29 = load i32, ptr %2, align 4, !tbaa !11
  %30 = sub nsw i32 %29, 1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %31
  %33 = getelementptr inbounds [6 x i64], ptr %32, i64 0, i64 4
  %34 = load i64, ptr %33, align 16, !tbaa !8
  %35 = add nsw i64 %28, %34
  %36 = srem i64 %35, 1000000007
  %37 = load i32, ptr %2, align 4, !tbaa !11
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %38
  %40 = getelementptr inbounds [6 x i64], ptr %39, i64 0, i64 0
  store i64 %36, ptr %40, align 16, !tbaa !8
  %41 = load i32, ptr %2, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %42
  %44 = getelementptr inbounds [6 x i64], ptr %43, i64 0, i64 0
  %45 = load i64, ptr %44, align 16, !tbaa !8
  %46 = load i32, ptr %2, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %47
  %49 = getelementptr inbounds [6 x i64], ptr %48, i64 0, i64 1
  store i64 %45, ptr %49, align 8, !tbaa !8
  %50 = load i32, ptr %2, align 4, !tbaa !11
  %51 = sub nsw i32 %50, 1
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %52
  %54 = getelementptr inbounds [6 x i64], ptr %53, i64 0, i64 1
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %56 = load i32, ptr %2, align 4, !tbaa !11
  %57 = sub nsw i32 %56, 1
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %58
  %60 = getelementptr inbounds [6 x i64], ptr %59, i64 0, i64 2
  %61 = load i64, ptr %60, align 16, !tbaa !8
  %62 = add nsw i64 %55, %61
  %63 = load i32, ptr %2, align 4, !tbaa !11
  %64 = sub nsw i32 %63, 1
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %65
  %67 = getelementptr inbounds [6 x i64], ptr %66, i64 0, i64 3
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = add nsw i64 %62, %68
  %70 = load i32, ptr %2, align 4, !tbaa !11
  %71 = sub nsw i32 %70, 1
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %72
  %74 = getelementptr inbounds [6 x i64], ptr %73, i64 0, i64 4
  %75 = load i64, ptr %74, align 16, !tbaa !8
  %76 = add nsw i64 %69, %75
  %77 = load i32, ptr %2, align 4, !tbaa !11
  %78 = sub nsw i32 %77, 1
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %79
  %81 = getelementptr inbounds [6 x i64], ptr %80, i64 0, i64 5
  %82 = load i64, ptr %81, align 8, !tbaa !8
  %83 = add nsw i64 %76, %82
  %84 = load i32, ptr %2, align 4, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %85
  %87 = getelementptr inbounds [6 x i64], ptr %86, i64 0, i64 2
  store i64 %83, ptr %87, align 16, !tbaa !8
  %88 = load i64, ptr %87, align 16, !tbaa !8
  %89 = srem i64 %88, 1000000007
  store i64 %89, ptr %87, align 16, !tbaa !8
  %90 = load i32, ptr %2, align 4, !tbaa !11
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %91
  %93 = getelementptr inbounds [6 x i64], ptr %92, i64 0, i64 2
  %94 = load i64, ptr %93, align 16, !tbaa !8
  %95 = load i32, ptr %2, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %96
  %98 = getelementptr inbounds [6 x i64], ptr %97, i64 0, i64 3
  store i64 %94, ptr %98, align 8, !tbaa !8
  %99 = load i32, ptr %2, align 4, !tbaa !11
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %100
  %102 = getelementptr inbounds [6 x i64], ptr %101, i64 0, i64 4
  store i64 %94, ptr %102, align 16, !tbaa !8
  %103 = load i32, ptr %2, align 4, !tbaa !11
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %104
  %106 = getelementptr inbounds [6 x i64], ptr %105, i64 0, i64 5
  store i64 %94, ptr %106, align 8, !tbaa !8
  br label %107

107:                                              ; preds = %15
  %108 = load i32, ptr %2, align 4, !tbaa !11
  %109 = add nsw i32 %108, 1
  store i32 %109, ptr %2, align 4, !tbaa !11
  br label %11, !llvm.loop !13

110:                                              ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  %111 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %3)
  br label %112

112:                                              ; preds = %116, %110
  %113 = load i32, ptr %3, align 4, !tbaa !11
  %114 = add nsw i32 %113, -1
  store i32 %114, ptr %3, align 4, !tbaa !11
  %115 = icmp ne i32 %113, 0
  br i1 %115, label %116, label %132

116:                                              ; preds = %112
  %117 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERi(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %118 = load i32, ptr %4, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %119
  %121 = getelementptr inbounds [6 x i64], ptr %120, i64 0, i64 1
  %122 = load i64, ptr %121, align 8, !tbaa !8
  %123 = load i32, ptr %4, align 4, !tbaa !11
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %124
  %126 = getelementptr inbounds [6 x i64], ptr %125, i64 0, i64 4
  %127 = load i64, ptr %126, align 16, !tbaa !8
  %128 = add nsw i64 %122, %127
  %129 = srem i64 %128, 1000000007
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %129)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %130, i8 noundef signext 10)
  br label %112, !llvm.loop !15

132:                                              ; preds = %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  %133 = load i32, ptr %1, align 4
  ret i32 %133
}

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

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

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

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

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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #5 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 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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

@dp = external dso_local local_unnamed_addr global [1000001 x [6 x i64]], align 16
@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8

; 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
  %3 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %4 = getelementptr i8, ptr %3, i64 -24
  %5 = load i64, ptr %4, align 8
  %6 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %5
  %7 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %6, ptr noundef null)
  %8 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  store i64 1, ptr getelementptr inbounds (i8, ptr @dp, i64 8), align 8, !tbaa !8
  %.pre = load i64, ptr @dp, align 16, !tbaa !8
  %.pre22 = load i64, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !8
  %.pre23 = load i64, ptr getelementptr inbounds (i8, ptr @dp, i64 16), align 16, !tbaa !8
  %.pre24 = load i64, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !8
  %.pre25 = load i64, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !8
  br label %13

9:                                                ; preds = %13
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #6
  %10 = 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)
  %11 = load i32, ptr %1, align 4, !tbaa !11
  %12 = add nsw i32 %11, -1
  store i32 %12, ptr %1, align 4, !tbaa !11
  %.not20 = icmp eq i32 %11, 0
  br i1 %.not20, label %._crit_edge, label %.lr.ph

13:                                               ; preds = %0, %13
  %14 = phi i64 [ %.pre25, %0 ], [ %29, %13 ]
  %15 = phi i64 [ %.pre24, %0 ], [ %29, %13 ]
  %16 = phi i64 [ %.pre23, %0 ], [ %29, %13 ]
  %17 = phi i64 [ %.pre22, %0 ], [ %29, %13 ]
  %18 = phi i64 [ 1, %0 ], [ %22, %13 ]
  %19 = phi i64 [ %.pre, %0 ], [ %22, %13 ]
  %indvars.iv = phi i64 [ 1, %0 ], [ %indvars.iv.next, %13 ]
  %20 = add i64 %17, %18
  %21 = add i64 %20, %19
  %22 = srem i64 %21, 1000000007
  %23 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %indvars.iv
  store i64 %22, ptr %23, align 16, !tbaa !8
  %24 = getelementptr inbounds i8, ptr %23, i64 8
  store i64 %22, ptr %24, align 8, !tbaa !8
  %25 = add i64 %20, %16
  %26 = add i64 %25, %15
  %27 = add nsw i64 %26, %14
  %28 = getelementptr inbounds i8, ptr %23, i64 16
  %29 = srem i64 %27, 1000000007
  store i64 %29, ptr %28, align 16, !tbaa !8
  %30 = getelementptr inbounds i8, ptr %23, i64 24
  store i64 %29, ptr %30, align 8, !tbaa !8
  %31 = getelementptr inbounds i8, ptr %23, i64 32
  store i64 %29, ptr %31, align 16, !tbaa !8
  %32 = getelementptr inbounds i8, ptr %23, i64 40
  store i64 %29, ptr %32, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 1000001
  br i1 %exitcond.not, label %9, label %13, !llvm.loop !13

.lr.ph:                                           ; preds = %9, %.lr.ph
  %33 = 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)
  %34 = load i32, ptr %2, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = getelementptr inbounds [1000001 x [6 x i64]], ptr @dp, i64 0, i64 %35
  %37 = getelementptr inbounds i8, ptr %36, i64 8
  %38 = load i64, ptr %37, align 8, !tbaa !8
  %39 = getelementptr inbounds i8, ptr %36, i64 32
  %40 = load i64, ptr %39, align 16, !tbaa !8
  %41 = add nsw i64 %40, %38
  %42 = srem i64 %41, 1000000007
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %42)
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %43, i8 noundef signext 10)
  %45 = load i32, ptr %1, align 4, !tbaa !11
  %46 = add nsw i32 %45, -1
  store i32 %46, ptr %1, align 4, !tbaa !11
  %.not = icmp eq i32 %45, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph, !llvm.loop !15

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

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

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

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

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

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: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #5 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 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

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

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


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