; LLVM IR from eyangch/competitive-programming :: USACOcontests/silver/2021.12 (convoluted_intervals)

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

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@A = external dso_local global [5001 x i64], align 16
@B = external dso_local global [5001 x i64], align 16
@s = external dso_local global [10001 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 i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i32, align 4
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %10 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %11 = getelementptr i8, ptr %10, i64 -24
  %12 = load i64, ptr %11, align 8
  %13 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %12
  %14 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %13, ptr noundef null)
  %15 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %17 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(8) @M)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %18

18:                                               ; preds = %34, %0
  %19 = load i64, ptr %2, align 8, !tbaa !8
  %20 = load i64, ptr @N, align 8, !tbaa !8
  %21 = icmp slt i64 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  br label %37

23:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %24 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %26 = load i64, ptr %3, align 8, !tbaa !8
  %27 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !8
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr %27, align 8, !tbaa !8
  %30 = load i64, ptr %4, align 8, !tbaa !8
  %31 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %30
  %32 = load i64, ptr %31, align 8, !tbaa !8
  %33 = add nsw i64 %32, 1
  store i64 %33, ptr %31, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %34

34:                                               ; preds = %23
  %35 = load i64, ptr %2, align 8, !tbaa !8
  %36 = add nsw i64 %35, 1
  store i64 %36, ptr %2, align 8, !tbaa !8
  br label %18, !llvm.loop !11

37:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  store i64 0, ptr %5, align 8, !tbaa !8
  br label %38

38:                                               ; preds = %81, %37
  %39 = load i64, ptr %5, align 8, !tbaa !8
  %40 = load i64, ptr @M, align 8, !tbaa !8
  %41 = icmp sle i64 %39, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %38
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  br label %84

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 0, ptr %7, align 8, !tbaa !8
  br label %44

44:                                               ; preds = %77, %43
  %45 = load i64, ptr %7, align 8, !tbaa !8
  %46 = load i64, ptr @M, align 8, !tbaa !8
  %47 = icmp sle i64 %45, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %44
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %80

49:                                               ; preds = %44
  %50 = load i64, ptr %5, align 8, !tbaa !8
  %51 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %50
  %52 = load i64, ptr %51, align 8, !tbaa !8
  %53 = load i64, ptr %7, align 8, !tbaa !8
  %54 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %53
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %56 = mul nsw i64 %52, %55
  %57 = load i64, ptr %5, align 8, !tbaa !8
  %58 = load i64, ptr %7, align 8, !tbaa !8
  %59 = add nsw i64 %57, %58
  %60 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %59
  %61 = load i64, ptr %60, align 8, !tbaa !8
  %62 = add nsw i64 %61, %56
  store i64 %62, ptr %60, align 8, !tbaa !8
  %63 = load i64, ptr %5, align 8, !tbaa !8
  %64 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %63
  %65 = load i64, ptr %64, align 8, !tbaa !8
  %66 = load i64, ptr %7, align 8, !tbaa !8
  %67 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %66
  %68 = load i64, ptr %67, align 8, !tbaa !8
  %69 = mul nsw i64 %65, %68
  %70 = load i64, ptr %5, align 8, !tbaa !8
  %71 = load i64, ptr %7, align 8, !tbaa !8
  %72 = add nsw i64 %70, %71
  %73 = add nsw i64 %72, 1
  %74 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !8
  %76 = sub nsw i64 %75, %69
  store i64 %76, ptr %74, align 8, !tbaa !8
  br label %77

77:                                               ; preds = %49
  %78 = load i64, ptr %7, align 8, !tbaa !8
  %79 = add nsw i64 %78, 1
  store i64 %79, ptr %7, align 8, !tbaa !8
  br label %44, !llvm.loop !13

80:                                               ; preds = %48
  br label %81

81:                                               ; preds = %80
  %82 = load i64, ptr %5, align 8, !tbaa !8
  %83 = add nsw i64 %82, 1
  store i64 %83, ptr %5, align 8, !tbaa !8
  br label %38, !llvm.loop !14

84:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  store i64 0, ptr %8, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store i64 0, ptr %9, align 8, !tbaa !8
  br label %85

85:                                               ; preds = %100, %84
  %86 = load i64, ptr %9, align 8, !tbaa !8
  %87 = load i64, ptr @M, align 8, !tbaa !8
  %88 = mul nsw i64 2, %87
  %89 = icmp sle i64 %86, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  br label %103

91:                                               ; preds = %85
  %92 = load i64, ptr %9, align 8, !tbaa !8
  %93 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %92
  %94 = load i64, ptr %93, align 8, !tbaa !8
  %95 = load i64, ptr %8, align 8, !tbaa !8
  %96 = add nsw i64 %95, %94
  store i64 %96, ptr %8, align 8, !tbaa !8
  %97 = load i64, ptr %8, align 8, !tbaa !8
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %97)
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %98, i8 noundef signext 10)
  br label %100

100:                                              ; preds = %91
  %101 = load i64, ptr %9, align 8, !tbaa !8
  %102 = add nsw i64 %101, 1
  store i64 %102, ptr %9, align 8, !tbaa !8
  br label %85, !llvm.loop !15

103:                                              ; preds = %90
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %104 = load i32, ptr %1, align 4
  ret i32 %104
}

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

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

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

; 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) #5

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 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 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 nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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

@N = external dso_local global i64, align 8
@M = external dso_local global i64, align 8
@A = external dso_local local_unnamed_addr global [5001 x i64], align 16
@B = external dso_local local_unnamed_addr global [5001 x i64], align 16
@s = external dso_local local_unnamed_addr global [10001 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 i64, align 8
  %2 = alloca i64, align 8
  %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)
  %9 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) @N)
  %10 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) @M)
  %11 = load i64, ptr @N, align 8, !tbaa !8
  %12 = icmp sgt i64 %11, 0
  br i1 %12, label %.lr.ph, label %.preheader27

.preheader27:                                     ; preds = %.lr.ph, %0
  %13 = load i64, ptr @M, align 8, !tbaa !8
  %.not32 = icmp slt i64 %13, 0
  br i1 %.not32, label %._crit_edge38, label %.preheader26

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02328 = phi i64 [ %24, %.lr.ph ], [ 0, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  %14 = 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)
  %15 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %16 = load i64, ptr %1, align 8, !tbaa !8
  %17 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %16
  %18 = load i64, ptr %17, align 8, !tbaa !8
  %19 = add nsw i64 %18, 1
  store i64 %19, ptr %17, align 8, !tbaa !8
  %20 = load i64, ptr %2, align 8, !tbaa !8
  %21 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %20
  %22 = load i64, ptr %21, align 8, !tbaa !8
  %23 = add nsw i64 %22, 1
  store i64 %23, ptr %21, align 8, !tbaa !8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  %24 = add nuw nsw i64 %.02328, 1
  %25 = load i64, ptr @N, align 8, !tbaa !8
  %26 = icmp slt i64 %24, %25
  br i1 %26, label %.lr.ph, label %.preheader27, !llvm.loop !11

.preheader26:                                     ; preds = %.preheader27, %._crit_edge
  %.02233 = phi i64 [ %32, %._crit_edge ], [ 0, %.preheader27 ]
  %27 = shl i64 %.02233, 3
  %scevgep = getelementptr i8, ptr @s, i64 %27
  %28 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %.02233
  %29 = load i64, ptr %28, align 8, !tbaa !8
  %30 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %.02233
  %31 = load i64, ptr %30, align 8, !tbaa !8
  %load_initial = load i64, ptr %scevgep, align 8
  br label %33

.preheader:                                       ; preds = %._crit_edge
  br i1 %.not32, label %._crit_edge38, label %.lr.ph37

._crit_edge:                                      ; preds = %33
  %32 = add nuw nsw i64 %.02233, 1
  %exitcond39.not = icmp eq i64 %.02233, %13
  br i1 %exitcond39.not, label %.preheader, label %.preheader26, !llvm.loop !13

33:                                               ; preds = %.preheader26, %33
  %store_forwarded = phi i64 [ %load_initial, %.preheader26 ], [ %46, %33 ]
  %.02130 = phi i64 [ 0, %.preheader26 ], [ %47, %33 ]
  %34 = getelementptr inbounds [5001 x i64], ptr @A, i64 0, i64 %.02130
  %35 = load i64, ptr %34, align 8, !tbaa !8
  %36 = mul nsw i64 %35, %29
  %37 = add nuw nsw i64 %.02130, %.02233
  %38 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %37
  %39 = add nsw i64 %store_forwarded, %36
  store i64 %39, ptr %38, align 8, !tbaa !8
  %40 = getelementptr inbounds [5001 x i64], ptr @B, i64 0, i64 %.02130
  %41 = load i64, ptr %40, align 8, !tbaa !8
  %42 = mul nsw i64 %41, %31
  %43 = add nuw nsw i64 %37, 1
  %44 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %43
  %45 = load i64, ptr %44, align 8, !tbaa !8
  %46 = sub nsw i64 %45, %42
  store i64 %46, ptr %44, align 8, !tbaa !8
  %47 = add nuw i64 %.02130, 1
  %exitcond.not = icmp eq i64 %.02130, %13
  br i1 %exitcond.not, label %._crit_edge, label %33, !llvm.loop !14

._crit_edge38:                                    ; preds = %.lr.ph37, %.preheader27, %.preheader
  ret i32 0

.lr.ph37:                                         ; preds = %.preheader, %.lr.ph37
  %.036 = phi i64 [ %53, %.lr.ph37 ], [ 0, %.preheader ]
  %.02035 = phi i64 [ %50, %.lr.ph37 ], [ 0, %.preheader ]
  %48 = getelementptr inbounds [10001 x i64], ptr @s, i64 0, i64 %.036
  %49 = load i64, ptr %48, align 8, !tbaa !8
  %50 = add nsw i64 %49, %.02035
  %51 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %50)
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %51, i8 noundef signext 10)
  %53 = add nuw nsw i64 %.036, 1
  %54 = load i64, ptr @M, align 8, !tbaa !8
  %55 = shl nsw i64 %54, 1
  %.not24.not = icmp slt i64 %.036, %55
  br i1 %.not24.not, label %.lr.ph37, label %._crit_edge38, !llvm.loop !15
}

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

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

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

; 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 #5

; 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 #3 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 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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