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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19fixed_plane_cullingEj(ptr noundef nonnull align 8 dereferenceable(1560) %0, i32 noundef %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %struct.Vec.28, align 4
  %11 = alloca i32, align 4
  %12 = alloca i8, align 1
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #4
  store i32 -1, ptr %6, align 4, !tbaa !9
  br label %16

16:                                               ; preds = %88, %2
  %17 = load i32, ptr %6, align 4, !tbaa !9
  %18 = icmp slt i32 %17, 1
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 2, ptr %7, align 4
  br label %91

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 -1, ptr %8, align 4, !tbaa !9
  br label %21

21:                                               ; preds = %82, %20
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp slt i32 %22, 1
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %7, align 4
  br label %85

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 -1, ptr %9, align 4, !tbaa !9
  br label %26

26:                                               ; preds = %76, %25
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = icmp slt i32 %27, 1
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 8, ptr %7, align 4
  br label %79

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  %31 = load i32, ptr %6, align 4, !tbaa !9
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = load i32, ptr %8, align 4, !tbaa !9
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef %31, i32 noundef %32, i32 noundef %33)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %34 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %15, i32 0, i32 10
  %35 = getelementptr inbounds [8 x %struct.Vec], ptr %34, i64 0, i64 0
  %36 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(72) %35)
  store i32 %36, ptr %11, align 4, !tbaa !9
  %37 = load i32, ptr %11, align 4, !tbaa !9
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %30
  store i32 10, ptr %7, align 4
  br label %73

40:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  store i8 1, ptr %12, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %41

41:                                               ; preds = %63, %40
  %42 = load i32, ptr %13, align 4, !tbaa !9
  %43 = load i32, ptr %5, align 4, !tbaa !9
  %44 = icmp ult i32 %42, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %41
  store i32 11, ptr %7, align 4
  br label %66

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %47 = getelementptr inbounds %"class.rootparity::RootParityCollisionTest", ptr %15, i32 0, i32 10
  %48 = load i32, ptr %13, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = getelementptr inbounds [8 x %struct.Vec], ptr %47, i64 0, i64 %49
  %51 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(72) %50)
  store i32 %51, ptr %14, align 4, !tbaa !9
  %52 = load i32, ptr %14, align 4, !tbaa !9
  %53 = icmp eq i32 %52, 0
  br i1 %53, label %58, label %54

54:                                               ; preds = %46
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = icmp ne i32 %55, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %54, %46
  store i8 0, ptr %12, align 1, !tbaa !11
  store i32 11, ptr %7, align 4
  br label %60

59:                                               ; preds = %54
  store i32 0, ptr %7, align 4
  br label %60

60:                                               ; preds = %59, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  %61 = load i32, ptr %7, align 4
  switch i32 %61, label %66 [
    i32 0, label %62
  ]

62:                                               ; preds = %60
  br label %63

63:                                               ; preds = %62
  %64 = load i32, ptr %13, align 4, !tbaa !9
  %65 = add i32 %64, 1
  store i32 %65, ptr %13, align 4, !tbaa !9
  br label %41, !llvm.loop !13

66:                                               ; preds = %60, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  br label %67

67:                                               ; preds = %66
  %68 = load i8, ptr %12, align 1, !tbaa !11, !range !15, !noundef !16
  %69 = trunc i8 %68 to i1
  br i1 %69, label %70, label %71

70:                                               ; preds = %67
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %72

71:                                               ; preds = %67
  store i32 0, ptr %7, align 4
  br label %72

72:                                               ; preds = %71, %70
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  br label %73

73:                                               ; preds = %72, %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  %74 = load i32, ptr %7, align 4
  switch i32 %74, label %79 [
    i32 0, label %75
    i32 10, label %76
  ]

75:                                               ; preds = %73
  br label %76

76:                                               ; preds = %75, %73
  %77 = load i32, ptr %9, align 4, !tbaa !9
  %78 = add nsw i32 %77, 1
  store i32 %78, ptr %9, align 4, !tbaa !9
  br label %26, !llvm.loop !17

79:                                               ; preds = %73, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  %80 = load i32, ptr %7, align 4
  switch i32 %80, label %85 [
    i32 8, label %81
  ]

81:                                               ; preds = %79
  br label %82

82:                                               ; preds = %81
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !9
  br label %21, !llvm.loop !18

85:                                               ; preds = %79, %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  %86 = load i32, ptr %7, align 4
  switch i32 %86, label %91 [
    i32 5, label %87
  ]

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87
  %89 = load i32, ptr %6, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %6, align 4, !tbaa !9
  br label %16, !llvm.loop !19

91:                                               ; preds = %85, %19
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #4
  %92 = load i32, ptr %7, align 4
  switch i32 %92, label %96 [
    i32 2, label %93
    i32 1, label %94
  ]

93:                                               ; preds = %91
  store i1 false, ptr %3, align 1
  br label %94

94:                                               ; preds = %93, %91
  %95 = load i1, ptr %3, align 1
  ret i1 %95

96:                                               ; preds = %91
  unreachable
}

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}
!19 = distinct !{!19, !14}


; 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.28 = type { [3 x i32] }
%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 uwtable
define dso_local noundef zeroext i1 @_ZN10rootparity23RootParityCollisionTest19fixed_plane_cullingEj(ptr noundef nonnull align 8 dereferenceable(1560) %0, i32 noundef %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %struct.Vec.28, align 4
  %4 = getelementptr inbounds i8, ptr %0, i64 208
  %.not5056 = icmp ugt i32 %1, 1
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef -1, i32 noundef -1)
  %5 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %6 = icmp eq i32 %5, 0
  br i1 %.not5056, label %.preheader53.us.preheader, label %.preheader53.preheader

.preheader53.preheader:                           ; preds = %2
  br i1 %6, label %45, label %.critedge

.preheader53.us.preheader:                        ; preds = %2
  br i1 %6, label %.loopexit73, label %.preheader.us.us.us.preheader

.preheader.us.us.us.preheader:                    ; preds = %.preheader53.us.preheader
  %wide.trip.count = zext i32 %1 to i64
  br label %.preheader.us.us.us

7:                                                ; preds = %.preheader.us.us.us
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.critedge, label %.preheader.us.us.us, !llvm.loop !5

.preheader.us.us.us:                              ; preds = %.preheader.us.us.us.preheader, %7
  %indvars.iv = phi i64 [ 1, %.preheader.us.us.us.preheader ], [ %indvars.iv.next, %7 ]
  %8 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv
  %9 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %8)
  %.not.us.us.us = icmp eq i32 %9, %5
  br i1 %.not.us.us.us, label %7, label %.loopexit73

.loopexit73:                                      ; preds = %.preheader.us.us.us, %.preheader53.us.preheader
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef 0, i32 noundef -1)
  %10 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %11 = icmp eq i32 %10, 0
  br i1 %11, label %.split.us.us.us, label %.preheader.us.us.us.preheader.1

.preheader.us.us.us.preheader.1:                  ; preds = %.loopexit73
  %wide.trip.count.1 = zext i32 %1 to i64
  br label %.preheader.us.us.us.1

.preheader.us.us.us.1:                            ; preds = %14, %.preheader.us.us.us.preheader.1
  %indvars.iv.1 = phi i64 [ 1, %.preheader.us.us.us.preheader.1 ], [ %indvars.iv.next.1, %14 ]
  %12 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.1
  %13 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %12)
  %.not.us.us.us.1 = icmp eq i32 %13, %10
  br i1 %.not.us.us.us.1, label %14, label %.split.us.us.us

14:                                               ; preds = %.preheader.us.us.us.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv.1, 1
  %exitcond.1.not = icmp eq i64 %indvars.iv.next.1, %wide.trip.count.1
  br i1 %exitcond.1.not, label %.critedge, label %.preheader.us.us.us.1, !llvm.loop !5

.split.us.us.us:                                  ; preds = %.preheader.us.us.us.1, %.loopexit73
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef -1, i32 noundef 0)
  %15 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %16 = icmp eq i32 %15, 0
  br i1 %16, label %.loopexit73.192, label %.preheader.us.us.us.preheader.188

.preheader.us.us.us.preheader.188:                ; preds = %.split.us.us.us
  %wide.trip.count.187 = zext i32 %1 to i64
  br label %.preheader.us.us.us.191

.preheader.us.us.us.191:                          ; preds = %19, %.preheader.us.us.us.preheader.188
  %indvars.iv.189 = phi i64 [ 1, %.preheader.us.us.us.preheader.188 ], [ %indvars.iv.next.193, %19 ]
  %17 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.189
  %18 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %17)
  %.not.us.us.us.190 = icmp eq i32 %18, %15
  br i1 %.not.us.us.us.190, label %19, label %.loopexit73.192

19:                                               ; preds = %.preheader.us.us.us.191
  %indvars.iv.next.193 = add nuw nsw i64 %indvars.iv.189, 1
  %exitcond.194.not = icmp eq i64 %indvars.iv.next.193, %wide.trip.count.187
  br i1 %exitcond.194.not, label %.critedge, label %.preheader.us.us.us.191, !llvm.loop !5

.loopexit73.192:                                  ; preds = %.preheader.us.us.us.191, %.split.us.us.us
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef 0, i32 noundef 0)
  %20 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %.split.us.us.us.1, label %.preheader.us.us.us.preheader.1.1

.preheader.us.us.us.preheader.1.1:                ; preds = %.loopexit73.192
  %wide.trip.count.1.1 = zext i32 %1 to i64
  br label %.preheader.us.us.us.1.1

.preheader.us.us.us.1.1:                          ; preds = %24, %.preheader.us.us.us.preheader.1.1
  %indvars.iv.1.1 = phi i64 [ 1, %.preheader.us.us.us.preheader.1.1 ], [ %indvars.iv.next.1.1, %24 ]
  %22 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.1.1
  %23 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %22)
  %.not.us.us.us.1.1 = icmp eq i32 %23, %20
  br i1 %.not.us.us.us.1.1, label %24, label %.split.us.us.us.1

24:                                               ; preds = %.preheader.us.us.us.1.1
  %indvars.iv.next.1.1 = add nuw nsw i64 %indvars.iv.1.1, 1
  %exitcond.1.1.not = icmp eq i64 %indvars.iv.next.1.1, %wide.trip.count.1.1
  br i1 %exitcond.1.1.not, label %.critedge, label %.preheader.us.us.us.1.1, !llvm.loop !5

.split.us.us.us.1:                                ; preds = %.preheader.us.us.us.1.1, %.loopexit73.192
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %25 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %26 = icmp eq i32 %25, 0
  br i1 %26, label %.loopexit73.1105, label %.preheader.us.us.us.preheader.1101

.preheader.us.us.us.preheader.1101:               ; preds = %.split.us.us.us.1
  %wide.trip.count.1100 = zext i32 %1 to i64
  br label %.preheader.us.us.us.1104

.preheader.us.us.us.1104:                         ; preds = %29, %.preheader.us.us.us.preheader.1101
  %indvars.iv.1102 = phi i64 [ 1, %.preheader.us.us.us.preheader.1101 ], [ %indvars.iv.next.1106, %29 ]
  %27 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.1102
  %28 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %27)
  %.not.us.us.us.1103 = icmp eq i32 %28, %25
  br i1 %.not.us.us.us.1103, label %29, label %.loopexit73.1105

29:                                               ; preds = %.preheader.us.us.us.1104
  %indvars.iv.next.1106 = add nuw nsw i64 %indvars.iv.1102, 1
  %exitcond.1107.not = icmp eq i64 %indvars.iv.next.1106, %wide.trip.count.1100
  br i1 %exitcond.1107.not, label %.critedge, label %.preheader.us.us.us.1104, !llvm.loop !5

.loopexit73.1105:                                 ; preds = %.preheader.us.us.us.1104, %.split.us.us.us.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef 0, i32 noundef -1)
  %30 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %.split.us.us.us.1116, label %.preheader.us.us.us.preheader.1.1109

.preheader.us.us.us.preheader.1.1109:             ; preds = %.loopexit73.1105
  %wide.trip.count.1.1108 = zext i32 %1 to i64
  br label %.preheader.us.us.us.1.1112

.preheader.us.us.us.1.1112:                       ; preds = %34, %.preheader.us.us.us.preheader.1.1109
  %indvars.iv.1.1110 = phi i64 [ 1, %.preheader.us.us.us.preheader.1.1109 ], [ %indvars.iv.next.1.1114, %34 ]
  %32 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.1.1110
  %33 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %32)
  %.not.us.us.us.1.1111 = icmp eq i32 %33, %30
  br i1 %.not.us.us.us.1.1111, label %34, label %.split.us.us.us.1116

34:                                               ; preds = %.preheader.us.us.us.1.1112
  %indvars.iv.next.1.1114 = add nuw nsw i64 %indvars.iv.1.1110, 1
  %exitcond.1.1115.not = icmp eq i64 %indvars.iv.next.1.1114, %wide.trip.count.1.1108
  br i1 %exitcond.1.1115.not, label %.critedge, label %.preheader.us.us.us.1.1112, !llvm.loop !5

.split.us.us.us.1116:                             ; preds = %.preheader.us.us.us.1.1112, %.loopexit73.1105
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %35 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %.loopexit73.192.1, label %.preheader.us.us.us.preheader.188.1

.preheader.us.us.us.preheader.188.1:              ; preds = %.split.us.us.us.1116
  %wide.trip.count.187.1 = zext i32 %1 to i64
  br label %.preheader.us.us.us.191.1

.preheader.us.us.us.191.1:                        ; preds = %39, %.preheader.us.us.us.preheader.188.1
  %indvars.iv.189.1 = phi i64 [ 1, %.preheader.us.us.us.preheader.188.1 ], [ %indvars.iv.next.193.1, %39 ]
  %37 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.189.1
  %38 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %37)
  %.not.us.us.us.190.1 = icmp eq i32 %38, %35
  br i1 %.not.us.us.us.190.1, label %39, label %.loopexit73.192.1

39:                                               ; preds = %.preheader.us.us.us.191.1
  %indvars.iv.next.193.1 = add nuw nsw i64 %indvars.iv.189.1, 1
  %exitcond.194.1.not = icmp eq i64 %indvars.iv.next.193.1, %wide.trip.count.187.1
  br i1 %exitcond.194.1.not, label %.critedge, label %.preheader.us.us.us.191.1, !llvm.loop !5

.loopexit73.192.1:                                ; preds = %.preheader.us.us.us.191.1, %.split.us.us.us.1116
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %40 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %41 = icmp eq i32 %40, 0
  br i1 %41, label %.split.us.us.us.1.1, label %.preheader.us.us.us.preheader.1.1.1

.preheader.us.us.us.preheader.1.1.1:              ; preds = %.loopexit73.192.1
  %wide.trip.count.1.1.1 = zext i32 %1 to i64
  br label %.preheader.us.us.us.1.1.1

.preheader.us.us.us.1.1.1:                        ; preds = %44, %.preheader.us.us.us.preheader.1.1.1
  %indvars.iv.1.1.1 = phi i64 [ 1, %.preheader.us.us.us.preheader.1.1.1 ], [ %indvars.iv.next.1.1.1, %44 ]
  %42 = getelementptr inbounds [8 x %struct.Vec], ptr %4, i64 0, i64 %indvars.iv.1.1.1
  %43 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %42)
  %.not.us.us.us.1.1.1 = icmp eq i32 %43, %40
  br i1 %.not.us.us.us.1.1.1, label %44, label %.split.us.us.us.1.1

44:                                               ; preds = %.preheader.us.us.us.1.1.1
  %indvars.iv.next.1.1.1 = add nuw nsw i64 %indvars.iv.1.1.1, 1
  %exitcond.1.1.1.not = icmp eq i64 %indvars.iv.next.1.1.1, %wide.trip.count.1.1.1
  br i1 %exitcond.1.1.1.not, label %.critedge, label %.preheader.us.us.us.1.1.1, !llvm.loop !5

.split.us.us.us.1.1:                              ; preds = %.preheader.us.us.us.1.1.1, %.loopexit73.192.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  br label %.loopexit

45:                                               ; preds = %.preheader53.preheader
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef 0, i32 noundef -1)
  %46 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %.split, label %.critedge

.split:                                           ; preds = %45
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef -1, i32 noundef 0)
  %48 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %49 = icmp eq i32 %48, 0
  br i1 %49, label %50, label %.critedge

50:                                               ; preds = %.split
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef -1, i32 noundef 0, i32 noundef 0)
  %51 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %.split.1, label %.critedge

.split.1:                                         ; preds = %50
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef -1, i32 noundef -1)
  %53 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %.critedge

55:                                               ; preds = %.split.1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef 0, i32 noundef -1)
  %56 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %57 = icmp eq i32 %56, 0
  br i1 %57, label %.split.181, label %.critedge

.split.181:                                       ; preds = %55
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef -1, i32 noundef 0)
  %58 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %.critedge

60:                                               ; preds = %.split.181
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #4
  call void @_ZN3VecILj3EiEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %61 = call noundef i32 @_ZN10rootparity12_GLOBAL__N_118quick_1_plane_signERK3VecILj3EiERKS1_ILj3E8IntervalE(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(72) %4)
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %.split.1.1, label %.critedge

.split.1.1:                                       ; preds = %60
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  br label %.loopexit

.critedge:                                        ; preds = %7, %14, %19, %24, %29, %34, %39, %44, %.preheader53.preheader, %45, %.split, %50, %.split.1, %55, %.split.181, %60
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.split.1.1, %.split.us.us.us.1.1, %.critedge
  %63 = phi i1 [ true, %.critedge ], [ false, %.split.us.us.us.1.1 ], [ false, %.split.1.1 ]
  ret i1 %63
}

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}


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