; LLVM IR from DionysiosB/CodeForces :: 0400-0499 (491B-NewYorkHotel)

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

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 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 i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %24 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %2, ptr noundef %3)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %25 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %26 = load i64, ptr %3, align 8, !tbaa !5
  %27 = load i64, ptr %2, align 8, !tbaa !5
  %28 = add nsw i64 %26, %27
  store i64 %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %29 = load i64, ptr %2, align 8, !tbaa !5
  store i64 %29, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %30 = load i64, ptr %3, align 8, !tbaa !5
  %31 = sub nsw i64 0, %30
  store i64 %31, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %79, %0
  %33 = load i64, ptr %9, align 8, !tbaa !5
  %34 = load i64, ptr %4, align 8, !tbaa !5
  %35 = icmp slt i64 %33, %34
  br i1 %35, label %37, label %36

36:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %82

37:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %38 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str, ptr noundef %10, ptr noundef %11)
  %39 = load i64, ptr %10, align 8, !tbaa !5
  %40 = load i64, ptr %11, align 8, !tbaa !5
  %41 = add nsw i64 %39, %40
  %42 = load i64, ptr %5, align 8, !tbaa !5
  %43 = icmp slt i64 %41, %42
  br i1 %43, label %44, label %48

44:                                               ; preds = %37
  %45 = load i64, ptr %10, align 8, !tbaa !5
  %46 = load i64, ptr %11, align 8, !tbaa !5
  %47 = add nsw i64 %45, %46
  store i64 %47, ptr %5, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %44, %37
  %49 = load i64, ptr %10, align 8, !tbaa !5
  %50 = load i64, ptr %11, align 8, !tbaa !5
  %51 = add nsw i64 %49, %50
  %52 = load i64, ptr %6, align 8, !tbaa !5
  %53 = icmp sgt i64 %51, %52
  br i1 %53, label %54, label %58

54:                                               ; preds = %48
  %55 = load i64, ptr %10, align 8, !tbaa !5
  %56 = load i64, ptr %11, align 8, !tbaa !5
  %57 = add nsw i64 %55, %56
  store i64 %57, ptr %6, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %54, %48
  %59 = load i64, ptr %10, align 8, !tbaa !5
  %60 = load i64, ptr %11, align 8, !tbaa !5
  %61 = sub nsw i64 %59, %60
  %62 = load i64, ptr %7, align 8, !tbaa !5
  %63 = icmp slt i64 %61, %62
  br i1 %63, label %64, label %68

64:                                               ; preds = %58
  %65 = load i64, ptr %10, align 8, !tbaa !5
  %66 = load i64, ptr %11, align 8, !tbaa !5
  %67 = sub nsw i64 %65, %66
  store i64 %67, ptr %7, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %64, %58
  %69 = load i64, ptr %10, align 8, !tbaa !5
  %70 = load i64, ptr %11, align 8, !tbaa !5
  %71 = sub nsw i64 %69, %70
  %72 = load i64, ptr %8, align 8, !tbaa !5
  %73 = icmp sgt i64 %71, %72
  br i1 %73, label %74, label %78

74:                                               ; preds = %68
  %75 = load i64, ptr %10, align 8, !tbaa !5
  %76 = load i64, ptr %11, align 8, !tbaa !5
  %77 = sub nsw i64 %75, %76
  store i64 %77, ptr %8, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %74, %68
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %9, align 8, !tbaa !5
  %81 = add nsw i64 %80, 1
  store i64 %81, ptr %9, align 8, !tbaa !5
  br label %32, !llvm.loop !9

82:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %83 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  store i64 0, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %84 = load i64, ptr %3, align 8, !tbaa !5
  %85 = load i64, ptr %2, align 8, !tbaa !5
  %86 = add nsw i64 %84, %85
  store i64 %86, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %143, %82
  %88 = load i64, ptr %15, align 8, !tbaa !5
  %89 = load i64, ptr %12, align 8, !tbaa !5
  %90 = icmp slt i64 %88, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %87
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %146

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %93 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.2, ptr noundef %16, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %94 = load i64, ptr %16, align 8, !tbaa !5
  %95 = load i64, ptr %17, align 8, !tbaa !5
  %96 = add nsw i64 %94, %95
  store i64 %96, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %97 = load i64, ptr %16, align 8, !tbaa !5
  %98 = load i64, ptr %17, align 8, !tbaa !5
  %99 = sub nsw i64 %97, %98
  store i64 %99, ptr %19, align 8, !tbaa !5
  %100 = load i64, ptr %18, align 8, !tbaa !5
  %101 = load i64, ptr %5, align 8, !tbaa !5
  %102 = sub nsw i64 %100, %101
  %103 = load i64, ptr %14, align 8, !tbaa !5
  %104 = icmp slt i64 %102, %103
  br i1 %104, label %105, label %142

105:                                              ; preds = %92
  %106 = load i64, ptr %6, align 8, !tbaa !5
  %107 = load i64, ptr %18, align 8, !tbaa !5
  %108 = sub nsw i64 %106, %107
  %109 = load i64, ptr %14, align 8, !tbaa !5
  %110 = icmp slt i64 %108, %109
  br i1 %110, label %111, label %142

111:                                              ; preds = %105
  %112 = load i64, ptr %19, align 8, !tbaa !5
  %113 = load i64, ptr %7, align 8, !tbaa !5
  %114 = sub nsw i64 %112, %113
  %115 = load i64, ptr %14, align 8, !tbaa !5
  %116 = icmp slt i64 %114, %115
  br i1 %116, label %117, label %142

117:                                              ; preds = %111
  %118 = load i64, ptr %8, align 8, !tbaa !5
  %119 = load i64, ptr %19, align 8, !tbaa !5
  %120 = sub nsw i64 %118, %119
  %121 = load i64, ptr %14, align 8, !tbaa !5
  %122 = icmp slt i64 %120, %121
  br i1 %122, label %123, label %142

123:                                              ; preds = %117
  %124 = load i64, ptr %15, align 8, !tbaa !5
  %125 = add nsw i64 %124, 1
  store i64 %125, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %126 = load i64, ptr %18, align 8, !tbaa !5
  %127 = load i64, ptr %5, align 8, !tbaa !5
  %128 = sub nsw i64 %126, %127
  store i64 %128, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %129 = load i64, ptr %6, align 8, !tbaa !5
  %130 = load i64, ptr %18, align 8, !tbaa !5
  %131 = sub nsw i64 %129, %130
  store i64 %131, ptr %21, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %133 = load i64, ptr %19, align 8, !tbaa !5
  %134 = load i64, ptr %7, align 8, !tbaa !5
  %135 = sub nsw i64 %133, %134
  store i64 %135, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %136 = load i64, ptr %8, align 8, !tbaa !5
  %137 = load i64, ptr %19, align 8, !tbaa !5
  %138 = sub nsw i64 %136, %137
  store i64 %138, ptr %23, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef nonnull align 8 dereferenceable(8) %139)
  %141 = load i64, ptr %140, align 8, !tbaa !5
  store i64 %141, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %142

142:                                              ; preds = %123, %117, %111, %105, %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %143

143:                                              ; preds = %142
  %144 = load i64, ptr %15, align 8, !tbaa !5
  %145 = add nsw i64 %144, 1
  store i64 %145, ptr %15, align 8, !tbaa !5
  br label %87, !llvm.loop !11

146:                                              ; preds = %91
  %147 = load i64, ptr %14, align 8, !tbaa !5
  %148 = load i64, ptr %13, align 8, !tbaa !5
  %149 = call i32 (ptr, ...) @printf(ptr noundef @.str.3, i64 noundef %147, i64 noundef %148)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #4
  ret i32 0
}

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

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

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

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

declare i32 @printf(ptr noundef, ...) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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", !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"

@.str = external hidden unnamed_addr constant [8 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [9 x i8], align 1

; Function Attrs: mustprogress norecurse nounwind 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
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = 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
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %1, ptr noundef nonnull %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %3)
  %15 = load i64, ptr %2, align 8, !tbaa !5
  %16 = load i64, ptr %1, align 8, !tbaa !5
  %17 = add nsw i64 %16, %15
  %18 = sub nsw i64 0, %15
  %19 = load i64, ptr %3, align 8, !tbaa !5
  %20 = icmp sgt i64 %19, 0
  br i1 %20, label %.lr.ph, label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.041.lcssa = phi i64 [ %16, %0 ], [ %.142, %.lr.ph ]
  %.039.lcssa = phi i64 [ %18, %0 ], [ %.140, %.lr.ph ]
  %.031.lcssa = phi i64 [ 0, %0 ], [ %.132, %.lr.ph ]
  %.0.lcssa = phi i64 [ %17, %0 ], [ %spec.select, %.lr.ph ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %21 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %6)
  %22 = load i64, ptr %2, align 8, !tbaa !5
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %24 = add nsw i64 %23, %22
  %25 = load i64, ptr %6, align 8, !tbaa !5
  %26 = icmp sgt i64 %25, 0
  br i1 %26, label %.lr.ph63, label %._crit_edge64

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.055 = phi i64 [ %spec.select, %.lr.ph ], [ %17, %0 ]
  %.03154 = phi i64 [ %.132, %.lr.ph ], [ 0, %0 ]
  %.03853 = phi i64 [ %32, %.lr.ph ], [ 0, %0 ]
  %.03952 = phi i64 [ %.140, %.lr.ph ], [ %18, %0 ]
  %.04151 = phi i64 [ %.142, %.lr.ph ], [ %16, %0 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  %27 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %28 = load i64, ptr %4, align 8, !tbaa !5
  %29 = load i64, ptr %5, align 8, !tbaa !5
  %30 = add nsw i64 %29, %28
  %spec.select = call i64 @llvm.smin.i64(i64 %30, i64 %.055)
  %.132 = call i64 @llvm.smax.i64(i64 %30, i64 %.03154)
  %31 = sub nsw i64 %28, %29
  %.142 = call i64 @llvm.smin.i64(i64 %31, i64 %.04151)
  %.140 = call i64 @llvm.smax.i64(i64 %31, i64 %.03952)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  %32 = add nuw nsw i64 %.03853, 1
  %33 = load i64, ptr %3, align 8, !tbaa !5
  %34 = icmp slt i64 %32, %33
  br i1 %34, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge64:                                    ; preds = %58, %._crit_edge
  %.036.lcssa = phi i64 [ 0, %._crit_edge ], [ %.137, %58 ]
  %.034.lcssa = phi i64 [ %24, %._crit_edge ], [ %.135, %58 ]
  %35 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3, i64 noundef %.034.lcssa, i64 noundef %.036.lcssa)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #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

.lr.ph63:                                         ; preds = %._crit_edge, %58
  %.03361 = phi i64 [ %59, %58 ], [ 0, %._crit_edge ]
  %.03460 = phi i64 [ %.135, %58 ], [ %24, %._crit_edge ]
  %.03659 = phi i64 [ %.137, %58 ], [ 0, %._crit_edge ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #5
  %36 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.2, ptr noundef nonnull %7, ptr noundef nonnull %8)
  %37 = load i64, ptr %7, align 8, !tbaa !5
  %38 = load i64, ptr %8, align 8, !tbaa !5
  %39 = add nsw i64 %38, %37
  %40 = sub nsw i64 %37, %38
  %41 = sub nsw i64 %39, %.0.lcssa
  %42 = icmp slt i64 %41, %.03460
  br i1 %42, label %43, label %58

43:                                               ; preds = %.lr.ph63
  %44 = sub nsw i64 %.031.lcssa, %39
  %45 = icmp slt i64 %44, %.03460
  br i1 %45, label %46, label %58

46:                                               ; preds = %43
  %47 = sub nsw i64 %40, %.041.lcssa
  %48 = icmp slt i64 %47, %.03460
  br i1 %48, label %49, label %58

49:                                               ; preds = %46
  %50 = sub nsw i64 %.039.lcssa, %40
  %51 = icmp slt i64 %50, %.03460
  br i1 %51, label %52, label %58

52:                                               ; preds = %49
  %53 = add nuw nsw i64 %.03361, 1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #5
  store i64 %41, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  store i64 %44, ptr %10, align 8, !tbaa !5
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #5
  store i64 %47, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #5
  store i64 %50, ptr %12, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %12)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIlERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %54, ptr noundef nonnull align 8 dereferenceable(8) %55)
  %57 = load i64, ptr %56, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #5
  br label %58

58:                                               ; preds = %52, %49, %46, %43, %.lr.ph63
  %.137 = phi i64 [ %53, %52 ], [ %.03659, %49 ], [ %.03659, %46 ], [ %.03659, %43 ], [ %.03659, %.lr.ph63 ]
  %.135 = phi i64 [ %57, %52 ], [ %.03460, %49 ], [ %.03460, %46 ], [ %.03460, %43 ], [ %.03460, %.lr.ph63 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  %59 = add nuw nsw i64 %.03361, 1
  %60 = load i64, ptr %6, align 8, !tbaa !5
  %61 = icmp slt i64 %59, %60
  br i1 %61, label %.lr.ph63, label %._crit_edge64, !llvm.loop !11
}

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

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smin.i64(i64, i64) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smax.i64(i64, i64) #4

attributes #0 = { mustprogress norecurse 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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", !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}


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