; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp/QhullPoint.ll (ZNK8orgQhull10QhullPointeqERKS0_)

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

%"class.orgQhull::QhullPoint" = type <{ ptr, ptr, i32, [4 x i8] }>
%struct.qhT = type { i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, ptr, double, double, double, double, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

; 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 @_ZNK8orgQhull10QhullPointeqERKS0_(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(20) %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca double, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8
  %14 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 2
  %15 = load i32, ptr %14, align 8, !tbaa !9
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %16, i32 0, i32 2
  %18 = load i32, ptr %17, align 8, !tbaa !9
  %19 = icmp ne i32 %15, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %98

21:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %22 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !12
  store ptr %23, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %24, i32 0, i32 0
  %26 = load ptr, ptr %25, align 8, !tbaa !12
  store ptr %26, ptr %7, align 8, !tbaa !5
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = icmp eq ptr %27, %28
  br i1 %29, label %30, label %31

30:                                               ; preds = %21
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %97

31:                                               ; preds = %21
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = icmp ne ptr %32, null
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = icmp ne ptr %35, null
  br i1 %36, label %38, label %37

37:                                               ; preds = %34, %31
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %97

38:                                               ; preds = %34
  %39 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 1
  %40 = load ptr, ptr %39, align 8, !tbaa !13
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %48

42:                                               ; preds = %38
  %43 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 1
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.qhT, ptr %44, i32 0, i32 104
  %46 = load i32, ptr %45, align 8, !tbaa !14
  %47 = icmp eq i32 %46, 0
  br i1 %47, label %48, label %69

48:                                               ; preds = %42, %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %49 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 2
  %50 = load i32, ptr %49, align 8, !tbaa !9
  store i32 %50, ptr %9, align 4, !tbaa !21
  br label %51

51:                                               ; preds = %65, %48
  %52 = load i32, ptr %9, align 4, !tbaa !21
  %53 = add nsw i32 %52, -1
  store i32 %53, ptr %9, align 4, !tbaa !21
  %54 = icmp ne i32 %52, 0
  br i1 %54, label %56, label %55

55:                                               ; preds = %51
  store i32 2, ptr %8, align 4
  br label %66

56:                                               ; preds = %51
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = getelementptr inbounds double, ptr %57, i32 1
  store ptr %58, ptr %6, align 8, !tbaa !5
  %59 = load double, ptr %57, align 8, !tbaa !22
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds double, ptr %60, i32 1
  store ptr %61, ptr %7, align 8, !tbaa !5
  %62 = load double, ptr %60, align 8, !tbaa !22
  %63 = fcmp une double %59, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %56
  store i1 false, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %66

65:                                               ; preds = %56
  br label %51, !llvm.loop !23

66:                                               ; preds = %64, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  %67 = load i32, ptr %8, align 4
  switch i32 %67, label %97 [
    i32 2, label %68
  ]

68:                                               ; preds = %66
  store i1 true, ptr %3, align 1
  store i32 1, ptr %8, align 4
  br label %97

69:                                               ; preds = %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store double 0.000000e+00, ptr %10, align 8, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %70 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 2
  %71 = load i32, ptr %70, align 8, !tbaa !9
  store i32 %71, ptr %11, align 4, !tbaa !21
  br label %72

72:                                               ; preds = %77, %69
  %73 = load i32, ptr %11, align 4, !tbaa !21
  %74 = add nsw i32 %73, -1
  store i32 %74, ptr %11, align 4, !tbaa !21
  %75 = icmp ne i32 %73, 0
  br i1 %75, label %77, label %76

76:                                               ; preds = %72
  store i32 4, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  br label %89

77:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %78 = load ptr, ptr %6, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i32 1
  store ptr %79, ptr %6, align 8, !tbaa !5
  %80 = load double, ptr %78, align 8, !tbaa !22
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i32 1
  store ptr %82, ptr %7, align 8, !tbaa !5
  %83 = load double, ptr %81, align 8, !tbaa !22
  %84 = fsub double %80, %83
  store double %84, ptr %12, align 8, !tbaa !22
  %85 = load double, ptr %12, align 8, !tbaa !22
  %86 = load double, ptr %12, align 8, !tbaa !22
  %87 = load double, ptr %10, align 8, !tbaa !22
  %88 = call double @llvm.fmuladd.f64(double %85, double %86, double %87)
  store double %88, ptr %10, align 8, !tbaa !22
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %72, !llvm.loop !25

89:                                               ; preds = %76
  %90 = load double, ptr %10, align 8, !tbaa !22
  %91 = call double @sqrt(double noundef %90) #5
  store double %91, ptr %10, align 8, !tbaa !22
  %92 = load double, ptr %10, align 8, !tbaa !22
  %93 = getelementptr inbounds %"class.orgQhull::QhullPoint", ptr %13, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = call noundef double @_ZNK8orgQhull7QhullQh15distanceEpsilonEv(ptr noundef nonnull align 8 dereferenceable(8249) %94)
  %96 = fcmp olt double %92, %95
  store i1 %96, ptr %3, align 1
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %97

97:                                               ; preds = %89, %68, %66, %37, %30
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  br label %98

98:                                               ; preds = %97, %20
  %99 = load i1, ptr %3, align 1
  ret i1 %99
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8orgQhull7QhullQh15distanceEpsilonEv(ptr noundef nonnull align 8 dereferenceable(8249)) #4 align 2

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !11, i64 16}
!10 = !{!"_ZTSN8orgQhull10QhullPointE", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 8}
!14 = !{!15, !11, i64 624}
!15 = !{!"_ZTS3qhT", !11, i64 0, !11, i64 4, !11, i64 8, !16, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !16, i64 56, !16, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !6, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !16, i64 152, !16, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !16, i64 184, !16, i64 192, !11, i64 200, !16, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !7, i64 296, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !16, i64 448, !16, i64 456, !16, i64 464, !11, i64 472, !11, i64 476, !11, i64 480, !11, i64 484, !11, i64 488, !11, i64 492, !11, i64 496, !11, i64 500, !11, i64 504, !11, i64 508, !11, i64 512, !11, i64 516, !11, i64 520, !11, i64 524, !11, i64 528, !11, i64 532, !11, i64 536, !11, i64 540, !16, i64 544, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !16, i64 584, !11, i64 592, !6, i64 600, !6, i64 608, !11, i64 616, !11, i64 620, !11, i64 624, !11, i64 628, !11, i64 632, !6, i64 640, !11, i64 648, !6, i64 656, !11, i64 664, !7, i64 668, !11, i64 924, !7, i64 928, !7, i64 1184, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !16, i64 1752, !16, i64 1760, !16, i64 1768, !16, i64 1776, !16, i64 1784, !16, i64 1792, !16, i64 1800, !16, i64 1808, !16, i64 1816, !16, i64 1824, !16, i64 1832, !16, i64 1840, !16, i64 1848, !11, i64 1856, !6, i64 1864, !16, i64 1872, !16, i64 1880, !16, i64 1888, !16, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !11, i64 2424, !11, i64 2428, !11, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !11, i64 2480, !11, i64 2484, !6, i64 2488, !11, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !11, i64 2536, !11, i64 2540, !11, i64 2544, !11, i64 2548, !11, i64 2552, !11, i64 2556, !11, i64 2560, !17, i64 2568, !11, i64 2576, !11, i64 2580, !18, i64 2584, !11, i64 2588, !6, i64 2592, !11, i64 2600, !11, i64 2604, !16, i64 2608, !11, i64 2616, !16, i64 2624, !16, i64 2632, !16, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !11, i64 2660, !16, i64 2664, !16, i64 2672, !11, i64 2680, !11, i64 2684, !11, i64 2688, !11, i64 2692, !16, i64 2696, !16, i64 2704, !11, i64 2712, !11, i64 2716, !11, i64 2720, !11, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !11, i64 2792, !6, i64 2800, !6, i64 2808, !11, i64 2816, !11, i64 2820, !11, i64 2824, !6, i64 2832, !16, i64 2840, !16, i64 2848, !16, i64 2856, !11, i64 2864, !11, i64 2868, !6, i64 2872, !11, i64 2880, !11, i64 2884, !7, i64 2888, !7, i64 3088, !11, i64 3128, !16, i64 3136, !6, i64 3144, !19, i64 3152, !20, i64 3304}
!16 = !{!"double", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!"_ZTS9qh_CENTER", !7, i64 0}
!19 = !{!"_ZTS6qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !11, i64 64, !6, i64 72, !6, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!20 = !{!"_ZTS7qhstatT", !7, i64 0, !7, i64 1816, !7, i64 2056, !7, i64 3872, !7, i64 4326, !7, i64 4553, !7, i64 4784, !11, i64 4856, !11, i64 4860, !11, i64 4864, !11, i64 4868, !16, i64 4872}
!21 = !{!11, !11, i64 0}
!22 = !{!16, !16, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


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

; Function Attrs: mustprogress nounwind uwtable
define dso_local noundef zeroext i1 @_ZNK8orgQhull10QhullPointeqERKS0_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(20) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(20) %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load i32, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 16
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %4, %6
  br i1 %.not, label %7, label %.loopexit

7:                                                ; preds = %2
  %8 = load ptr, ptr %0, align 8, !tbaa !11
  %9 = load ptr, ptr %1, align 8, !tbaa !11
  %10 = icmp eq ptr %8, %9
  br i1 %10, label %.loopexit, label %11

11:                                               ; preds = %7
  %12 = icmp ne ptr %8, null
  %13 = icmp ne ptr %9, null
  %or.cond = and i1 %12, %13
  br i1 %or.cond, label %14, label %.loopexit

14:                                               ; preds = %11
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = load ptr, ptr %15, align 8, !tbaa !12
  %.not31 = icmp eq ptr %16, null
  br i1 %.not31, label %.preheader39, label %17

.preheader39:                                     ; preds = %17, %14
  br label %29

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %16, i64 624
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %.preheader39, label %.preheader

.preheader:                                       ; preds = %17
  %.not3234 = icmp eq i32 %4, 0
  br i1 %.not3234, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %xtraiter = and i32 %4, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader, %.lr.ph.prol
  %.02038.prol = phi i32 [ %21, %.lr.ph.prol ], [ %4, %.lr.ph.preheader ]
  %.02137.prol = phi double [ %27, %.lr.ph.prol ], [ 0.000000e+00, %.lr.ph.preheader ]
  %.12536.prol = phi ptr [ %24, %.lr.ph.prol ], [ %9, %.lr.ph.preheader ]
  %.12735.prol = phi ptr [ %22, %.lr.ph.prol ], [ %8, %.lr.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader ]
  %21 = add nsw i32 %.02038.prol, -1
  %22 = getelementptr inbounds i8, ptr %.12735.prol, i64 8
  %23 = load double, ptr %.12735.prol, align 8, !tbaa !20
  %24 = getelementptr inbounds i8, ptr %.12536.prol, i64 8
  %25 = load double, ptr %.12536.prol, align 8, !tbaa !20
  %26 = fsub double %23, %25
  %27 = tail call double @llvm.fmuladd.f64(double %26, double %26, double %.02137.prol)
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !21

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph.preheader ], [ %27, %.lr.ph.prol ]
  %.02038.unr = phi i32 [ %4, %.lr.ph.preheader ], [ %21, %.lr.ph.prol ]
  %.02137.unr = phi double [ 0.000000e+00, %.lr.ph.preheader ], [ %27, %.lr.ph.prol ]
  %.12536.unr = phi ptr [ %9, %.lr.ph.preheader ], [ %24, %.lr.ph.prol ]
  %.12735.unr = phi ptr [ %8, %.lr.ph.preheader ], [ %22, %.lr.ph.prol ]
  %28 = icmp ult i32 %4, 4
  br i1 %28, label %._crit_edge, label %.lr.ph

29:                                               ; preds = %.preheader39, %30
  %.026 = phi ptr [ %32, %30 ], [ %8, %.preheader39 ]
  %.024 = phi ptr [ %34, %30 ], [ %9, %.preheader39 ]
  %.022 = phi i32 [ %31, %30 ], [ %4, %.preheader39 ]
  %.not33 = icmp eq i32 %.022, 0
  br i1 %.not33, label %.loopexit, label %30

30:                                               ; preds = %29
  %31 = add nsw i32 %.022, -1
  %32 = getelementptr inbounds i8, ptr %.026, i64 8
  %33 = load double, ptr %.026, align 8, !tbaa !20
  %34 = getelementptr inbounds i8, ptr %.024, i64 8
  %35 = load double, ptr %.024, align 8, !tbaa !20
  %36 = fcmp une double %33, %35
  br i1 %36, label %.loopexit, label %29, !llvm.loop !23

._crit_edge:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.preheader
  %.021.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %.lcssa.unr, %.lr.ph.prol.loopexit ], [ %65, %.lr.ph ]
  %37 = tail call double @sqrt(double noundef %.021.lcssa) #3
  %38 = load ptr, ptr %15, align 8, !tbaa !12
  %39 = tail call noundef double @_ZNK8orgQhull7QhullQh15distanceEpsilonEv(ptr noundef nonnull align 8 dereferenceable(8249) %38)
  %40 = fcmp olt double %37, %39
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.02038 = phi i32 [ %59, %.lr.ph ], [ %.02038.unr, %.lr.ph.prol.loopexit ]
  %.02137 = phi double [ %65, %.lr.ph ], [ %.02137.unr, %.lr.ph.prol.loopexit ]
  %.12536 = phi ptr [ %62, %.lr.ph ], [ %.12536.unr, %.lr.ph.prol.loopexit ]
  %.12735 = phi ptr [ %60, %.lr.ph ], [ %.12735.unr, %.lr.ph.prol.loopexit ]
  %41 = getelementptr inbounds i8, ptr %.12735, i64 8
  %42 = load double, ptr %.12735, align 8, !tbaa !20
  %43 = getelementptr inbounds i8, ptr %.12536, i64 8
  %44 = load double, ptr %.12536, align 8, !tbaa !20
  %45 = fsub double %42, %44
  %46 = tail call double @llvm.fmuladd.f64(double %45, double %45, double %.02137)
  %47 = getelementptr inbounds i8, ptr %.12735, i64 16
  %48 = load double, ptr %41, align 8, !tbaa !20
  %49 = getelementptr inbounds i8, ptr %.12536, i64 16
  %50 = load double, ptr %43, align 8, !tbaa !20
  %51 = fsub double %48, %50
  %52 = tail call double @llvm.fmuladd.f64(double %51, double %51, double %46)
  %53 = getelementptr inbounds i8, ptr %.12735, i64 24
  %54 = load double, ptr %47, align 8, !tbaa !20
  %55 = getelementptr inbounds i8, ptr %.12536, i64 24
  %56 = load double, ptr %49, align 8, !tbaa !20
  %57 = fsub double %54, %56
  %58 = tail call double @llvm.fmuladd.f64(double %57, double %57, double %52)
  %59 = add nsw i32 %.02038, -4
  %60 = getelementptr inbounds i8, ptr %.12735, i64 32
  %61 = load double, ptr %53, align 8, !tbaa !20
  %62 = getelementptr inbounds i8, ptr %.12536, i64 32
  %63 = load double, ptr %55, align 8, !tbaa !20
  %64 = fsub double %61, %63
  %65 = tail call double @llvm.fmuladd.f64(double %64, double %64, double %58)
  %.not32.3 = icmp eq i32 %59, 0
  br i1 %.not32.3, label %._crit_edge, label %.lr.ph, !llvm.loop !25

.loopexit:                                        ; preds = %29, %30, %._crit_edge, %7, %11, %2
  %.2 = phi i1 [ false, %2 ], [ %40, %._crit_edge ], [ true, %7 ], [ false, %11 ], [ %.not33, %30 ], [ %.not33, %29 ]
  ret i1 %.2
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK8orgQhull7QhullQh15distanceEpsilonEv(ptr noundef nonnull align 8 dereferenceable(8249)) local_unnamed_addr #0 align 2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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, !10, i64 16}
!6 = !{!"_ZTSN8orgQhull10QhullPointE", !7, i64 0, !7, i64 8, !10, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !10, i64 624}
!14 = !{!"_ZTS3qhT", !10, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !15, i64 56, !15, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !7, i64 96, !10, i64 104, !10, i64 108, !7, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !15, i64 152, !15, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !15, i64 184, !15, i64 192, !10, i64 200, !15, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !8, i64 296, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !15, i64 448, !15, i64 456, !15, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !15, i64 544, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !15, i64 584, !10, i64 592, !7, i64 600, !7, i64 608, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !7, i64 640, !10, i64 648, !7, i64 656, !10, i64 664, !8, i64 668, !10, i64 924, !8, i64 928, !8, i64 1184, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !7, i64 1720, !7, i64 1728, !7, i64 1736, !7, i64 1744, !15, i64 1752, !15, i64 1760, !15, i64 1768, !15, i64 1776, !15, i64 1784, !15, i64 1792, !15, i64 1800, !15, i64 1808, !15, i64 1816, !15, i64 1824, !15, i64 1832, !15, i64 1840, !15, i64 1848, !10, i64 1856, !7, i64 1864, !15, i64 1872, !15, i64 1880, !15, i64 1888, !15, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !7, i64 2392, !7, i64 2400, !7, i64 2408, !7, i64 2416, !10, i64 2424, !10, i64 2428, !10, i64 2432, !7, i64 2440, !7, i64 2448, !7, i64 2456, !7, i64 2464, !7, i64 2472, !10, i64 2480, !10, i64 2484, !7, i64 2488, !10, i64 2496, !7, i64 2504, !7, i64 2512, !7, i64 2520, !7, i64 2528, !10, i64 2536, !10, i64 2540, !10, i64 2544, !10, i64 2548, !10, i64 2552, !10, i64 2556, !10, i64 2560, !16, i64 2568, !10, i64 2576, !10, i64 2580, !17, i64 2584, !10, i64 2588, !7, i64 2592, !10, i64 2600, !10, i64 2604, !15, i64 2608, !10, i64 2616, !15, i64 2624, !15, i64 2632, !15, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !10, i64 2660, !15, i64 2664, !15, i64 2672, !10, i64 2680, !10, i64 2684, !10, i64 2688, !10, i64 2692, !15, i64 2696, !15, i64 2704, !10, i64 2712, !10, i64 2716, !10, i64 2720, !10, i64 2724, !7, i64 2728, !7, i64 2736, !7, i64 2744, !7, i64 2752, !7, i64 2760, !7, i64 2768, !7, i64 2776, !7, i64 2784, !10, i64 2792, !7, i64 2800, !7, i64 2808, !10, i64 2816, !10, i64 2820, !10, i64 2824, !7, i64 2832, !15, i64 2840, !15, i64 2848, !15, i64 2856, !10, i64 2864, !10, i64 2868, !7, i64 2872, !10, i64 2880, !10, i64 2884, !8, i64 2888, !8, i64 3088, !10, i64 3128, !15, i64 3136, !7, i64 3144, !18, i64 3152, !19, i64 3304}
!15 = !{!"double", !8, i64 0}
!16 = !{!"long", !8, i64 0}
!17 = !{!"_ZTS9qh_CENTER", !8, i64 0}
!18 = !{!"_ZTS6qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!19 = !{!"_ZTS7qhstatT", !8, i64 0, !8, i64 1816, !8, i64 2056, !8, i64 3872, !8, i64 4326, !8, i64 4553, !8, i64 4784, !10, i64 4856, !10, i64 4860, !10, i64 4864, !10, i64 4868, !15, i64 4872}
!20 = !{!15, !15, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.unroll.disable"}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = distinct !{!25, !24}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass