; 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] }
%struct.Vec.29 = type { [2 x double] }
%"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 }

@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts = external hidden constant [8 x i8], align 1
@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us = external hidden constant [8 x i8], align 1
@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs = external hidden 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24)) #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 #3 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) #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8Interval24begin_special_arithmeticEv() #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8Interval22end_special_arithmeticEv() #4 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19edge_edge_collisionEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) #2 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i8, align 1
  %4 = alloca i8, align 1
  %5 = alloca i8, align 1
  %6 = alloca %struct.Vec.0, align 8
  %7 = alloca %struct.Vec.0, align 8
  %8 = alloca i32, align 4
  %9 = alloca %struct.Vec.29, align 8
  %10 = alloca %struct.Vec.29, align 8
  %11 = alloca %struct.Vec.29, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca %struct.Vec.0, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %16 = load ptr, ptr %2, align 8
  call void @_ZN8Interval24begin_special_arithmeticEv()
  %17 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %20 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %21 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %22 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %23 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %24 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %25 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %26 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, align 1, !tbaa !13, !range !14, !noundef !15
  %27 = trunc i8 %26 to i1
  %28 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, align 1, !tbaa !13, !range !14, !noundef !15
  %29 = trunc i8 %28 to i1
  %30 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, align 1, !tbaa !13, !range !14, !noundef !15
  %31 = trunc i8 %30 to i1
  %32 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %33 = getelementptr inbounds [8 x %struct.Vec], ptr %32, i64 0, i64 0
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %25, i1 noundef zeroext %27, i1 noundef zeroext %29, i1 noundef zeroext %31, ptr noundef nonnull align 8 dereferenceable(72) %33)
  %34 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %37 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %38 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %39 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %40 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %41 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %42 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %43 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 1), align 1, !tbaa !13, !range !14, !noundef !15
  %44 = trunc i8 %43 to i1
  %45 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 1), align 1, !tbaa !13, !range !14, !noundef !15
  %46 = trunc i8 %45 to i1
  %47 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 1), align 1, !tbaa !13, !range !14, !noundef !15
  %48 = trunc i8 %47 to i1
  %49 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %50 = getelementptr inbounds [8 x %struct.Vec], ptr %49, i64 0, i64 1
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %35, ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(24) %40, ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %42, i1 noundef zeroext %44, i1 noundef zeroext %46, i1 noundef zeroext %48, ptr noundef nonnull align 8 dereferenceable(72) %50)
  %51 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %54 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %55 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %56 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %57 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %58 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %59 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %60 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 2), align 1, !tbaa !13, !range !14, !noundef !15
  %61 = trunc i8 %60 to i1
  %62 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 2), align 1, !tbaa !13, !range !14, !noundef !15
  %63 = trunc i8 %62 to i1
  %64 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 2), align 1, !tbaa !13, !range !14, !noundef !15
  %65 = trunc i8 %64 to i1
  %66 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %67 = getelementptr inbounds [8 x %struct.Vec], ptr %66, i64 0, i64 2
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %52, ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %55, ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(24) %59, i1 noundef zeroext %61, i1 noundef zeroext %63, i1 noundef zeroext %65, ptr noundef nonnull align 8 dereferenceable(72) %67)
  %68 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %69 = load ptr, ptr %68, align 8, !tbaa !9
  %70 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %71 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %72 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %73 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %74 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %75 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %76 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %77 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 3), align 1, !tbaa !13, !range !14, !noundef !15
  %78 = trunc i8 %77 to i1
  %79 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 3), align 1, !tbaa !13, !range !14, !noundef !15
  %80 = trunc i8 %79 to i1
  %81 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 3), align 1, !tbaa !13, !range !14, !noundef !15
  %82 = trunc i8 %81 to i1
  %83 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %84 = getelementptr inbounds [8 x %struct.Vec], ptr %83, i64 0, i64 3
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 8 dereferenceable(24) %70, ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 8 dereferenceable(24) %76, i1 noundef zeroext %78, i1 noundef zeroext %80, i1 noundef zeroext %82, ptr noundef nonnull align 8 dereferenceable(72) %84)
  %85 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %88 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %89 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %90 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %91 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %92 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %93 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %94 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 4), align 1, !tbaa !13, !range !14, !noundef !15
  %95 = trunc i8 %94 to i1
  %96 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 4), align 1, !tbaa !13, !range !14, !noundef !15
  %97 = trunc i8 %96 to i1
  %98 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 4), align 1, !tbaa !13, !range !14, !noundef !15
  %99 = trunc i8 %98 to i1
  %100 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %101 = getelementptr inbounds [8 x %struct.Vec], ptr %100, i64 0, i64 4
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 8 dereferenceable(24) %89, ptr noundef nonnull align 8 dereferenceable(24) %90, ptr noundef nonnull align 8 dereferenceable(24) %91, ptr noundef nonnull align 8 dereferenceable(24) %92, ptr noundef nonnull align 8 dereferenceable(24) %93, i1 noundef zeroext %95, i1 noundef zeroext %97, i1 noundef zeroext %99, ptr noundef nonnull align 8 dereferenceable(72) %101)
  %102 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %105 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %106 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %107 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %108 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %109 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %110 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %111 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 5), align 1, !tbaa !13, !range !14, !noundef !15
  %112 = trunc i8 %111 to i1
  %113 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 5), align 1, !tbaa !13, !range !14, !noundef !15
  %114 = trunc i8 %113 to i1
  %115 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 5), align 1, !tbaa !13, !range !14, !noundef !15
  %116 = trunc i8 %115 to i1
  %117 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %118 = getelementptr inbounds [8 x %struct.Vec], ptr %117, i64 0, i64 5
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 8 dereferenceable(24) %104, ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 8 dereferenceable(24) %106, ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 8 dereferenceable(24) %108, ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 8 dereferenceable(24) %110, i1 noundef zeroext %112, i1 noundef zeroext %114, i1 noundef zeroext %116, ptr noundef nonnull align 8 dereferenceable(72) %118)
  %119 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !9
  %121 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %122 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %123 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %124 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %125 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %126 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %127 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %128 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 6), align 1, !tbaa !13, !range !14, !noundef !15
  %129 = trunc i8 %128 to i1
  %130 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 6), align 1, !tbaa !13, !range !14, !noundef !15
  %131 = trunc i8 %130 to i1
  %132 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 6), align 1, !tbaa !13, !range !14, !noundef !15
  %133 = trunc i8 %132 to i1
  %134 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %135 = getelementptr inbounds [8 x %struct.Vec], ptr %134, i64 0, i64 6
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %120, ptr noundef nonnull align 8 dereferenceable(24) %121, ptr noundef nonnull align 8 dereferenceable(24) %122, ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef nonnull align 8 dereferenceable(24) %124, ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(24) %126, ptr noundef nonnull align 8 dereferenceable(24) %127, i1 noundef zeroext %129, i1 noundef zeroext %131, i1 noundef zeroext %133, ptr noundef nonnull align 8 dereferenceable(72) %135)
  %136 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !9
  %138 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 1
  %139 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 2
  %140 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 3
  %141 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 4
  %142 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 5
  %143 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 6
  %144 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 7
  %145 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 0, i64 7), align 1, !tbaa !13, !range !14, !noundef !15
  %146 = trunc i8 %145 to i1
  %147 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 0, i64 7), align 1, !tbaa !13, !range !14, !noundef !15
  %148 = trunc i8 %147 to i1
  %149 = load i8, ptr getelementptr inbounds ([8 x i8], ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 0, i64 7), align 1, !tbaa !13, !range !14, !noundef !15
  %150 = trunc i8 %149 to i1
  %151 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %152 = getelementptr inbounds [8 x %struct.Vec], ptr %151, i64 0, i64 7
  call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 8 dereferenceable(24) %139, ptr noundef nonnull align 8 dereferenceable(24) %140, ptr noundef nonnull align 8 dereferenceable(24) %141, ptr noundef nonnull align 8 dereferenceable(24) %142, ptr noundef nonnull align 8 dereferenceable(24) %143, ptr noundef nonnull align 8 dereferenceable(24) %144, i1 noundef zeroext %146, i1 noundef zeroext %148, i1 noundef zeroext %150, ptr noundef nonnull align 8 dereferenceable(72) %152)
  call void @llvm.lifetime.start.p0(i64 1, ptr %3) #6
  %153 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19fixed_plane_cullingEj(ptr noundef nonnull align 8 dereferenceable(1560) %16, i32 noundef 8)
  %154 = zext i1 %153 to i8
  store i8 %154, ptr %3, align 1, !tbaa !13
  call void @_ZN8Interval22end_special_arithmeticEv()
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #6
  store i8 0, ptr %4, align 1, !tbaa !13
  %155 = load i8, ptr %3, align 1, !tbaa !13, !range !14, !noundef !15
  %156 = trunc i8 %155 to i1
  br i1 %156, label %160, label %157

157:                                              ; preds = %1
  %158 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest32edge_edge_interval_plane_cullingEv(ptr noundef nonnull align 8 dereferenceable(1560) %16)
  %159 = zext i1 %158 to i8
  store i8 %159, ptr %4, align 1, !tbaa !13
  br label %160

160:                                              ; preds = %157, %1
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #6
  store i8 0, ptr %5, align 1, !tbaa !13
  %161 = load i8, ptr %3, align 1, !tbaa !13, !range !14, !noundef !15
  %162 = trunc i8 %161 to i1
  br i1 %162, label %258, label %163

163:                                              ; preds = %160
  %164 = load i8, ptr %4, align 1, !tbaa !13, !range !14, !noundef !15
  %165 = trunc i8 %164 to i1
  br i1 %165, label %258, label %166

166:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #6
  call void @_ZN3VecILj3EdEC2Ed(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef 1.000000e+30)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #6
  call void @_ZN3VecILj3EdEC2Ed(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef -1.000000e+30)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !16
  br label %167

167:                                              ; preds = %244, %166
  %168 = load i32, ptr %8, align 4, !tbaa !16
  %169 = icmp ult i32 %168, 8
  br i1 %169, label %171, label %170

170:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %247

171:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %172 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %173 = load i32, ptr %8, align 4, !tbaa !16
  %174 = zext i32 %173 to i64
  %175 = getelementptr inbounds [8 x %struct.Vec], ptr %172, i64 0, i64 %174
  %176 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %175, i32 noundef 0)
  %177 = load ptr, ptr %176, align 8, !tbaa !18
  %178 = getelementptr inbounds ptr, ptr %177, i64 4
  %179 = load ptr, ptr %178, align 8
  %180 = call { double, double } %179(ptr noundef nonnull align 8 dereferenceable(8) %176)
  %181 = getelementptr inbounds %struct.Vec.29, ptr %9, i32 0, i32 0
  %182 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 0
  %183 = extractvalue { double, double } %180, 0
  store double %183, ptr %182, align 8
  %184 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 1
  %185 = extractvalue { double, double } %180, 1
  store double %185, ptr %184, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  %186 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %187 = load i32, ptr %8, align 4, !tbaa !16
  %188 = zext i32 %187 to i64
  %189 = getelementptr inbounds [8 x %struct.Vec], ptr %186, i64 0, i64 %188
  %190 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %189, i32 noundef 1)
  %191 = load ptr, ptr %190, align 8, !tbaa !18
  %192 = getelementptr inbounds ptr, ptr %191, i64 4
  %193 = load ptr, ptr %192, align 8
  %194 = call { double, double } %193(ptr noundef nonnull align 8 dereferenceable(8) %190)
  %195 = getelementptr inbounds %struct.Vec.29, ptr %10, i32 0, i32 0
  %196 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 0
  %197 = extractvalue { double, double } %194, 0
  store double %197, ptr %196, align 8
  %198 = getelementptr inbounds { double, double }, ptr %195, i32 0, i32 1
  %199 = extractvalue { double, double } %194, 1
  store double %199, ptr %198, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %200 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 10
  %201 = load i32, ptr %8, align 4, !tbaa !16
  %202 = zext i32 %201 to i64
  %203 = getelementptr inbounds [8 x %struct.Vec], ptr %200, i64 0, i64 %202
  %204 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %203, i32 noundef 2)
  %205 = load ptr, ptr %204, align 8, !tbaa !18
  %206 = getelementptr inbounds ptr, ptr %205, i64 4
  %207 = load ptr, ptr %206, align 8
  %208 = call { double, double } %207(ptr noundef nonnull align 8 dereferenceable(8) %204)
  %209 = getelementptr inbounds %struct.Vec.29, ptr %11, i32 0, i32 0
  %210 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 0
  %211 = extractvalue { double, double } %208, 0
  store double %211, ptr %210, align 8
  %212 = getelementptr inbounds { double, double }, ptr %209, i32 0, i32 1
  %213 = extractvalue { double, double } %208, 1
  store double %213, ptr %212, align 8
  %214 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  %215 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 0)
  %216 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef nonnull align 8 dereferenceable(8) %215)
  %217 = load double, ptr %216, align 8, !tbaa !20
  %218 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 0)
  store double %217, ptr %218, align 8, !tbaa !20
  %219 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  %220 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 0)
  %221 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %219, ptr noundef nonnull align 8 dereferenceable(8) %220)
  %222 = load double, ptr %221, align 8, !tbaa !20
  %223 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 1)
  store double %222, ptr %223, align 8, !tbaa !20
  %224 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  %225 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 0)
  %226 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %224, ptr noundef nonnull align 8 dereferenceable(8) %225)
  %227 = load double, ptr %226, align 8, !tbaa !20
  %228 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %6, i32 noundef 2)
  store double %227, ptr %228, align 8, !tbaa !20
  %229 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  %230 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 1)
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %229, ptr noundef nonnull align 8 dereferenceable(8) %230)
  %232 = load double, ptr %231, align 8, !tbaa !20
  %233 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 0)
  store double %232, ptr %233, align 8, !tbaa !20
  %234 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  %235 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 1)
  %236 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %234, ptr noundef nonnull align 8 dereferenceable(8) %235)
  %237 = load double, ptr %236, align 8, !tbaa !20
  %238 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 1)
  store double %237, ptr %238, align 8, !tbaa !20
  %239 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  %240 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %11, i32 noundef 1)
  %241 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %239, ptr noundef nonnull align 8 dereferenceable(8) %240)
  %242 = load double, ptr %241, align 8, !tbaa !20
  %243 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %7, i32 noundef 2)
  store double %242, ptr %243, align 8, !tbaa !20
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  br label %244

244:                                              ; preds = %171
  %245 = load i32, ptr %8, align 4, !tbaa !16
  %246 = add i32 %245, 1
  store i32 %246, ptr %8, align 4, !tbaa !16
  br label %167, !llvm.loop !22

247:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %248 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %6)
  store double %248, ptr %13, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %249 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %7)
  store double %249, ptr %14, align 8, !tbaa !20
  %250 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %251 = load double, ptr %250, align 8, !tbaa !20
  %252 = fadd double %251, 1.000000e+01
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  store double %252, ptr %12, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %253 = load double, ptr %12, align 8, !tbaa !20
  %254 = load double, ptr %12, align 8, !tbaa !20
  call void @_ZN3VecILj3EdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %15, double noundef %253, double noundef %254, double noundef 0.000000e+00)
  %255 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %16, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %255, ptr align 8 %15, i64 24, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  %256 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv(ptr noundef nonnull align 8 dereferenceable(1560) %16)
  %257 = zext i1 %256 to i8
  store i8 %257, ptr %5, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #6
  br label %258

258:                                              ; preds = %247, %163, %160
  %259 = load i8, ptr %5, align 1, !tbaa !13, !range !14, !noundef !15
  %260 = trunc i8 %259 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %3) #6
  ret i1 %260
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(72)) #5

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #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 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN10rootparity23RootParityCollisionTestE", !6, i64 0, !11, i64 8, !11, i64 32, !11, i64 56, !11, i64 80, !11, i64 104, !11, i64 128, !11, i64 152, !12, i64 176, !11, i64 184, !7, i64 208, !7, i64 784, !7, i64 1552}
!11 = !{!"_ZTS3VecILj3EdE", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{i8 0, i8 2}
!15 = !{}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"vtable pointer", !8, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"double", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{i64 0, i64 24, !25}
!25 = !{!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"

%struct.Vec.0 = type { [3 x double] }
%struct.Vec.29 = type { [2 x double] }
%struct.Vec = type { [3 x %class.Interval] }
%class.Interval = type { %class.IntervalBase, [2 x double] }
%class.IntervalBase = type { ptr }

@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts = external hidden local_unnamed_addr constant [8 x i8], align 1
@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us = external hidden local_unnamed_addr constant [8 x i8], align 1
@_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs = external hidden local_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

; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local 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 @_ZN3VecILj3EdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #3 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 #3 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8Interval24begin_special_arithmeticEv() local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN8Interval22end_special_arithmeticEv() local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest32edge_edge_interval_plane_cullingEv(ptr noundef nonnull align 8 dereferenceable(1560)) local_unnamed_addr #2 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 #3 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19edge_edge_collisionEv(ptr noundef nonnull align 8 dereferenceable(1560) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %struct.Vec.0, align 8
  %3 = alloca %struct.Vec.0, align 8
  %4 = alloca %struct.Vec.29, align 8
  %5 = alloca %struct.Vec.29, align 8
  %6 = alloca %struct.Vec.29, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca %struct.Vec.0, align 8
  tail call void @_ZN8Interval24begin_special_arithmeticEv()
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 8
  %12 = getelementptr inbounds i8, ptr %0, i64 32
  %13 = getelementptr inbounds i8, ptr %0, i64 56
  %14 = getelementptr inbounds i8, ptr %0, i64 80
  %15 = getelementptr inbounds i8, ptr %0, i64 104
  %16 = getelementptr inbounds i8, ptr %0, i64 128
  %17 = getelementptr inbounds i8, ptr %0, i64 152
  %18 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, align 1, !tbaa !12, !range !13, !noundef !14
  %19 = trunc nuw i8 %18 to i1
  %20 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, align 1, !tbaa !12, !range !13, !noundef !14
  %21 = trunc nuw i8 %20 to i1
  %22 = load i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, align 1, !tbaa !12, !range !13, !noundef !14
  %23 = trunc nuw i8 %22 to i1
  %24 = getelementptr inbounds i8, ptr %0, i64 208
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %19, i1 noundef zeroext %21, i1 noundef zeroext %23, ptr noundef nonnull align 8 dereferenceable(72) %24)
  %25 = load ptr, ptr %0, align 8, !tbaa !5
  %26 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 1), align 1, !tbaa !12, !range !13, !noundef !14
  %27 = trunc nuw i8 %26 to i1
  %28 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 1), align 1, !tbaa !12, !range !13, !noundef !14
  %29 = trunc nuw i8 %28 to i1
  %30 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 1), align 1, !tbaa !12, !range !13, !noundef !14
  %31 = trunc nuw i8 %30 to i1
  %32 = getelementptr inbounds i8, ptr %0, i64 280
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %27, i1 noundef zeroext %29, i1 noundef zeroext %31, ptr noundef nonnull align 8 dereferenceable(72) %32)
  %33 = load ptr, ptr %0, align 8, !tbaa !5
  %34 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 2), align 1, !tbaa !12, !range !13, !noundef !14
  %35 = trunc nuw i8 %34 to i1
  %36 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 2), align 1, !tbaa !12, !range !13, !noundef !14
  %37 = trunc nuw i8 %36 to i1
  %38 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 2), align 1, !tbaa !12, !range !13, !noundef !14
  %39 = trunc nuw i8 %38 to i1
  %40 = getelementptr inbounds i8, ptr %0, i64 352
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %35, i1 noundef zeroext %37, i1 noundef zeroext %39, ptr noundef nonnull align 8 dereferenceable(72) %40)
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 3), align 1, !tbaa !12, !range !13, !noundef !14
  %43 = trunc nuw i8 %42 to i1
  %44 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 3), align 1, !tbaa !12, !range !13, !noundef !14
  %45 = trunc nuw i8 %44 to i1
  %46 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 3), align 1, !tbaa !12, !range !13, !noundef !14
  %47 = trunc nuw i8 %46 to i1
  %48 = getelementptr inbounds i8, ptr %0, i64 424
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %41, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %43, i1 noundef zeroext %45, i1 noundef zeroext %47, ptr noundef nonnull align 8 dereferenceable(72) %48)
  %49 = load ptr, ptr %0, align 8, !tbaa !5
  %50 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 4), align 1, !tbaa !12, !range !13, !noundef !14
  %51 = trunc nuw i8 %50 to i1
  %52 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 4), align 1, !tbaa !12, !range !13, !noundef !14
  %53 = trunc nuw i8 %52 to i1
  %54 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 4), align 1, !tbaa !12, !range !13, !noundef !14
  %55 = trunc nuw i8 %54 to i1
  %56 = getelementptr inbounds i8, ptr %0, i64 496
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %51, i1 noundef zeroext %53, i1 noundef zeroext %55, ptr noundef nonnull align 8 dereferenceable(72) %56)
  %57 = load ptr, ptr %0, align 8, !tbaa !5
  %58 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 5), align 1, !tbaa !12, !range !13, !noundef !14
  %59 = trunc nuw i8 %58 to i1
  %60 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 5), align 1, !tbaa !12, !range !13, !noundef !14
  %61 = trunc nuw i8 %60 to i1
  %62 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 5), align 1, !tbaa !12, !range !13, !noundef !14
  %63 = trunc nuw i8 %62 to i1
  %64 = getelementptr inbounds i8, ptr %0, i64 568
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %59, i1 noundef zeroext %61, i1 noundef zeroext %63, ptr noundef nonnull align 8 dereferenceable(72) %64)
  %65 = load ptr, ptr %0, align 8, !tbaa !5
  %66 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 6), align 1, !tbaa !12, !range !13, !noundef !14
  %67 = trunc nuw i8 %66 to i1
  %68 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 6), align 1, !tbaa !12, !range !13, !noundef !14
  %69 = trunc nuw i8 %68 to i1
  %70 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 6), align 1, !tbaa !12, !range !13, !noundef !14
  %71 = trunc nuw i8 %70 to i1
  %72 = getelementptr inbounds i8, ptr %0, i64 640
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %67, i1 noundef zeroext %69, i1 noundef zeroext %71, ptr noundef nonnull align 8 dereferenceable(72) %72)
  %73 = load ptr, ptr %0, align 8, !tbaa !5
  %74 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_ts, i64 7), align 1, !tbaa !12, !range !13, !noundef !14
  %75 = trunc nuw i8 %74 to i1
  %76 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_us, i64 7), align 1, !tbaa !12, !range !13, !noundef !14
  %77 = trunc nuw i8 %76 to i1
  %78 = load i8, ptr getelementptr inbounds (i8, ptr @_ZZN10rootparity23RootParityCollisionTest19edge_edge_collisionEvE9vertex_vs, i64 7), align 1, !tbaa !12, !range !13, !noundef !14
  %79 = trunc nuw i8 %78 to i1
  %80 = getelementptr inbounds i8, ptr %0, i64 712
  tail call void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %17, i1 noundef zeroext %75, i1 noundef zeroext %77, i1 noundef zeroext %79, ptr noundef nonnull align 8 dereferenceable(72) %80)
  %81 = tail call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19fixed_plane_cullingEj(ptr noundef nonnull align 8 dereferenceable(1560) %0, i32 noundef 8)
  tail call void @_ZN8Interval22end_special_arithmeticEv()
  br i1 %81, label %.thread, label %82

82:                                               ; preds = %1
  %83 = tail call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest32edge_edge_interval_plane_cullingEv(ptr noundef nonnull align 8 dereferenceable(1560) %0)
  br i1 %83, label %.thread, label %84

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @_ZN3VecILj3EdEC2Ed(ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef 1.000000e+30)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @_ZN3VecILj3EdEC2Ed(ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef -1.000000e+30)
  %85 = getelementptr inbounds i8, ptr %4, i64 8
  %86 = getelementptr inbounds i8, ptr %5, i64 8
  %87 = getelementptr inbounds i8, ptr %6, i64 8
  br label %96

88:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %89 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %2)
  store double %89, ptr %7, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %90 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %3)
  store double %90, ptr %8, align 8, !tbaa !15
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %92 = load double, ptr %91, align 8, !tbaa !15
  %93 = fadd double %92, 1.000000e+01
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN3VecILj3EdEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %93, double noundef %93, double noundef 0.000000e+00)
  %94 = getelementptr inbounds i8, ptr %0, i64 184
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 8 dereferenceable(24) %9, i64 24, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  %95 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19ray_hex_parity_testEv(ptr noundef nonnull align 8 dereferenceable(1560) %0)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  br label %.thread

96:                                               ; preds = %84, %96
  %indvars.iv = phi i64 [ 0, %84 ], [ %indvars.iv.next, %96 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %97 = getelementptr inbounds [8 x %struct.Vec], ptr %24, i64 0, i64 %indvars.iv
  %98 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %97, i32 noundef 0)
  %99 = load ptr, ptr %98, align 8, !tbaa !19
  %100 = getelementptr inbounds i8, ptr %99, i64 32
  %101 = load ptr, ptr %100, align 8
  %102 = call { double, double } %101(ptr noundef nonnull align 8 dereferenceable(8) %98)
  %103 = extractvalue { double, double } %102, 0
  store double %103, ptr %4, align 8
  %104 = extractvalue { double, double } %102, 1
  store double %104, ptr %85, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %105 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %97, i32 noundef 1)
  %106 = load ptr, ptr %105, align 8, !tbaa !19
  %107 = getelementptr inbounds i8, ptr %106, i64 32
  %108 = load ptr, ptr %107, align 8
  %109 = call { double, double } %108(ptr noundef nonnull align 8 dereferenceable(8) %105)
  %110 = extractvalue { double, double } %109, 0
  store double %110, ptr %5, align 8
  %111 = extractvalue { double, double } %109, 1
  store double %111, ptr %86, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %112 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3VecILj3E8IntervalEixEi(ptr noundef nonnull align 8 dereferenceable(72) %97, i32 noundef 2)
  %113 = load ptr, ptr %112, align 8, !tbaa !19
  %114 = getelementptr inbounds i8, ptr %113, i64 32
  %115 = load ptr, ptr %114, align 8
  %116 = call { double, double } %115(ptr noundef nonnull align 8 dereferenceable(8) %112)
  %117 = extractvalue { double, double } %116, 0
  store double %117, ptr %6, align 8
  %118 = extractvalue { double, double } %116, 1
  store double %118, ptr %87, align 8
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef 0)
  %121 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef nonnull align 8 dereferenceable(8) %120)
  %122 = load double, ptr %121, align 8, !tbaa !15
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 0)
  store double %122, ptr %123, align 8, !tbaa !15
  %124 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1)
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 0)
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %124, ptr noundef nonnull align 8 dereferenceable(8) %125)
  %127 = load double, ptr %126, align 8, !tbaa !15
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 1)
  store double %127, ptr %128, align 8, !tbaa !15
  %129 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2)
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 0)
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %129, ptr noundef nonnull align 8 dereferenceable(8) %130)
  %132 = load double, ptr %131, align 8, !tbaa !15
  %133 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef 2)
  store double %132, ptr %133, align 8, !tbaa !15
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  %135 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef 1)
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %134, ptr noundef nonnull align 8 dereferenceable(8) %135)
  %137 = load double, ptr %136, align 8, !tbaa !15
  %138 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 0)
  store double %137, ptr %138, align 8, !tbaa !15
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 1)
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %139, ptr noundef nonnull align 8 dereferenceable(8) %140)
  %142 = load double, ptr %141, align 8, !tbaa !15
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 1)
  store double %142, ptr %143, align 8, !tbaa !15
  %144 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  %145 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16) %6, i32 noundef 1)
  %146 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %144, ptr noundef nonnull align 8 dereferenceable(8) %145)
  %147 = load double, ptr %146, align 8, !tbaa !15
  %148 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj3EdEixEi(ptr noundef nonnull align 8 dereferenceable(24) %3, i32 noundef 2)
  store double %147, ptr %148, align 8, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 8
  br i1 %exitcond.not, label %88, label %96, !llvm.loop !21

.thread:                                          ; preds = %1, %82, %88
  %.012 = phi i1 [ false, %82 ], [ %95, %88 ], [ false, %1 ]
  ret i1 %.012
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZN10rootparity12_GLOBAL__N_128edge_edge_collision_functionERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bbbRS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), i1 noundef zeroext, i1 noundef zeroext, i1 noundef zeroext, ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3VecILj2EdEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #3 align 2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint 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 #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 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN10rootparity23RootParityCollisionTestE", !7, i64 0, !10, i64 8, !10, i64 32, !10, i64 56, !10, i64 80, !10, i64 104, !10, i64 128, !10, i64 152, !11, i64 176, !10, i64 184, !8, i64 208, !8, i64 784, !8, i64 1552}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS3VecILj3EdE", !8, i64 0}
!11 = !{!"bool", !8, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{i8 0, i8 2}
!14 = !{}
!15 = !{!16, !16, i64 0}
!16 = !{!"double", !8, i64 0}
!17 = !{i64 0, i64 24, !18}
!18 = !{!8, !8, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"vtable pointer", !9, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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