; LLVM IR from manishbisht/Competitive-Programming :: Codeforces/VK Cup 2012 Qualification Round 1 (Taxi)

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

@_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 i64, align 8
  %7 = alloca [5 x i64], align 16
  %8 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %7) #5
  store i64 1, ptr %4, align 8, !tbaa !5
  br label %9

9:                                                ; preds = %15, %0
  %10 = load i64, ptr %4, align 8, !tbaa !5
  %11 = icmp slt i64 %10, 5
  br i1 %11, label %12, label %18

12:                                               ; preds = %9
  %13 = load i64, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %13
  store i64 0, ptr %14, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %12
  %16 = load i64, ptr %4, align 8, !tbaa !5
  %17 = add nsw i64 %16, 1
  store i64 %17, ptr %4, align 8, !tbaa !5
  br label %9, !llvm.loop !9

18:                                               ; preds = %9
  %19 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  store i64 0, ptr %4, align 8, !tbaa !5
  br label %20

20:                                               ; preds = %30, %18
  %21 = load i64, ptr %4, align 8, !tbaa !5
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = icmp slt i64 %21, %22
  br i1 %23, label %24, label %33

24:                                               ; preds = %20
  %25 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %26 = load i64, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 %26
  %28 = load i64, ptr %27, align 8, !tbaa !5
  %29 = add nsw i64 %28, 1
  store i64 %29, ptr %27, align 8, !tbaa !5
  br label %30

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

33:                                               ; preds = %20
  %34 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 4
  %35 = load i64, ptr %34, align 16, !tbaa !5
  store i64 %35, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %37 = load i64, ptr %36, align 8, !tbaa !5
  %38 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %39 = load i64, ptr %38, align 8, !tbaa !5
  %40 = icmp slt i64 %37, %39
  br i1 %40, label %41, label %52

41:                                               ; preds = %33
  %42 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %43 = load i64, ptr %42, align 8, !tbaa !5
  %44 = load i64, ptr %3, align 8, !tbaa !5
  %45 = add nsw i64 %44, %43
  store i64 %45, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %47 = load i64, ptr %46, align 8, !tbaa !5
  %48 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %49 = load i64, ptr %48, align 8, !tbaa !5
  %50 = sub nsw i64 %49, %47
  store i64 %50, ptr %48, align 8, !tbaa !5
  %51 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  store i64 0, ptr %51, align 8, !tbaa !5
  br label %77

52:                                               ; preds = %33
  %53 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %54 = load i64, ptr %53, align 8, !tbaa !5
  %55 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %56 = load i64, ptr %55, align 8, !tbaa !5
  %57 = icmp slt i64 %54, %56
  br i1 %57, label %58, label %69

58:                                               ; preds = %52
  %59 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %60 = load i64, ptr %59, align 8, !tbaa !5
  %61 = load i64, ptr %3, align 8, !tbaa !5
  %62 = add nsw i64 %61, %60
  store i64 %62, ptr %3, align 8, !tbaa !5
  %63 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %66 = load i64, ptr %65, align 8, !tbaa !5
  %67 = sub nsw i64 %66, %64
  store i64 %67, ptr %65, align 8, !tbaa !5
  %68 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  store i64 0, ptr %68, align 8, !tbaa !5
  br label %76

69:                                               ; preds = %52
  %70 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %71 = load i64, ptr %70, align 8, !tbaa !5
  %72 = load i64, ptr %3, align 8, !tbaa !5
  %73 = add nsw i64 %72, %71
  store i64 %73, ptr %3, align 8, !tbaa !5
  %74 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  store i64 0, ptr %74, align 8, !tbaa !5
  %75 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  store i64 0, ptr %75, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %69, %58
  br label %77

77:                                               ; preds = %76, %41
  %78 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %79 = load i64, ptr %78, align 8, !tbaa !5
  %80 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 2
  %81 = load i64, ptr %80, align 16, !tbaa !5
  %82 = icmp sgt i64 %79, %81
  br i1 %82, label %83, label %102

83:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %84 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %85 = load i64, ptr %84, align 8, !tbaa !5
  %86 = sdiv i64 %85, 2
  store i64 %86, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 2
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 8 dereferenceable(8) %87)
  %89 = load i64, ptr %88, align 8, !tbaa !5
  store i64 %89, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %90 = load i64, ptr %3, align 8, !tbaa !5
  %91 = load i64, ptr %6, align 8, !tbaa !5
  %92 = add nsw i64 %90, %91
  store i64 %92, ptr %3, align 8, !tbaa !5
  %93 = load i64, ptr %6, align 8, !tbaa !5
  %94 = mul nsw i64 %93, 2
  %95 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %96 = load i64, ptr %95, align 8, !tbaa !5
  %97 = sub nsw i64 %96, %94
  store i64 %97, ptr %95, align 8, !tbaa !5
  %98 = load i64, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 2
  %100 = load i64, ptr %99, align 16, !tbaa !5
  %101 = sub nsw i64 %100, %98
  store i64 %101, ptr %99, align 16, !tbaa !5
  br label %102

102:                                              ; preds = %83, %77
  %103 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 1
  %104 = load i64, ptr %103, align 8, !tbaa !5
  %105 = load i64, ptr %3, align 8, !tbaa !5
  %106 = add nsw i64 %105, %104
  store i64 %106, ptr %3, align 8, !tbaa !5
  %107 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 2
  %108 = load i64, ptr %107, align 16, !tbaa !5
  %109 = load i64, ptr %3, align 8, !tbaa !5
  %110 = add nsw i64 %109, %108
  store i64 %110, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds [5 x i64], ptr %7, i64 0, i64 3
  %112 = load i64, ptr %111, align 8, !tbaa !5
  %113 = load i64, ptr %3, align 8, !tbaa !5
  %114 = add nsw i64 %113, %112
  store i64 %114, ptr %3, align 8, !tbaa !5
  %115 = load i64, ptr %3, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %115)
  %117 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %116, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 40, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  ret i32 0
}

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

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

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

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #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 = { 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" }

@_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 = alloca [5 x i64], align 16
  %4 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %3) #6
  %scevgep = getelementptr inbounds i8, ptr %3, i64 8
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %scevgep, i8 0, i64 32, i1 false), !tbaa !5
  %5 = 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)
  %6 = load i64, ptr %1, align 8, !tbaa !5
  %7 = icmp sgt i64 %6, 0
  br i1 %7, label %.lr.ph, label %.thread

.thread:                                          ; preds = %0
  %8 = getelementptr inbounds i8, ptr %3, i64 24
  br label %25

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.11723 = phi i64 [ %14, %.lr.ph ], [ 0, %0 ]
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) @_ZSt3cin, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %10 = load i64, ptr %2, align 8, !tbaa !5
  %11 = getelementptr inbounds [5 x i64], ptr %3, i64 0, i64 %10
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = add nsw i64 %12, 1
  store i64 %13, ptr %11, align 8, !tbaa !5
  %14 = add nuw nsw i64 %.11723, 1
  %15 = load i64, ptr %1, align 8, !tbaa !5
  %16 = icmp slt i64 %14, %15
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph
  %.phi.trans.insert = getelementptr inbounds i8, ptr %3, i64 32
  %.pre = load i64, ptr %.phi.trans.insert, align 16, !tbaa !5
  %.pre24 = load i64, ptr %scevgep, align 8, !tbaa !5
  %.phi.trans.insert25 = getelementptr inbounds i8, ptr %3, i64 24
  %.pre26 = load i64, ptr %.phi.trans.insert25, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %3, i64 24
  %18 = icmp slt i64 %.pre24, %.pre26
  br i1 %18, label %19, label %21

19:                                               ; preds = %._crit_edge
  %20 = sub nsw i64 %.pre26, %.pre24
  store i64 %20, ptr %17, align 8, !tbaa !5
  br label %29

21:                                               ; preds = %._crit_edge
  %22 = icmp slt i64 %.pre26, %.pre24
  br i1 %22, label %23, label %25

23:                                               ; preds = %21
  %24 = sub nsw i64 %.pre24, %.pre26
  store i64 %24, ptr %scevgep, align 8, !tbaa !5
  br label %29

25:                                               ; preds = %.thread, %21
  %26 = phi i64 [ 0, %.thread ], [ %.pre24, %21 ]
  %27 = phi i64 [ 0, %.thread ], [ %.pre, %21 ]
  %28 = phi ptr [ %8, %.thread ], [ %17, %21 ]
  store i64 0, ptr %scevgep, align 8, !tbaa !5
  br label %29

29:                                               ; preds = %23, %25, %19
  %.sink = phi ptr [ %17, %23 ], [ %28, %25 ], [ %scevgep, %19 ]
  %30 = phi ptr [ %17, %23 ], [ %28, %25 ], [ %17, %19 ]
  %31 = phi i64 [ %.pre, %23 ], [ %27, %25 ], [ %.pre, %19 ]
  %32 = phi i64 [ 0, %23 ], [ 0, %25 ], [ %20, %19 ]
  %33 = phi i64 [ %24, %23 ], [ 0, %25 ], [ 0, %19 ]
  %.pn = phi i64 [ %.pre26, %23 ], [ %26, %25 ], [ %.pre24, %19 ]
  store i64 0, ptr %.sink, align 8, !tbaa !5
  %.0 = add nsw i64 %.pn, %31
  %34 = getelementptr inbounds i8, ptr %3, i64 16
  %35 = load i64, ptr %34, align 16, !tbaa !5
  %36 = icmp sgt i64 %33, %35
  br i1 %36, label %37, label %47

37:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %38 = sdiv i64 %33, 2
  store i64 %38, ptr %4, align 8, !tbaa !5
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %34)
  %40 = load i64, ptr %39, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  %41 = add nsw i64 %40, %.0
  %42 = shl nsw i64 %40, 1
  %43 = load i64, ptr %scevgep, align 8, !tbaa !5
  %44 = sub nsw i64 %43, %42
  store i64 %44, ptr %scevgep, align 8, !tbaa !5
  %45 = load i64, ptr %34, align 16, !tbaa !5
  %46 = sub nsw i64 %45, %40
  store i64 %46, ptr %34, align 16, !tbaa !5
  %.pre27 = load i64, ptr %30, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %37, %29
  %48 = phi i64 [ %.pre27, %37 ], [ %32, %29 ]
  %49 = phi i64 [ %46, %37 ], [ %35, %29 ]
  %50 = phi i64 [ %44, %37 ], [ %33, %29 ]
  %.1 = phi i64 [ %41, %37 ], [ %.0, %29 ]
  %51 = add nsw i64 %50, %.1
  %52 = add nsw i64 %51, %49
  %53 = add nsw i64 %52, %48
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEx(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, i64 noundef %53)
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #6
  ret i32 0
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

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

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


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