; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhullcpp/QhullFacet.ll (ZN8orgQhull10QhullFacet9facetAreaEv)

; 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::QhullFacet" = type { ptr, ptr }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%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 }

@.str = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8

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

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) #1

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8orgQhull9RoadErrorD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #3 align 2

declare void @__cxa_throw(ptr, ptr, ptr)

declare void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249), i32 noundef) #4

; 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 double @_ZN8orgQhull10QhullFacet9facetAreaEv(ptr noundef nonnull align 8 dereferenceable(16) %0) #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %6 = load ptr, ptr %2, align 8
  %7 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = icmp ne ptr %8, null
  br i1 %9, label %10, label %65

10:                                               ; preds = %1
  %11 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 0
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = getelementptr inbounds %struct.facetT, ptr %12, i32 0, i32 15
  %14 = load i32, ptr %13, align 8
  %15 = lshr i32 %14, 20
  %16 = and i32 %15, 1
  %17 = icmp ne i32 %16, 0
  br i1 %17, label %65, label %18

18:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %19 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %struct.qhT, ptr %20, i32 0, i32 192
  %22 = load i32, ptr %21, align 4, !tbaa !12
  %23 = icmp ne i32 %22, 0
  br i1 %23, label %24, label %33

24:                                               ; preds = %18
  %25 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %26 = load ptr, ptr %25, align 8, !tbaa !9
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 192
  store i32 0, ptr %27, align 4, !tbaa !12
  %28 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %29 = load ptr, ptr %28, align 8, !tbaa !9
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 145
  %31 = getelementptr inbounds [1 x %struct.__jmp_buf_tag], ptr %30, i64 0, i64 0
  %32 = call i32 @_setjmp(ptr noundef %31) #6
  store i32 %32, ptr %3, align 4, !tbaa !20
  br label %40

33:                                               ; preds = %18
  %34 = call ptr @__cxa_allocate_exception(i64 80) #5
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %34, i32 noundef 10071, ptr noundef @.str)
          to label %35 unwind label %36

35:                                               ; preds = %33
  call void @__cxa_throw(ptr %34, ptr @_ZTIN8orgQhull10QhullErrorE, ptr @_ZN8orgQhull9RoadErrorD2Ev) #7
  unreachable

36:                                               ; preds = %33
  %37 = landingpad { ptr, i32 }
          cleanup
  %38 = extractvalue { ptr, i32 } %37, 0
  store ptr %38, ptr %4, align 8
  %39 = extractvalue { ptr, i32 } %37, 1
  store i32 %39, ptr %5, align 4
  call void @__cxa_free_exception(ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %70

40:                                               ; preds = %24
  %41 = load i32, ptr %3, align 4, !tbaa !20
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %58, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !9
  %46 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 0
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = call double @qh_facetarea(ptr noundef %45, ptr noundef %47)
  %49 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 4
  store double %48, ptr %51, align 8, !tbaa !21
  %52 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 0
  %53 = load ptr, ptr %52, align 8, !tbaa !11
  %54 = getelementptr inbounds %struct.facetT, ptr %53, i32 0, i32 15
  %55 = load i32, ptr %54, align 8
  %56 = and i32 %55, -1048577
  %57 = or i32 %56, 1048576
  store i32 %57, ptr %54, align 8
  br label %58

58:                                               ; preds = %43, %40
  %59 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %struct.qhT, ptr %60, i32 0, i32 192
  store i32 1, ptr %61, align 4, !tbaa !12
  %62 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = load i32, ptr %3, align 4, !tbaa !20
  call void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249) %63, i32 noundef %64)
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %65

65:                                               ; preds = %58, %10, %1
  %66 = getelementptr inbounds %"class.orgQhull::QhullFacet", ptr %6, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = getelementptr inbounds %struct.facetT, ptr %67, i32 0, i32 4
  %69 = load double, ptr %68, align 8, !tbaa !21
  ret double %69

70:                                               ; preds = %36
  %71 = load ptr, ptr %4, align 8
  %72 = load i32, ptr %5, align 4
  %73 = insertvalue { ptr, i32 } poison, ptr %71, 0
  %74 = insertvalue { ptr, i32 } %73, i32 %72, 1
  resume { ptr, i32 } %74
}

declare double @qh_facetarea(ptr noundef, ptr noundef) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"_ZTSN8orgQhull10QhullFacetE", !6, i64 0, !6, i64 8}
!11 = !{!10, !6, i64 0}
!12 = !{!13, !14, i64 2660}
!13 = !{!"_ZTS3qhT", !14, i64 0, !14, i64 4, !14, i64 8, !15, i64 16, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !15, i64 56, !15, i64 64, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !6, i64 96, !14, i64 104, !14, i64 108, !6, i64 112, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144, !15, i64 152, !15, i64 160, !14, i64 168, !14, i64 172, !14, i64 176, !15, i64 184, !15, i64 192, !14, i64 200, !15, i64 208, !14, i64 216, !14, i64 220, !14, i64 224, !14, i64 228, !14, i64 232, !14, i64 236, !14, i64 240, !14, i64 244, !14, i64 248, !14, i64 252, !14, i64 256, !14, i64 260, !14, i64 264, !14, i64 268, !14, i64 272, !14, i64 276, !14, i64 280, !14, i64 284, !14, i64 288, !14, i64 292, !7, i64 296, !14, i64 412, !14, i64 416, !14, i64 420, !14, i64 424, !14, i64 428, !14, i64 432, !14, i64 436, !14, i64 440, !14, i64 444, !15, i64 448, !15, i64 456, !15, i64 464, !14, i64 472, !14, i64 476, !14, i64 480, !14, i64 484, !14, i64 488, !14, i64 492, !14, i64 496, !14, i64 500, !14, i64 504, !14, i64 508, !14, i64 512, !14, i64 516, !14, i64 520, !14, i64 524, !14, i64 528, !14, i64 532, !14, i64 536, !14, i64 540, !15, i64 544, !14, i64 552, !14, i64 556, !14, i64 560, !14, i64 564, !14, i64 568, !14, i64 572, !14, i64 576, !14, i64 580, !15, i64 584, !14, i64 592, !6, i64 600, !6, i64 608, !14, i64 616, !14, i64 620, !14, i64 624, !14, i64 628, !14, i64 632, !6, i64 640, !14, i64 648, !6, i64 656, !14, i64 664, !7, i64 668, !14, i64 924, !7, i64 928, !7, i64 1184, !14, i64 1696, !14, i64 1700, !14, i64 1704, !14, i64 1708, !14, i64 1712, !14, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, 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, !14, i64 1856, !6, i64 1864, !15, i64 1872, !15, i64 1880, !15, i64 1888, !15, 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, !14, i64 2424, !14, i64 2428, !14, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !14, i64 2480, !14, i64 2484, !6, i64 2488, !14, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !14, i64 2536, !14, i64 2540, !14, i64 2544, !14, i64 2548, !14, i64 2552, !14, i64 2556, !14, i64 2560, !16, i64 2568, !14, i64 2576, !14, i64 2580, !17, i64 2584, !14, i64 2588, !6, i64 2592, !14, i64 2600, !14, i64 2604, !15, i64 2608, !14, i64 2616, !15, i64 2624, !15, i64 2632, !15, i64 2640, !14, i64 2648, !14, i64 2652, !14, i64 2656, !14, i64 2660, !15, i64 2664, !15, i64 2672, !14, i64 2680, !14, i64 2684, !14, i64 2688, !14, i64 2692, !15, i64 2696, !15, i64 2704, !14, i64 2712, !14, i64 2716, !14, i64 2720, !14, 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, !14, i64 2792, !6, i64 2800, !6, i64 2808, !14, i64 2816, !14, i64 2820, !14, i64 2824, !6, i64 2832, !15, i64 2840, !15, i64 2848, !15, i64 2856, !14, i64 2864, !14, i64 2868, !6, i64 2872, !14, i64 2880, !14, i64 2884, !7, i64 2888, !7, i64 3088, !14, i64 3128, !15, i64 3136, !6, i64 3144, !18, i64 3152, !19, i64 3304}
!14 = !{!"int", !7, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS9qh_CENTER", !7, i64 0}
!18 = !{!"_ZTS6qhmemT", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !6, i64 72, !6, i64 80, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !14, i64 136, !14, i64 140, !14, i64 144}
!19 = !{!"_ZTS7qhstatT", !7, i64 0, !7, i64 1816, !7, i64 2056, !7, i64 3872, !7, i64 4326, !7, i64 4553, !7, i64 4784, !14, i64 4856, !14, i64 4860, !14, i64 4864, !14, i64 4868, !15, i64 4872}
!20 = !{!14, !14, i64 0}
!21 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [121 x i8], align 1
@_ZTIN8orgQhull10QhullErrorE = external dso_local constant { ptr, ptr, ptr }, align 8

; Function Attrs: nounwind returns_twice
declare i32 @_setjmp(ptr noundef) local_unnamed_addr #0

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80), i32 noundef, ptr noundef) unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN8orgQhull9RoadErrorD2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #2 align 2

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

declare void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249), i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef double @_ZN8orgQhull10QhullFacet9facetAreaEv(ptr nocapture noundef nonnull readonly align 8 dereferenceable(16) %0) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  %.pre7 = load ptr, ptr %0, align 8, !tbaa !10
  br i1 %.not, label %32, label %4

4:                                                ; preds = %1
  %5 = getelementptr inbounds i8, ptr %.pre7, i64 112
  %6 = load i32, ptr %5, align 8
  %7 = and i32 %6, 1048576
  %.not4 = icmp eq i32 %7, 0
  br i1 %.not4, label %8, label %32

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %3, i64 2660
  %10 = load i32, ptr %9, align 4, !tbaa !11
  %.not5 = icmp eq i32 %10, 0
  br i1 %.not5, label %14, label %11

11:                                               ; preds = %8
  store i32 0, ptr %9, align 4, !tbaa !11
  %12 = getelementptr inbounds i8, ptr %3, i64 1912
  %13 = call i32 @_setjmp(ptr noundef nonnull %12) #4
  %.not6 = icmp eq i32 %13, 0
  br i1 %.not6, label %19, label %29

14:                                               ; preds = %8
  %15 = call ptr @__cxa_allocate_exception(i64 80) #5
  invoke void @_ZN8orgQhull10QhullErrorC2EiPKc(ptr noundef nonnull align 8 dereferenceable(80) %15, i32 noundef 10071, ptr noundef nonnull @.str)
          to label %16 unwind label %17

16:                                               ; preds = %14
  call void @__cxa_throw(ptr nonnull %15, ptr nonnull @_ZTIN8orgQhull10QhullErrorE, ptr nonnull @_ZN8orgQhull9RoadErrorD2Ev) #6
  unreachable

17:                                               ; preds = %14
  %18 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %15) #5
  resume { ptr, i32 } %18

19:                                               ; preds = %11
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %0, align 8, !tbaa !10
  %22 = call double @qh_facetarea(ptr noundef %20, ptr noundef %21)
  %23 = load ptr, ptr %0, align 8, !tbaa !10
  %24 = getelementptr inbounds i8, ptr %23, i64 32
  store double %22, ptr %24, align 8, !tbaa !19
  %25 = load ptr, ptr %0, align 8, !tbaa !10
  %26 = getelementptr inbounds i8, ptr %25, i64 112
  %27 = load i32, ptr %26, align 8
  %28 = or i32 %27, 1048576
  store i32 %28, ptr %26, align 8
  br label %29

29:                                               ; preds = %19, %11
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 2660
  store i32 1, ptr %31, align 4, !tbaa !11
  call void @_ZN8orgQhull7QhullQh22maybeThrowQhullMessageEi(ptr noundef nonnull align 8 dereferenceable(8249) %30, i32 noundef %13)
  %.pre = load ptr, ptr %0, align 8, !tbaa !10
  br label %32

32:                                               ; preds = %29, %4, %1
  %33 = phi ptr [ %.pre, %29 ], [ %.pre7, %4 ], [ %.pre7, %1 ]
  %34 = getelementptr inbounds i8, ptr %33, i64 32
  %35 = load double, ptr %34, align 8, !tbaa !19
  ret double %35
}

declare double @qh_facetarea(ptr noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { nounwind returns_twice "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 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 = { "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 returns_twice }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN8orgQhull10QhullFacetE", !7, i64 0, !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 0}
!11 = !{!12, !13, i64 2660}
!12 = !{!"_ZTS3qhT", !13, i64 0, !13, i64 4, !13, i64 8, !14, i64 16, !13, i64 24, !13, i64 28, !13, i64 32, !13, i64 36, !13, i64 40, !13, i64 44, !13, i64 48, !14, i64 56, !14, i64 64, !13, i64 72, !13, i64 76, !13, i64 80, !13, i64 84, !13, i64 88, !7, i64 96, !13, i64 104, !13, i64 108, !7, i64 112, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144, !14, i64 152, !14, i64 160, !13, i64 168, !13, i64 172, !13, i64 176, !14, i64 184, !14, i64 192, !13, i64 200, !14, i64 208, !13, i64 216, !13, i64 220, !13, i64 224, !13, i64 228, !13, i64 232, !13, i64 236, !13, i64 240, !13, i64 244, !13, i64 248, !13, i64 252, !13, i64 256, !13, i64 260, !13, i64 264, !13, i64 268, !13, i64 272, !13, i64 276, !13, i64 280, !13, i64 284, !13, i64 288, !13, i64 292, !8, i64 296, !13, i64 412, !13, i64 416, !13, i64 420, !13, i64 424, !13, i64 428, !13, i64 432, !13, i64 436, !13, i64 440, !13, i64 444, !14, i64 448, !14, i64 456, !14, i64 464, !13, i64 472, !13, i64 476, !13, i64 480, !13, i64 484, !13, i64 488, !13, i64 492, !13, i64 496, !13, i64 500, !13, i64 504, !13, i64 508, !13, i64 512, !13, i64 516, !13, i64 520, !13, i64 524, !13, i64 528, !13, i64 532, !13, i64 536, !13, i64 540, !14, i64 544, !13, i64 552, !13, i64 556, !13, i64 560, !13, i64 564, !13, i64 568, !13, i64 572, !13, i64 576, !13, i64 580, !14, i64 584, !13, i64 592, !7, i64 600, !7, i64 608, !13, i64 616, !13, i64 620, !13, i64 624, !13, i64 628, !13, i64 632, !7, i64 640, !13, i64 648, !7, i64 656, !13, i64 664, !8, i64 668, !13, i64 924, !8, i64 928, !8, i64 1184, !13, i64 1696, !13, i64 1700, !13, i64 1704, !13, i64 1708, !13, i64 1712, !13, i64 1716, !7, i64 1720, !7, i64 1728, !7, i64 1736, !7, i64 1744, !14, i64 1752, !14, i64 1760, !14, i64 1768, !14, i64 1776, !14, i64 1784, !14, i64 1792, !14, i64 1800, !14, i64 1808, !14, i64 1816, !14, i64 1824, !14, i64 1832, !14, i64 1840, !14, i64 1848, !13, i64 1856, !7, i64 1864, !14, i64 1872, !14, i64 1880, !14, i64 1888, !14, 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, !13, i64 2424, !13, i64 2428, !13, i64 2432, !7, i64 2440, !7, i64 2448, !7, i64 2456, !7, i64 2464, !7, i64 2472, !13, i64 2480, !13, i64 2484, !7, i64 2488, !13, i64 2496, !7, i64 2504, !7, i64 2512, !7, i64 2520, !7, i64 2528, !13, i64 2536, !13, i64 2540, !13, i64 2544, !13, i64 2548, !13, i64 2552, !13, i64 2556, !13, i64 2560, !15, i64 2568, !13, i64 2576, !13, i64 2580, !16, i64 2584, !13, i64 2588, !7, i64 2592, !13, i64 2600, !13, i64 2604, !14, i64 2608, !13, i64 2616, !14, i64 2624, !14, i64 2632, !14, i64 2640, !13, i64 2648, !13, i64 2652, !13, i64 2656, !13, i64 2660, !14, i64 2664, !14, i64 2672, !13, i64 2680, !13, i64 2684, !13, i64 2688, !13, i64 2692, !14, i64 2696, !14, i64 2704, !13, i64 2712, !13, i64 2716, !13, i64 2720, !13, 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, !13, i64 2792, !7, i64 2800, !7, i64 2808, !13, i64 2816, !13, i64 2820, !13, i64 2824, !7, i64 2832, !14, i64 2840, !14, i64 2848, !14, i64 2856, !13, i64 2864, !13, i64 2868, !7, i64 2872, !13, i64 2880, !13, i64 2884, !8, i64 2888, !8, i64 3088, !13, i64 3128, !14, i64 3136, !7, i64 3144, !17, i64 3152, !18, i64 3304}
!13 = !{!"int", !8, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!"_ZTS9qh_CENTER", !8, i64 0}
!17 = !{!"_ZTS6qhmemT", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16, !13, i64 20, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !13, i64 64, !7, i64 72, !7, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108, !13, i64 112, !13, i64 116, !13, i64 120, !13, i64 124, !13, i64 128, !13, i64 132, !13, i64 136, !13, i64 140, !13, i64 144}
!18 = !{!"_ZTS7qhstatT", !8, i64 0, !8, i64 1816, !8, i64 2056, !8, i64 3872, !8, i64 4326, !8, i64 4553, !8, i64 4784, !13, i64 4856, !13, i64 4860, !13, i64 4864, !13, i64 4868, !14, i64 4872}
!19 = !{!8, !8, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass