; LLVM IR from VastoLorde95/Competitive-Programming :: Codeforces/359 Division 1/Problem C/C.ll (Z11getSolutionR10inequality)

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

%struct.point = type { i64, i64, i64 }
%struct.inequality = type { %"struct.std::pair", %"struct.std::pair", %"struct.std::pair", %"struct.std::pair" }
%"struct.std::pair" = type { i64, i64 }

@__const._Z11getSolutionR10inequality.ret = external hidden unnamed_addr constant %struct.point, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11getSolutionR10inequality(ptr dead_on_unwind noalias writable sret(%struct.point) align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) #0 {
  %3 = alloca ptr, 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
  store ptr %1, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %0, ptr align 8 @__const._Z11getSolutionR10inequality.ret, i64 24, i1 false)
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.inequality, ptr %11, i32 0, i32 0
  %13 = getelementptr inbounds %"struct.std::pair", ptr %12, i32 0, i32 0
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.inequality, ptr %15, i32 0, i32 0
  %17 = getelementptr inbounds %"struct.std::pair", ptr %16, i32 0, i32 1
  %18 = load i64, ptr %17, align 8, !tbaa !13
  %19 = icmp sgt i64 %14, %18
  br i1 %19, label %50, label %20

20:                                               ; preds = %2
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.inequality, ptr %21, i32 0, i32 1
  %23 = getelementptr inbounds %"struct.std::pair", ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !14
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.inequality, ptr %25, i32 0, i32 1
  %27 = getelementptr inbounds %"struct.std::pair", ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !15
  %29 = icmp sgt i64 %24, %28
  br i1 %29, label %50, label %30

30:                                               ; preds = %20
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.inequality, ptr %31, i32 0, i32 2
  %33 = getelementptr inbounds %"struct.std::pair", ptr %32, i32 0, i32 0
  %34 = load i64, ptr %33, align 8, !tbaa !16
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.inequality, ptr %35, i32 0, i32 2
  %37 = getelementptr inbounds %"struct.std::pair", ptr %36, i32 0, i32 1
  %38 = load i64, ptr %37, align 8, !tbaa !17
  %39 = icmp sgt i64 %34, %38
  br i1 %39, label %50, label %40

40:                                               ; preds = %30
  %41 = load ptr, ptr %3, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.inequality, ptr %41, i32 0, i32 3
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 0
  %44 = load i64, ptr %43, align 8, !tbaa !18
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.inequality, ptr %45, i32 0, i32 3
  %47 = getelementptr inbounds %"struct.std::pair", ptr %46, i32 0, i32 1
  %48 = load i64, ptr %47, align 8, !tbaa !19
  %49 = icmp sgt i64 %44, %48
  br i1 %49, label %50, label %51

50:                                               ; preds = %40, %30, %20, %2
  br label %183

51:                                               ; preds = %40
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.inequality, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %"struct.std::pair", ptr %53, i32 0, i32 0
  %55 = load i64, ptr %54, align 8, !tbaa !9
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.inequality, ptr %56, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.std::pair", ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !14
  %60 = add nsw i64 %55, %59
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.inequality, ptr %61, i32 0, i32 2
  %63 = getelementptr inbounds %"struct.std::pair", ptr %62, i32 0, i32 0
  %64 = load i64, ptr %63, align 8, !tbaa !16
  %65 = add nsw i64 %60, %64
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.inequality, ptr %66, i32 0, i32 3
  %68 = getelementptr inbounds %"struct.std::pair", ptr %67, i32 0, i32 1
  %69 = load i64, ptr %68, align 8, !tbaa !19
  %70 = icmp sgt i64 %65, %69
  br i1 %70, label %91, label %71

71:                                               ; preds = %51
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.inequality, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds %"struct.std::pair", ptr %73, i32 0, i32 1
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.inequality, ptr %76, i32 0, i32 1
  %78 = getelementptr inbounds %"struct.std::pair", ptr %77, i32 0, i32 1
  %79 = load i64, ptr %78, align 8, !tbaa !15
  %80 = add nsw i64 %75, %79
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.inequality, ptr %81, i32 0, i32 2
  %83 = getelementptr inbounds %"struct.std::pair", ptr %82, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !17
  %85 = add nsw i64 %80, %84
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.inequality, ptr %86, i32 0, i32 3
  %88 = getelementptr inbounds %"struct.std::pair", ptr %87, i32 0, i32 0
  %89 = load i64, ptr %88, align 8, !tbaa !18
  %90 = icmp slt i64 %85, %89
  br i1 %90, label %91, label %92

91:                                               ; preds = %71, %51
  br label %183

92:                                               ; preds = %71
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.inequality, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds %"struct.std::pair", ptr %94, i32 0, i32 0
  %96 = load i64, ptr %95, align 8, !tbaa !9
  %97 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 0
  store i64 %96, ptr %97, align 8, !tbaa !20
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.inequality, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds %"struct.std::pair", ptr %99, i32 0, i32 0
  %101 = load i64, ptr %100, align 8, !tbaa !14
  %102 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 1
  store i64 %101, ptr %102, align 8, !tbaa !22
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.inequality, ptr %103, i32 0, i32 2
  %105 = getelementptr inbounds %"struct.std::pair", ptr %104, i32 0, i32 0
  %106 = load i64, ptr %105, align 8, !tbaa !16
  %107 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 2
  store i64 %106, ptr %107, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %108 = load ptr, ptr %3, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.inequality, ptr %108, i32 0, i32 3
  %110 = getelementptr inbounds %"struct.std::pair", ptr %109, i32 0, i32 0
  %111 = load i64, ptr %110, align 8, !tbaa !18
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.inequality, ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %"struct.std::pair", ptr %113, i32 0, i32 0
  %115 = load i64, ptr %114, align 8, !tbaa !9
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.inequality, ptr %116, i32 0, i32 1
  %118 = getelementptr inbounds %"struct.std::pair", ptr %117, i32 0, i32 0
  %119 = load i64, ptr %118, align 8, !tbaa !14
  %120 = add nsw i64 %115, %119
  %121 = load ptr, ptr %3, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.inequality, ptr %121, i32 0, i32 2
  %123 = getelementptr inbounds %"struct.std::pair", ptr %122, i32 0, i32 0
  %124 = load i64, ptr %123, align 8, !tbaa !16
  %125 = add nsw i64 %120, %124
  %126 = sub nsw i64 %111, %125
  store i64 %126, ptr %6, align 8, !tbaa !24
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %128 = load i64, ptr %127, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  store i64 %128, ptr %4, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.inequality, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds %"struct.std::pair", ptr %130, i32 0, i32 1
  %132 = load i64, ptr %131, align 8, !tbaa !13
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.inequality, ptr %133, i32 0, i32 0
  %135 = getelementptr inbounds %"struct.std::pair", ptr %134, i32 0, i32 0
  %136 = load i64, ptr %135, align 8, !tbaa !9
  %137 = sub nsw i64 %132, %136
  store i64 %137, ptr %8, align 8, !tbaa !24
  %138 = 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) %8)
  %139 = load i64, ptr %138, align 8, !tbaa !24
  store i64 %139, ptr %7, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  %140 = load i64, ptr %7, align 8, !tbaa !24
  %141 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 0
  %142 = load i64, ptr %141, align 8, !tbaa !20
  %143 = add nsw i64 %142, %140
  store i64 %143, ptr %141, align 8, !tbaa !20
  %144 = load i64, ptr %7, align 8, !tbaa !24
  %145 = load i64, ptr %4, align 8, !tbaa !24
  %146 = sub nsw i64 %145, %144
  store i64 %146, ptr %4, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %147 = load ptr, ptr %3, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.inequality, ptr %147, i32 0, i32 1
  %149 = getelementptr inbounds %"struct.std::pair", ptr %148, i32 0, i32 1
  %150 = load i64, ptr %149, align 8, !tbaa !15
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.inequality, ptr %151, i32 0, i32 1
  %153 = getelementptr inbounds %"struct.std::pair", ptr %152, i32 0, i32 0
  %154 = load i64, ptr %153, align 8, !tbaa !14
  %155 = sub nsw i64 %150, %154
  store i64 %155, ptr %9, align 8, !tbaa !24
  %156 = 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) %9)
  %157 = load i64, ptr %156, align 8, !tbaa !24
  store i64 %157, ptr %7, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  %158 = load i64, ptr %7, align 8, !tbaa !24
  %159 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 1
  %160 = load i64, ptr %159, align 8, !tbaa !22
  %161 = add nsw i64 %160, %158
  store i64 %161, ptr %159, align 8, !tbaa !22
  %162 = load i64, ptr %7, align 8, !tbaa !24
  %163 = load i64, ptr %4, align 8, !tbaa !24
  %164 = sub nsw i64 %163, %162
  store i64 %164, ptr %4, align 8, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %165 = load ptr, ptr %3, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.inequality, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds %"struct.std::pair", ptr %166, i32 0, i32 1
  %168 = load i64, ptr %167, align 8, !tbaa !17
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.inequality, ptr %169, i32 0, i32 2
  %171 = getelementptr inbounds %"struct.std::pair", ptr %170, i32 0, i32 0
  %172 = load i64, ptr %171, align 8, !tbaa !16
  %173 = sub nsw i64 %168, %172
  store i64 %173, ptr %10, align 8, !tbaa !24
  %174 = 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) %10)
  %175 = load i64, ptr %174, align 8, !tbaa !24
  store i64 %175, ptr %7, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  %176 = load i64, ptr %7, align 8, !tbaa !24
  %177 = getelementptr inbounds %struct.point, ptr %0, i32 0, i32 2
  %178 = load i64, ptr %177, align 8, !tbaa !23
  %179 = add nsw i64 %178, %176
  store i64 %179, ptr %177, align 8, !tbaa !23
  %180 = load i64, ptr %7, align 8, !tbaa !24
  %181 = load i64, ptr %4, align 8, !tbaa !24
  %182 = sub nsw i64 %181, %180
  store i64 %182, ptr %4, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  br label %183

183:                                              ; preds = %92, %91, %50
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_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) #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

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 nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 0}
!10 = !{!"_ZTS10inequality", !11, i64 0, !11, i64 16, !11, i64 32, !11, i64 48}
!11 = !{!"_ZTSSt4pairIxxE", !12, i64 0, !12, i64 8}
!12 = !{!"long long", !7, i64 0}
!13 = !{!10, !12, i64 8}
!14 = !{!10, !12, i64 16}
!15 = !{!10, !12, i64 24}
!16 = !{!10, !12, i64 32}
!17 = !{!10, !12, i64 40}
!18 = !{!10, !12, i64 48}
!19 = !{!10, !12, i64 56}
!20 = !{!21, !12, i64 0}
!21 = !{!"_ZTS5point", !12, i64 0, !12, i64 8, !12, i64 16}
!22 = !{!21, !12, i64 8}
!23 = !{!21, !12, i64 16}
!24 = !{!12, !12, i64 0}


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

%struct.point = type { i64, i64, i64 }

@__const._Z11getSolutionR10inequality.ret = external hidden unnamed_addr constant %struct.point, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z11getSolutionR10inequality(ptr dead_on_unwind noalias nocapture writable writeonly sret(%struct.point) align 8 %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(64) %1) local_unnamed_addr #0 {
  %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
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(24) @__const._Z11getSolutionR10inequality.ret, i64 24, i1 false)
  %9 = load i64, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !11
  %12 = icmp sgt i64 %9, %11
  br i1 %12, label %67, label %13

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %1, i64 16
  %15 = load i64, ptr %14, align 8, !tbaa !12
  %16 = getelementptr inbounds i8, ptr %1, i64 24
  %17 = load i64, ptr %16, align 8, !tbaa !13
  %18 = icmp sgt i64 %15, %17
  br i1 %18, label %67, label %19

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %1, i64 32
  %21 = load i64, ptr %20, align 8, !tbaa !14
  %22 = getelementptr inbounds i8, ptr %1, i64 40
  %23 = load i64, ptr %22, align 8, !tbaa !15
  %24 = icmp sgt i64 %21, %23
  br i1 %24, label %67, label %25

25:                                               ; preds = %19
  %26 = getelementptr inbounds i8, ptr %1, i64 48
  %27 = load i64, ptr %26, align 8, !tbaa !16
  %28 = getelementptr inbounds i8, ptr %1, i64 56
  %29 = load i64, ptr %28, align 8, !tbaa !17
  %30 = icmp sgt i64 %27, %29
  br i1 %30, label %67, label %31

31:                                               ; preds = %25
  %32 = add nsw i64 %15, %9
  %33 = add nsw i64 %32, %21
  %34 = icmp sgt i64 %33, %29
  br i1 %34, label %67, label %35

35:                                               ; preds = %31
  %36 = add nsw i64 %17, %11
  %37 = add nsw i64 %36, %23
  %38 = icmp slt i64 %37, %27
  br i1 %38, label %67, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #4
  store i64 0, ptr %4, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %42 = sub nsw i64 %27, %33
  store i64 %42, ptr %5, align 8, !tbaa !18
  %43 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %44 = load i64, ptr %43, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #4
  store i64 %44, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %45 = load i64, ptr %10, align 8, !tbaa !11
  %46 = load i64, ptr %1, align 8, !tbaa !5
  %47 = sub nsw i64 %45, %46
  store i64 %47, ptr %6, align 8, !tbaa !18
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %49 = load i64, ptr %48, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  %50 = add nsw i64 %49, %9
  store i64 %50, ptr %0, align 8, !tbaa !19
  %51 = load i64, ptr %3, align 8, !tbaa !18
  %52 = sub nsw i64 %51, %49
  store i64 %52, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %53 = load i64, ptr %16, align 8, !tbaa !13
  %54 = load i64, ptr %14, align 8, !tbaa !12
  %55 = sub nsw i64 %53, %54
  store i64 %55, ptr %7, align 8, !tbaa !18
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %7)
  %57 = load i64, ptr %56, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %58 = add nsw i64 %57, %15
  store i64 %58, ptr %40, align 8, !tbaa !21
  %59 = load i64, ptr %3, align 8, !tbaa !18
  %60 = sub nsw i64 %59, %57
  store i64 %60, ptr %3, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %61 = load i64, ptr %22, align 8, !tbaa !15
  %62 = load i64, ptr %20, align 8, !tbaa !14
  %63 = sub nsw i64 %61, %62
  store i64 %63, ptr %8, align 8, !tbaa !18
  %64 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIxERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %65 = load i64, ptr %64, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  %66 = add nsw i64 %65, %21
  store i64 %66, ptr %41, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  br label %67

67:                                               ; preds = %31, %35, %2, %13, %19, %25, %39
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIxERKT_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) #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

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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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, !8, i64 0}
!6 = !{!"_ZTS10inequality", !7, i64 0, !7, i64 16, !7, i64 32, !7, i64 48}
!7 = !{!"_ZTSSt4pairIxxE", !8, i64 0, !8, i64 8}
!8 = !{!"long long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!6, !8, i64 8}
!12 = !{!6, !8, i64 16}
!13 = !{!6, !8, i64 24}
!14 = !{!6, !8, i64 32}
!15 = !{!6, !8, i64 40}
!16 = !{!6, !8, i64 48}
!17 = !{!6, !8, i64 56}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !8, i64 0}
!20 = !{!"_ZTS5point", !8, i64 0, !8, i64 8, !8, i64 16}
!21 = !{!20, !8, i64 8}
!22 = !{!20, !8, i64 16}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass