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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest30point_tetrahedron_intersectionERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(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)) #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10rootparity23RootParityCollisionTest30implicit_surface_function_signERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(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)) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local 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) %1, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull align 1 dereferenceable(1) %8) #0 align 2 {
  %10 = alloca i1, align 1
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i8, align 1
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i8, align 1
  %24 = alloca i8, align 1
  %25 = alloca [5 x double], align 16
  %26 = alloca %struct.Vec.4, align 4
  %27 = alloca %struct.Vec.5, align 1
  %28 = alloca %struct.Vec.5, align 1
  %29 = alloca %struct.Vec.5, align 1
  %30 = alloca [5 x double], align 16
  %31 = alloca %struct.Vec.4, align 4
  %32 = alloca %struct.Vec.5, align 1
  %33 = alloca %struct.Vec.5, align 1
  %34 = alloca %struct.Vec.5, align 1
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store ptr %4, ptr %15, align 8, !tbaa !5
  store ptr %5, ptr %16, align 8, !tbaa !5
  store ptr %6, ptr %17, align 8, !tbaa !5
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  %35 = load ptr, ptr %11, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #4
  %36 = load ptr, ptr %12, align 8, !tbaa !5
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = load ptr, ptr %14, align 8, !tbaa !5
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  %41 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest30point_tetrahedron_intersectionERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(ptr noundef nonnull align 8 dereferenceable(1560) %35, ptr noundef nonnull align 4 dereferenceable(16) %36, ptr noundef nonnull align 1 dereferenceable(4) %37, ptr noundef nonnull align 1 dereferenceable(4) %38, ptr noundef nonnull align 1 dereferenceable(4) %39, ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = zext i1 %41 to i8
  store i8 %42, ptr %20, align 1, !tbaa !9
  %43 = load i8, ptr %20, align 1, !tbaa !9, !range !11, !noundef !12
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %100

45:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %46 = load ptr, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = load ptr, ptr %14, align 8, !tbaa !5
  %49 = load ptr, ptr %15, align 8, !tbaa !5
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = call noundef i32 @_ZN10rootparity23RootParityCollisionTest30implicit_surface_function_signERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(ptr noundef nonnull align 8 dereferenceable(1560) %35, ptr noundef nonnull align 4 dereferenceable(16) %46, ptr noundef nonnull align 1 dereferenceable(4) %47, ptr noundef nonnull align 1 dereferenceable(4) %48, ptr noundef nonnull align 1 dereferenceable(4) %49, ptr noundef nonnull align 8 dereferenceable(24) %50)
  store i32 %51, ptr %21, align 4, !tbaa !13
  %52 = load i32, ptr %21, align 4, !tbaa !13
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %54, label %56

54:                                               ; preds = %45
  %55 = load ptr, ptr %19, align 8, !tbaa !5
  store i8 1, ptr %55, align 1, !tbaa !9
  store i1 false, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %99

56:                                               ; preds = %45
  %57 = load i32, ptr %21, align 4, !tbaa !13
  %58 = icmp sgt i32 %57, 0
  br i1 %58, label %59, label %79

59:                                               ; preds = %56
  %60 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !15
  %62 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 1
  %63 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 2
  %64 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 3
  %65 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 4
  %66 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 5
  %67 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 6
  %68 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 7
  %69 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 8
  %70 = load i8, ptr %69, align 8, !tbaa !18, !range !11, !noundef !12
  %71 = trunc i8 %70 to i1
  %72 = load ptr, ptr %13, align 8, !tbaa !5
  %73 = load ptr, ptr %14, align 8, !tbaa !5
  %74 = load ptr, ptr %15, align 8, !tbaa !5
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = call noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(ptr noundef nonnull align 8 dereferenceable(24) %61, ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(24) %65, ptr noundef nonnull align 8 dereferenceable(24) %66, ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 8 dereferenceable(24) %68, i1 noundef zeroext %71, ptr noundef nonnull align 1 dereferenceable(4) %72, ptr noundef nonnull align 1 dereferenceable(4) %73, ptr noundef nonnull align 1 dereferenceable(4) %74, ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 8 dereferenceable(24) %76, i1 noundef zeroext false, ptr noundef nonnull align 1 dereferenceable(1) %77)
  store i1 %78, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %99

79:                                               ; preds = %56
  %80 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 0
  %81 = load ptr, ptr %80, align 8, !tbaa !15
  %82 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 1
  %83 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 2
  %84 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 3
  %85 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 4
  %86 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 5
  %87 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 6
  %88 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 7
  %89 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %35, i32 0, i32 8
  %90 = load i8, ptr %89, align 8, !tbaa !18, !range !11, !noundef !12
  %91 = trunc i8 %90 to i1
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = load ptr, ptr %15, align 8, !tbaa !5
  %95 = load ptr, ptr %16, align 8, !tbaa !5
  %96 = load ptr, ptr %17, align 8, !tbaa !5
  %97 = load ptr, ptr %18, align 8, !tbaa !5
  %98 = call noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 8 dereferenceable(24) %82, ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(24) %84, ptr noundef nonnull align 8 dereferenceable(24) %85, ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 8 dereferenceable(24) %88, i1 noundef zeroext %91, ptr noundef nonnull align 1 dereferenceable(4) %92, ptr noundef nonnull align 1 dereferenceable(4) %93, ptr noundef nonnull align 1 dereferenceable(4) %94, ptr noundef nonnull align 8 dereferenceable(24) %95, ptr noundef nonnull align 8 dereferenceable(24) %96, i1 noundef zeroext true, ptr noundef nonnull align 1 dereferenceable(1) %97)
  store i1 %98, ptr %10, align 1
  store i32 1, ptr %22, align 4
  br label %99

99:                                               ; preds = %79, %59, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  br label %275

100:                                              ; preds = %9
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %25) #4
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 40, i1 false)
  %101 = getelementptr inbounds [5 x double], ptr %25, i32 0, i32 0
  store double 5.000000e-01, ptr %101, align 16
  %102 = getelementptr inbounds [5 x double], ptr %25, i32 0, i32 1
  store double 5.000000e-01, ptr %102, align 8
  %103 = getelementptr inbounds [5 x double], ptr %25, i32 0, i32 2
  store double 5.000000e-01, ptr %103, align 16
  %104 = getelementptr inbounds [5 x double], ptr %25, i32 0, i32 3
  store double 5.000000e-01, ptr %104, align 8
  %105 = getelementptr inbounds [5 x double], ptr %25, i32 0, i32 4
  store double 5.000000e-01, ptr %105, align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #4
  %106 = load ptr, ptr %12, align 8, !tbaa !5
  %107 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %106, i32 noundef 0)
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %109, i32 noundef 1)
  %111 = load i32, ptr %110, align 4, !tbaa !13
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %112, i32 noundef 3)
  %114 = load i32, ptr %113, align 4, !tbaa !13
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %26, i32 noundef %108, i32 noundef %111, i32 noundef %114)
  call void @llvm.lifetime.start.p0(i64 3, ptr %27) #4
  %115 = load ptr, ptr %13, align 8, !tbaa !5
  %116 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %115, i32 noundef 0)
  %117 = load i8, ptr %116, align 1, !tbaa !9, !range !11, !noundef !12
  %118 = trunc i8 %117 to i1
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %119, i32 noundef 1)
  %121 = load i8, ptr %120, align 1, !tbaa !9, !range !11, !noundef !12
  %122 = trunc i8 %121 to i1
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %123, i32 noundef 3)
  %125 = load i8, ptr %124, align 1, !tbaa !9, !range !11, !noundef !12
  %126 = trunc i8 %125 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %27, i1 noundef zeroext %118, i1 noundef zeroext %122, i1 noundef zeroext %126)
  call void @llvm.lifetime.start.p0(i64 3, ptr %28) #4
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %127, i32 noundef 0)
  %129 = load i8, ptr %128, align 1, !tbaa !9, !range !11, !noundef !12
  %130 = trunc i8 %129 to i1
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %131, i32 noundef 1)
  %133 = load i8, ptr %132, align 1, !tbaa !9, !range !11, !noundef !12
  %134 = trunc i8 %133 to i1
  %135 = load ptr, ptr %14, align 8, !tbaa !5
  %136 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %135, i32 noundef 3)
  %137 = load i8, ptr %136, align 1, !tbaa !9, !range !11, !noundef !12
  %138 = trunc i8 %137 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %28, i1 noundef zeroext %130, i1 noundef zeroext %134, i1 noundef zeroext %138)
  call void @llvm.lifetime.start.p0(i64 3, ptr %29) #4
  %139 = load ptr, ptr %15, align 8, !tbaa !5
  %140 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %139, i32 noundef 0)
  %141 = load i8, ptr %140, align 1, !tbaa !9, !range !11, !noundef !12
  %142 = trunc i8 %141 to i1
  %143 = load ptr, ptr %15, align 8, !tbaa !5
  %144 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %143, i32 noundef 1)
  %145 = load i8, ptr %144, align 1, !tbaa !9, !range !11, !noundef !12
  %146 = trunc i8 %145 to i1
  %147 = load ptr, ptr %15, align 8, !tbaa !5
  %148 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %147, i32 noundef 3)
  %149 = load i8, ptr %148, align 1, !tbaa !9, !range !11, !noundef !12
  %150 = trunc i8 %149 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %29, i1 noundef zeroext %142, i1 noundef zeroext %146, i1 noundef zeroext %150)
  %151 = load ptr, ptr %16, align 8, !tbaa !5
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 0
  %154 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest26edge_triangle_intersectionERK3VecILj3EjERKS1_ILj3EbES7_S7_RKS1_ILj3EdESA_Pd(ptr noundef nonnull align 8 dereferenceable(1560) %35, ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 1 dereferenceable(3) %27, ptr noundef nonnull align 1 dereferenceable(3) %28, ptr noundef nonnull align 1 dereferenceable(3) %29, ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 8 dereferenceable(24) %152, ptr noundef %153)
  %155 = zext i1 %154 to i8
  store i8 %155, ptr %23, align 1, !tbaa !9
  %156 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 2
  %157 = load double, ptr %156, align 16, !tbaa !19
  %158 = fcmp oeq double %157, 0.000000e+00
  br i1 %158, label %167, label %159

159:                                              ; preds = %100
  %160 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 3
  %161 = load double, ptr %160, align 8, !tbaa !19
  %162 = fcmp oeq double %161, 0.000000e+00
  br i1 %162, label %167, label %163

163:                                              ; preds = %159
  %164 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 4
  %165 = load double, ptr %164, align 16, !tbaa !19
  %166 = fcmp oeq double %165, 0.000000e+00
  br i1 %166, label %167, label %169

167:                                              ; preds = %163, %159, %100
  %168 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %168, align 1, !tbaa !9
  br label %169

169:                                              ; preds = %167, %163
  %170 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 2
  %171 = load double, ptr %170, align 16, !tbaa !19
  %172 = fcmp oeq double %171, 1.000000e+00
  br i1 %172, label %181, label %173

173:                                              ; preds = %169
  %174 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 3
  %175 = load double, ptr %174, align 8, !tbaa !19
  %176 = fcmp oeq double %175, 1.000000e+00
  br i1 %176, label %181, label %177

177:                                              ; preds = %173
  %178 = getelementptr inbounds [5 x double], ptr %25, i64 0, i64 4
  %179 = load double, ptr %178, align 16, !tbaa !19
  %180 = fcmp oeq double %179, 1.000000e+00
  br i1 %180, label %181, label %183

181:                                              ; preds = %177, %173, %169
  %182 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %182, align 1, !tbaa !9
  br label %183

183:                                              ; preds = %181, %177
  call void @llvm.lifetime.end.p0(i64 3, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 40, ptr %30) #4
  call void @llvm.memset.p0.i64(ptr align 16 %30, i8 0, i64 40, i1 false)
  %184 = getelementptr inbounds [5 x double], ptr %30, i32 0, i32 0
  store double 5.000000e-01, ptr %184, align 16
  %185 = getelementptr inbounds [5 x double], ptr %30, i32 0, i32 1
  store double 5.000000e-01, ptr %185, align 8
  %186 = getelementptr inbounds [5 x double], ptr %30, i32 0, i32 2
  store double 5.000000e-01, ptr %186, align 16
  %187 = getelementptr inbounds [5 x double], ptr %30, i32 0, i32 3
  store double 5.000000e-01, ptr %187, align 8
  %188 = getelementptr inbounds [5 x double], ptr %30, i32 0, i32 4
  store double 5.000000e-01, ptr %188, align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #4
  %189 = load ptr, ptr %12, align 8, !tbaa !5
  %190 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %189, i32 noundef 0)
  %191 = load i32, ptr %190, align 4, !tbaa !13
  %192 = load ptr, ptr %12, align 8, !tbaa !5
  %193 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %192, i32 noundef 3)
  %194 = load i32, ptr %193, align 4, !tbaa !13
  %195 = load ptr, ptr %12, align 8, !tbaa !5
  %196 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %195, i32 noundef 2)
  %197 = load i32, ptr %196, align 4, !tbaa !13
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %31, i32 noundef %191, i32 noundef %194, i32 noundef %197)
  call void @llvm.lifetime.start.p0(i64 3, ptr %32) #4
  %198 = load ptr, ptr %13, align 8, !tbaa !5
  %199 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %198, i32 noundef 0)
  %200 = load i8, ptr %199, align 1, !tbaa !9, !range !11, !noundef !12
  %201 = trunc i8 %200 to i1
  %202 = load ptr, ptr %13, align 8, !tbaa !5
  %203 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %202, i32 noundef 3)
  %204 = load i8, ptr %203, align 1, !tbaa !9, !range !11, !noundef !12
  %205 = trunc i8 %204 to i1
  %206 = load ptr, ptr %13, align 8, !tbaa !5
  %207 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %206, i32 noundef 2)
  %208 = load i8, ptr %207, align 1, !tbaa !9, !range !11, !noundef !12
  %209 = trunc i8 %208 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %32, i1 noundef zeroext %201, i1 noundef zeroext %205, i1 noundef zeroext %209)
  call void @llvm.lifetime.start.p0(i64 3, ptr %33) #4
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %210, i32 noundef 0)
  %212 = load i8, ptr %211, align 1, !tbaa !9, !range !11, !noundef !12
  %213 = trunc i8 %212 to i1
  %214 = load ptr, ptr %14, align 8, !tbaa !5
  %215 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %214, i32 noundef 3)
  %216 = load i8, ptr %215, align 1, !tbaa !9, !range !11, !noundef !12
  %217 = trunc i8 %216 to i1
  %218 = load ptr, ptr %14, align 8, !tbaa !5
  %219 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %218, i32 noundef 2)
  %220 = load i8, ptr %219, align 1, !tbaa !9, !range !11, !noundef !12
  %221 = trunc i8 %220 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %33, i1 noundef zeroext %213, i1 noundef zeroext %217, i1 noundef zeroext %221)
  call void @llvm.lifetime.start.p0(i64 3, ptr %34) #4
  %222 = load ptr, ptr %15, align 8, !tbaa !5
  %223 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %222, i32 noundef 0)
  %224 = load i8, ptr %223, align 1, !tbaa !9, !range !11, !noundef !12
  %225 = trunc i8 %224 to i1
  %226 = load ptr, ptr %15, align 8, !tbaa !5
  %227 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %226, i32 noundef 3)
  %228 = load i8, ptr %227, align 1, !tbaa !9, !range !11, !noundef !12
  %229 = trunc i8 %228 to i1
  %230 = load ptr, ptr %15, align 8, !tbaa !5
  %231 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %230, i32 noundef 2)
  %232 = load i8, ptr %231, align 1, !tbaa !9, !range !11, !noundef !12
  %233 = trunc i8 %232 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %34, i1 noundef zeroext %225, i1 noundef zeroext %229, i1 noundef zeroext %233)
  %234 = load ptr, ptr %16, align 8, !tbaa !5
  %235 = load ptr, ptr %17, align 8, !tbaa !5
  %236 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 0
  %237 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest26edge_triangle_intersectionERK3VecILj3EjERKS1_ILj3EbES7_S7_RKS1_ILj3EdESA_Pd(ptr noundef nonnull align 8 dereferenceable(1560) %35, ptr noundef nonnull align 4 dereferenceable(12) %31, ptr noundef nonnull align 1 dereferenceable(3) %32, ptr noundef nonnull align 1 dereferenceable(3) %33, ptr noundef nonnull align 1 dereferenceable(3) %34, ptr noundef nonnull align 8 dereferenceable(24) %234, ptr noundef nonnull align 8 dereferenceable(24) %235, ptr noundef %236)
  %238 = zext i1 %237 to i8
  store i8 %238, ptr %24, align 1, !tbaa !9
  %239 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 2
  %240 = load double, ptr %239, align 16, !tbaa !19
  %241 = fcmp oeq double %240, 0.000000e+00
  br i1 %241, label %250, label %242

242:                                              ; preds = %183
  %243 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 3
  %244 = load double, ptr %243, align 8, !tbaa !19
  %245 = fcmp oeq double %244, 0.000000e+00
  br i1 %245, label %250, label %246

246:                                              ; preds = %242
  %247 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 4
  %248 = load double, ptr %247, align 16, !tbaa !19
  %249 = fcmp oeq double %248, 0.000000e+00
  br i1 %249, label %250, label %252

250:                                              ; preds = %246, %242, %183
  %251 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %251, align 1, !tbaa !9
  br label %252

252:                                              ; preds = %250, %246
  %253 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 2
  %254 = load double, ptr %253, align 16, !tbaa !19
  %255 = fcmp oeq double %254, 1.000000e+00
  br i1 %255, label %264, label %256

256:                                              ; preds = %252
  %257 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 3
  %258 = load double, ptr %257, align 8, !tbaa !19
  %259 = fcmp oeq double %258, 1.000000e+00
  br i1 %259, label %264, label %260

260:                                              ; preds = %256
  %261 = getelementptr inbounds [5 x double], ptr %30, i64 0, i64 4
  %262 = load double, ptr %261, align 16, !tbaa !19
  %263 = fcmp oeq double %262, 1.000000e+00
  br i1 %263, label %264, label %266

264:                                              ; preds = %260, %256, %252
  %265 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 1, ptr %265, align 1, !tbaa !9
  br label %266

266:                                              ; preds = %264, %260
  call void @llvm.lifetime.end.p0(i64 3, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 3, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %30) #4
  %267 = load i8, ptr %23, align 1, !tbaa !9, !range !11, !noundef !12
  %268 = trunc i8 %267 to i1
  %269 = zext i1 %268 to i32
  %270 = load i8, ptr %24, align 1, !tbaa !9, !range !11, !noundef !12
  %271 = trunc i8 %270 to i1
  %272 = zext i1 %271 to i32
  %273 = xor i32 %269, %272
  %274 = icmp ne i32 %273, 0
  store i1 %274, ptr %10, align 1
  store i32 1, ptr %22, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #4
  br label %275

275:                                              ; preds = %266, %99
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #4
  %276 = load i1, ptr %10, align 1
  ret i1 %276
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(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, 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), i1 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1)) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

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

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"bool", !7, i64 0}
!11 = !{i8 0, i8 2}
!12 = !{}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN10rootparity23RootParityCollisionTestE", !6, i64 0, !17, i64 8, !17, i64 32, !17, i64 56, !17, i64 80, !17, i64 104, !17, i64 128, !17, i64 152, !10, i64 176, !17, i64 184, !7, i64 208, !7, i64 784, !7, i64 1552}
!17 = !{!"_ZTS3VecILj3EdE", !7, i64 0}
!18 = !{!16, !10, i64 176}
!19 = !{!20, !20, i64 0}
!20 = !{!"double", !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.4 = type { [3 x i32] }
%struct.Vec.5 = type { [3 x i8] }

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest30point_tetrahedron_intersectionERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(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)) local_unnamed_addr #0 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN10rootparity23RootParityCollisionTest30implicit_surface_function_signERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(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)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local 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) %1, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 1 dereferenceable(1) %7, ptr nocapture noundef nonnull writeonly align 1 dereferenceable(1) %8) local_unnamed_addr #0 align 2 {
  %10 = alloca [5 x double], align 16
  %11 = alloca %struct.Vec.4, align 4
  %12 = alloca %struct.Vec.5, align 1
  %13 = alloca %struct.Vec.5, align 1
  %14 = alloca %struct.Vec.5, align 1
  %15 = alloca [5 x double], align 16
  %16 = alloca %struct.Vec.4, align 4
  %17 = alloca %struct.Vec.5, align 1
  %18 = alloca %struct.Vec.5, align 1
  %19 = alloca %struct.Vec.5, align 1
  %20 = tail call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest30point_tetrahedron_intersectionERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  br i1 %20, label %21, label %42

21:                                               ; preds = %9
  %22 = tail call noundef i32 @_ZN10rootparity23RootParityCollisionTest30implicit_surface_function_signERK3VecILj4EjERKS1_ILj4EbES7_S7_RKS1_ILj3EdE(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 4 dereferenceable(16) %1, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5)
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %25

24:                                               ; preds = %21
  store i8 1, ptr %8, align 1, !tbaa !5
  br label %142

25:                                               ; preds = %21
  %26 = icmp sgt i32 %22, 0
  %27 = load ptr, ptr %0, align 8, !tbaa !9
  %28 = getelementptr inbounds i8, ptr %0, i64 8
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  %30 = getelementptr inbounds i8, ptr %0, i64 56
  %31 = getelementptr inbounds i8, ptr %0, i64 80
  %32 = getelementptr inbounds i8, ptr %0, i64 104
  %33 = getelementptr inbounds i8, ptr %0, i64 128
  %34 = getelementptr inbounds i8, ptr %0, i64 152
  %35 = getelementptr inbounds i8, ptr %0, i64 176
  %36 = load i8, ptr %35, align 8, !tbaa !13, !range !14, !noundef !15
  %37 = trunc nuw i8 %36 to i1
  br i1 %26, label %38, label %40

38:                                               ; preds = %25
  %39 = tail call noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %34, i1 noundef zeroext %37, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, i1 noundef zeroext false, ptr noundef nonnull align 1 dereferenceable(1) %7)
  br label %142

40:                                               ; preds = %25
  %41 = tail call noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(24) %34, i1 noundef zeroext %37, ptr noundef nonnull align 1 dereferenceable(4) %2, ptr noundef nonnull align 1 dereferenceable(4) %3, ptr noundef nonnull align 1 dereferenceable(4) %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, i1 noundef zeroext true, ptr noundef nonnull align 1 dereferenceable(1) %7)
  br label %142

42:                                               ; preds = %9
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #3
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %10, align 16
  %43 = getelementptr inbounds i8, ptr %10, i64 16
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %43, align 16
  %44 = getelementptr inbounds i8, ptr %10, i64 32
  store double 5.000000e-01, ptr %44, align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #3
  %45 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 0)
  %46 = load i32, ptr %45, align 4, !tbaa !16
  %47 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 1)
  %48 = load i32, ptr %47, align 4, !tbaa !16
  %49 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 3)
  %50 = load i32, ptr %49, align 4, !tbaa !16
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef %46, i32 noundef %48, i32 noundef %50)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %12) #3
  %51 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 0)
  %52 = load i8, ptr %51, align 1, !tbaa !5, !range !14, !noundef !15
  %53 = trunc nuw i8 %52 to i1
  %54 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 1)
  %55 = load i8, ptr %54, align 1, !tbaa !5, !range !14, !noundef !15
  %56 = trunc nuw i8 %55 to i1
  %57 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 3)
  %58 = load i8, ptr %57, align 1, !tbaa !5, !range !14, !noundef !15
  %59 = trunc nuw i8 %58 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %12, i1 noundef zeroext %53, i1 noundef zeroext %56, i1 noundef zeroext %59)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %13) #3
  %60 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 0)
  %61 = load i8, ptr %60, align 1, !tbaa !5, !range !14, !noundef !15
  %62 = trunc nuw i8 %61 to i1
  %63 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 1)
  %64 = load i8, ptr %63, align 1, !tbaa !5, !range !14, !noundef !15
  %65 = trunc nuw i8 %64 to i1
  %66 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 3)
  %67 = load i8, ptr %66, align 1, !tbaa !5, !range !14, !noundef !15
  %68 = trunc nuw i8 %67 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %13, i1 noundef zeroext %62, i1 noundef zeroext %65, i1 noundef zeroext %68)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %14) #3
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 0)
  %70 = load i8, ptr %69, align 1, !tbaa !5, !range !14, !noundef !15
  %71 = trunc nuw i8 %70 to i1
  %72 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 1)
  %73 = load i8, ptr %72, align 1, !tbaa !5, !range !14, !noundef !15
  %74 = trunc nuw i8 %73 to i1
  %75 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 3)
  %76 = load i8, ptr %75, align 1, !tbaa !5, !range !14, !noundef !15
  %77 = trunc nuw i8 %76 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %14, i1 noundef zeroext %71, i1 noundef zeroext %74, i1 noundef zeroext %77)
  %78 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest26edge_triangle_intersectionERK3VecILj3EjERKS1_ILj3EbES7_S7_RKS1_ILj3EdESA_Pd(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 4 dereferenceable(12) %11, ptr noundef nonnull align 1 dereferenceable(3) %12, ptr noundef nonnull align 1 dereferenceable(3) %13, ptr noundef nonnull align 1 dereferenceable(3) %14, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull %10)
  %79 = load <2 x double>, ptr %43, align 16
  %.fr114 = freeze <2 x double> %79
  %80 = load double, ptr %44, align 16
  %81 = shufflevector <2 x double> %.fr114, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %82 = insertelement <4 x double> %81, double %80, i64 2
  %83 = shufflevector <4 x double> %82, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %.fr = freeze <4 x double> %83
  %84 = fcmp oeq <4 x double> %.fr, <double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00>
  %85 = extractelement <2 x double> %.fr114, i64 1
  %86 = fcmp oeq double %85, 1.000000e+00
  %87 = fcmp oeq double %80, 1.000000e+00
  %88 = bitcast <4 x i1> %84 to i4
  %89 = icmp ne i4 %88, 0
  %op.rdx110 = or i1 %89, %86
  %op.rdx111 = select i1 %op.rdx110, i1 true, i1 %87
  br i1 %op.rdx111, label %90, label %91

90:                                               ; preds = %42
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %91

91:                                               ; preds = %42, %90
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %14) #3
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %13) #3
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %12) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %15) #3
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %15, align 16
  %92 = getelementptr inbounds i8, ptr %15, i64 16
  store <2 x double> <double 5.000000e-01, double 5.000000e-01>, ptr %92, align 16
  %93 = getelementptr inbounds i8, ptr %15, i64 32
  store double 5.000000e-01, ptr %93, align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %16) #3
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 0)
  %95 = load i32, ptr %94, align 4, !tbaa !16
  %96 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 3)
  %97 = load i32, ptr %96, align 4, !tbaa !16
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj4EjEixEi(ptr noundef nonnull align 4 dereferenceable(16) %1, i32 noundef 2)
  %99 = load i32, ptr %98, align 4, !tbaa !16
  call void @_ZN3VecILj3EjEC2Ejjj(ptr noundef nonnull align 4 dereferenceable(12) %16, i32 noundef %95, i32 noundef %97, i32 noundef %99)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %17) #3
  %100 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 0)
  %101 = load i8, ptr %100, align 1, !tbaa !5, !range !14, !noundef !15
  %102 = trunc nuw i8 %101 to i1
  %103 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 3)
  %104 = load i8, ptr %103, align 1, !tbaa !5, !range !14, !noundef !15
  %105 = trunc nuw i8 %104 to i1
  %106 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %2, i32 noundef 2)
  %107 = load i8, ptr %106, align 1, !tbaa !5, !range !14, !noundef !15
  %108 = trunc nuw i8 %107 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %17, i1 noundef zeroext %102, i1 noundef zeroext %105, i1 noundef zeroext %108)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %18) #3
  %109 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 0)
  %110 = load i8, ptr %109, align 1, !tbaa !5, !range !14, !noundef !15
  %111 = trunc nuw i8 %110 to i1
  %112 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 3)
  %113 = load i8, ptr %112, align 1, !tbaa !5, !range !14, !noundef !15
  %114 = trunc nuw i8 %113 to i1
  %115 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %3, i32 noundef 2)
  %116 = load i8, ptr %115, align 1, !tbaa !5, !range !14, !noundef !15
  %117 = trunc nuw i8 %116 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %18, i1 noundef zeroext %111, i1 noundef zeroext %114, i1 noundef zeroext %117)
  call void @llvm.lifetime.start.p0(i64 3, ptr nonnull %19) #3
  %118 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 0)
  %119 = load i8, ptr %118, align 1, !tbaa !5, !range !14, !noundef !15
  %120 = trunc nuw i8 %119 to i1
  %121 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 3)
  %122 = load i8, ptr %121, align 1, !tbaa !5, !range !14, !noundef !15
  %123 = trunc nuw i8 %122 to i1
  %124 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNK3VecILj4EbEixEi(ptr noundef nonnull align 1 dereferenceable(4) %4, i32 noundef 2)
  %125 = load i8, ptr %124, align 1, !tbaa !5, !range !14, !noundef !15
  %126 = trunc nuw i8 %125 to i1
  call void @_ZN3VecILj3EbEC2Ebbb(ptr noundef nonnull align 1 dereferenceable(3) %19, i1 noundef zeroext %120, i1 noundef zeroext %123, i1 noundef zeroext %126)
  %127 = call noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest26edge_triangle_intersectionERK3VecILj3EjERKS1_ILj3EbES7_S7_RKS1_ILj3EdESA_Pd(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 1 dereferenceable(3) %17, ptr noundef nonnull align 1 dereferenceable(3) %18, ptr noundef nonnull align 1 dereferenceable(3) %19, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull %15)
  %128 = load <2 x double>, ptr %92, align 16
  %.fr118 = freeze <2 x double> %128
  %129 = load double, ptr %93, align 16
  %130 = shufflevector <2 x double> %.fr118, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 poison, i32 poison>
  %131 = insertelement <4 x double> %130, double %129, i64 2
  %132 = shufflevector <4 x double> %131, <4 x double> poison, <4 x i32> <i32 0, i32 1, i32 2, i32 0>
  %.fr115 = freeze <4 x double> %132
  %133 = fcmp oeq <4 x double> %.fr115, <double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 1.000000e+00>
  %134 = extractelement <2 x double> %.fr118, i64 1
  %135 = fcmp oeq double %134, 1.000000e+00
  %136 = fcmp oeq double %129, 1.000000e+00
  %137 = bitcast <4 x i1> %133 to i4
  %138 = icmp ne i4 %137, 0
  %op.rdx = or i1 %138, %135
  %op.rdx109 = select i1 %op.rdx, i1 true, i1 %136
  br i1 %op.rdx109, label %139, label %140

139:                                              ; preds = %91
  store i8 1, ptr %7, align 1, !tbaa !5
  br label %140

140:                                              ; preds = %91, %139
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %19) #3
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %18) #3
  call void @llvm.lifetime.end.p0(i64 3, ptr nonnull %17) #3
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %16) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %15) #3
  %141 = xor i1 %78, %127
  br label %142

142:                                              ; preds = %24, %38, %40, %140
  %.1 = phi i1 [ %141, %140 ], [ false, %24 ], [ %39, %38 ], [ %41, %40 ]
  ret i1 %.1
}

; Function Attrs: mustprogress uwtable
declare hidden noundef zeroext i1 @_ZN10rootparity12_GLOBAL__N_119test_with_trianglesERK3VecILj3EdES4_S4_S4_S4_S4_S4_S4_bRKS1_ILj4EbES7_S7_S4_S4_bRb(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, 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), i1 noundef zeroext, ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0

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

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass