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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.Vec.0 = type { [3 x double] }
%"class.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 }

; 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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) #3 align 2 {
  %4 = alloca i1, align 1
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca %struct.Vec.0, align 8
  %14 = alloca %struct.Vec.0, align 8
  %15 = alloca %struct.Vec.0, align 8
  %16 = alloca %struct.Vec.0, align 8
  %17 = alloca i32, align 4
  %18 = alloca i8, align 1
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = call noundef i64 @_ZNKSt6vectorI3VecILj3EjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  store i64 %23, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = call noundef i64 @_ZNKSt6vectorI3VecILj3EdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  store i64 %25, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  store i32 0, ptr %10, align 4, !tbaa !11
  br label %26

26:                                               ; preds = %109, %3
  %27 = load i32, ptr %10, align 4, !tbaa !11
  %28 = zext i32 %27 to i64
  %29 = load i64, ptr %8, align 8, !tbaa !9
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  store i32 2, ptr %11, align 4
  br label %112

32:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %10, align 4, !tbaa !11
  %35 = zext i32 %34 to i64
  %36 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %35) #6
  store ptr %36, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #6
  %37 = load ptr, ptr %7, align 8, !tbaa !5
  %38 = load ptr, ptr %12, align 8, !tbaa !5
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %38, i32 noundef 1)
  %40 = load i32, ptr %39, align 4, !tbaa !11
  %41 = zext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %37, i64 noundef %41) #6
  %43 = load ptr, ptr %7, align 8, !tbaa !5
  %44 = load ptr, ptr %12, align 8, !tbaa !5
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %44, i32 noundef 0)
  %46 = load i32, ptr %45, align 4, !tbaa !11
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %47) #6
  call void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind writable sret(%struct.Vec.0) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 8 dereferenceable(24) %48)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = load ptr, ptr %12, align 8, !tbaa !5
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %50, i32 noundef 2)
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = zext i32 %52 to i64
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %53) #6
  %55 = load ptr, ptr %7, align 8, !tbaa !5
  %56 = load ptr, ptr %12, align 8, !tbaa !5
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %56, i32 noundef 0)
  %58 = load i32, ptr %57, align 4, !tbaa !11
  %59 = zext i32 %58 to i64
  %60 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %59) #6
  call void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind writable sret(%struct.Vec.0) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %60)
  call void @_Z5crossIdE3VecILj3ET_ERKS2_S4_(ptr dead_on_unwind writable sret(%struct.Vec.0) align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #6
  %61 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %13)
  %62 = fcmp oeq double %61, 0.000000e+00
  br i1 %62, label %63, label %64

63:                                               ; preds = %32
  store i32 4, ptr %11, align 4
  br label %106

64:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  call void @_Z10normalizedILj3EdE3VecIXT_ET0_ERKS2_(ptr dead_on_unwind writable sret(%struct.Vec.0) align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %13)
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @_ZN8Interval24begin_special_arithmeticEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %65 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %21, i32 0, i32 10
  %66 = getelementptr inbounds [8 x %struct.Vec], ptr %65, i64 0, i64 0
  %67 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(72) %66)
  store i32 %67, ptr %17, align 4, !tbaa !11
  call void @_ZN8Interval22end_special_arithmeticEv()
  %68 = load i32, ptr %17, align 4, !tbaa !11
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %64
  store i32 4, ptr %11, align 4
  br label %105

71:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 1, ptr %18) #6
  store i8 1, ptr %18, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 1, ptr %19, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %95, %71
  %73 = load i32, ptr %19, align 4, !tbaa !11
  %74 = zext i32 %73 to i64
  %75 = load i64, ptr %9, align 8, !tbaa !9
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %72
  store i32 5, ptr %11, align 4
  br label %98

78:                                               ; preds = %72
  call void @_ZN8Interval24begin_special_arithmeticEv()
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %79 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %21, i32 0, i32 10
  %80 = load i32, ptr %19, align 4, !tbaa !11
  %81 = zext i32 %80 to i64
  %82 = getelementptr inbounds [8 x %struct.Vec], ptr %79, i64 0, i64 %81
  %83 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(72) %82)
  store i32 %83, ptr %20, align 4, !tbaa !11
  call void @_ZN8Interval22end_special_arithmeticEv()
  %84 = load i32, ptr %20, align 4, !tbaa !11
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %90, label %86

86:                                               ; preds = %78
  %87 = load i32, ptr %20, align 4, !tbaa !11
  %88 = load i32, ptr %17, align 4, !tbaa !11
  %89 = icmp ne i32 %87, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %86, %78
  store i8 0, ptr %18, align 1, !tbaa !15
  store i32 5, ptr %11, align 4
  br label %92

91:                                               ; preds = %86
  store i32 0, ptr %11, align 4
  br label %92

92:                                               ; preds = %91, %90
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %93 = load i32, ptr %11, align 4
  switch i32 %93, label %98 [
    i32 0, label %94
  ]

94:                                               ; preds = %92
  br label %95

95:                                               ; preds = %94
  %96 = load i32, ptr %19, align 4, !tbaa !11
  %97 = add i32 %96, 1
  store i32 %97, ptr %19, align 4, !tbaa !11
  br label %72, !llvm.loop !17

98:                                               ; preds = %92, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  br label %99

99:                                               ; preds = %98
  %100 = load i8, ptr %18, align 1, !tbaa !15, !range !19, !noundef !20
  %101 = trunc i8 %100 to i1
  br i1 %101, label %102, label %103

102:                                              ; preds = %99
  store i1 true, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %104

103:                                              ; preds = %99
  store i32 0, ptr %11, align 4
  br label %104

104:                                              ; preds = %103, %102
  call void @llvm.lifetime.end.p0(i64 1, ptr %18) #6
  br label %105

105:                                              ; preds = %104, %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  br label %106

106:                                              ; preds = %105, %63
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  %107 = load i32, ptr %11, align 4
  switch i32 %107, label %112 [
    i32 0, label %108
    i32 4, label %109
  ]

108:                                              ; preds = %106
  br label %109

109:                                              ; preds = %108, %106
  %110 = load i32, ptr %10, align 4, !tbaa !11
  %111 = add i32 %110, 1
  store i32 %111, ptr %10, align 4, !tbaa !11
  br label %26, !llvm.loop !21

112:                                              ; preds = %106, %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  %113 = load i32, ptr %11, align 4
  switch i32 %113, label %115 [
    i32 2, label %114
  ]

114:                                              ; preds = %112
  call void @_ZN8Interval22end_special_arithmeticEv()
  store i1 false, ptr %4, align 1
  store i32 1, ptr %11, align 4
  br label %115

115:                                              ; preds = %114, %112
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %116 = load i1, ptr %4, align 1
  ret i1 %116
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIdE3VecILj3ET_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10normalizedILj3EdE3VecIXT_ET0_ERKS2_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24)) #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) #4

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

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


; 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 = type { [3 x %class.Interval] }
%class.Interval = type { %class.IntervalBase, [2 x double] }
%class.IntervalBase = type { ptr }

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest13plane_cullingERKSt6vectorI3VecILj3EjESaIS3_EERKS1_IS2_ILj3EdESaIS8_EE(ptr noundef nonnull align 8 dereferenceable(1560) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2) local_unnamed_addr #3 align 2 {
  %4 = alloca %struct.Vec.0, align 8
  %5 = alloca %struct.Vec.0, align 8
  %6 = alloca %struct.Vec.0, align 8
  %7 = alloca %struct.Vec.0, align 8
  %8 = tail call noundef i64 @_ZNKSt6vectorI3VecILj3EjESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %9 = tail call noundef i64 @_ZNKSt6vectorI3VecILj3EdESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %.not4357.not = icmp eq i64 %8, 0
  br i1 %.not4357.not, label %.critedge, label %.lr.ph60

.lr.ph60:                                         ; preds = %3
  %10 = getelementptr inbounds i8, ptr %0, i64 208
  %.not4654 = icmp ugt i64 %9, 1
  br label %11

11:                                               ; preds = %.lr.ph60, %.loopexit
  %12 = phi i64 [ 0, %.lr.ph60 ], [ %42, %.loopexit ]
  %.03358 = phi i32 [ 0, %.lr.ph60 ], [ %41, %.loopexit ]
  %13 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNKSt6vectorI3VecILj3EjESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %12) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  %14 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 1)
  %15 = load i32, ptr %14, align 4, !tbaa !5
  %16 = zext i32 %15 to i64
  %17 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %16) #6
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0)
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = zext i32 %19 to i64
  %21 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %20) #6
  call void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%struct.Vec.0) align 8 %5, ptr noundef nonnull align 8 dereferenceable(24) %17, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 2)
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = zext i32 %23 to i64
  %25 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %24) #6
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3VecILj3EjEixEi(ptr noundef nonnull align 4 dereferenceable(12) %13, i32 noundef 0)
  %27 = load i32, ptr %26, align 4, !tbaa !5
  %28 = zext i32 %27 to i64
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorI3VecILj3EdESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %28) #6
  call void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind nonnull writable sret(%struct.Vec.0) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(24) %29)
  call void @_Z5crossIdE3VecILj3ET_ERKS2_S4_(ptr dead_on_unwind nonnull writable sret(%struct.Vec.0) align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  %30 = call noundef double @_Z3magILj3EdET0_RK3VecIXT_ES0_E(ptr noundef nonnull align 8 dereferenceable(24) %4)
  %31 = fcmp oeq double %30, 0.000000e+00
  br i1 %31, label %.loopexit, label %32

32:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  call void @_Z10normalizedILj3EdE3VecIXT_ET0_ERKS2_(ptr dead_on_unwind nonnull writable sret(%struct.Vec.0) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %7, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @_ZN8Interval24begin_special_arithmeticEv()
  %33 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(72) %10)
  call void @_ZN8Interval22end_special_arithmeticEv()
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %32
  br i1 %.not4654, label %.lr.ph, label %.critedge48

35:                                               ; preds = %.lr.ph
  %36 = add i32 %.02955, 1
  %37 = zext i32 %36 to i64
  %.not46 = icmp ugt i64 %9, %37
  br i1 %.not46, label %.lr.ph, label %.critedge48, !llvm.loop !11

.lr.ph:                                           ; preds = %.preheader, %35
  %38 = phi i64 [ %37, %35 ], [ 1, %.preheader ]
  %.02955 = phi i32 [ %36, %35 ], [ 1, %.preheader ]
  call void @_ZN8Interval24begin_special_arithmeticEv()
  %39 = getelementptr inbounds [8 x %struct.Vec], ptr %10, i64 0, i64 %38
  %40 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(72) %39)
  call void @_ZN8Interval22end_special_arithmeticEv()
  %.not = icmp eq i32 %40, %33
  br i1 %.not, label %35, label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %11, %32
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  %41 = add i32 %.03358, 1
  %42 = zext i32 %41 to i64
  %.not43 = icmp ugt i64 %8, %42
  br i1 %.not43, label %11, label %.critedge, !llvm.loop !13

.critedge48:                                      ; preds = %.preheader, %35
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #6
  br label %43

.critedge:                                        ; preds = %.loopexit, %3
  call void @_ZN8Interval22end_special_arithmeticEv()
  br label %43

43:                                               ; preds = %.critedge48, %.critedge
  %.not4352 = phi i1 [ true, %.critedge48 ], [ false, %.critedge ]
  ret i1 %.not4352
}

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z5crossIdE3VecILj3ET_ERKS2_S4_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3VecILj3EdEmiERKS0_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10normalizedILj3EdE3VecIXT_ET0_ERKS2_(ptr dead_on_unwind noalias writable sret(%struct.Vec.0) align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden noundef i32 @_ZN10rootparity12_GLOBAL__N_110plane_signERK3VecILj3EdERKS1_ILj3E8IntervalE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass