; LLVM IR from abeaumont/competitive-programming :: kattis (cowcrane)

; 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
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i8, align 1
  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 8, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %11 = 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)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %13 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %14 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %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) %6)
  %16 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(8) %7)
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  store i8 0, ptr %10, align 1, !tbaa !5
  %17 = load i64, ptr %2, align 8, !tbaa !9
  %18 = call i64 @llvm.abs.i64(i64 %17, i1 true)
  %19 = load i64, ptr %3, align 8, !tbaa !9
  %20 = load i64, ptr %2, align 8, !tbaa !9
  %21 = sub nsw i64 %19, %20
  %22 = call i64 @llvm.abs.i64(i64 %21, i1 true)
  %23 = add nsw i64 %18, %22
  %24 = load i64, ptr %5, align 8, !tbaa !9
  %25 = load i64, ptr %3, align 8, !tbaa !9
  %26 = sub nsw i64 %24, %25
  %27 = call i64 @llvm.abs.i64(i64 %26, i1 true)
  %28 = add nsw i64 %23, %27
  store i64 %28, ptr %8, align 8, !tbaa !9
  %29 = load i64, ptr %3, align 8, !tbaa !9
  %30 = load i64, ptr %5, align 8, !tbaa !9
  %31 = sub nsw i64 %29, %30
  %32 = call i64 @llvm.abs.i64(i64 %31, i1 true)
  %33 = load i64, ptr %4, align 8, !tbaa !9
  %34 = load i64, ptr %3, align 8, !tbaa !9
  %35 = sub nsw i64 %33, %34
  %36 = call i64 @llvm.abs.i64(i64 %35, i1 true)
  %37 = add nsw i64 %32, %36
  store i64 %37, ptr %9, align 8, !tbaa !9
  %38 = load i64, ptr %8, align 8, !tbaa !9
  %39 = load i64, ptr %7, align 8, !tbaa !9
  %40 = icmp sle i64 %38, %39
  br i1 %40, label %41, label %48

41:                                               ; preds = %0
  %42 = load i64, ptr %8, align 8, !tbaa !9
  %43 = load i64, ptr %9, align 8, !tbaa !9
  %44 = add nsw i64 %42, %43
  %45 = load i64, ptr %6, align 8, !tbaa !9
  %46 = icmp sle i64 %44, %45
  br i1 %46, label %47, label %48

47:                                               ; preds = %41
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %48

48:                                               ; preds = %47, %41, %0
  %49 = load i64, ptr %2, align 8, !tbaa !9
  %50 = call i64 @llvm.abs.i64(i64 %49, i1 true)
  %51 = load i64, ptr %4, align 8, !tbaa !9
  %52 = load i64, ptr %2, align 8, !tbaa !9
  %53 = sub nsw i64 %51, %52
  %54 = call i64 @llvm.abs.i64(i64 %53, i1 true)
  %55 = add nsw i64 %50, %54
  store i64 %55, ptr %8, align 8, !tbaa !9
  %56 = load i64, ptr %3, align 8, !tbaa !9
  %57 = load i64, ptr %4, align 8, !tbaa !9
  %58 = sub nsw i64 %56, %57
  %59 = call i64 @llvm.abs.i64(i64 %58, i1 true)
  %60 = load i64, ptr %5, align 8, !tbaa !9
  %61 = load i64, ptr %3, align 8, !tbaa !9
  %62 = sub nsw i64 %60, %61
  %63 = call i64 @llvm.abs.i64(i64 %62, i1 true)
  %64 = add nsw i64 %59, %63
  store i64 %64, ptr %9, align 8, !tbaa !9
  %65 = load i64, ptr %8, align 8, !tbaa !9
  %66 = load i64, ptr %6, align 8, !tbaa !9
  %67 = icmp sle i64 %65, %66
  br i1 %67, label %68, label %75

68:                                               ; preds = %48
  %69 = load i64, ptr %8, align 8, !tbaa !9
  %70 = load i64, ptr %9, align 8, !tbaa !9
  %71 = add nsw i64 %69, %70
  %72 = load i64, ptr %7, align 8, !tbaa !9
  %73 = icmp sle i64 %71, %72
  br i1 %73, label %74, label %75

74:                                               ; preds = %68
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %75

75:                                               ; preds = %74, %68, %48
  %76 = load i64, ptr %3, align 8, !tbaa !9
  %77 = call i64 @llvm.abs.i64(i64 %76, i1 true)
  %78 = load i64, ptr %2, align 8, !tbaa !9
  %79 = load i64, ptr %3, align 8, !tbaa !9
  %80 = sub nsw i64 %78, %79
  %81 = call i64 @llvm.abs.i64(i64 %80, i1 true)
  %82 = add nsw i64 %77, %81
  %83 = load i64, ptr %4, align 8, !tbaa !9
  %84 = load i64, ptr %2, align 8, !tbaa !9
  %85 = sub nsw i64 %83, %84
  %86 = call i64 @llvm.abs.i64(i64 %85, i1 true)
  %87 = add nsw i64 %82, %86
  store i64 %87, ptr %8, align 8, !tbaa !9
  %88 = load i64, ptr %2, align 8, !tbaa !9
  %89 = load i64, ptr %4, align 8, !tbaa !9
  %90 = sub nsw i64 %88, %89
  %91 = call i64 @llvm.abs.i64(i64 %90, i1 true)
  %92 = load i64, ptr %5, align 8, !tbaa !9
  %93 = load i64, ptr %2, align 8, !tbaa !9
  %94 = sub nsw i64 %92, %93
  %95 = call i64 @llvm.abs.i64(i64 %94, i1 true)
  %96 = add nsw i64 %91, %95
  store i64 %96, ptr %9, align 8, !tbaa !9
  %97 = load i64, ptr %8, align 8, !tbaa !9
  %98 = load i64, ptr %6, align 8, !tbaa !9
  %99 = icmp sle i64 %97, %98
  br i1 %99, label %100, label %107

100:                                              ; preds = %75
  %101 = load i64, ptr %8, align 8, !tbaa !9
  %102 = load i64, ptr %9, align 8, !tbaa !9
  %103 = add nsw i64 %101, %102
  %104 = load i64, ptr %7, align 8, !tbaa !9
  %105 = icmp sle i64 %103, %104
  br i1 %105, label %106, label %107

106:                                              ; preds = %100
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %107

107:                                              ; preds = %106, %100, %75
  %108 = load i64, ptr %3, align 8, !tbaa !9
  %109 = call i64 @llvm.abs.i64(i64 %108, i1 true)
  %110 = load i64, ptr %5, align 8, !tbaa !9
  %111 = load i64, ptr %3, align 8, !tbaa !9
  %112 = sub nsw i64 %110, %111
  %113 = call i64 @llvm.abs.i64(i64 %112, i1 true)
  %114 = add nsw i64 %109, %113
  store i64 %114, ptr %8, align 8, !tbaa !9
  %115 = load i64, ptr %2, align 8, !tbaa !9
  %116 = load i64, ptr %5, align 8, !tbaa !9
  %117 = sub nsw i64 %115, %116
  %118 = call i64 @llvm.abs.i64(i64 %117, i1 true)
  %119 = load i64, ptr %4, align 8, !tbaa !9
  %120 = load i64, ptr %2, align 8, !tbaa !9
  %121 = sub nsw i64 %119, %120
  %122 = call i64 @llvm.abs.i64(i64 %121, i1 true)
  %123 = add nsw i64 %118, %122
  store i64 %123, ptr %9, align 8, !tbaa !9
  %124 = load i64, ptr %8, align 8, !tbaa !9
  %125 = load i64, ptr %7, align 8, !tbaa !9
  %126 = icmp sle i64 %124, %125
  br i1 %126, label %127, label %134

127:                                              ; preds = %107
  %128 = load i64, ptr %8, align 8, !tbaa !9
  %129 = load i64, ptr %9, align 8, !tbaa !9
  %130 = add nsw i64 %128, %129
  %131 = load i64, ptr %6, align 8, !tbaa !9
  %132 = icmp sle i64 %130, %131
  br i1 %132, label %133, label %134

133:                                              ; preds = %127
  store i8 1, ptr %10, align 1, !tbaa !5
  br label %134

134:                                              ; preds = %133, %127, %107
  %135 = load i8, ptr %10, align 1, !tbaa !5, !range !11, !noundef !12
  %136 = trunc i8 %135 to i1
  br i1 %136, label %139, label %137

137:                                              ; preds = %134
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
  br label %139

139:                                              ; preds = %137, %134
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, 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
  %141 = load i32, ptr %1, align 4
  ret i32 %141
}

; 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #3

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

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

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"bool", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long long", !7, i64 0}
!11 = !{i8 0, i8 2}
!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" }

@_ZSt3cin = external global %"class.std::basic_istream", align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [3 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1

; 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 i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %7 = 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)
  %8 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %9 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %10 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(8) %4)
  %11 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %12 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSirsERx(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %13 = load i64, ptr %1, align 8, !tbaa !5
  %14 = call i64 @llvm.abs.i64(i64 %13, i1 true)
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = sub nsw i64 %15, %13
  %17 = call i64 @llvm.abs.i64(i64 %16, i1 true)
  %18 = add nuw nsw i64 %17, %14
  %19 = load i64, ptr %4, align 8, !tbaa !5
  %20 = sub nsw i64 %19, %15
  %21 = call i64 @llvm.abs.i64(i64 %20, i1 true)
  %22 = add nuw nsw i64 %18, %21
  %23 = load i64, ptr %6, align 8, !tbaa !5
  %.not = icmp sgt i64 %22, %23
  %.pre = load i64, ptr %3, align 8, !tbaa !5
  %.pre28 = load i64, ptr %5, align 8, !tbaa !5
  br i1 %.not, label %31, label %24

24:                                               ; preds = %0
  %25 = sub nsw i64 %15, %19
  %26 = call i64 @llvm.abs.i64(i64 %25, i1 true)
  %27 = sub nsw i64 %.pre, %15
  %28 = call i64 @llvm.abs.i64(i64 %27, i1 true)
  %29 = add nuw nsw i64 %22, %26
  %30 = add nuw nsw i64 %29, %28
  %.not18 = icmp sle i64 %30, %.pre28
  br label %31

31:                                               ; preds = %24, %0
  %.0 = phi i1 [ false, %0 ], [ %.not18, %24 ]
  %32 = sub nsw i64 %.pre, %13
  %33 = call i64 @llvm.abs.i64(i64 %32, i1 true)
  %34 = add nuw nsw i64 %33, %14
  %.not19 = icmp sgt i64 %34, %.pre28
  br i1 %.not19, label %40, label %35

35:                                               ; preds = %31
  %36 = sub nsw i64 %15, %.pre
  %37 = call i64 @llvm.abs.i64(i64 %36, i1 true)
  %38 = add nuw nsw i64 %37, %21
  %39 = add nuw nsw i64 %38, %34
  %.not20 = icmp sle i64 %39, %23
  %spec.select25 = select i1 %.not20, i1 true, i1 %.0
  br label %40

40:                                               ; preds = %35, %31
  %.1 = phi i1 [ %.0, %31 ], [ %spec.select25, %35 ]
  %41 = call i64 @llvm.abs.i64(i64 %15, i1 true)
  %42 = sub nsw i64 %13, %15
  %43 = call i64 @llvm.abs.i64(i64 %42, i1 true)
  %44 = add nuw nsw i64 %43, %41
  %45 = add nuw nsw i64 %44, %33
  %.not21 = icmp sgt i64 %45, %.pre28
  br i1 %.not21, label %53, label %46

46:                                               ; preds = %40
  %47 = sub nsw i64 %13, %.pre
  %48 = call i64 @llvm.abs.i64(i64 %47, i1 true)
  %49 = sub nsw i64 %19, %13
  %50 = call i64 @llvm.abs.i64(i64 %49, i1 true)
  %51 = add nuw nsw i64 %48, %50
  %52 = add nuw nsw i64 %51, %45
  %.not22 = icmp sle i64 %52, %23
  %spec.select26 = select i1 %.not22, i1 true, i1 %.1
  br label %53

53:                                               ; preds = %46, %40
  %.2 = phi i1 [ %.1, %40 ], [ %spec.select26, %46 ]
  %54 = add nuw nsw i64 %21, %41
  %.not23 = icmp sgt i64 %54, %23
  br i1 %.not23, label %60, label %55

55:                                               ; preds = %53
  %56 = sub nsw i64 %13, %19
  %57 = call i64 @llvm.abs.i64(i64 %56, i1 true)
  %58 = add nuw nsw i64 %54, %57
  %59 = add nuw nsw i64 %58, %33
  %.not24 = icmp sle i64 %59, %.pre28
  %spec.select27 = select i1 %.not24, i1 true, i1 %.2
  br i1 %spec.select27, label %63, label %61

60:                                               ; preds = %53
  br i1 %.2, label %63, label %61

61:                                               ; preds = %55, %60
  %62 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
  br label %63

63:                                               ; preds = %55, %61, %60
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #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
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  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: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.abs.i64(i64, i1 immarg) #3

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

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

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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"}


; Effective O3 passes: AggressiveInstCombinePass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SROAPass,SimplifyCFGPass