; LLVM IR from Tunghohin/Competitive_Coding :: Codeforces/cf1791_E.ll (Z5solvev)

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

@a = external dso_local global [200010 x i64], align 16
@dp = external dso_local global [200010 x [2 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 uwtable
define dso_local void @_Z5solvev() #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %6 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  store i64 1, ptr %2, align 8, !tbaa !5
  br label %7

7:                                                ; preds = %22, %0
  %8 = load i64, ptr %2, align 8, !tbaa !5
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = icmp sle i64 %8, %9
  br i1 %10, label %12, label %11

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

12:                                               ; preds = %7
  %13 = load i64, ptr %2, align 8, !tbaa !5
  %14 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %13
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %16 = load i64, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %16
  %18 = getelementptr inbounds [2 x i64], ptr %17, i64 0, i64 1
  store i64 0, ptr %18, align 8, !tbaa !5
  %19 = load i64, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %19
  %21 = getelementptr inbounds [2 x i64], ptr %20, i64 0, i64 0
  store i64 0, ptr %21, align 16, !tbaa !5
  br label %22

22:                                               ; preds = %12
  %23 = load i64, ptr %2, align 8, !tbaa !5
  %24 = add nsw i64 %23, 1
  store i64 %24, ptr %2, align 8, !tbaa !5
  br label %7, !llvm.loop !9

25:                                               ; preds = %11
  %26 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !5
  store i64 %26, ptr getelementptr inbounds ([200010 x [2 x i64]], ptr @dp, i64 0, i64 1), align 16, !tbaa !5
  %27 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !5
  %28 = sub nsw i64 0, %27
  store i64 %28, ptr getelementptr inbounds ([2 x i64], ptr getelementptr inbounds ([200010 x [2 x i64]], ptr @dp, i64 0, i64 1), i64 0, i64 1), align 8, !tbaa !5
  %29 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !5
  %30 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 2), align 16, !tbaa !5
  %31 = add nsw i64 %29, %30
  store i64 %31, ptr getelementptr inbounds ([200010 x [2 x i64]], ptr @dp, i64 0, i64 2), align 16, !tbaa !5
  %32 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 1), align 8, !tbaa !5
  %33 = sub nsw i64 0, %32
  %34 = load i64, ptr getelementptr inbounds ([200010 x i64], ptr @a, i64 0, i64 2), align 16, !tbaa !5
  %35 = sub nsw i64 %33, %34
  store i64 %35, ptr getelementptr inbounds ([2 x i64], ptr getelementptr inbounds ([200010 x [2 x i64]], ptr @dp, i64 0, i64 2), i64 0, i64 1), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  store i64 3, ptr %3, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %94, %25
  %37 = load i64, ptr %3, align 8, !tbaa !5
  %38 = load i64, ptr %1, align 8, !tbaa !5
  %39 = icmp sle i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  br label %97

41:                                               ; preds = %36
  %42 = load i64, ptr %3, align 8, !tbaa !5
  %43 = sub nsw i64 %42, 1
  %44 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %43
  %45 = getelementptr inbounds [2 x i64], ptr %44, i64 0, i64 0
  %46 = load i64, ptr %3, align 8, !tbaa !5
  %47 = sub nsw i64 %46, 1
  %48 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %47
  %49 = getelementptr inbounds [2 x i64], ptr %48, i64 0, i64 1
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %45, ptr noundef nonnull align 8 dereferenceable(8) %49)
  %51 = load i64, ptr %50, align 8, !tbaa !5
  %52 = load i64, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %52
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = add nsw i64 %51, %54
  %56 = load i64, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %56
  %58 = getelementptr inbounds [2 x i64], ptr %57, i64 0, i64 0
  store i64 %55, ptr %58, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %59 = load i64, ptr %3, align 8, !tbaa !5
  %60 = sub nsw i64 %59, 1
  %61 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %60
  %62 = getelementptr inbounds [2 x i64], ptr %61, i64 0, i64 0
  %63 = load i64, ptr %62, align 16, !tbaa !5
  %64 = load i64, ptr %3, align 8, !tbaa !5
  %65 = sub nsw i64 %64, 1
  %66 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %65
  %67 = load i64, ptr %66, align 8, !tbaa !5
  %68 = mul nsw i64 2, %67
  %69 = sub nsw i64 %63, %68
  %70 = load i64, ptr %3, align 8, !tbaa !5
  %71 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %70
  %72 = load i64, ptr %71, align 8, !tbaa !5
  %73 = sub nsw i64 %69, %72
  store i64 %73, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %74 = load i64, ptr %3, align 8, !tbaa !5
  %75 = sub nsw i64 %74, 1
  %76 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %75
  %77 = getelementptr inbounds [2 x i64], ptr %76, i64 0, i64 1
  %78 = load i64, ptr %77, align 8, !tbaa !5
  %79 = load i64, ptr %3, align 8, !tbaa !5
  %80 = sub nsw i64 %79, 1
  %81 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %80
  %82 = load i64, ptr %81, align 8, !tbaa !5
  %83 = mul nsw i64 2, %82
  %84 = add nsw i64 %78, %83
  %85 = load i64, ptr %3, align 8, !tbaa !5
  %86 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %85
  %87 = load i64, ptr %86, align 8, !tbaa !5
  %88 = sub nsw i64 %84, %87
  store i64 %88, ptr %5, align 8, !tbaa !5
  %89 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %90 = load i64, ptr %89, align 8, !tbaa !5
  %91 = load i64, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %91
  %93 = getelementptr inbounds [2 x i64], ptr %92, i64 0, i64 1
  store i64 %90, ptr %93, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %94

94:                                               ; preds = %41
  %95 = load i64, ptr %3, align 8, !tbaa !5
  %96 = add nsw i64 %95, 1
  store i64 %96, ptr %3, align 8, !tbaa !5
  br label %36, !llvm.loop !11

97:                                               ; preds = %40
  %98 = load i64, ptr %1, align 8, !tbaa !5
  %99 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %98
  %100 = getelementptr inbounds [2 x i64], ptr %99, i64 0, i64 0
  %101 = load i64, ptr %1, align 8, !tbaa !5
  %102 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %101
  %103 = getelementptr inbounds [2 x i64], ptr %102, i64 0, i64 1
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %100, ptr noundef nonnull align 8 dereferenceable(8) %103)
  %105 = load i64, ptr %104, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %105)
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %106, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  ret void
}

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

; 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)) #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #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) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { 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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !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 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }

@a = external dso_local global [200010 x i64], align 16
@dp = external dso_local global [200010 x [2 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 uwtable
define dso_local void @_Z5solvev() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %4 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %1)
  %5 = load i64, ptr %1, align 8, !tbaa !5
  %.not23 = icmp slt i64 %5, 1
  br i1 %.not23, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %0
  %6 = phi i64 [ %5, %0 ], [ %16, %.lr.ph ]
  %7 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 8), align 8, !tbaa !5
  store i64 %7, ptr getelementptr inbounds (i8, ptr @dp, i64 16), align 16, !tbaa !5
  %8 = sub nsw i64 0, %7
  store i64 %8, ptr getelementptr inbounds (i8, ptr @dp, i64 24), align 8, !tbaa !5
  %9 = load i64, ptr getelementptr inbounds (i8, ptr @a, i64 16), align 16, !tbaa !5
  %10 = add i64 %9, %7
  store i64 %10, ptr getelementptr inbounds (i8, ptr @dp, i64 32), align 16, !tbaa !5
  %11 = sub i64 0, %10
  store i64 %11, ptr getelementptr inbounds (i8, ptr @dp, i64 40), align 8, !tbaa !5
  %.not2025 = icmp slt i64 %6, 3
  br i1 %.not2025, label %._crit_edge29, label %.lr.ph28

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.01824 = phi i64 [ %15, %.lr.ph ], [ 1, %0 ]
  %12 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %.01824
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %14 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %.01824
  %15 = add nuw nsw i64 %.01824, 1
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %14, i8 0, i64 16, i1 false)
  %16 = load i64, ptr %1, align 8, !tbaa !5
  %.not.not = icmp slt i64 %.01824, %16
  br i1 %.not.not, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge29:                                    ; preds = %.lr.ph28, %._crit_edge
  %.lcssa = phi i64 [ %6, %._crit_edge ], [ %45, %.lr.ph28 ]
  %17 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %.lcssa
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef nonnull align 8 dereferenceable(8) %18)
  %20 = load i64, ptr %19, align 8, !tbaa !5
  %21 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %20)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %21, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret void

.lr.ph28:                                         ; preds = %._crit_edge, %.lr.ph28
  %.026 = phi i64 [ %44, %.lr.ph28 ], [ 3, %._crit_edge ]
  %23 = add nsw i64 %.026, -1
  %24 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %23
  %25 = getelementptr inbounds i8, ptr %24, i64 8
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = load i64, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %.026
  %29 = load i64, ptr %28, align 8, !tbaa !5
  %30 = add nsw i64 %29, %27
  %31 = getelementptr inbounds [200010 x [2 x i64]], ptr @dp, i64 0, i64 %.026
  store i64 %30, ptr %31, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  %32 = load i64, ptr %24, align 16, !tbaa !5
  %33 = getelementptr inbounds [200010 x i64], ptr @a, i64 0, i64 %23
  %34 = load i64, ptr %33, align 8, !tbaa !5
  %35 = shl nsw i64 %34, 1
  %36 = add i64 %29, %35
  %37 = sub i64 %32, %36
  store i64 %37, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %38 = load i64, ptr %25, align 8, !tbaa !5
  %39 = sub i64 %35, %29
  %40 = add i64 %39, %38
  store i64 %40, ptr %3, align 8, !tbaa !5
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %42 = load i64, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %31, i64 8
  store i64 %42, ptr %43, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  %44 = add nuw nsw i64 %.026, 1
  %45 = load i64, ptr %1, align 8, !tbaa !5
  %.not20.not = icmp slt i64 %.026, %45
  br i1 %.not20.not, label %.lr.ph28, label %._crit_edge29, !llvm.loop !11
}

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

; 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 #0 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) 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 #3

; 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 #0 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 #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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass