; LLVM IR from bohanwang/libpgo :: third-party/CCD/ExactCCD (rootparitycollisiontest)

; 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.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.25" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.8" = type { i8 }
%struct.Vec.4 = type { [3 x i32] }
%"class.rootparity::RootParityCollisionTest" = type { ptr, %struct.Vec.0, %struct.Vec.0, %struct.Vec.0, %struct.Vec.0, %struct.Vec.0, %struct.Vec.0, %struct.Vec.0, i8, %struct.Vec.0, [8 x %struct.Vec], [8 x %struct.Vec.1], [8 x i8] }
%struct.Vec.0 = type { [3 x double] }
%struct.Vec = type { [3 x %class.Interval] }
%class.Interval = type { %class.IntervalBase, [2 x double] }
%class.IntervalBase = type { ptr }
%struct.Vec.1 = type { [3 x %class.expansion] }
%class.expansion = type { ptr, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest32edge_edge_interval_plane_cullingEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.std::vector.23", align 8
  %4 = alloca %"class.std::allocator.25", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca %"class.std::vector.6", align 8
  %9 = alloca %"class.std::allocator.8", align 1
  %10 = alloca %struct.Vec.4, align 4
  %11 = alloca %struct.Vec.4, align 4
  %12 = alloca %struct.Vec.4, align 4
  %13 = alloca %struct.Vec.4, align 4
  %14 = alloca %struct.Vec.4, align 4
  %15 = alloca %struct.Vec.4, align 4
  %16 = alloca %struct.Vec.4, align 4
  %17 = alloca %struct.Vec.4, align 4
  %18 = alloca %struct.Vec.4, align 4
  %19 = alloca %struct.Vec.4, align 4
  %20 = alloca %struct.Vec.4, align 4
  %21 = alloca %struct.Vec.4, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %22 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #4
  call void @_ZNSaI3VecILj3EdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  invoke void @_ZNSt6vectorI3VecILj3EdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 8, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %23 unwind label %28

23:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI3VecILj3EdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %81, %23
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = icmp ult i32 %25, 8
  br i1 %26, label %32, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %88

28:                                               ; preds = %1
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %5, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI3VecILj3EdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #4
  br label %175

32:                                               ; preds = %24
  %33 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %22, i32 0, i32 10
  %34 = load i32, ptr %7, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = getelementptr inbounds [8 x %struct.Vec], ptr %33, i64 0, i64 %35
  %37 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %36, i32 noundef 0)
          to label %38 unwind label %84

38:                                               ; preds = %32
  %39 = load ptr, ptr %37, align 8, !tbaa !11
  %40 = getelementptr inbounds ptr, ptr %39, i64 13
  %41 = load ptr, ptr %40, align 8
  %42 = invoke noundef double %41(ptr noundef nonnull align 8 dereferenceable(8) %37)
          to label %43 unwind label %84

43:                                               ; preds = %38
  %44 = load i32, ptr %7, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %45) #4
  %47 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %46, i32 noundef 0)
          to label %48 unwind label %84

48:                                               ; preds = %43
  store double %42, ptr %47, align 8, !tbaa !13
  %49 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %22, i32 0, i32 10
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds [8 x %struct.Vec], ptr %49, i64 0, i64 %51
  %53 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %52, i32 noundef 1)
          to label %54 unwind label %84

54:                                               ; preds = %48
  %55 = load ptr, ptr %53, align 8, !tbaa !11
  %56 = getelementptr inbounds ptr, ptr %55, i64 13
  %57 = load ptr, ptr %56, align 8
  %58 = invoke noundef double %57(ptr noundef nonnull align 8 dereferenceable(8) %53)
          to label %59 unwind label %84

59:                                               ; preds = %54
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %61) #4
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %62, i32 noundef 1)
          to label %64 unwind label %84

64:                                               ; preds = %59
  store double %58, ptr %63, align 8, !tbaa !13
  %65 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %22, i32 0, i32 10
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = zext i32 %66 to i64
  %68 = getelementptr inbounds [8 x %struct.Vec], ptr %65, i64 0, i64 %67
  %69 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %68, i32 noundef 2)
          to label %70 unwind label %84

70:                                               ; preds = %64
  %71 = load ptr, ptr %69, align 8, !tbaa !11
  %72 = getelementptr inbounds ptr, ptr %71, i64 13
  %73 = load ptr, ptr %72, align 8
  %74 = invoke noundef double %73(ptr noundef nonnull align 8 dereferenceable(8) %69)
          to label %75 unwind label %84

75:                                               ; preds = %70
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %77) #4
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %78, i32 noundef 2)
          to label %80 unwind label %84

80:                                               ; preds = %75
  store double %74, ptr %79, align 8, !tbaa !13
  br label %81

81:                                               ; preds = %80
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = add i32 %82, 1
  store i32 %83, ptr %7, align 4, !tbaa !9
  br label %24, !llvm.loop !15

84:                                               ; preds = %75, %70, %64, %59, %54, %48, %43, %38, %32
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %5, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %174

88:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @_ZNSaI3VecILj3EjEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  invoke void @_ZNSt6vectorI3VecILj3EjESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 12, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %89 unwind label %116

89:                                               ; preds = %88
  call void @_ZNSt15__new_allocatorI3VecILj3EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0, i32 noundef 1, i32 noundef 3)
          to label %90 unwind label %120

90:                                               ; preds = %89
  %91 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %91, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 0, i32 noundef 3, i32 noundef 2)
          to label %92 unwind label %124

92:                                               ; preds = %90
  %93 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 1) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %93, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 0, i32 noundef 1, i32 noundef 4)
          to label %94 unwind label %128

94:                                               ; preds = %92
  %95 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %95, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0, i32 noundef 4, i32 noundef 5)
          to label %96 unwind label %132

96:                                               ; preds = %94
  %97 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %97, ptr align 4 %13, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef 1, i32 noundef 2, i32 noundef 5)
          to label %98 unwind label %136

98:                                               ; preds = %96
  %99 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %99, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %15) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 1, i32 noundef 5, i32 noundef 6)
          to label %100 unwind label %140

100:                                              ; preds = %98
  %101 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %101, ptr align 4 %15, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %16) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 2, i32 noundef 3, i32 noundef 6)
          to label %102 unwind label %144

102:                                              ; preds = %100
  %103 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %103, ptr align 4 %16, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 2, i32 noundef 6, i32 noundef 7)
          to label %104 unwind label %148

104:                                              ; preds = %102
  %105 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %105, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %18, i32 noundef 3, i32 noundef 0, i32 noundef 7)
          to label %106 unwind label %152

106:                                              ; preds = %104
  %107 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %107, ptr align 4 %18, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %19, i32 noundef 3, i32 noundef 7, i32 noundef 4)
          to label %108 unwind label %156

108:                                              ; preds = %106
  %109 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %109, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %20, i32 noundef 4, i32 noundef 5, i32 noundef 7)
          to label %110 unwind label %160

110:                                              ; preds = %108
  %111 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %111, ptr align 4 %20, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #4
  invoke void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef 4, i32 noundef 7, i32 noundef 6)
          to label %112 unwind label %164

112:                                              ; preds = %110
  %113 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %8, i64 noundef 11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 4 %21, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #4
  %114 = invoke noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560) %22, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %115 unwind label %168

115:                                              ; preds = %112
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  ret i1 %114

116:                                              ; preds = %88
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %5, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %6, align 4
  call void @_ZNSt15__new_allocatorI3VecILj3EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  br label %173

120:                                              ; preds = %89
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %5, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  br label %172

124:                                              ; preds = %90
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %5, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #4
  br label %172

128:                                              ; preds = %92
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %5, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  br label %172

132:                                              ; preds = %94
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %5, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #4
  br label %172

136:                                              ; preds = %96
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %5, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #4
  br label %172

140:                                              ; preds = %98
  %141 = landingpad { ptr, i32 }
          cleanup
  %142 = extractvalue { ptr, i32 } %141, 0
  store ptr %142, ptr %5, align 8
  %143 = extractvalue { ptr, i32 } %141, 1
  store i32 %143, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %15) #4
  br label %172

144:                                              ; preds = %100
  %145 = landingpad { ptr, i32 }
          cleanup
  %146 = extractvalue { ptr, i32 } %145, 0
  store ptr %146, ptr %5, align 8
  %147 = extractvalue { ptr, i32 } %145, 1
  store i32 %147, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #4
  br label %172

148:                                              ; preds = %102
  %149 = landingpad { ptr, i32 }
          cleanup
  %150 = extractvalue { ptr, i32 } %149, 0
  store ptr %150, ptr %5, align 8
  %151 = extractvalue { ptr, i32 } %149, 1
  store i32 %151, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #4
  br label %172

152:                                              ; preds = %104
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %5, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #4
  br label %172

156:                                              ; preds = %106
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %5, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #4
  br label %172

160:                                              ; preds = %108
  %161 = landingpad { ptr, i32 }
          cleanup
  %162 = extractvalue { ptr, i32 } %161, 0
  store ptr %162, ptr %5, align 8
  %163 = extractvalue { ptr, i32 } %161, 1
  store i32 %163, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #4
  br label %172

164:                                              ; preds = %110
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %5, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #4
  br label %172

168:                                              ; preds = %112
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %5, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %6, align 4
  br label %172

172:                                              ; preds = %168, %164, %160, %156, %152, %148, %144, %140, %136, %132, %128, %124, %120
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %173

173:                                              ; preds = %172, %116
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %174

174:                                              ; preds = %173, %84
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %175

175:                                              ; preds = %174, %28
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %176

176:                                              ; preds = %175
  %177 = load ptr, ptr %5, align 8
  %178 = load i32, ptr %6, align 4
  %179 = insertvalue { ptr, i32 } poison, ptr %177, 0
  %180 = insertvalue { ptr, i32 } %179, i32 %178, 1
  resume { ptr, i32 } %180
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3VecILj3EdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, 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(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) #1 align 2

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{i64 0, i64 12, !18}
!18 = !{!7, !7, 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"

%"class.std::vector.23" = type { %"struct.std::_Vector_base.24" }
%"struct.std::_Vector_base.24" = type { %"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<3, double>, std::allocator<Vec<3, double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.25" = type { i8 }
%"class.std::vector.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = type { %"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<3, unsigned int>, std::allocator<Vec<3, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.8" = type { i8 }
%struct.Vec.4 = type { [3 x i32] }
%struct.Vec = type { [3 x %class.Interval] }
%class.Interval = type { %class.IntervalBase, [2 x double] }
%class.IntervalBase = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest32edge_edge_interval_plane_cullingEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::vector.23", align 8
  %3 = alloca %"class.std::allocator.25", align 1
  %4 = alloca %"class.std::vector.6", align 8
  %5 = alloca %"class.std::allocator.8", align 1
  %6 = alloca %struct.Vec.4, align 4
  %7 = alloca %struct.Vec.4, align 4
  %8 = alloca %struct.Vec.4, align 4
  %9 = alloca %struct.Vec.4, align 4
  %10 = alloca %struct.Vec.4, align 4
  %11 = alloca %struct.Vec.4, align 4
  %12 = alloca %struct.Vec.4, align 4
  %13 = alloca %struct.Vec.4, align 4
  %14 = alloca %struct.Vec.4, align 4
  %15 = alloca %struct.Vec.4, align 4
  %16 = alloca %struct.Vec.4, align 4
  %17 = alloca %struct.Vec.4, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #4
  call void @_ZNSaI3VecILj3EdEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  invoke void @_ZNSt6vectorI3VecILj3EdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 8, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %18 unwind label %21

18:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI3VecILj3EdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  %19 = getelementptr inbounds i8, ptr %0, i64 208
  br label %23

20:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #4
  call void @_ZNSaI3VecILj3EjEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  invoke void @_ZNSt6vectorI3VecILj3EjESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 12, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %51 unwind label %66

21:                                               ; preds = %1
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3VecILj3EdEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #4
  br label %72

23:                                               ; preds = %18, %46
  %indvars.iv = phi i64 [ 0, %18 ], [ %indvars.iv.next, %46 ]
  %24 = getelementptr inbounds [8 x %struct.Vec], ptr %19, i64 0, i64 %indvars.iv
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %24, i32 noundef 0)
  %26 = load ptr, ptr %25, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 104
  %28 = load ptr, ptr %27, align 8
  %29 = invoke noundef double %28(ptr noundef nonnull align 8 dereferenceable(8) %25)
          to label %30 unwind label %49

30:                                               ; preds = %23
  %31 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %32 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %31, i32 noundef 0)
  store double %29, ptr %32, align 8, !tbaa !8
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %24, i32 noundef 1)
  %34 = load ptr, ptr %33, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 104
  %36 = load ptr, ptr %35, align 8
  %37 = invoke noundef double %36(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %38 unwind label %49

38:                                               ; preds = %30
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %39, i32 noundef 1)
  store double %37, ptr %40, align 8, !tbaa !8
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %24, i32 noundef 2)
  %42 = load ptr, ptr %41, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 104
  %44 = load ptr, ptr %43, align 8
  %45 = invoke noundef double %44(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %46 unwind label %49

46:                                               ; preds = %38
  %47 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #4
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %47, i32 noundef 2)
  store double %45, ptr %48, align 8, !tbaa !8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %20, label %23, !llvm.loop !11

49:                                               ; preds = %38, %30, %23
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %71

51:                                               ; preds = %20
  call void @_ZNSt15__new_allocatorI3VecILj3EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef 0, i32 noundef 1, i32 noundef 3)
  %52 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 0) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %52, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %7, i32 noundef 0, i32 noundef 3, i32 noundef 2)
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 1) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %8) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %8, i32 noundef 0, i32 noundef 1, i32 noundef 4)
  %54 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 2) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %54, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %8) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %9, i32 noundef 0, i32 noundef 4, i32 noundef 5)
  %55 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %55, ptr noundef nonnull align 4 dereferenceable(12) %9, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1, i32 noundef 2, i32 noundef 5)
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %56, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef 1, i32 noundef 5, i32 noundef 6)
  %57 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %57, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef 2, i32 noundef 3, i32 noundef 6)
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %58, ptr noundef nonnull align 4 dereferenceable(12) %12, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2, i32 noundef 6, i32 noundef 7)
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %14) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %14, i32 noundef 3, i32 noundef 0, i32 noundef 7)
  %60 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %60, ptr noundef nonnull align 4 dereferenceable(12) %14, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %14) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %15, i32 noundef 3, i32 noundef 7, i32 noundef 4)
  %61 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %61, ptr noundef nonnull align 4 dereferenceable(12) %15, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef 4, i32 noundef 5, i32 noundef 7)
  %62 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %62, ptr noundef nonnull align 4 dereferenceable(12) %16, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #4
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef 4, i32 noundef 7, i32 noundef 6)
  %63 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef 11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %63, ptr noundef nonnull align 4 dereferenceable(12) %17, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #4
  %64 = invoke noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %2)
          to label %65 unwind label %68

65:                                               ; preds = %51
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  ret i1 %64

66:                                               ; preds = %20
  %67 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3VecILj3EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #4
  br label %70

68:                                               ; preds = %51
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %70

70:                                               ; preds = %68, %66
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %67, %66 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %71

71:                                               ; preds = %70, %49
  %.pn15 = phi { ptr, i32 } [ %50, %49 ], [ %.pn, %70 ]
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br label %72

72:                                               ; preds = %71, %21
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %71 ], [ %22, %21 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #4
  resume { ptr, i32 } %.pn15.pn
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI3VecILj3EdESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef, 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(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72), i32 noundef) local_unnamed_addr #1 align 2

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

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

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

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

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,SROAPass,SimplifyCFGPass