; LLVM IR from bqi343/cp-notebook :: Implementations/content/geometry (13)/Polygons (LineHullTest)

; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [2 x %"struct.std::pair"] }
%"struct.std::pair" = type { i64, i64 }
%"struct.std::pair.13" = type { i32, %"class.std::vector" }
%"struct.std::array.15" = type { [2 x i32] }
%"class.std::initializer_list" = type { ptr, i64 }
%"class.std::allocator.2" = type { i8 }

@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE = external hidden unnamed_addr constant [41 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; 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: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64, i64) #2

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64, i64, i64, i64, i64, i64) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnIxEiT_(i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef byval(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.13") align 8 %0, ptr noundef byval(%"struct.std::array") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"struct.std::pair", align 8
  %9 = alloca %"struct.std::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = alloca %"struct.std::pair", align 8
  %12 = alloca %"struct.std::pair", align 8
  %13 = alloca i32, align 4
  %14 = alloca %"class.std::vector", align 8
  %15 = alloca %"struct.std::array", align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca %"struct.std::pair", align 8
  %21 = alloca %"struct.std::pair", align 8
  %22 = alloca %"struct.std::pair", align 8
  %23 = alloca %"struct.std::pair", align 8
  %24 = alloca %"struct.std::pair", align 8
  %25 = alloca i32, align 4
  %26 = alloca %"class.std::vector", align 8
  %27 = alloca %"struct.std::array", align 8
  %28 = alloca %"struct.std::array.15", align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca %"struct.std::pair", align 8
  %34 = alloca %"struct.std::pair", align 8
  %35 = alloca %"struct.std::pair", align 8
  %36 = alloca %"struct.std::pair", align 8
  %37 = alloca %"struct.std::pair", align 8
  %38 = alloca %"struct.std::pair", align 8
  %39 = alloca %"struct.std::pair", align 8
  %40 = alloca %"struct.std::pair", align 8
  %41 = alloca %"struct.std::pair", align 8
  %42 = alloca i32, align 4
  %43 = alloca %"class.std::vector", align 8
  %44 = alloca %"class.std::initializer_list", align 8
  %45 = alloca [2 x i32], align 4
  %46 = alloca %"class.std::allocator.2", align 1
  store ptr %0, ptr %4, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %47) #6
  %49 = trunc i64 %48 to i32
  store i32 %49, ptr %6, align 4, !tbaa !9
  %50 = load i32, ptr %6, align 4, !tbaa !9
  %51 = icmp sgt i32 %50, 1
  br i1 %51, label %52, label %53

52:                                               ; preds = %3
  br label %55

53:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str.10, ptr noundef @.str.11, i32 noundef 285, ptr noundef @__PRETTY_FUNCTION__._Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE) #7
  unreachable

54:                                               ; No predecessors!
  br label %55

55:                                               ; preds = %54, %52
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  %58 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  %59 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %57, ptr noundef nonnull align 8 dereferenceable(16) %58)
  %60 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %61 = extractvalue { i64, i64 } %59, 0
  store i64 %61, ptr %60, align 8
  %62 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %63 = extractvalue { i64, i64 } %59, 1
  store i64 %63, ptr %62, align 8
  %64 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 0
  %65 = load i64, ptr %64, align 8
  %66 = getelementptr inbounds { i64, i64 }, ptr %9, i32 0, i32 1
  %67 = load i64, ptr %66, align 8
  %68 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %65, i64 %67)
  %69 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  %70 = extractvalue { i64, i64 } %68, 0
  store i64 %70, ptr %69, align 8
  %71 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  %72 = extractvalue { i64, i64 } %68, 1
  store i64 %72, ptr %71, align 8
  %73 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 0
  %74 = load i64, ptr %73, align 8
  %75 = getelementptr inbounds { i64, i64 }, ptr %8, i32 0, i32 1
  %76 = load i64, ptr %75, align 8
  %77 = call noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 %74, i64 %76)
  store i32 %77, ptr %7, align 4, !tbaa !9
  %78 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %78, i64 16, i1 false)
  %79 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %79, i64 16, i1 false)
  %80 = load ptr, ptr %5, align 8, !tbaa !5
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %82) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %83, i64 16, i1 false)
  %84 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 0
  %85 = load i64, ptr %84, align 8
  %86 = getelementptr inbounds { i64, i64 }, ptr %10, i32 0, i32 1
  %87 = load i64, ptr %86, align 8
  %88 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 0
  %89 = load i64, ptr %88, align 8
  %90 = getelementptr inbounds { i64, i64 }, ptr %11, i32 0, i32 1
  %91 = load i64, ptr %90, align 8
  %92 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 0
  %93 = load i64, ptr %92, align 8
  %94 = getelementptr inbounds { i64, i64 }, ptr %12, i32 0, i32 1
  %95 = load i64, ptr %94, align 8
  %96 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %85, i64 %87, i64 %89, i64 %91, i64 %93, i64 %95)
  %97 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %96)
  %98 = icmp sge i32 %97, 0
  br i1 %98, label %99, label %107

99:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 1, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %1, i64 32, i1 false), !tbaa.struct !11
  %100 = load ptr, ptr %5, align 8, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !9
  call void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %14, ptr noundef byval(%"struct.std::array") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %100, i32 noundef %101)
  invoke void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %102 unwind label %103

102:                                              ; preds = %99
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  store i32 1, ptr %18, align 4
  br label %305

103:                                              ; preds = %99
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %16, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %17, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %14) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  br label %306

107:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  %110 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  %111 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %109, ptr noundef nonnull align 8 dereferenceable(16) %110)
  %112 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %113 = extractvalue { i64, i64 } %111, 0
  store i64 %113, ptr %112, align 8
  %114 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %115 = extractvalue { i64, i64 } %111, 1
  store i64 %115, ptr %114, align 8
  %116 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 0
  %117 = load i64, ptr %116, align 8
  %118 = getelementptr inbounds { i64, i64 }, ptr %21, i32 0, i32 1
  %119 = load i64, ptr %118, align 8
  %120 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %117, i64 %119)
  %121 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %122 = extractvalue { i64, i64 } %120, 0
  store i64 %122, ptr %121, align 8
  %123 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %124 = extractvalue { i64, i64 } %120, 1
  store i64 %124, ptr %123, align 8
  %125 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 0
  %126 = load i64, ptr %125, align 8
  %127 = getelementptr inbounds { i64, i64 }, ptr %20, i32 0, i32 1
  %128 = load i64, ptr %127, align 8
  %129 = call noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 %126, i64 %128)
  store i32 %129, ptr %19, align 4, !tbaa !9
  %130 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %130, i64 16, i1 false)
  %131 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %23, ptr align 8 %131, i64 16, i1 false)
  %132 = load ptr, ptr %5, align 8, !tbaa !5
  %133 = load i32, ptr %19, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %132, i64 noundef %134) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %135, i64 16, i1 false)
  %136 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 0
  %137 = load i64, ptr %136, align 8
  %138 = getelementptr inbounds { i64, i64 }, ptr %22, i32 0, i32 1
  %139 = load i64, ptr %138, align 8
  %140 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 0
  %141 = load i64, ptr %140, align 8
  %142 = getelementptr inbounds { i64, i64 }, ptr %23, i32 0, i32 1
  %143 = load i64, ptr %142, align 8
  %144 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 0
  %145 = load i64, ptr %144, align 8
  %146 = getelementptr inbounds { i64, i64 }, ptr %24, i32 0, i32 1
  %147 = load i64, ptr %146, align 8
  %148 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %137, i64 %139, i64 %141, i64 %143, i64 %145, i64 %147)
  %149 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %148)
  %150 = icmp sle i32 %149, 0
  br i1 %150, label %151, label %159

151:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 -1, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %27, ptr align 8 %1, i64 32, i1 false), !tbaa.struct !11
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = load i32, ptr %19, align 4, !tbaa !9
  call void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind writable sret(%"class.std::vector") align 8 %26, ptr noundef byval(%"struct.std::array") align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %152, i32 noundef %153)
  invoke void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 8 dereferenceable(24) %26)
          to label %154 unwind label %155

154:                                              ; preds = %151
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  store i32 1, ptr %18, align 4
  br label %303

155:                                              ; preds = %151
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %16, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %17, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %26) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %304

159:                                              ; preds = %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %241, %159
  %161 = load i32, ptr %29, align 4, !tbaa !9
  %162 = icmp slt i32 %161, 2
  br i1 %162, label %164, label %163

163:                                              ; preds = %160
  store i32 2, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  br label %244

164:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %165 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %165, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %166 = load i32, ptr %19, align 4, !tbaa !9
  store i32 %166, ptr %31, align 4, !tbaa !9
  %167 = load i32, ptr %31, align 4, !tbaa !9
  %168 = load i32, ptr %30, align 4, !tbaa !9
  %169 = icmp slt i32 %167, %168
  br i1 %169, label %170, label %174

170:                                              ; preds = %164
  %171 = load i32, ptr %6, align 4, !tbaa !9
  %172 = load i32, ptr %31, align 4, !tbaa !9
  %173 = add nsw i32 %172, %171
  store i32 %173, ptr %31, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %170, %164
  br label %175

175:                                              ; preds = %233, %174
  %176 = load i32, ptr %30, align 4, !tbaa !9
  %177 = load i32, ptr %31, align 4, !tbaa !9
  %178 = icmp slt i32 %176, %177
  br i1 %178, label %179, label %234

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %180 = load i32, ptr %30, align 4, !tbaa !9
  %181 = load i32, ptr %31, align 4, !tbaa !9
  %182 = add nsw i32 %180, %181
  %183 = add nsw i32 %182, 1
  %184 = sdiv i32 %183, 2
  store i32 %184, ptr %32, align 4, !tbaa !9
  %185 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %33, ptr align 8 %185, i64 16, i1 false)
  %186 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %34, ptr align 8 %186, i64 16, i1 false)
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = load i32, ptr %32, align 4, !tbaa !9
  %189 = load i32, ptr %6, align 4, !tbaa !9
  %190 = srem i32 %188, %189
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %191) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %35, ptr align 8 %192, i64 16, i1 false)
  %193 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 0
  %194 = load i64, ptr %193, align 8
  %195 = getelementptr inbounds { i64, i64 }, ptr %33, i32 0, i32 1
  %196 = load i64, ptr %195, align 8
  %197 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 0
  %198 = load i64, ptr %197, align 8
  %199 = getelementptr inbounds { i64, i64 }, ptr %34, i32 0, i32 1
  %200 = load i64, ptr %199, align 8
  %201 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 0
  %202 = load i64, ptr %201, align 8
  %203 = getelementptr inbounds { i64, i64 }, ptr %35, i32 0, i32 1
  %204 = load i64, ptr %203, align 8
  %205 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %194, i64 %196, i64 %198, i64 %200, i64 %202, i64 %204)
  %206 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %205)
  %207 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %36, ptr align 8 %207, i64 16, i1 false)
  %208 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %37, ptr align 8 %208, i64 16, i1 false)
  %209 = load ptr, ptr %5, align 8, !tbaa !5
  %210 = load i32, ptr %7, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %209, i64 noundef %211) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %38, ptr align 8 %212, i64 16, i1 false)
  %213 = getelementptr inbounds { i64, i64 }, ptr %36, i32 0, i32 0
  %214 = load i64, ptr %213, align 8
  %215 = getelementptr inbounds { i64, i64 }, ptr %36, i32 0, i32 1
  %216 = load i64, ptr %215, align 8
  %217 = getelementptr inbounds { i64, i64 }, ptr %37, i32 0, i32 0
  %218 = load i64, ptr %217, align 8
  %219 = getelementptr inbounds { i64, i64 }, ptr %37, i32 0, i32 1
  %220 = load i64, ptr %219, align 8
  %221 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 0
  %222 = load i64, ptr %221, align 8
  %223 = getelementptr inbounds { i64, i64 }, ptr %38, i32 0, i32 1
  %224 = load i64, ptr %223, align 8
  %225 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %214, i64 %216, i64 %218, i64 %220, i64 %222, i64 %224)
  %226 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %225)
  %227 = icmp eq i32 %206, %226
  br i1 %227, label %228, label %230

228:                                              ; preds = %179
  %229 = load i32, ptr %32, align 4, !tbaa !9
  store i32 %229, ptr %30, align 4, !tbaa !9
  br label %233

230:                                              ; preds = %179
  %231 = load i32, ptr %32, align 4, !tbaa !9
  %232 = sub nsw i32 %231, 1
  store i32 %232, ptr %31, align 4, !tbaa !9
  br label %233

233:                                              ; preds = %230, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  br label %175, !llvm.loop !13

234:                                              ; preds = %175
  %235 = load i32, ptr %30, align 4, !tbaa !9
  %236 = load i32, ptr %6, align 4, !tbaa !9
  %237 = srem i32 %235, %236
  %238 = load i32, ptr %29, align 4, !tbaa !9
  %239 = sext i32 %238 to i64
  %240 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef %239) #6
  store i32 %237, ptr %240, align 4, !tbaa !9
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  br label %241

241:                                              ; preds = %234
  %242 = load i32, ptr %29, align 4, !tbaa !9
  %243 = add nsw i32 %242, 1
  store i32 %243, ptr %29, align 4, !tbaa !9
  br label %160, !llvm.loop !15

244:                                              ; preds = %163
  %245 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %39, ptr align 8 %245, i64 16, i1 false)
  %246 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %40, ptr align 8 %246, i64 16, i1 false)
  %247 = load ptr, ptr %5, align 8, !tbaa !5
  %248 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef 0) #6
  %249 = load i32, ptr %248, align 4, !tbaa !9
  %250 = add nsw i32 %249, 1
  %251 = load i32, ptr %6, align 4, !tbaa !9
  %252 = srem i32 %250, %251
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %247, i64 noundef %253) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 8 %254, i64 16, i1 false)
  %255 = getelementptr inbounds { i64, i64 }, ptr %39, i32 0, i32 0
  %256 = load i64, ptr %255, align 8
  %257 = getelementptr inbounds { i64, i64 }, ptr %39, i32 0, i32 1
  %258 = load i64, ptr %257, align 8
  %259 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 0
  %260 = load i64, ptr %259, align 8
  %261 = getelementptr inbounds { i64, i64 }, ptr %40, i32 0, i32 1
  %262 = load i64, ptr %261, align 8
  %263 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 0
  %264 = load i64, ptr %263, align 8
  %265 = getelementptr inbounds { i64, i64 }, ptr %41, i32 0, i32 1
  %266 = load i64, ptr %265, align 8
  %267 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %256, i64 %258, i64 %260, i64 %262, i64 %264, i64 %266)
  %268 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %267)
  %269 = icmp eq i32 %268, 0
  br i1 %269, label %270, label %277

270:                                              ; preds = %244
  %271 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef 0) #6
  %272 = load i32, ptr %271, align 4, !tbaa !9
  %273 = add nsw i32 %272, 1
  %274 = load i32, ptr %6, align 4, !tbaa !9
  %275 = srem i32 %273, %274
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef 0) #6
  store i32 %275, ptr %276, align 4, !tbaa !9
  br label %277

277:                                              ; preds = %270, %244
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  store i32 0, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %278 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef 1) #6
  %279 = load i32, ptr %278, align 4, !tbaa !9
  %280 = add nsw i32 %279, 1
  %281 = load i32, ptr %6, align 4, !tbaa !9
  %282 = srem i32 %280, %281
  store i32 %282, ptr %45, align 4, !tbaa !9
  %283 = getelementptr inbounds i32, ptr %45, i64 1
  %284 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %28, i64 noundef 0) #6
  %285 = load i32, ptr %284, align 4, !tbaa !9
  store i32 %285, ptr %283, align 4, !tbaa !9
  %286 = getelementptr inbounds %"class.std::initializer_list", ptr %44, i32 0, i32 0
  store ptr %45, ptr %286, align 8, !tbaa !16
  %287 = getelementptr inbounds %"class.std::initializer_list", ptr %44, i32 0, i32 1
  store i64 2, ptr %287, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 1, ptr %46) #6
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  %288 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 0
  %289 = load ptr, ptr %288, align 8
  %290 = getelementptr inbounds { ptr, i64 }, ptr %44, i32 0, i32 1
  %291 = load i64, ptr %290, align 8
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr %289, i64 %291, ptr noundef nonnull align 1 dereferenceable(1) %46)
          to label %292 unwind label %294

292:                                              ; preds = %277
  invoke void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS6_S7_EEEbE4typeELb1EEERKiRKS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 8 dereferenceable(24) %43)
          to label %293 unwind label %298

293:                                              ; preds = %292
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  store i32 1, ptr %18, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %303

294:                                              ; preds = %277
  %295 = landingpad { ptr, i32 }
          cleanup
  %296 = extractvalue { ptr, i32 } %295, 0
  store ptr %296, ptr %16, align 8
  %297 = extractvalue { ptr, i32 } %295, 1
  store i32 %297, ptr %17, align 4
  br label %302

298:                                              ; preds = %292
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %16, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %17, align 4
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %43) #6
  br label %302

302:                                              ; preds = %298, %294
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %46) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %46) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %304

303:                                              ; preds = %293, %154
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %305

304:                                              ; preds = %302, %155
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %306

305:                                              ; preds = %303, %102
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  ret void

306:                                              ; preds = %304, %103
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %307

307:                                              ; preds = %306
  %308 = load ptr, ptr %16, align 8
  %309 = load i32, ptr %17, align 4
  %310 = insertvalue { ptr, i32 } poison, ptr %308, 0
  %311 = insertvalue { ptr, i32 } %310, i32 %309, 1
  resume { ptr, i32 } %311
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS6_S7_EEEbE4typeELb1EEERKiRKS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 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 = { noreturn 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{i64 0, i64 32, !12}
!12 = !{!7, !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSSt16initializer_listIiE", !6, i64 0, !18, i64 8}
!18 = !{!"long", !7, i64 0}
!19 = !{!17, !18, i64 8}


; 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::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::array" = type { [2 x %"struct.std::pair"] }
%"struct.std::pair" = type { i64, i64 }
%"struct.std::pair.13" = type { i32, %"class.std::vector" }
%"struct.std::array.15" = type { [2 x i32] }
%"class.std::allocator.2" = type { i8 }

@.str.10 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [116 x i8], align 1
@__PRETTY_FUNCTION__._Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE = external hidden unnamed_addr constant [41 x i8], align 1

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64, i64) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64, i64, i64, i64, i64, i64) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr, i64, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24), i64, i64) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z3sgnIxEiT_(i64 noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind noalias writable sret(%"class.std::vector") align 8, ptr noundef byval(%"struct.std::array") align 8, ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.13") align 8 %0, ptr noundef byval(%"struct.std::array") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::vector", align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca %"class.std::vector", align 8
  %10 = alloca %"struct.std::array.15", align 4
  %11 = alloca i32, align 4
  %12 = alloca %"class.std::vector", align 8
  %13 = alloca [2 x i32], align 4
  %14 = alloca %"class.std::allocator.2", align 1
  %15 = tail call noundef i64 @_ZNKSt6vectorISt4pairIxxESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #5
  %16 = trunc i64 %15 to i32
  %17 = icmp sgt i32 %16, 1
  br i1 %17, label %19, label %18

18:                                               ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str.10, ptr noundef nonnull @.str.11, i32 noundef 285, ptr noundef nonnull @__PRETTY_FUNCTION__._Z8lineHullSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EE) #6
  unreachable

19:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %21 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %22 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(16) %21)
  %23 = extractvalue { i64, i64 } %22, 0
  %24 = extractvalue { i64, i64 } %22, 1
  %25 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %23, i64 %24)
  %26 = extractvalue { i64, i64 } %25, 0
  %27 = extractvalue { i64, i64 } %25, 1
  %28 = call noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 %26, i64 %27)
  store i32 %28, ptr %4, align 4, !tbaa !5
  %29 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.047.0.copyload = load i64, ptr %29, align 8
  %.sroa.248.0..sroa_idx = getelementptr inbounds i8, ptr %29, i64 8
  %.sroa.248.0.copyload = load i64, ptr %.sroa.248.0..sroa_idx, align 8
  %30 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.045.0.copyload = load i64, ptr %30, align 8
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %30, i64 8
  %.sroa.246.0.copyload = load i64, ptr %.sroa.246.0..sroa_idx, align 8
  %31 = sext i32 %28 to i64
  %32 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %31) #5
  %.sroa.043.0.copyload = load i64, ptr %32, align 8
  %.sroa.244.0..sroa_idx = getelementptr inbounds i8, ptr %32, i64 8
  %.sroa.244.0.copyload = load i64, ptr %.sroa.244.0..sroa_idx, align 8
  %33 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.047.0.copyload, i64 %.sroa.248.0.copyload, i64 %.sroa.045.0.copyload, i64 %.sroa.246.0.copyload, i64 %.sroa.043.0.copyload, i64 %.sroa.244.0.copyload)
  %34 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %33)
  %35 = icmp sgt i32 %34, -1
  br i1 %35, label %36, label %37

36:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  store i32 1, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #5
  call void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %6, ptr noundef nonnull byval(%"struct.std::array") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %28)
  call void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %139

37:                                               ; preds = %19
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %38 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %39 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %40 = call { i64, i64 } @_ZN5PointmiERKSt4pairIxxES3_(ptr noundef nonnull align 8 dereferenceable(16) %38, ptr noundef nonnull align 8 dereferenceable(16) %39)
  %41 = extractvalue { i64, i64 } %40, 0
  %42 = extractvalue { i64, i64 } %40, 1
  %43 = call { i64, i64 } @_ZN5Point4perpESt4pairIxxE(i64 %41, i64 %42)
  %44 = extractvalue { i64, i64 } %43, 0
  %45 = extractvalue { i64, i64 } %43, 1
  %46 = call noundef i32 @_Z10extrVertexRKSt6vectorISt4pairIxxESaIS1_EES1_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 %44, i64 %45)
  store i32 %46, ptr %7, align 4, !tbaa !5
  %47 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.036.0.copyload = load i64, ptr %47, align 8
  %.sroa.237.0..sroa_idx = getelementptr inbounds i8, ptr %47, i64 8
  %.sroa.237.0.copyload = load i64, ptr %.sroa.237.0..sroa_idx, align 8
  %48 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.034.0.copyload = load i64, ptr %48, align 8
  %.sroa.235.0..sroa_idx = getelementptr inbounds i8, ptr %48, i64 8
  %.sroa.235.0.copyload = load i64, ptr %.sroa.235.0..sroa_idx, align 8
  %49 = sext i32 %46 to i64
  %50 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %49) #5
  %.sroa.032.0.copyload = load i64, ptr %50, align 8
  %.sroa.233.0..sroa_idx = getelementptr inbounds i8, ptr %50, i64 8
  %.sroa.233.0.copyload = load i64, ptr %.sroa.233.0..sroa_idx, align 8
  %51 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.036.0.copyload, i64 %.sroa.237.0.copyload, i64 %.sroa.034.0.copyload, i64 %.sroa.235.0.copyload, i64 %.sroa.032.0.copyload, i64 %.sroa.233.0.copyload)
  %52 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %51)
  %53 = icmp slt i32 %52, 1
  br i1 %53, label %54, label %55

54:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 -1, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  call void @_Z4sameSt5arrayISt4pairIxxELm2EERKSt6vectorIS1_SaIS1_EEi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector") align 8 %9, ptr noundef nonnull byval(%"struct.std::array") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %46)
  call void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 8 dereferenceable(24) %9)
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  br label %138

55:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #5
  %56 = icmp slt i32 %46, %28
  %57 = select i1 %56, i32 %16, i32 0
  %spec.select = add nsw i32 %57, %46
  %58 = icmp slt i32 %28, %spec.select
  br i1 %58, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %55, %.lr.ph
  %.07280 = phi i32 [ %.1, %.lr.ph ], [ %28, %55 ]
  %.17479 = phi i32 [ %.2, %.lr.ph ], [ %spec.select, %55 ]
  %59 = add i32 %.17479, 1
  %60 = add i32 %59, %.07280
  %61 = sdiv i32 %60, 2
  %62 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.017.0.copyload = load i64, ptr %62, align 8
  %.sroa.218.0..sroa_idx = getelementptr inbounds i8, ptr %62, i64 8
  %.sroa.218.0.copyload = load i64, ptr %.sroa.218.0..sroa_idx, align 8
  %63 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.015.0.copyload = load i64, ptr %63, align 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %63, i64 8
  %.sroa.216.0.copyload = load i64, ptr %.sroa.216.0..sroa_idx, align 8
  %64 = srem i32 %61, %16
  %65 = sext i32 %64 to i64
  %66 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %65) #5
  %.sroa.013.0.copyload = load i64, ptr %66, align 8
  %.sroa.214.0..sroa_idx = getelementptr inbounds i8, ptr %66, i64 8
  %.sroa.214.0.copyload = load i64, ptr %.sroa.214.0..sroa_idx, align 8
  %67 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.017.0.copyload, i64 %.sroa.218.0.copyload, i64 %.sroa.015.0.copyload, i64 %.sroa.216.0.copyload, i64 %.sroa.013.0.copyload, i64 %.sroa.214.0.copyload)
  %68 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %67)
  %69 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.011.0.copyload = load i64, ptr %69, align 8
  %.sroa.212.0..sroa_idx = getelementptr inbounds i8, ptr %69, i64 8
  %.sroa.212.0.copyload = load i64, ptr %.sroa.212.0..sroa_idx, align 8
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.09.0.copyload = load i64, ptr %70, align 8
  %.sroa.210.0..sroa_idx = getelementptr inbounds i8, ptr %70, i64 8
  %.sroa.210.0.copyload = load i64, ptr %.sroa.210.0..sroa_idx, align 8
  %71 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %31) #5
  %.sroa.07.0.copyload = load i64, ptr %71, align 8
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %71, i64 8
  %.sroa.28.0.copyload = load i64, ptr %.sroa.28.0..sroa_idx, align 8
  %72 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.011.0.copyload, i64 %.sroa.212.0.copyload, i64 %.sroa.09.0.copyload, i64 %.sroa.210.0.copyload, i64 %.sroa.07.0.copyload, i64 %.sroa.28.0.copyload)
  %73 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %72)
  %74 = icmp eq i32 %68, %73
  %75 = add nsw i32 %61, -1
  %.2 = select i1 %74, i32 %.17479, i32 %75
  %.1 = select i1 %74, i32 %61, i32 %.07280
  %76 = icmp slt i32 %.1, %.2
  br i1 %76, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %55
  %.072.lcssa = phi i32 [ %28, %55 ], [ %.1, %.lr.ph ]
  %77 = srem i32 %.072.lcssa, %16
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 0) #5
  store i32 %77, ptr %78, align 4, !tbaa !5
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7) #5
  %79 = load i32, ptr %4, align 4, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !5
  %81 = icmp slt i32 %80, %79
  %82 = select i1 %81, i32 %16, i32 0
  %spec.select.1 = add nsw i32 %82, %80
  %83 = icmp slt i32 %79, %spec.select.1
  br i1 %83, label %.lr.ph.1, label %._crit_edge.1

.lr.ph.1:                                         ; preds = %._crit_edge, %.lr.ph.1
  %.07280.1 = phi i32 [ %.1.1, %.lr.ph.1 ], [ %79, %._crit_edge ]
  %.17479.1 = phi i32 [ %.2.1, %.lr.ph.1 ], [ %spec.select.1, %._crit_edge ]
  %84 = add i32 %.17479.1, 1
  %85 = add i32 %84, %.07280.1
  %86 = sdiv i32 %85, 2
  %87 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.017.0.copyload.1 = load i64, ptr %87, align 8
  %.sroa.218.0..sroa_idx.1 = getelementptr inbounds i8, ptr %87, i64 8
  %.sroa.218.0.copyload.1 = load i64, ptr %.sroa.218.0..sroa_idx.1, align 8
  %88 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.015.0.copyload.1 = load i64, ptr %88, align 8
  %.sroa.216.0..sroa_idx.1 = getelementptr inbounds i8, ptr %88, i64 8
  %.sroa.216.0.copyload.1 = load i64, ptr %.sroa.216.0..sroa_idx.1, align 8
  %89 = srem i32 %86, %16
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %90) #5
  %.sroa.013.0.copyload.1 = load i64, ptr %91, align 8
  %.sroa.214.0..sroa_idx.1 = getelementptr inbounds i8, ptr %91, i64 8
  %.sroa.214.0.copyload.1 = load i64, ptr %.sroa.214.0..sroa_idx.1, align 8
  %92 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.017.0.copyload.1, i64 %.sroa.218.0.copyload.1, i64 %.sroa.015.0.copyload.1, i64 %.sroa.216.0.copyload.1, i64 %.sroa.013.0.copyload.1, i64 %.sroa.214.0.copyload.1)
  %93 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %92)
  %94 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.011.0.copyload.1 = load i64, ptr %94, align 8
  %.sroa.212.0..sroa_idx.1 = getelementptr inbounds i8, ptr %94, i64 8
  %.sroa.212.0.copyload.1 = load i64, ptr %.sroa.212.0..sroa_idx.1, align 8
  %95 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.09.0.copyload.1 = load i64, ptr %95, align 8
  %.sroa.210.0..sroa_idx.1 = getelementptr inbounds i8, ptr %95, i64 8
  %.sroa.210.0.copyload.1 = load i64, ptr %.sroa.210.0..sroa_idx.1, align 8
  %96 = load i32, ptr %4, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %97) #5
  %.sroa.07.0.copyload.1 = load i64, ptr %98, align 8
  %.sroa.28.0..sroa_idx.1 = getelementptr inbounds i8, ptr %98, i64 8
  %.sroa.28.0.copyload.1 = load i64, ptr %.sroa.28.0..sroa_idx.1, align 8
  %99 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.011.0.copyload.1, i64 %.sroa.212.0.copyload.1, i64 %.sroa.09.0.copyload.1, i64 %.sroa.210.0.copyload.1, i64 %.sroa.07.0.copyload.1, i64 %.sroa.28.0.copyload.1)
  %100 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %99)
  %101 = icmp eq i32 %93, %100
  %102 = add nsw i32 %86, -1
  %.2.1 = select i1 %101, i32 %.17479.1, i32 %102
  %.1.1 = select i1 %101, i32 %86, i32 %.07280.1
  %103 = icmp slt i32 %.1.1, %.2.1
  br i1 %103, label %.lr.ph.1, label %._crit_edge.1, !llvm.loop !9

._crit_edge.1:                                    ; preds = %.lr.ph.1, %._crit_edge
  %.072.lcssa.1 = phi i32 [ %79, %._crit_edge ], [ %.1.1, %.lr.ph.1 ]
  %104 = srem i32 %.072.lcssa.1, %16
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 1) #5
  store i32 %104, ptr %105, align 4, !tbaa !5
  call void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4) %4, ptr noundef nonnull align 4 dereferenceable(4) %7) #5
  %106 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 0) #5
  %.sroa.05.0.copyload = load i64, ptr %106, align 8
  %.sroa.26.0..sroa_idx = getelementptr inbounds i8, ptr %106, i64 8
  %.sroa.26.0.copyload = load i64, ptr %.sroa.26.0..sroa_idx, align 8
  %107 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt5arrayISt4pairIxxELm2EEixEm(ptr noundef nonnull align 8 dereferenceable(32) %1, i64 noundef 1) #5
  %.sroa.03.0.copyload = load i64, ptr %107, align 8
  %.sroa.24.0..sroa_idx = getelementptr inbounds i8, ptr %107, i64 8
  %.sroa.24.0.copyload = load i64, ptr %.sroa.24.0..sroa_idx, align 8
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 0) #5
  %109 = load i32, ptr %108, align 4, !tbaa !5
  %110 = add nsw i32 %109, 1
  %111 = srem i32 %110, %16
  %112 = sext i32 %111 to i64
  %113 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNKSt6vectorISt4pairIxxESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %112) #5
  %.sroa.01.0.copyload = load i64, ptr %113, align 8
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %113, i64 8
  %.sroa.22.0.copyload = load i64, ptr %.sroa.22.0..sroa_idx, align 8
  %114 = call noundef i64 @_ZN5Point5crossESt4pairIxxES1_S1_(i64 %.sroa.05.0.copyload, i64 %.sroa.26.0.copyload, i64 %.sroa.03.0.copyload, i64 %.sroa.24.0.copyload, i64 %.sroa.01.0.copyload, i64 %.sroa.22.0.copyload)
  %115 = call noundef i32 @_Z3sgnIxEiT_(i64 noundef %114)
  %116 = icmp eq i32 %115, 0
  br i1 %116, label %117, label %123

117:                                              ; preds = %._crit_edge.1
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 0) #5
  %119 = load i32, ptr %118, align 4, !tbaa !5
  %120 = add nsw i32 %119, 1
  %121 = srem i32 %120, %16
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 0) #5
  store i32 %121, ptr %122, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %117, %._crit_edge.1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  store i32 0, ptr %11, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #5
  %124 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 1) #5
  %125 = load i32, ptr %124, align 4, !tbaa !5
  %126 = add nsw i32 %125, 1
  %127 = srem i32 %126, %16
  store i32 %127, ptr %13, align 4, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %13, i64 4
  %129 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8) %10, i64 noundef 0) #5
  %130 = load i32, ptr %129, align 4, !tbaa !5
  store i32 %130, ptr %128, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %14) #5
  call void @_ZNSaIiEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  invoke void @_ZNSt6vectorIiSaIiEEC2ESt16initializer_listIiERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr nonnull %13, i64 2, ptr noundef nonnull align 1 dereferenceable(1) %14)
          to label %131 unwind label %133

131:                                              ; preds = %123
  invoke void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS6_S7_EEEbE4typeELb1EEERKiRKS2_(ptr noundef nonnull align 8 dereferenceable(32) %0, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %132 unwind label %135

132:                                              ; preds = %131
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  br label %138

133:                                              ; preds = %123
  %134 = landingpad { ptr, i32 }
          cleanup
  br label %137

135:                                              ; preds = %131
  %136 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIiSaIiEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #5
  br label %137

137:                                              ; preds = %135, %133
  %.pn = phi { ptr, i32 } [ %136, %135 ], [ %134, %133 ]
  call void @_ZNSt15__new_allocatorIiED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %14) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn

138:                                              ; preds = %132, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  br label %139

139:                                              ; preds = %138, %36
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret void
}

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIS6_S7_EEEbE4typeELb1EEEOS6_OS7_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt5arrayIiLm2EEixEm(ptr noundef nonnull align 4 dereferenceable(8), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZSt4swapIiENSt9enable_ifIXsr6__and_ISt6__not_ISt15__is_tuple_likeIT_EESt21is_move_constructibleIS3_ESt18is_move_assignableIS3_EEE5valueEvE4typeERS3_SC_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt4pairIiSt6vectorIiSaIiEEEC2IiS2_TnNSt9enable_ifIXaaclsr5_PCCPE18_ConstructiblePairIT_T0_EEclsr5_PCCPE26_ImplicitlyConvertiblePairIS6_S7_EEEbE4typeELb1EEERKiRKS2_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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


; Effective O3 passes: DSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass