; 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 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 uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest37point_triangle_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
  store ptr %0, ptr %2, align 8, !tbaa !5
  %18 = 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 6, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %19 unwind label %24

19:                                               ; 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 %20

20:                                               ; preds = %77, %19
  %21 = load i32, ptr %7, align 4, !tbaa !9
  %22 = icmp ult i32 %21, 6
  br i1 %22, label %28, label %23

23:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %84

24:                                               ; preds = %1
  %25 = landingpad { ptr, i32 }
          cleanup
  %26 = extractvalue { ptr, i32 } %25, 0
  store ptr %26, ptr %5, align 8
  %27 = extractvalue { ptr, i32 } %25, 1
  store i32 %27, 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 %147

28:                                               ; preds = %20
  %29 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %18, i32 0, i32 10
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [8 x %struct.Vec], ptr %29, i64 0, i64 %31
  %33 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %32, i32 noundef 0)
          to label %34 unwind label %80

34:                                               ; preds = %28
  %35 = load ptr, ptr %33, align 8, !tbaa !11
  %36 = getelementptr inbounds ptr, ptr %35, i64 13
  %37 = load ptr, ptr %36, align 8
  %38 = invoke noundef double %37(ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %39 unwind label %80

39:                                               ; preds = %34
  %40 = load i32, ptr %7, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %41) #4
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %42, i32 noundef 0)
          to label %44 unwind label %80

44:                                               ; preds = %39
  store double %38, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %18, i32 0, i32 10
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds [8 x %struct.Vec], ptr %45, i64 0, i64 %47
  %49 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %48, i32 noundef 1)
          to label %50 unwind label %80

50:                                               ; preds = %44
  %51 = load ptr, ptr %49, align 8, !tbaa !11
  %52 = getelementptr inbounds ptr, ptr %51, i64 13
  %53 = load ptr, ptr %52, align 8
  %54 = invoke noundef double %53(ptr noundef nonnull align 8 dereferenceable(8) %49)
          to label %55 unwind label %80

55:                                               ; preds = %50
  %56 = load i32, ptr %7, align 4, !tbaa !9
  %57 = zext i32 %56 to i64
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %57) #4
  %59 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %58, i32 noundef 1)
          to label %60 unwind label %80

60:                                               ; preds = %55
  store double %54, ptr %59, align 8, !tbaa !13
  %61 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %18, i32 0, i32 10
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = zext i32 %62 to i64
  %64 = getelementptr inbounds [8 x %struct.Vec], ptr %61, i64 0, i64 %63
  %65 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %64, i32 noundef 2)
          to label %66 unwind label %80

66:                                               ; preds = %60
  %67 = load ptr, ptr %65, align 8, !tbaa !11
  %68 = getelementptr inbounds ptr, ptr %67, i64 13
  %69 = load ptr, ptr %68, align 8
  %70 = invoke noundef double %69(ptr noundef nonnull align 8 dereferenceable(8) %65)
          to label %71 unwind label %80

71:                                               ; preds = %66
  %72 = load i32, ptr %7, align 4, !tbaa !9
  %73 = zext i32 %72 to i64
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %73) #4
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 2)
          to label %76 unwind label %80

76:                                               ; preds = %71
  store double %70, ptr %75, align 8, !tbaa !13
  br label %77

77:                                               ; preds = %76
  %78 = load i32, ptr %7, align 4, !tbaa !9
  %79 = add i32 %78, 1
  store i32 %79, ptr %7, align 4, !tbaa !9
  br label %20, !llvm.loop !15

80:                                               ; preds = %71, %66, %60, %55, %50, %44, %39, %34, %28
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %5, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  br label %146

84:                                               ; preds = %23
  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 8, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %85 unwind label %104

85:                                               ; preds = %84
  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 2)
          to label %86 unwind label %108

86:                                               ; preds = %85
  %87 = 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 %87, 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 3, i32 noundef 4, i32 noundef 5)
          to label %88 unwind label %112

88:                                               ; preds = %86
  %89 = 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 %89, 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 3)
          to label %90 unwind label %116

90:                                               ; preds = %88
  %91 = 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 %91, 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 3, i32 noundef 4)
          to label %92 unwind label %120

92:                                               ; preds = %90
  %93 = 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 %93, 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 4)
          to label %94 unwind label %124

94:                                               ; preds = %92
  %95 = 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 %95, 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 4, i32 noundef 5)
          to label %96 unwind label %128

96:                                               ; preds = %94
  %97 = 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 %97, 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 0, i32 noundef 2, i32 noundef 3)
          to label %98 unwind label %132

98:                                               ; preds = %96
  %99 = 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 %99, 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 0, i32 noundef 2, i32 noundef 5)
          to label %100 unwind label %136

100:                                              ; preds = %98
  %101 = 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 %101, ptr align 4 %17, i64 12, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #4
  %102 = invoke noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560) %18, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %103 unwind label %140

103:                                              ; preds = %100
  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 %102

104:                                              ; preds = %84
  %105 = landingpad { ptr, i32 }
          cleanup
  %106 = extractvalue { ptr, i32 } %105, 0
  store ptr %106, ptr %5, align 8
  %107 = extractvalue { ptr, i32 } %105, 1
  store i32 %107, 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 %145

108:                                              ; preds = %85
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %5, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  br label %144

112:                                              ; preds = %86
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %5, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #4
  br label %144

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 @llvm.lifetime.end.p0(i64 12, ptr %12) #4
  br label %144

120:                                              ; preds = %90
  %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 %13) #4
  br label %144

124:                                              ; preds = %92
  %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 %14) #4
  br label %144

128:                                              ; preds = %94
  %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 %15) #4
  br label %144

132:                                              ; preds = %96
  %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 %16) #4
  br label %144

136:                                              ; preds = %98
  %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 %17) #4
  br label %144

140:                                              ; preds = %100
  %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
  br label %144

144:                                              ; preds = %140, %136, %132, %128, %124, %120, %116, %112, %108
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %8) #4
  br label %145

145:                                              ; preds = %144, %104
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #4
  br label %146

146:                                              ; preds = %145, %80
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #4
  br label %147

147:                                              ; preds = %146, %24
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #4
  br label %148

148:                                              ; preds = %147
  %149 = load ptr, ptr %5, align 8
  %150 = load i32, ptr %6, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

; 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] }

; 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 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 uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest37point_triangle_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
  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 6, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %14 unwind label %21

14:                                               ; 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
  %15 = getelementptr inbounds i8, ptr %0, i64 208
  %16 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef 0)
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 104
  %19 = load ptr, ptr %18, align 8
  %20 = invoke noundef double %19(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %23 unwind label %167

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 %186

23:                                               ; preds = %14
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %25 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %24, i32 noundef 0)
  store double %20, ptr %25, align 8, !tbaa !8
  %26 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %15, i32 noundef 1)
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 104
  %29 = load ptr, ptr %28, align 8
  %30 = invoke noundef double %29(ptr noundef nonnull align 8 dereferenceable(8) %26)
          to label %31 unwind label %167

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

39:                                               ; preds = %31
  %40 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 0) #4
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %40, i32 noundef 2)
  store double %38, ptr %41, align 8, !tbaa !8
  %42 = getelementptr inbounds i8, ptr %0, i64 280
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %42, i32 noundef 0)
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 104
  %46 = load ptr, ptr %45, align 8
  %47 = invoke noundef double %46(ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %48 unwind label %167

48:                                               ; preds = %39
  %49 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #4
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %49, i32 noundef 0)
  store double %47, ptr %50, align 8, !tbaa !8
  %51 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %42, i32 noundef 1)
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  %53 = getelementptr inbounds i8, ptr %52, i64 104
  %54 = load ptr, ptr %53, align 8
  %55 = invoke noundef double %54(ptr noundef nonnull align 8 dereferenceable(8) %51)
          to label %56 unwind label %167

56:                                               ; preds = %48
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #4
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %57, i32 noundef 1)
  store double %55, ptr %58, align 8, !tbaa !8
  %59 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %42, i32 noundef 2)
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %60, i64 104
  %62 = load ptr, ptr %61, align 8
  %63 = invoke noundef double %62(ptr noundef nonnull align 8 dereferenceable(8) %59)
          to label %64 unwind label %167

64:                                               ; preds = %56
  %65 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 1) #4
  %66 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %65, i32 noundef 2)
  store double %63, ptr %66, align 8, !tbaa !8
  %67 = getelementptr inbounds i8, ptr %0, i64 352
  %68 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %67, i32 noundef 0)
  %69 = load ptr, ptr %68, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 104
  %71 = load ptr, ptr %70, align 8
  %72 = invoke noundef double %71(ptr noundef nonnull align 8 dereferenceable(8) %68)
          to label %73 unwind label %167

73:                                               ; preds = %64
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #4
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %74, i32 noundef 0)
  store double %72, ptr %75, align 8, !tbaa !8
  %76 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %67, i32 noundef 1)
  %77 = load ptr, ptr %76, align 8, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %77, i64 104
  %79 = load ptr, ptr %78, align 8
  %80 = invoke noundef double %79(ptr noundef nonnull align 8 dereferenceable(8) %76)
          to label %81 unwind label %167

81:                                               ; preds = %73
  %82 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #4
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %82, i32 noundef 1)
  store double %80, ptr %83, align 8, !tbaa !8
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %67, i32 noundef 2)
  %85 = load ptr, ptr %84, align 8, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %85, i64 104
  %87 = load ptr, ptr %86, align 8
  %88 = invoke noundef double %87(ptr noundef nonnull align 8 dereferenceable(8) %84)
          to label %89 unwind label %167

89:                                               ; preds = %81
  %90 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 2) #4
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %90, i32 noundef 2)
  store double %88, ptr %91, align 8, !tbaa !8
  %92 = getelementptr inbounds i8, ptr %0, i64 424
  %93 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %92, i32 noundef 0)
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = getelementptr inbounds i8, ptr %94, i64 104
  %96 = load ptr, ptr %95, align 8
  %97 = invoke noundef double %96(ptr noundef nonnull align 8 dereferenceable(8) %93)
          to label %98 unwind label %167

98:                                               ; preds = %89
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #4
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %99, i32 noundef 0)
  store double %97, ptr %100, align 8, !tbaa !8
  %101 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %92, i32 noundef 1)
  %102 = load ptr, ptr %101, align 8, !tbaa !5
  %103 = getelementptr inbounds i8, ptr %102, i64 104
  %104 = load ptr, ptr %103, align 8
  %105 = invoke noundef double %104(ptr noundef nonnull align 8 dereferenceable(8) %101)
          to label %106 unwind label %167

106:                                              ; preds = %98
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #4
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %107, i32 noundef 1)
  store double %105, ptr %108, align 8, !tbaa !8
  %109 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %92, i32 noundef 2)
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %110, i64 104
  %112 = load ptr, ptr %111, align 8
  %113 = invoke noundef double %112(ptr noundef nonnull align 8 dereferenceable(8) %109)
          to label %114 unwind label %167

114:                                              ; preds = %106
  %115 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 3) #4
  %116 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %115, i32 noundef 2)
  store double %113, ptr %116, align 8, !tbaa !8
  %117 = getelementptr inbounds i8, ptr %0, i64 496
  %118 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %117, i32 noundef 0)
  %119 = load ptr, ptr %118, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i64 104
  %121 = load ptr, ptr %120, align 8
  %122 = invoke noundef double %121(ptr noundef nonnull align 8 dereferenceable(8) %118)
          to label %123 unwind label %167

123:                                              ; preds = %114
  %124 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4) #4
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %124, i32 noundef 0)
  store double %122, ptr %125, align 8, !tbaa !8
  %126 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %117, i32 noundef 1)
  %127 = load ptr, ptr %126, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 104
  %129 = load ptr, ptr %128, align 8
  %130 = invoke noundef double %129(ptr noundef nonnull align 8 dereferenceable(8) %126)
          to label %131 unwind label %167

131:                                              ; preds = %123
  %132 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4) #4
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %132, i32 noundef 1)
  store double %130, ptr %133, align 8, !tbaa !8
  %134 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %117, i32 noundef 2)
  %135 = load ptr, ptr %134, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 104
  %137 = load ptr, ptr %136, align 8
  %138 = invoke noundef double %137(ptr noundef nonnull align 8 dereferenceable(8) %134)
          to label %139 unwind label %167

139:                                              ; preds = %131
  %140 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 4) #4
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %140, i32 noundef 2)
  store double %138, ptr %141, align 8, !tbaa !8
  %142 = getelementptr inbounds i8, ptr %0, i64 568
  %143 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %142, i32 noundef 0)
  %144 = load ptr, ptr %143, align 8, !tbaa !5
  %145 = getelementptr inbounds i8, ptr %144, i64 104
  %146 = load ptr, ptr %145, align 8
  %147 = invoke noundef double %146(ptr noundef nonnull align 8 dereferenceable(8) %143)
          to label %148 unwind label %167

148:                                              ; preds = %139
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 5) #4
  %150 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %149, i32 noundef 0)
  store double %147, ptr %150, align 8, !tbaa !8
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %142, i32 noundef 1)
  %152 = load ptr, ptr %151, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 104
  %154 = load ptr, ptr %153, align 8
  %155 = invoke noundef double %154(ptr noundef nonnull align 8 dereferenceable(8) %151)
          to label %156 unwind label %167

156:                                              ; preds = %148
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 5) #4
  %158 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %157, i32 noundef 1)
  store double %155, ptr %158, align 8, !tbaa !8
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %142, i32 noundef 2)
  %160 = load ptr, ptr %159, align 8, !tbaa !5
  %161 = getelementptr inbounds i8, ptr %160, i64 104
  %162 = load ptr, ptr %161, align 8
  %163 = invoke noundef double %162(ptr noundef nonnull align 8 dereferenceable(8) %159)
          to label %164 unwind label %167

164:                                              ; preds = %156
  %165 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef 5) #4
  %166 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %165, i32 noundef 2)
  store double %163, ptr %166, align 8, !tbaa !8
  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 8, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %169 unwind label %180

167:                                              ; preds = %156, %148, %139, %131, %123, %114, %106, %98, %89, %81, %73, %64, %56, %48, %39, %31, %23, %14
  %168 = landingpad { ptr, i32 }
          cleanup
  br label %185

169:                                              ; preds = %164
  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 2)
  %170 = 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) %170, ptr noundef nonnull align 4 dereferenceable(12) %6, i64 12, i1 false), !tbaa.struct !11
  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 3, i32 noundef 4, i32 noundef 5)
  %171 = 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) %171, ptr noundef nonnull align 4 dereferenceable(12) %7, i64 12, i1 false), !tbaa.struct !11
  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 3)
  %172 = 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) %172, ptr noundef nonnull align 4 dereferenceable(12) %8, i64 12, i1 false), !tbaa.struct !11
  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 3, i32 noundef 4)
  %173 = 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) %173, ptr noundef nonnull align 4 dereferenceable(12) %9, i64 12, i1 false), !tbaa.struct !11
  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 4)
  %174 = 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) %174, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !11
  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 4, i32 noundef 5)
  %175 = 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) %175, ptr noundef nonnull align 4 dereferenceable(12) %11, i64 12, i1 false), !tbaa.struct !11
  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 0, i32 noundef 2, i32 noundef 3)
  %176 = 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) %176, ptr noundef nonnull align 4 dereferenceable(12) %12, i64 12, i1 false), !tbaa.struct !11
  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 0, i32 noundef 2, i32 noundef 5)
  %177 = 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) %177, ptr noundef nonnull align 4 dereferenceable(12) %13, i64 12, i1 false), !tbaa.struct !11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #4
  %178 = 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 %179 unwind label %182

179:                                              ; preds = %169
  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 %178

180:                                              ; preds = %164
  %181 = 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 %184

182:                                              ; preds = %169
  %183 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorI3VecILj3EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %4) #4
  br label %184

184:                                              ; preds = %182, %180
  %.pn = phi { ptr, i32 } [ %183, %182 ], [ %181, %180 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #4
  br label %185

185:                                              ; preds = %184, %167
  %.pn15 = phi { ptr, i32 } [ %168, %167 ], [ %.pn, %184 ]
  call void @_ZNSt6vectorI3VecILj3EdESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  br label %186

186:                                              ; preds = %185, %21
  %.pn15.pn = phi { ptr, i32 } [ %.pn15, %185 ], [ %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 @_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 = !{i64 0, i64 12, !12}
!12 = !{!10, !10, i64 0}


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