; LLVM IR from eyangch/competitive-programming :: Codeforces/1132 (d)

; 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
@K = external dso_local global i64, align 8
@A = external dso_local global [200000 x i64], align 16
@B = external dso_local global [200000 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
declare dso_local noundef zeroext i1 @_Z5worksx(i64 noundef) #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 {
  %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 i64, align 8
  %7 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  %8 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %9 = getelementptr i8, ptr %8, i64 -24
  %10 = load i64, ptr %9, align 8
  %11 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %10
  %12 = call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %11, ptr noundef null)
  %13 = call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %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) @N)
  %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) @K)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %16

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

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

21:                                               ; preds = %16
  %22 = load i64, ptr %2, align 8, !tbaa !8
  %23 = getelementptr inbounds [200000 x i64], ptr @A, i64 0, i64 %22
  %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) %23)
  br label %25

25:                                               ; preds = %21
  %26 = load i64, ptr %2, align 8, !tbaa !8
  %27 = add nsw i64 %26, 1
  store i64 %27, ptr %2, align 8, !tbaa !8
  br label %16, !llvm.loop !11

28:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  store i64 0, ptr %3, align 8, !tbaa !8
  br label %29

29:                                               ; preds = %38, %28
  %30 = load i64, ptr %3, align 8, !tbaa !8
  %31 = load i64, ptr @N, align 8, !tbaa !8
  %32 = icmp slt i64 %30, %31
  br i1 %32, label %34, label %33

33:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %41

34:                                               ; preds = %29
  %35 = load i64, ptr %3, align 8, !tbaa !8
  %36 = getelementptr inbounds [200000 x i64], ptr @B, i64 0, i64 %35
  %37 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %36)
  br label %38

38:                                               ; preds = %34
  %39 = load i64, ptr %3, align 8, !tbaa !8
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %3, align 8, !tbaa !8
  br label %29, !llvm.loop !13

41:                                               ; preds = %33
  %42 = call noundef zeroext i1 @_Z5worksx(i64 noundef 10000000000000)
  br i1 %42, label %46, label %43

43:                                               ; preds = %41
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %44, i8 noundef signext 10)
  store i32 0, ptr %1, align 4
  br label %86

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 1, ptr %4, align 8, !tbaa !8
  br label %47

47:                                               ; preds = %57, %46
  %48 = load i64, ptr %4, align 8, !tbaa !8
  %49 = sitofp i64 %48 to double
  %50 = fcmp olt double %49, 2.000000e+13
  br i1 %50, label %51, label %55

51:                                               ; preds = %47
  %52 = load i64, ptr %4, align 8, !tbaa !8
  %53 = call noundef zeroext i1 @_Z5worksx(i64 noundef %52)
  %54 = xor i1 %53, true
  br label %55

55:                                               ; preds = %51, %47
  %56 = phi i1 [ false, %47 ], [ %54, %51 ]
  br i1 %56, label %57, label %60

57:                                               ; preds = %55
  %58 = load i64, ptr %4, align 8, !tbaa !8
  %59 = mul nsw i64 %58, 10
  store i64 %59, ptr %4, align 8, !tbaa !8
  br label %47, !llvm.loop !14

60:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %61 = load i64, ptr %4, align 8, !tbaa !8
  %62 = sdiv i64 %61, 10
  store i64 %62, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  store i64 0, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  store i64 -1, ptr %7, align 8, !tbaa !8
  br label %63

63:                                               ; preds = %81, %60
  %64 = load i64, ptr %5, align 8, !tbaa !8
  %65 = load i64, ptr %4, align 8, !tbaa !8
  %66 = icmp sle i64 %64, %65
  br i1 %66, label %67, label %82

67:                                               ; preds = %63
  %68 = load i64, ptr %5, align 8, !tbaa !8
  %69 = load i64, ptr %4, align 8, !tbaa !8
  %70 = add nsw i64 %68, %69
  %71 = sdiv i64 %70, 2
  store i64 %71, ptr %6, align 8, !tbaa !8
  %72 = load i64, ptr %6, align 8, !tbaa !8
  %73 = call noundef zeroext i1 @_Z5worksx(i64 noundef %72)
  br i1 %73, label %74, label %78

74:                                               ; preds = %67
  %75 = load i64, ptr %6, align 8, !tbaa !8
  store i64 %75, ptr %7, align 8, !tbaa !8
  %76 = load i64, ptr %6, align 8, !tbaa !8
  %77 = sub nsw i64 %76, 1
  store i64 %77, ptr %4, align 8, !tbaa !8
  br label %81

78:                                               ; preds = %67
  %79 = load i64, ptr %6, align 8, !tbaa !8
  %80 = add nsw i64 %79, 1
  store i64 %80, ptr %5, align 8, !tbaa !8
  br label %81

81:                                               ; preds = %78, %74
  br label %63, !llvm.loop !15

82:                                               ; preds = %63
  %83 = load i64, ptr %7, align 8, !tbaa !8
  %84 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %83)
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %84, i8 noundef signext 10)
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %86

86:                                               ; preds = %82, %43
  %87 = load i32, ptr %1, align 4
  ret i32 %87
}

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

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

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

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

; 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 = { 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 #3 = { 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 #4 = { "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 = { 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
@K = external dso_local global i64, align 8
@A = external dso_local global [200000 x i64], align 16
@B = external dso_local global [200000 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
declare dso_local noundef zeroext i1 @_Z5worksx(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #1 {
  %1 = load ptr, ptr @_ZSt3cin, align 8, !tbaa !5
  %2 = getelementptr i8, ptr %1, i64 -24
  %3 = load i64, ptr %2, align 8
  %4 = getelementptr inbounds i8, ptr @_ZSt3cin, i64 %3
  %5 = tail call noundef ptr @_ZNSt9basic_iosIcSt11char_traitsIcEE3tieEPSo(ptr noundef nonnull align 8 dereferenceable(264) %4, ptr noundef null)
  %6 = tail call noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext false)
  %7 = 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)
  %8 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) @K)
  %9 = load i64, ptr @N, align 8, !tbaa !8
  %10 = icmp sgt i64 %9, 0
  br i1 %10, label %.lr.ph, label %._crit_edge

.preheader27:                                     ; preds = %.lr.ph
  %11 = icmp sgt i64 %15, 0
  br i1 %11, label %.lr.ph30, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02528 = phi i64 [ %14, %.lr.ph ], [ 0, %0 ]
  %12 = getelementptr inbounds [200000 x i64], ptr @A, i64 0, i64 %.02528
  %13 = 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) %12)
  %14 = add nuw nsw i64 %.02528, 1
  %15 = load i64, ptr @N, align 8, !tbaa !8
  %16 = icmp slt i64 %14, %15
  br i1 %16, label %.lr.ph, label %.preheader27, !llvm.loop !11

._crit_edge:                                      ; preds = %.lr.ph30, %0, %.preheader27
  %17 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10000000000000)
  br i1 %17, label %.preheader.preheader, label %24

.preheader.preheader:                             ; preds = %._crit_edge
  %18 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 1)
  br i1 %18, label %.lr.ph36.preheader, label %.preheader.1

.lr.ph30:                                         ; preds = %.preheader27, %.lr.ph30
  %.02429 = phi i64 [ %21, %.lr.ph30 ], [ 0, %.preheader27 ]
  %19 = getelementptr inbounds [200000 x i64], ptr @B, i64 0, i64 %.02429
  %20 = 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) %19)
  %21 = add nuw nsw i64 %.02429, 1
  %22 = load i64, ptr @N, align 8, !tbaa !8
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %.lr.ph30, label %._crit_edge, !llvm.loop !13

24:                                               ; preds = %._crit_edge
  %25 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i32 noundef -1)
  br label %46

.preheader.1:                                     ; preds = %.preheader.preheader
  %26 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10)
  br i1 %26, label %.lr.ph36.preheader, label %.preheader.2

.preheader.2:                                     ; preds = %.preheader.1
  %27 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 100)
  br i1 %27, label %.lr.ph36.preheader, label %.preheader.3

.preheader.3:                                     ; preds = %.preheader.2
  %28 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 1000)
  br i1 %28, label %.lr.ph36.preheader, label %.preheader.4

.preheader.4:                                     ; preds = %.preheader.3
  %29 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10000)
  br i1 %29, label %.lr.ph36.preheader, label %.preheader.5

.preheader.5:                                     ; preds = %.preheader.4
  %30 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 100000)
  br i1 %30, label %.lr.ph36.preheader, label %.preheader.6

.preheader.6:                                     ; preds = %.preheader.5
  %31 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 1000000)
  br i1 %31, label %.lr.ph36.preheader, label %.preheader.7

.preheader.7:                                     ; preds = %.preheader.6
  %32 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10000000)
  br i1 %32, label %.lr.ph36.preheader, label %.preheader.8

.preheader.8:                                     ; preds = %.preheader.7
  %33 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 100000000)
  br i1 %33, label %.lr.ph36.preheader, label %.preheader.9

.preheader.9:                                     ; preds = %.preheader.8
  %34 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 1000000000)
  br i1 %34, label %.lr.ph36.preheader, label %.preheader.10

.preheader.10:                                    ; preds = %.preheader.9
  %35 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10000000000)
  br i1 %35, label %.lr.ph36.preheader, label %.preheader.11

.preheader.11:                                    ; preds = %.preheader.10
  %36 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 100000000000)
  br i1 %36, label %.lr.ph36.preheader, label %.preheader.12

.preheader.12:                                    ; preds = %.preheader.11
  %37 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 1000000000000)
  br i1 %37, label %.lr.ph36.preheader, label %.preheader.13

.preheader.13:                                    ; preds = %.preheader.12
  %38 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef 10000000000000)
  %spec.select = select i1 %38, i64 10000000000000, i64 100000000000000
  br label %.lr.ph36.preheader

.lr.ph36.preheader:                               ; preds = %.preheader.13, %.preheader.preheader, %.preheader.1, %.preheader.2, %.preheader.3, %.preheader.4, %.preheader.5, %.preheader.6, %.preheader.7, %.preheader.8, %.preheader.9, %.preheader.10, %.preheader.11, %.preheader.12
  %.022.lcssa = phi i64 [ 1, %.preheader.preheader ], [ 10, %.preheader.1 ], [ 100, %.preheader.2 ], [ 1000, %.preheader.3 ], [ 10000, %.preheader.4 ], [ 100000, %.preheader.5 ], [ 1000000, %.preheader.6 ], [ 10000000, %.preheader.7 ], [ 100000000, %.preheader.8 ], [ 1000000000, %.preheader.9 ], [ 10000000000, %.preheader.10 ], [ 100000000000, %.preheader.11 ], [ 1000000000000, %.preheader.12 ], [ %spec.select, %.preheader.13 ]
  %39 = udiv i64 %.022.lcssa, 10
  br label %.lr.ph36

.lr.ph36:                                         ; preds = %.lr.ph36.preheader, %.lr.ph36
  %.035 = phi i64 [ %.1, %.lr.ph36 ], [ -1, %.lr.ph36.preheader ]
  %.02034 = phi i64 [ %.121, %.lr.ph36 ], [ %39, %.lr.ph36.preheader ]
  %.12333 = phi i64 [ %.2, %.lr.ph36 ], [ %.022.lcssa, %.lr.ph36.preheader ]
  %40 = add nsw i64 %.02034, %.12333
  %41 = sdiv i64 %40, 2
  %42 = tail call noundef zeroext i1 @_Z5worksx(i64 noundef %41)
  %43 = add nsw i64 %41, -1
  %44 = add nsw i64 %41, 1
  %.2 = select i1 %42, i64 %43, i64 %.12333
  %.121 = select i1 %42, i64 %.02034, i64 %44
  %.1 = select i1 %42, i64 %41, i64 %.035
  %.not = icmp sgt i64 %.121, %.2
  br i1 %.not, label %._crit_edge37, label %.lr.ph36, !llvm.loop !14

._crit_edge37:                                    ; preds = %.lr.ph36
  %45 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %.1)
  br label %46

46:                                               ; preds = %._crit_edge37, %24
  %.sink = phi ptr [ %45, %._crit_edge37 ], [ %25, %24 ]
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %.sink, i8 noundef signext 10)
  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 #2 align 2

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) 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

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 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 #2 = { 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 = { "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" }

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


; Effective O3 passes: GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass