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

%struct.Vec.0 = type { [3 x double] }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.13" = type { i8 }
%struct.Vec.2 = type { [4 x i32] }
%"class.std::vector.16" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.20" = type { i8 }
%struct.Vec.3 = type { [4 x i8] }
%"struct.std::_Bit_reference" = type { ptr, i64 }
%"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 = 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 }

@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest28ray_quad_intersection_parityERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdESA_RbSB_(ptr noundef nonnull align 8 dereferenceable(1560), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) #2 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) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24)) #2

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

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

; Function Attrs: nounwind
declare i32 @rand() #4

; Function Attrs: nounwind
declare double @cos(double noundef) #4

; 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: nounwind
declare double @sin(double noundef) #4

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca [8 x i8], align 1
  %5 = alloca [8 x i8], align 1
  %6 = alloca [8 x i8], align 1
  %7 = alloca %struct.Vec.0, align 8
  %8 = alloca double, align 8
  %9 = alloca i8, align 1
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::vector.11", align 8
  %12 = alloca %"class.std::allocator.13", align 1
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %struct.Vec.2, align 4
  %16 = alloca %struct.Vec.2, align 4
  %17 = alloca %struct.Vec.2, align 4
  %18 = alloca %struct.Vec.2, align 4
  %19 = alloca %struct.Vec.2, align 4
  %20 = alloca %struct.Vec.2, align 4
  %21 = alloca %"class.std::vector.16", align 8
  %22 = alloca i8, align 1
  %23 = alloca %"class.std::allocator.20", align 1
  %24 = alloca i8, align 1
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca %struct.Vec.3, align 1
  %28 = alloca %struct.Vec.3, align 1
  %29 = alloca %struct.Vec.3, align 1
  %30 = alloca i8, align 1
  %31 = alloca i8, align 1
  %32 = alloca %struct.Vec.0, align 8
  %33 = alloca %"struct.std::_Bit_reference", align 8
  %34 = alloca i32, align 4
  %35 = alloca double, align 8
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca %"struct.std::_Bit_reference", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  %39 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %4, ptr align 1 @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %5, ptr align 1 @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  %40 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %39, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %40, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %41 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store double %41, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #5
  store i8 0, ptr %9, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #5
  call void @_ZNSaI3VecILj4EjEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  invoke void @_ZNSt6vectorI3VecILj4EjESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 6, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %42 unwind label %70

42:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %15, i32 noundef 0, i32 noundef 1, i32 noundef 3, i32 noundef 2)
          to label %43 unwind label %74

43:                                               ; preds = %42
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 0) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %44, ptr align 4 %15, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %16, i32 noundef 0, i32 noundef 1, i32 noundef 4, i32 noundef 5)
          to label %45 unwind label %78

45:                                               ; preds = %43
  %46 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %46, ptr align 4 %16, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %17, i32 noundef 1, i32 noundef 2, i32 noundef 5, i32 noundef 6)
          to label %47 unwind label %82

47:                                               ; preds = %45
  %48 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %48, ptr align 4 %17, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %18, i32 noundef 2, i32 noundef 3, i32 noundef 6, i32 noundef 7)
          to label %49 unwind label %86

49:                                               ; preds = %47
  %50 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %50, ptr align 4 %18, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %19, i32 noundef 3, i32 noundef 0, i32 noundef 7, i32 noundef 4)
          to label %51 unwind label %90

51:                                               ; preds = %49
  %52 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %52, ptr align 4 %19, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #5
  invoke void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %20, i32 noundef 4, i32 noundef 5, i32 noundef 7, i32 noundef 6)
          to label %53 unwind label %94

53:                                               ; preds = %51
  %54 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef 5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %54, ptr align 4 %20, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %22) #5
  store i8 0, ptr %22, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #5
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef 6, ptr noundef nonnull align 1 dereferenceable(1) %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %55 unwind label %98

55:                                               ; preds = %53
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %56

56:                                               ; preds = %286, %55
  %57 = load i8, ptr %9, align 1, !tbaa !13, !range !18, !noundef !19
  %58 = trunc i8 %57 to i1
  br i1 %58, label %63, label %59

59:                                               ; preds = %56
  %60 = load i32, ptr %10, align 4, !tbaa !15
  %61 = add i32 %60, 1
  store i32 %61, ptr %10, align 4, !tbaa !15
  %62 = icmp ult i32 %60, 10
  br label %63

63:                                               ; preds = %59, %56
  %64 = phi i1 [ false, %56 ], [ %62, %59 ]
  br i1 %64, label %65, label %288

65:                                               ; preds = %63
  store i8 1, ptr %9, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #5
  store i8 0, ptr %24, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !15
  br label %66

66:                                               ; preds = %247, %65
  %67 = load i32, ptr %25, align 4, !tbaa !15
  %68 = icmp slt i32 %67, 6
  br i1 %68, label %102, label %69

69:                                               ; preds = %66
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %253

70:                                               ; preds = %1
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %13, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %14, align 4
  call void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #5
  br label %329

74:                                               ; preds = %42
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #5
  br label %328

78:                                               ; preds = %43
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %13, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  br label %328

82:                                               ; preds = %45
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %13, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  br label %328

86:                                               ; preds = %47
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %13, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  br label %328

90:                                               ; preds = %49
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %13, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #5
  br label %328

94:                                               ; preds = %51
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %13, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #5
  br label %328

98:                                               ; preds = %53
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %13, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %14, align 4
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %22) #5
  br label %327

102:                                              ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #5
  %103 = load i32, ptr %25, align 4, !tbaa !15
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %104) #5
  store ptr %105, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %106 = load ptr, ptr %26, align 8, !tbaa !5
  %107 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %106, i32 noundef 0)
          to label %108 unwind label %221

108:                                              ; preds = %102
  %109 = load i32, ptr %107, align 4, !tbaa !15
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !13, !range !18, !noundef !19
  %113 = trunc i8 %112 to i1
  %114 = load ptr, ptr %26, align 8, !tbaa !5
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %114, i32 noundef 1)
          to label %116 unwind label %221

116:                                              ; preds = %108
  %117 = load i32, ptr %115, align 4, !tbaa !15
  %118 = zext i32 %117 to i64
  %119 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 %118
  %120 = load i8, ptr %119, align 1, !tbaa !13, !range !18, !noundef !19
  %121 = trunc i8 %120 to i1
  %122 = load ptr, ptr %26, align 8, !tbaa !5
  %123 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %122, i32 noundef 2)
          to label %124 unwind label %221

124:                                              ; preds = %116
  %125 = load i32, ptr %123, align 4, !tbaa !15
  %126 = zext i32 %125 to i64
  %127 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 %126
  %128 = load i8, ptr %127, align 1, !tbaa !13, !range !18, !noundef !19
  %129 = trunc i8 %128 to i1
  %130 = load ptr, ptr %26, align 8, !tbaa !5
  %131 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %130, i32 noundef 3)
          to label %132 unwind label %221

132:                                              ; preds = %124
  %133 = load i32, ptr %131, align 4, !tbaa !15
  %134 = zext i32 %133 to i64
  %135 = getelementptr inbounds [8 x i8], ptr %4, i64 0, i64 %134
  %136 = load i8, ptr %135, align 1, !tbaa !13, !range !18, !noundef !19
  %137 = trunc i8 %136 to i1
  invoke void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %27, i1 noundef zeroext %113, i1 noundef zeroext %121, i1 noundef zeroext %129, i1 noundef zeroext %137)
          to label %138 unwind label %221

138:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  %139 = load ptr, ptr %26, align 8, !tbaa !5
  %140 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %139, i32 noundef 0)
          to label %141 unwind label %225

141:                                              ; preds = %138
  %142 = load i32, ptr %140, align 4, !tbaa !15
  %143 = zext i32 %142 to i64
  %144 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %143
  %145 = load i8, ptr %144, align 1, !tbaa !13, !range !18, !noundef !19
  %146 = trunc i8 %145 to i1
  %147 = load ptr, ptr %26, align 8, !tbaa !5
  %148 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %147, i32 noundef 1)
          to label %149 unwind label %225

149:                                              ; preds = %141
  %150 = load i32, ptr %148, align 4, !tbaa !15
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %151
  %153 = load i8, ptr %152, align 1, !tbaa !13, !range !18, !noundef !19
  %154 = trunc i8 %153 to i1
  %155 = load ptr, ptr %26, align 8, !tbaa !5
  %156 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %155, i32 noundef 2)
          to label %157 unwind label %225

157:                                              ; preds = %149
  %158 = load i32, ptr %156, align 4, !tbaa !15
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !13, !range !18, !noundef !19
  %162 = trunc i8 %161 to i1
  %163 = load ptr, ptr %26, align 8, !tbaa !5
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %163, i32 noundef 3)
          to label %165 unwind label %225

165:                                              ; preds = %157
  %166 = load i32, ptr %164, align 4, !tbaa !15
  %167 = zext i32 %166 to i64
  %168 = getelementptr inbounds [8 x i8], ptr %5, i64 0, i64 %167
  %169 = load i8, ptr %168, align 1, !tbaa !13, !range !18, !noundef !19
  %170 = trunc i8 %169 to i1
  invoke void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %28, i1 noundef zeroext %146, i1 noundef zeroext %154, i1 noundef zeroext %162, i1 noundef zeroext %170)
          to label %171 unwind label %225

171:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #5
  %172 = load ptr, ptr %26, align 8, !tbaa !5
  %173 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %172, i32 noundef 0)
          to label %174 unwind label %229

174:                                              ; preds = %171
  %175 = load i32, ptr %173, align 4, !tbaa !15
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %176
  %178 = load i8, ptr %177, align 1, !tbaa !13, !range !18, !noundef !19
  %179 = trunc i8 %178 to i1
  %180 = load ptr, ptr %26, align 8, !tbaa !5
  %181 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %180, i32 noundef 1)
          to label %182 unwind label %229

182:                                              ; preds = %174
  %183 = load i32, ptr %181, align 4, !tbaa !15
  %184 = zext i32 %183 to i64
  %185 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %184
  %186 = load i8, ptr %185, align 1, !tbaa !13, !range !18, !noundef !19
  %187 = trunc i8 %186 to i1
  %188 = load ptr, ptr %26, align 8, !tbaa !5
  %189 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %188, i32 noundef 2)
          to label %190 unwind label %229

190:                                              ; preds = %182
  %191 = load i32, ptr %189, align 4, !tbaa !15
  %192 = zext i32 %191 to i64
  %193 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %192
  %194 = load i8, ptr %193, align 1, !tbaa !13, !range !18, !noundef !19
  %195 = trunc i8 %194 to i1
  %196 = load ptr, ptr %26, align 8, !tbaa !5
  %197 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %196, i32 noundef 3)
          to label %198 unwind label %229

198:                                              ; preds = %190
  %199 = load i32, ptr %197, align 4, !tbaa !15
  %200 = zext i32 %199 to i64
  %201 = getelementptr inbounds [8 x i8], ptr %6, i64 0, i64 %200
  %202 = load i8, ptr %201, align 1, !tbaa !13, !range !18, !noundef !19
  %203 = trunc i8 %202 to i1
  invoke void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %29, i1 noundef zeroext %179, i1 noundef zeroext %187, i1 noundef zeroext %195, i1 noundef zeroext %203)
          to label %204 unwind label %229

204:                                              ; preds = %198
  call void @llvm.lifetime.start.p0(i64 1, ptr %30) #5
  store i8 0, ptr %30, align 1, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %31) #5
  store i8 0, ptr %31, align 1, !tbaa !13
  %205 = load ptr, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #5
  invoke void @_ZN3VecILj3EdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %32, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
          to label %206 unwind label %233

206:                                              ; preds = %204
  %207 = invoke noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest28ray_quad_intersection_parityERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdESA_RbSB_(ptr noundef nonnull align 8 dereferenceable(1560) %39, ptr noundef nonnull align 4 dereferenceable(16) %205, ptr noundef nonnull align 1 dereferenceable(4) %27, ptr noundef nonnull align 1 dereferenceable(4) %28, ptr noundef nonnull align 1 dereferenceable(4) %29, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 1 dereferenceable(1) %30, ptr noundef nonnull align 1 dereferenceable(1) %31)
          to label %208 unwind label %233

208:                                              ; preds = %206
  call void @llvm.lifetime.start.p0(i64 16, ptr %33) #5
  %209 = load i32, ptr %25, align 4, !tbaa !15
  %210 = sext i32 %209 to i64
  %211 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef %210)
          to label %212 unwind label %237

212:                                              ; preds = %208
  %213 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %214 = extractvalue { ptr, i64 } %211, 0
  store ptr %214, ptr %213, align 8
  %215 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %216 = extractvalue { ptr, i64 } %211, 1
  store i64 %216, ptr %215, align 8
  %217 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %33, i1 noundef zeroext %207) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  %218 = load i8, ptr %30, align 1, !tbaa !13, !range !18, !noundef !19
  %219 = trunc i8 %218 to i1
  br i1 %219, label %220, label %242

220:                                              ; preds = %212
  store i8 0, ptr %9, align 1, !tbaa !13
  br label %242

221:                                              ; preds = %132, %124, %116, %108, %102
  %222 = landingpad { ptr, i32 }
          cleanup
  %223 = extractvalue { ptr, i32 } %222, 0
  store ptr %223, ptr %13, align 8
  %224 = extractvalue { ptr, i32 } %222, 1
  store i32 %224, ptr %14, align 4
  br label %252

225:                                              ; preds = %165, %157, %149, %141, %138
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %13, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %14, align 4
  br label %251

229:                                              ; preds = %198, %190, %182, %174, %171
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %13, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %14, align 4
  br label %250

233:                                              ; preds = %206, %204
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %13, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %14, align 4
  br label %241

237:                                              ; preds = %208
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %13, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %33) #5
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  br label %250

242:                                              ; preds = %220, %212
  %243 = load i8, ptr %31, align 1, !tbaa !13, !range !18, !noundef !19
  %244 = trunc i8 %243 to i1
  br i1 %244, label %245, label %246

245:                                              ; preds = %242
  store i8 1, ptr %24, align 1, !tbaa !13
  br label %246

246:                                              ; preds = %245, %242
  call void @llvm.lifetime.end.p0(i64 1, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  br label %247

247:                                              ; preds = %246
  %248 = load i32, ptr %25, align 4, !tbaa !15
  %249 = add nsw i32 %248, 1
  store i32 %249, ptr %25, align 4, !tbaa !15
  br label %66, !llvm.loop !20

250:                                              ; preds = %241, %229
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  br label %251

251:                                              ; preds = %250, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #5
  br label %252

252:                                              ; preds = %251, %221
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %287

253:                                              ; preds = %69
  %254 = load i8, ptr %24, align 1, !tbaa !13, !range !18, !noundef !19
  %255 = trunc i8 %254 to i1
  br i1 %255, label %256, label %257

256:                                              ; preds = %253
  store i1 true, ptr %2, align 1
  store i32 1, ptr %34, align 4
  br label %284

257:                                              ; preds = %253
  %258 = load i8, ptr %9, align 1, !tbaa !13, !range !18, !noundef !19
  %259 = trunc i8 %258 to i1
  br i1 %259, label %283, label %260

260:                                              ; preds = %257
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #5
  %261 = call i32 @rand() #5
  %262 = sitofp i32 %261 to double
  %263 = fdiv double %262, 0x41DFFFFFFFC00000
  %264 = fmul double %263, 2.000000e+00
  %265 = fmul double %264, 0x400921FB54442D18
  store double %265, ptr %35, align 8, !tbaa !11
  %266 = load double, ptr %35, align 8, !tbaa !11
  %267 = call double @cos(double noundef %266) #5
  %268 = load double, ptr %8, align 8, !tbaa !11
  %269 = fmul double %267, %268
  %270 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
          to label %271 unwind label %279

271:                                              ; preds = %260
  store double %269, ptr %270, align 8, !tbaa !11
  %272 = load double, ptr %35, align 8, !tbaa !11
  %273 = call double @sin(double noundef %272) #5
  %274 = fneg double %273
  %275 = load double, ptr %8, align 8, !tbaa !11
  %276 = fmul double %274, %275
  %277 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
          to label %278 unwind label %279

278:                                              ; preds = %271
  store double %276, ptr %277, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %283

279:                                              ; preds = %271, %260
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %13, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #5
  br label %287

283:                                              ; preds = %278, %257
  store i32 0, ptr %34, align 4
  br label %284

284:                                              ; preds = %283, %256
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  %285 = load i32, ptr %34, align 4
  switch i32 %285, label %324 [
    i32 0, label %286
  ]

286:                                              ; preds = %284
  br label %56, !llvm.loop !22

287:                                              ; preds = %279, %252
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #5
  br label %326

288:                                              ; preds = %63
  %289 = load i8, ptr %9, align 1, !tbaa !13, !range !18, !noundef !19
  %290 = trunc i8 %289 to i1
  br i1 %290, label %292, label %291

291:                                              ; preds = %288
  store i1 true, ptr %2, align 1
  store i32 1, ptr %34, align 4
  br label %324

292:                                              ; preds = %288
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 0, ptr %36, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 0, ptr %37, align 4, !tbaa !15
  br label %293

293:                                              ; preds = %317, %292
  %294 = load i32, ptr %37, align 4, !tbaa !15
  %295 = zext i32 %294 to i64
  %296 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  %297 = icmp ult i64 %295, %296
  br i1 %297, label %299, label %298

298:                                              ; preds = %293
  store i32 7, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  br label %320

299:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 16, ptr %38) #5
  %300 = load i32, ptr %37, align 4, !tbaa !15
  %301 = zext i32 %300 to i64
  %302 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %21, i64 noundef %301)
          to label %303 unwind label %312

303:                                              ; preds = %299
  %304 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 0
  %305 = extractvalue { ptr, i64 } %302, 0
  store ptr %305, ptr %304, align 8
  %306 = getelementptr inbounds { ptr, i64 }, ptr %38, i32 0, i32 1
  %307 = extractvalue { ptr, i64 } %302, 1
  store i64 %307, ptr %306, align 8
  %308 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %38) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  br i1 %308, label %309, label %316

309:                                              ; preds = %303
  %310 = load i32, ptr %36, align 4, !tbaa !15
  %311 = add i32 %310, 1
  store i32 %311, ptr %36, align 4, !tbaa !15
  br label %316

312:                                              ; preds = %299
  %313 = landingpad { ptr, i32 }
          cleanup
  %314 = extractvalue { ptr, i32 } %313, 0
  store ptr %314, ptr %13, align 8
  %315 = extractvalue { ptr, i32 } %313, 1
  store i32 %315, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %326

316:                                              ; preds = %309, %303
  br label %317

317:                                              ; preds = %316
  %318 = load i32, ptr %37, align 4, !tbaa !15
  %319 = add i32 %318, 1
  store i32 %319, ptr %37, align 4, !tbaa !15
  br label %293, !llvm.loop !23

320:                                              ; preds = %298
  %321 = load i32, ptr %36, align 4, !tbaa !15
  %322 = urem i32 %321, 2
  %323 = icmp eq i32 %322, 1
  store i1 %323, ptr %2, align 1
  store i32 1, ptr %34, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  br label %324

324:                                              ; preds = %320, %291, %284
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  call void @_ZNSt6vectorI3VecILj4EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %325 = load i1, ptr %2, align 1
  ret i1 %325

326:                                              ; preds = %312, %287
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  br label %327

327:                                              ; preds = %326, %98
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #5
  br label %328

328:                                              ; preds = %327, %94, %90, %86, %82, %78, %74
  call void @_ZNSt6vectorI3VecILj4EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #5
  br label %329

329:                                              ; preds = %328, %70
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  br label %330

330:                                              ; preds = %329
  %331 = load ptr, ptr %13, align 8
  %332 = load i32, ptr %14, align 4
  %333 = insertvalue { ptr, i32 } poison, ptr %331, 0
  %334 = insertvalue { ptr, i32 } %333, i32 %332, 1
  resume { ptr, i32 } %334
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{i64 0, i64 16, !10}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Vec.0 = type { [3 x double] }
%"class.std::vector.11" = type { %"struct.std::_Vector_base.12" }
%"struct.std::_Vector_base.12" = type { %"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec<4, unsigned int>, std::allocator<Vec<4, unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.13" = type { i8 }
%struct.Vec.2 = type { [4 x i32] }
%"class.std::vector.16" = type { %"struct.std::_Bvector_base" }
%"struct.std::_Bvector_base" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl" = type { %"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" }
%"struct.std::_Bvector_base<std::allocator<bool>>::_Bvector_impl_data" = type { %"struct.std::_Bit_iterator", %"struct.std::_Bit_iterator", ptr }
%"struct.std::_Bit_iterator" = type { %"struct.std::_Bit_iterator_base.base", [4 x i8] }
%"struct.std::_Bit_iterator_base.base" = type <{ ptr, i32 }>
%"class.std::allocator.20" = type { i8 }
%struct.Vec.3 = type { [4 x i8] }
%"struct.std::_Bit_reference" = type { ptr, i64 }

@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us = external hidden unnamed_addr constant [8 x i8], align 1
@__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs = external hidden unnamed_addr constant [8 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; 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 uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest28ray_quad_intersection_parityERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdESA_RbSB_(ptr noundef nonnull align 8 dereferenceable(1560), ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 1 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #2 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) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_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 @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16), i1 noundef zeroext) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #5

; 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 nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #5

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %struct.Vec.0, align 8
  %3 = alloca %"class.std::vector.11", align 8
  %4 = alloca %"class.std::allocator.13", align 1
  %5 = alloca %struct.Vec.2, align 4
  %6 = alloca %struct.Vec.2, align 4
  %7 = alloca %struct.Vec.2, align 4
  %8 = alloca %struct.Vec.2, align 4
  %9 = alloca %struct.Vec.2, align 4
  %10 = alloca %struct.Vec.2, align 4
  %11 = alloca %"class.std::vector.16", align 8
  %12 = alloca i8, align 1
  %13 = alloca %"class.std::allocator.20", align 1
  %14 = alloca %struct.Vec.3, align 1
  %15 = alloca %struct.Vec.3, align 1
  %16 = alloca %struct.Vec.3, align 1
  %17 = alloca i8, align 1
  %18 = alloca i8, align 1
  %19 = alloca %struct.Vec.0, align 8
  %20 = alloca %"struct.std::_Bit_reference", align 8
  %21 = alloca %"struct.std::_Bit_reference", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  %22 = getelementptr inbounds i8, ptr %0, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %22, i64 24, i1 false), !tbaa.struct !5
  %23 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #6
  call void @_ZNSaI3VecILj4EjEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  invoke void @_ZNSt6vectorI3VecILj4EjESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 6, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %24 unwind label %37

24:                                               ; preds = %1
  call void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %5, i32 noundef 0, i32 noundef 1, i32 noundef 3, i32 noundef 2)
  %25 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 0) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %25, ptr noundef nonnull align 4 dereferenceable(16) %5, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 0, i32 noundef 1, i32 noundef 4, i32 noundef 5)
  %26 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %26, ptr noundef nonnull align 4 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %7, i32 noundef 1, i32 noundef 2, i32 noundef 5, i32 noundef 6)
  %27 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %27, ptr noundef nonnull align 4 dereferenceable(16) %7, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %8, i32 noundef 2, i32 noundef 3, i32 noundef 6, i32 noundef 7)
  %28 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %28, ptr noundef nonnull align 4 dereferenceable(16) %8, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %9, i32 noundef 3, i32 noundef 0, i32 noundef 7, i32 noundef 4)
  %29 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %29, ptr noundef nonnull align 4 dereferenceable(16) %9, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @_ZN3VecILj4EjEC2Ejjjj(ptr noundef nonnull align 4 dereferenceable(16) %10, i32 noundef 4, i32 noundef 5, i32 noundef 7, i32 noundef 6)
  %30 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %30, ptr noundef nonnull align 4 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  store i8 0, ptr %12, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaIbEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIbSaIbEEC2EmRKbRKS0_(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef 6, ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %31 unwind label %39

31:                                               ; preds = %24
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  %32 = getelementptr inbounds i8, ptr %20, i64 8
  br label %.preheader.preheader

.critedge61.preheader:                            ; preds = %130
  %33 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %.critedge60, label %.lr.ph

.lr.ph:                                           ; preds = %.critedge61.preheader
  %34 = getelementptr inbounds i8, ptr %21, i64 8
  br label %148

.preheader.preheader:                             ; preds = %31, %132
  %35 = phi i32 [ 1, %31 ], [ %145, %132 ]
  br label %.preheader

36:                                               ; preds = %117
  br i1 %.144, label %.critedge60, label %130

37:                                               ; preds = %1
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #6
  br label %163

39:                                               ; preds = %24
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIbED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  br label %162

.preheader:                                       ; preds = %.preheader.preheader, %117
  %indvars.iv = phi i64 [ %indvars.iv.next, %117 ], [ 0, %.preheader.preheader ]
  %.14070 = phi i8 [ %spec.select, %117 ], [ 1, %.preheader.preheader ]
  %.04368 = phi i1 [ %.144, %117 ], [ false, %.preheader.preheader ]
  %41 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNSt6vectorI3VecILj4EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef %indvars.iv) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 0)
  %43 = load i32, ptr %42, align 4, !tbaa !12
  %44 = zext i32 %43 to i64
  %45 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts, i64 0, i64 %44
  %46 = load i8, ptr %45, align 1, !tbaa !10, !range !14, !noundef !15
  %47 = trunc nuw i8 %46 to i1
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 1)
  %49 = load i32, ptr %48, align 4, !tbaa !12
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts, i64 0, i64 %50
  %52 = load i8, ptr %51, align 1, !tbaa !10, !range !14, !noundef !15
  %53 = trunc nuw i8 %52 to i1
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 2)
  %55 = load i32, ptr %54, align 4, !tbaa !12
  %56 = zext i32 %55 to i64
  %57 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts, i64 0, i64 %56
  %58 = load i8, ptr %57, align 1, !tbaa !10, !range !14, !noundef !15
  %59 = trunc nuw i8 %58 to i1
  %60 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 3)
  %61 = load i32, ptr %60, align 4, !tbaa !12
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_ts, i64 0, i64 %62
  %64 = load i8, ptr %63, align 1, !tbaa !10, !range !14, !noundef !15
  %65 = trunc nuw i8 %64 to i1
  call void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %14, i1 noundef zeroext %47, i1 noundef zeroext %53, i1 noundef zeroext %59, i1 noundef zeroext %65)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 0)
  %67 = load i32, ptr %66, align 4, !tbaa !12
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us, i64 0, i64 %68
  %70 = load i8, ptr %69, align 1, !tbaa !10, !range !14, !noundef !15
  %71 = trunc nuw i8 %70 to i1
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 1)
  %73 = load i32, ptr %72, align 4, !tbaa !12
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us, i64 0, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !10, !range !14, !noundef !15
  %77 = trunc nuw i8 %76 to i1
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 2)
  %79 = load i32, ptr %78, align 4, !tbaa !12
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us, i64 0, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !10, !range !14, !noundef !15
  %83 = trunc nuw i8 %82 to i1
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 3)
  %85 = load i32, ptr %84, align 4, !tbaa !12
  %86 = zext i32 %85 to i64
  %87 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_us, i64 0, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !10, !range !14, !noundef !15
  %89 = trunc nuw i8 %88 to i1
  call void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %15, i1 noundef zeroext %71, i1 noundef zeroext %77, i1 noundef zeroext %83, i1 noundef zeroext %89)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 0)
  %91 = load i32, ptr %90, align 4, !tbaa !12
  %92 = zext i32 %91 to i64
  %93 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs, i64 0, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !10, !range !14, !noundef !15
  %95 = trunc nuw i8 %94 to i1
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 1)
  %97 = load i32, ptr %96, align 4, !tbaa !12
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs, i64 0, i64 %98
  %100 = load i8, ptr %99, align 1, !tbaa !10, !range !14, !noundef !15
  %101 = trunc nuw i8 %100 to i1
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 2)
  %103 = load i32, ptr %102, align 4, !tbaa !12
  %104 = zext i32 %103 to i64
  %105 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs, i64 0, i64 %104
  %106 = load i8, ptr %105, align 1, !tbaa !10, !range !14, !noundef !15
  %107 = trunc nuw i8 %106 to i1
  %108 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %41, i32 noundef 3)
  %109 = load i32, ptr %108, align 4, !tbaa !12
  %110 = zext i32 %109 to i64
  %111 = getelementptr inbounds [8 x i8], ptr @__const._ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv.vertex_vs, i64 0, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !10, !range !14, !noundef !15
  %113 = trunc nuw i8 %112 to i1
  call void @_ZN3VecILj4EbEC2Ebbbb(ptr noundef nonnull align 1 dereferenceable(4) %16, i1 noundef zeroext %95, i1 noundef zeroext %101, i1 noundef zeroext %107, i1 noundef zeroext %113)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #6
  store i8 0, ptr %17, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %18) #6
  store i8 0, ptr %18, align 1, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #6
  call void @_ZN3VecILj3EdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef 0.000000e+00, double noundef 0.000000e+00, double noundef 0.000000e+00)
  %114 = invoke noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest28ray_quad_intersection_parityERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdESA_RbSB_(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 4 dereferenceable(16) %41, ptr noundef nonnull align 1 dereferenceable(4) %14, ptr noundef nonnull align 1 dereferenceable(4) %15, ptr noundef nonnull align 1 dereferenceable(4) %16, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 1 dereferenceable(1) %17, ptr noundef nonnull align 1 dereferenceable(1) %18)
          to label %115 unwind label %125

115:                                              ; preds = %.preheader
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  %116 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %indvars.iv)
          to label %117 unwind label %127

117:                                              ; preds = %115
  %118 = extractvalue { ptr, i64 } %116, 0
  store ptr %118, ptr %20, align 8
  %119 = extractvalue { ptr, i64 } %116, 1
  store i64 %119, ptr %32, align 8
  %120 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt14_Bit_referenceaSEb(ptr noundef nonnull align 8 dereferenceable(16) %20, i1 noundef zeroext %114) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  %121 = load i8, ptr %17, align 1, !tbaa !10, !range !14, !noundef !15
  %122 = trunc nuw i8 %121 to i1
  %spec.select = select i1 %122, i8 0, i8 %.14070
  %123 = load i8, ptr %18, align 1, !tbaa !10, !range !14, !noundef !15
  %124 = trunc nuw i8 %123 to i1
  %.144 = select i1 %124, i1 true, i1 %.04368
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 6
  br i1 %exitcond.not, label %36, label %.preheader, !llvm.loop !16

125:                                              ; preds = %.preheader
  %126 = landingpad { ptr, i32 }
          cleanup
  br label %129

127:                                              ; preds = %115
  %128 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %129

129:                                              ; preds = %127, %125
  %.pn = phi { ptr, i32 } [ %128, %127 ], [ %126, %125 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %161

130:                                              ; preds = %36
  %131 = trunc nuw i8 %spec.select to i1
  br i1 %131, label %.critedge61.preheader, label %132

132:                                              ; preds = %130
  %133 = call i32 @rand() #6
  %134 = sitofp i32 %133 to double
  %135 = fdiv double %134, 0x41DFFFFFFFC00000
  %136 = fmul double %135, 2.000000e+00
  %137 = fmul double %136, 0x400921FB54442D18
  %138 = call double @cos(double noundef %137) #6
  %139 = fmul double %23, %138
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
  store double %139, ptr %140, align 8, !tbaa !18
  %141 = call double @sin(double noundef %137) #6
  %142 = fneg double %141
  %143 = fmul double %23, %142
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1)
  store double %143, ptr %144, align 8, !tbaa !18
  %145 = add nuw nsw i32 %35, 1
  %exitcond74.not = icmp eq i32 %35, 10
  br i1 %exitcond74.not, label %.critedge60, label %.preheader.preheader

.critedge61._crit_edge.loopexit:                  ; preds = %.critedge61
  %146 = and i32 %spec.select62, 1
  %147 = icmp ne i32 %146, 0
  br label %.critedge60

148:                                              ; preds = %.lr.ph, %.critedge61
  %149 = phi i64 [ 0, %.lr.ph ], [ %156, %.critedge61 ]
  %.073 = phi i32 [ 0, %.lr.ph ], [ %155, %.critedge61 ]
  %.03572 = phi i32 [ 0, %.lr.ph ], [ %spec.select62, %.critedge61 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #6
  %150 = invoke { ptr, i64 } @_ZNSt6vectorIbSaIbEEixEm(ptr noundef nonnull align 8 dereferenceable(40) %11, i64 noundef %149)
          to label %.critedge61 unwind label %159

.critedge61:                                      ; preds = %148
  %151 = extractvalue { ptr, i64 } %150, 0
  store ptr %151, ptr %21, align 8
  %152 = extractvalue { ptr, i64 } %150, 1
  store i64 %152, ptr %34, align 8
  %153 = call noundef zeroext i1 @_ZNKSt14_Bit_referencecvbEv(ptr noundef nonnull align 8 dereferenceable(16) %21) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  %154 = zext i1 %153 to i32
  %spec.select62 = add i32 %.03572, %154
  %155 = add i32 %.073, 1
  %156 = zext i32 %155 to i64
  %157 = call noundef i64 @_ZNKSt6vectorIbSaIbEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  %158 = icmp ugt i64 %157, %156
  br i1 %158, label %148, label %.critedge61._crit_edge.loopexit, !llvm.loop !20

159:                                              ; preds = %148
  %160 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #6
  br label %161

.critedge60:                                      ; preds = %132, %36, %.critedge61.preheader, %.critedge61._crit_edge.loopexit
  %.2 = phi i1 [ false, %.critedge61.preheader ], [ %147, %.critedge61._crit_edge.loopexit ], [ true, %36 ], [ true, %132 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  call void @_ZNSt6vectorI3VecILj4EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  ret i1 %.2

161:                                              ; preds = %159, %129
  %.pn55 = phi { ptr, i32 } [ %160, %159 ], [ %.pn, %129 ]
  call void @_ZNSt13_Bvector_baseISaIbEED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #6
  br label %162

162:                                              ; preds = %161, %39
  %.pn55.pn = phi { ptr, i32 } [ %.pn55, %161 ], [ %40, %39 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %11) #6
  call void @_ZNSt6vectorI3VecILj4EjESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  br label %163

163:                                              ; preds = %162, %37
  %.pn55.pn.pn = phi { ptr, i32 } [ %.pn55.pn, %162 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  resume { ptr, i32 } %.pn55.pn.pn
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt15__new_allocatorI3VecILj4EjEED2Ev(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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!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 = !{i64 0, i64 24, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 16, !6}
!10 = !{!11, !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !19, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = distinct !{!20, !17}


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