; LLVM IR from eyangch/competitive-programming :: Codeforces/1552 (f)

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

@MOD = external dso_local global i64, align 8
@N = external dso_local global i64, align 8
@x = external dso_local global [200000 x i64], align 16
@y = external dso_local global [200000 x i64], align 16
@s = 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 nounwind uwtable
declare dso_local noundef i64 @_Z3qryx(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 nounwind uwtable
declare dso_local void @_Z3updxx(i64 noundef, i64 noundef) #0

; 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)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  store i64 0, ptr %2, align 8, !tbaa !8
  br label %15

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

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

20:                                               ; preds = %15
  %21 = load i64, ptr %2, align 8, !tbaa !8
  %22 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %21
  %23 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %24 = load i64, ptr %2, align 8, !tbaa !8
  %25 = getelementptr inbounds [200000 x i64], ptr @y, i64 0, i64 %24
  %26 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(8) %25)
  %27 = load i64, ptr %2, align 8, !tbaa !8
  %28 = getelementptr inbounds [200000 x i64], ptr @s, i64 0, i64 %27
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(8) %28)
  br label %30

30:                                               ; preds = %20
  %31 = load i64, ptr %2, align 8, !tbaa !8
  %32 = add nsw i64 %31, 1
  store i64 %32, ptr %2, align 8, !tbaa !8
  br label %15, !llvm.loop !11

33:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %34 = load i64, ptr @N, align 8, !tbaa !8
  %35 = sub nsw i64 %34, 1
  %36 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %35
  %37 = load i64, ptr %36, align 8, !tbaa !8
  %38 = add nsw i64 %37, 1
  store i64 %38, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  store i64 0, ptr %4, align 8, !tbaa !8
  br label %39

39:                                               ; preds = %87, %33
  %40 = load i64, ptr %4, align 8, !tbaa !8
  %41 = load i64, ptr @N, align 8, !tbaa !8
  %42 = icmp slt i64 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %90

44:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %45 = load i64, ptr @N, align 8, !tbaa !8
  %46 = getelementptr inbounds i64, ptr @x, i64 %45
  %47 = load i64, ptr %4, align 8, !tbaa !8
  %48 = getelementptr inbounds [200000 x i64], ptr @y, i64 0, i64 %47
  %49 = call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef @x, ptr noundef %46, ptr noundef nonnull align 8 dereferenceable(8) %48)
  %50 = ptrtoint ptr %49 to i64
  %51 = sub i64 %50, ptrtoint (ptr @x to i64)
  %52 = sdiv exact i64 %51, 8
  store i64 %52, ptr %5, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %53 = load i64, ptr @N, align 8, !tbaa !8
  %54 = call noundef i64 @_Z3qryx(i64 noundef %53)
  %55 = load i64, ptr %5, align 8, !tbaa !8
  %56 = call noundef i64 @_Z3qryx(i64 noundef %55)
  %57 = sub nsw i64 %54, %56
  %58 = load i64, ptr @MOD, align 8, !tbaa !8
  %59 = srem i64 %57, %58
  %60 = load i64, ptr @MOD, align 8, !tbaa !8
  %61 = add nsw i64 %59, %60
  %62 = load i64, ptr @MOD, align 8, !tbaa !8
  %63 = srem i64 %61, %62
  store i64 %63, ptr %6, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %64 = load i64, ptr %4, align 8, !tbaa !8
  %65 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %64
  %66 = load i64, ptr %65, align 8, !tbaa !8
  %67 = load i64, ptr %4, align 8, !tbaa !8
  %68 = getelementptr inbounds [200000 x i64], ptr @y, i64 0, i64 %67
  %69 = load i64, ptr %68, align 8, !tbaa !8
  %70 = sub nsw i64 %66, %69
  %71 = load i64, ptr %6, align 8, !tbaa !8
  %72 = add nsw i64 %70, %71
  store i64 %72, ptr %7, align 8, !tbaa !8
  %73 = load i64, ptr %4, align 8, !tbaa !8
  %74 = getelementptr inbounds [200000 x i64], ptr @s, i64 0, i64 %73
  %75 = load i64, ptr %74, align 8, !tbaa !8
  %76 = icmp ne i64 %75, 0
  br i1 %76, label %77, label %83

77:                                               ; preds = %44
  %78 = load i64, ptr %3, align 8, !tbaa !8
  %79 = load i64, ptr %7, align 8, !tbaa !8
  %80 = add nsw i64 %78, %79
  %81 = load i64, ptr @MOD, align 8, !tbaa !8
  %82 = srem i64 %80, %81
  store i64 %82, ptr %3, align 8, !tbaa !8
  br label %83

83:                                               ; preds = %77, %44
  %84 = load i64, ptr %4, align 8, !tbaa !8
  %85 = add nsw i64 %84, 1
  %86 = load i64, ptr %7, align 8, !tbaa !8
  call void @_Z3updxx(i64 noundef %85, i64 noundef %86)
  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
  br label %87

87:                                               ; preds = %83
  %88 = load i64, ptr %4, align 8, !tbaa !8
  %89 = add nsw i64 %88, 1
  store i64 %89, ptr %4, align 8, !tbaa !8
  br label %39, !llvm.loop !13

90:                                               ; preds = %43
  %91 = load i64, ptr %3, align 8, !tbaa !8
  %92 = load i64, ptr @MOD, align 8, !tbaa !8
  %93 = srem i64 %91, %92
  %94 = load i64, ptr @MOD, align 8, !tbaa !8
  %95 = add nsw i64 %93, %94
  %96 = load i64, ptr @MOD, align 8, !tbaa !8
  %97 = srem i64 %95, %96
  %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)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  %100 = load i32, ptr %1, align 4
  ret i32 %100
}

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

declare noundef zeroext i1 @_ZNSt8ios_base15sync_with_stdioEb(i1 noundef zeroext) #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)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef, ptr noundef, ptr noundef nonnull align 8 dereferenceable(8)) #5

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

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


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

@MOD = external dso_local local_unnamed_addr global i64, align 8
@N = external dso_local global i64, align 8
@x = external dso_local global [200000 x i64], align 16
@y = external dso_local global [200000 x i64], align 16
@s = 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 nounwind uwtable
declare dso_local noundef i64 @_Z3qryx(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_Z3updxx(i64 noundef, 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 = load i64, ptr @N, align 8, !tbaa !8
  %9 = icmp sgt i64 %8, 0
  br i1 %9, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %0
  %10 = add nsw i64 %8, -1
  %11 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %10
  %12 = load i64, ptr %11, align 8, !tbaa !8
  %13 = add nsw i64 %12, 1
  br label %._crit_edge28

._crit_edge:                                      ; preds = %.lr.ph
  %14 = add nsw i64 %26, -1
  %15 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %14
  %16 = load i64, ptr %15, align 8, !tbaa !8
  %17 = add nsw i64 %16, 1
  %18 = icmp sgt i64 %26, 0
  br i1 %18, label %.lr.ph27, label %._crit_edge28

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.023 = phi i64 [ %25, %.lr.ph ], [ 0, %0 ]
  %19 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %.023
  %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 = getelementptr inbounds [200000 x i64], ptr @y, i64 0, i64 %.023
  %22 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %23 = getelementptr inbounds [200000 x i64], ptr @s, i64 0, i64 %.023
  %24 = tail call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %25 = add nuw nsw i64 %.023, 1
  %26 = load i64, ptr @N, align 8, !tbaa !8
  %27 = icmp slt i64 %25, %26
  br i1 %27, label %.lr.ph, label %._crit_edge, !llvm.loop !11

._crit_edge28:                                    ; preds = %59, %._crit_edge.thread, %._crit_edge
  %.019.lcssa = phi i64 [ %17, %._crit_edge ], [ %13, %._crit_edge.thread ], [ %.1, %59 ]
  %28 = load i64, ptr @MOD, align 8, !tbaa !8
  %29 = srem i64 %.019.lcssa, %28
  %30 = add nsw i64 %29, %28
  %31 = srem i64 %30, %28
  %32 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %31)
  %33 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %32, i8 noundef signext 10)
  ret i32 0

.lr.ph27:                                         ; preds = %._crit_edge, %59
  %34 = phi i64 [ %61, %59 ], [ %26, %._crit_edge ]
  %.01925 = phi i64 [ %.1, %59 ], [ %17, %._crit_edge ]
  %.02024 = phi i64 [ %60, %59 ], [ 0, %._crit_edge ]
  %35 = getelementptr inbounds i64, ptr @x, i64 %34
  %36 = getelementptr inbounds [200000 x i64], ptr @y, i64 0, i64 %.02024
  %37 = tail call noundef ptr @_ZSt11upper_boundIPxxET_S1_S1_RKT0_(ptr noundef nonnull @x, ptr noundef nonnull %35, ptr noundef nonnull align 8 dereferenceable(8) %36)
  %38 = ptrtoint ptr %37 to i64
  %39 = sub i64 %38, ptrtoint (ptr @x to i64)
  %40 = ashr exact i64 %39, 3
  %41 = load i64, ptr @N, align 8, !tbaa !8
  %42 = tail call noundef i64 @_Z3qryx(i64 noundef %41)
  %43 = tail call noundef i64 @_Z3qryx(i64 noundef %40)
  %44 = sub nsw i64 %42, %43
  %45 = load i64, ptr @MOD, align 8, !tbaa !8
  %46 = srem i64 %44, %45
  %47 = add nsw i64 %46, %45
  %48 = srem i64 %47, %45
  %49 = getelementptr inbounds [200000 x i64], ptr @x, i64 0, i64 %.02024
  %50 = load i64, ptr %49, align 8, !tbaa !8
  %51 = load i64, ptr %36, align 8, !tbaa !8
  %52 = sub nsw i64 %50, %51
  %53 = add nsw i64 %52, %48
  %54 = getelementptr inbounds [200000 x i64], ptr @s, i64 0, i64 %.02024
  %55 = load i64, ptr %54, align 8, !tbaa !8
  %.not = icmp eq i64 %55, 0
  br i1 %.not, label %59, label %56

56:                                               ; preds = %.lr.ph27
  %57 = add nsw i64 %53, %.01925
  %58 = srem i64 %57, %45
  br label %59

59:                                               ; preds = %56, %.lr.ph27
  %.1 = phi i64 [ %58, %56 ], [ %.01925, %.lr.ph27 ]
  %60 = add nuw nsw i64 %.02024, 1
  tail call void @_Z3updxx(i64 noundef %60, i64 noundef %53)
  %61 = load i64, ptr @N, align 8, !tbaa !8
  %62 = icmp slt i64 %60, %61
  br i1 %62, label %.lr.ph27, label %._crit_edge28, !llvm.loop !13
}

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

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


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