; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (poly_r)

; 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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, 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, double, double, double, i32, 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, double, ptr, double, double, double, double, i32, [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, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, 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 { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@.str.11 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1

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

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) #1

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

declare void @qh_errexit2(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_facetintersect(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  store i32 %5, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qhT, ptr %19, i32 0, i32 110
  %21 = load i32, ptr %20, align 8, !tbaa !11
  store i32 %21, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.facetT, ptr %22, i32 0, i32 10
  %24 = load ptr, ptr %23, align 8, !tbaa !17
  %25 = getelementptr inbounds %struct.setT, ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds [1 x %union.setelemT], ptr %25, i64 0, i64 0
  store ptr %26, ptr %17, align 8, !tbaa !5
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.facetT, ptr %27, i32 0, i32 10
  %29 = load ptr, ptr %28, align 8, !tbaa !17
  %30 = getelementptr inbounds %struct.setT, ptr %29, i32 0, i32 1
  %31 = getelementptr inbounds [1 x %union.setelemT], ptr %30, i64 0, i64 0
  store ptr %31, ptr %18, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %15, align 4, !tbaa !9
  %32 = load ptr, ptr %9, align 8, !tbaa !5
  %33 = load ptr, ptr %17, align 8, !tbaa !5
  %34 = getelementptr inbounds ptr, ptr %33, i32 1
  store ptr %34, ptr %17, align 8, !tbaa !5
  %35 = load ptr, ptr %33, align 8, !tbaa !5
  %36 = icmp eq ptr %32, %35
  br i1 %36, label %37, label %39

37:                                               ; preds = %6
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 0, ptr %38, align 4, !tbaa !9
  br label %76

39:                                               ; preds = %6
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = load ptr, ptr %17, align 8, !tbaa !5
  %42 = getelementptr inbounds ptr, ptr %41, i32 1
  store ptr %42, ptr %17, align 8, !tbaa !5
  %43 = load ptr, ptr %41, align 8, !tbaa !5
  %44 = icmp eq ptr %40, %43
  br i1 %44, label %45, label %47

45:                                               ; preds = %39
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 1, ptr %46, align 4, !tbaa !9
  br label %75

47:                                               ; preds = %39
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  %50 = getelementptr inbounds ptr, ptr %49, i32 1
  store ptr %50, ptr %17, align 8, !tbaa !5
  %51 = load ptr, ptr %49, align 8, !tbaa !5
  %52 = icmp eq ptr %48, %51
  br i1 %52, label %53, label %55

53:                                               ; preds = %47
  %54 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 2, ptr %54, align 4, !tbaa !9
  br label %74

55:                                               ; preds = %47
  store i32 3, ptr %15, align 4, !tbaa !9
  br label %56

56:                                               ; preds = %70, %55
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %14, align 4, !tbaa !9
  %59 = icmp slt i32 %57, %58
  br i1 %59, label %60, label %73

60:                                               ; preds = %56
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = getelementptr inbounds ptr, ptr %62, i32 1
  store ptr %63, ptr %17, align 8, !tbaa !5
  %64 = load ptr, ptr %62, align 8, !tbaa !5
  %65 = icmp eq ptr %61, %64
  br i1 %65, label %66, label %69

66:                                               ; preds = %60
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %67, ptr %68, align 4, !tbaa !9
  br label %73

69:                                               ; preds = %60
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %15, align 4, !tbaa !9
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %15, align 4, !tbaa !9
  br label %56, !llvm.loop !19

73:                                               ; preds = %66, %56
  br label %74

74:                                               ; preds = %73, %53
  br label %75

75:                                               ; preds = %74, %45
  br label %76

76:                                               ; preds = %75, %37
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = getelementptr inbounds ptr, ptr %78, i32 1
  store ptr %79, ptr %18, align 8, !tbaa !5
  %80 = load ptr, ptr %78, align 8, !tbaa !5
  %81 = icmp eq ptr %77, %80
  br i1 %81, label %82, label %84

82:                                               ; preds = %76
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 0, ptr %83, align 4, !tbaa !9
  br label %121

84:                                               ; preds = %76
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load ptr, ptr %18, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i32 1
  store ptr %87, ptr %18, align 8, !tbaa !5
  %88 = load ptr, ptr %86, align 8, !tbaa !5
  %89 = icmp eq ptr %85, %88
  br i1 %89, label %90, label %92

90:                                               ; preds = %84
  %91 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 1, ptr %91, align 4, !tbaa !9
  br label %120

92:                                               ; preds = %84
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = getelementptr inbounds ptr, ptr %94, i32 1
  store ptr %95, ptr %18, align 8, !tbaa !5
  %96 = load ptr, ptr %94, align 8, !tbaa !5
  %97 = icmp eq ptr %93, %96
  br i1 %97, label %98, label %100

98:                                               ; preds = %92
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 2, ptr %99, align 4, !tbaa !9
  br label %119

100:                                              ; preds = %92
  store i32 3, ptr %16, align 4, !tbaa !9
  br label %101

101:                                              ; preds = %115, %100
  %102 = load i32, ptr %16, align 4, !tbaa !9
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = icmp slt i32 %102, %103
  br i1 %104, label %105, label %118

105:                                              ; preds = %101
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = getelementptr inbounds ptr, ptr %107, i32 1
  store ptr %108, ptr %18, align 8, !tbaa !5
  %109 = load ptr, ptr %107, align 8, !tbaa !5
  %110 = icmp eq ptr %106, %109
  br i1 %110, label %111, label %114

111:                                              ; preds = %105
  %112 = load i32, ptr %16, align 4, !tbaa !9
  %113 = load ptr, ptr %11, align 8, !tbaa !5
  store i32 %112, ptr %113, align 4, !tbaa !9
  br label %118

114:                                              ; preds = %105
  br label %115

115:                                              ; preds = %114
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %16, align 4, !tbaa !9
  br label %101, !llvm.loop !21

118:                                              ; preds = %111, %101
  br label %119

119:                                              ; preds = %118, %98
  br label %120

120:                                              ; preds = %119, %90
  br label %121

121:                                              ; preds = %120, %82
  %122 = load i32, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %14, align 4, !tbaa !9
  %124 = icmp sge i32 %122, %123
  br i1 %124, label %129, label %125

125:                                              ; preds = %121
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %14, align 4, !tbaa !9
  %128 = icmp sge i32 %126, %127
  br i1 %128, label %129, label %143

129:                                              ; preds = %125, %121
  %130 = load ptr, ptr %7, align 8, !tbaa !5
  %131 = load ptr, ptr %7, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.qhT, ptr %131, i32 0, i32 158
  %133 = load ptr, ptr %132, align 8, !tbaa !22
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.facetT, ptr %134, i32 0, i32 14
  %136 = load i32, ptr %135, align 4, !tbaa !23
  %137 = load ptr, ptr %9, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.facetT, ptr %137, i32 0, i32 14
  %139 = load i32, ptr %138, align 4, !tbaa !23
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %130, ptr noundef %133, i32 noundef 6104, ptr noundef @.str.11, i32 noundef %136, i32 noundef %139)
  %140 = load ptr, ptr %7, align 8, !tbaa !5
  %141 = load ptr, ptr %8, align 8, !tbaa !5
  %142 = load ptr, ptr %9, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %140, i32 noundef 5, ptr noundef %141, ptr noundef %142)
  br label %143

143:                                              ; preds = %129, %125
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load ptr, ptr %8, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 8
  %147 = load ptr, ptr %146, align 8, !tbaa !24
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.qhT, ptr %148, i32 0, i32 110
  %150 = load i32, ptr %149, align 8, !tbaa !11
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = load i32, ptr %151, align 4, !tbaa !9
  %153 = load i32, ptr %12, align 4, !tbaa !9
  %154 = call ptr @qh_setnew_delnthsorted(ptr noundef %144, ptr noundef %147, i32 noundef %150, i32 noundef %152, i32 noundef %153)
  store ptr %154, ptr %13, align 8, !tbaa !5
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.qhT, ptr %155, i32 0, i32 29
  %157 = load i32, ptr %156, align 8, !tbaa !25
  %158 = icmp sge i32 %157, 4
  br i1 %158, label %159, label %174

159:                                              ; preds = %143
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = load ptr, ptr %7, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.qhT, ptr %161, i32 0, i32 158
  %163 = load ptr, ptr %162, align 8, !tbaa !22
  %164 = load ptr, ptr %8, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 14
  %166 = load i32, ptr %165, align 4, !tbaa !23
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = load i32, ptr %167, align 4, !tbaa !9
  %169 = load ptr, ptr %9, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 14
  %171 = load i32, ptr %170, align 4, !tbaa !23
  %172 = load ptr, ptr %11, align 8, !tbaa !5
  %173 = load i32, ptr %172, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %160, ptr noundef %163, i32 noundef 4047, ptr noundef @.str.12, i32 noundef %166, i32 noundef %168, i32 noundef %171, i32 noundef %173)
  br label %174

174:                                              ; preds = %159, %143
  %175 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  ret ptr %175
}

declare ptr @qh_setnew_delnthsorted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 632}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !13, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !13, i64 64, !13, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !6, i64 104, !10, i64 112, !10, i64 116, !6, i64 120, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !13, i64 160, !13, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !13, i64 192, !13, i64 200, !10, i64 208, !10, i64 212, !13, i64 216, !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, !10, i64 296, !7, i64 300, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !13, i64 448, !13, i64 456, !13, 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, !10, i64 544, !13, i64 552, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !10, i64 588, !13, i64 592, !10, i64 600, !6, i64 608, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !6, i64 648, !10, i64 656, !6, i64 664, !10, i64 672, !7, i64 676, !10, i64 932, !7, i64 936, !7, i64 1192, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !10, i64 1720, !10, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !6, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, i64 1904, !10, i64 1912, !7, i64 1916, !7, i64 1928, !7, i64 2128, !7, i64 2168, !7, i64 2368, !6, i64 2408, !6, i64 2416, !6, i64 2424, !6, i64 2432, !10, i64 2440, !10, i64 2444, !10, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !10, i64 2496, !10, i64 2500, !6, i64 2504, !10, i64 2512, !6, i64 2520, !10, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !10, i64 2568, !10, i64 2572, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !10, i64 2592, !10, i64 2596, !14, i64 2600, !10, i64 2608, !10, i64 2612, !10, i64 2616, !10, i64 2620, !10, i64 2624, !6, i64 2632, !6, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !13, i64 2664, !10, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !13, i64 2728, !13, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !13, i64 2768, !13, i64 2776, !10, i64 2784, !10, i64 2788, !10, i64 2792, !10, i64 2796, !6, i64 2800, !6, i64 2808, !6, i64 2816, !6, i64 2824, !6, i64 2832, !6, i64 2840, !6, i64 2848, !6, i64 2856, !6, i64 2864, !10, i64 2872, !6, i64 2880, !6, i64 2888, !10, i64 2896, !10, i64 2900, !10, i64 2904, !6, i64 2912, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, i64 2944, !10, i64 2952, !10, i64 2956, !10, i64 2960, !10, i64 2964, !10, i64 2968, !10, i64 2972, !6, i64 2976, !10, i64 2984, !10, i64 2988, !7, i64 2992, !7, i64 3192, !10, i64 3232, !13, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !15, i64 3272, !16, i64 3424}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!"qhmemT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64, !6, i64 72, !6, 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}
!16 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !10, i64 5320, !10, i64 5324, !10, i64 5328, !10, i64 5332, !13, i64 5336}
!17 = !{!18, !6, i64 80}
!18 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!12, !6, i64 2424}
!23 = !{!18, !10, i64 108}
!24 = !{!18, !6, i64 64}
!25 = !{!12, !10, i64 136}


; 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.11 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [52 x i8], align 1

declare void @qh_fprintf(ptr noundef, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare void @qh_errexit2(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_facetintersect(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %0, i64 632
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 80
  %10 = load ptr, ptr %9, align 8, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %10, i64 8
  %12 = getelementptr inbounds i8, ptr %2, i64 80
  %13 = load ptr, ptr %12, align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %13, i64 8
  %15 = load ptr, ptr %11, align 8, !tbaa !17
  %16 = icmp eq ptr %15, %2
  br i1 %16, label %.loopexit66.sink.split, label %17

17:                                               ; preds = %6
  %18 = getelementptr inbounds i8, ptr %10, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !17
  %20 = icmp eq ptr %19, %2
  br i1 %20, label %.loopexit66.sink.split, label %21

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %10, i64 24
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %24 = icmp eq ptr %23, %2
  br i1 %24, label %.loopexit66.sink.split, label %25

25:                                               ; preds = %21
  %26 = icmp sgt i32 %8, 3
  br i1 %26, label %.lr.ph.preheader, label %.loopexit66

.lr.ph.preheader:                                 ; preds = %25
  %27 = getelementptr inbounds i8, ptr %10, i64 32
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %30
  %.05870 = phi ptr [ %31, %30 ], [ %27, %.lr.ph.preheader ]
  %.06069 = phi i32 [ %32, %30 ], [ 3, %.lr.ph.preheader ]
  %28 = load ptr, ptr %.05870, align 8, !tbaa !17
  %29 = icmp eq ptr %28, %2
  br i1 %29, label %.loopexit66.sink.split, label %30

30:                                               ; preds = %.lr.ph
  %31 = getelementptr inbounds i8, ptr %.05870, i64 8
  %32 = add nuw nsw i32 %.06069, 1
  %exitcond.not = icmp eq i32 %32, %8
  br i1 %exitcond.not, label %.loopexit66, label %.lr.ph, !llvm.loop !18

.loopexit66.sink.split:                           ; preds = %.lr.ph, %21, %17, %6
  %.sink = phi i32 [ 0, %6 ], [ 1, %17 ], [ 2, %21 ], [ %.06069, %.lr.ph ]
  %.161.ph = phi i32 [ 0, %6 ], [ 0, %17 ], [ 0, %21 ], [ %.06069, %.lr.ph ]
  store i32 %.sink, ptr %3, align 4, !tbaa !20
  br label %.loopexit66

.loopexit66:                                      ; preds = %30, %.loopexit66.sink.split, %25
  %.161 = phi i32 [ 3, %25 ], [ %.161.ph, %.loopexit66.sink.split ], [ %8, %30 ]
  %33 = load ptr, ptr %14, align 8, !tbaa !17
  %34 = icmp eq ptr %33, %1
  br i1 %34, label %.loopexit.sink.split, label %35

35:                                               ; preds = %.loopexit66
  %36 = getelementptr inbounds i8, ptr %13, i64 16
  %37 = load ptr, ptr %36, align 8, !tbaa !17
  %38 = icmp eq ptr %37, %1
  br i1 %38, label %.loopexit.sink.split, label %39

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %13, i64 24
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  %42 = icmp eq ptr %41, %1
  br i1 %42, label %.loopexit.sink.split, label %43

43:                                               ; preds = %39
  %44 = icmp sgt i32 %8, 3
  br i1 %44, label %.lr.ph73.preheader, label %.loopexit

.lr.ph73.preheader:                               ; preds = %43
  %45 = getelementptr inbounds i8, ptr %13, i64 32
  br label %.lr.ph73

.lr.ph73:                                         ; preds = %.lr.ph73.preheader, %48
  %.072 = phi ptr [ %49, %48 ], [ %45, %.lr.ph73.preheader ]
  %.05971 = phi i32 [ %50, %48 ], [ 3, %.lr.ph73.preheader ]
  %46 = load ptr, ptr %.072, align 8, !tbaa !17
  %47 = icmp eq ptr %46, %1
  br i1 %47, label %.loopexit.sink.split, label %48

48:                                               ; preds = %.lr.ph73
  %49 = getelementptr inbounds i8, ptr %.072, i64 8
  %50 = add nuw nsw i32 %.05971, 1
  %exitcond78.not = icmp eq i32 %50, %8
  br i1 %exitcond78.not, label %.loopexit.thread, label %.lr.ph73, !llvm.loop !21

.loopexit.sink.split:                             ; preds = %.lr.ph73, %39, %35, %.loopexit66
  %.sink85 = phi i32 [ 0, %.loopexit66 ], [ 1, %35 ], [ 2, %39 ], [ %.05971, %.lr.ph73 ]
  %.1.ph = phi i32 [ 0, %.loopexit66 ], [ 0, %35 ], [ 0, %39 ], [ %.05971, %.lr.ph73 ]
  store i32 %.sink85, ptr %4, align 4, !tbaa !20
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %43
  %.1 = phi i32 [ 3, %43 ], [ %.1.ph, %.loopexit.sink.split ]
  %.not = icmp slt i32 %.161, %8
  %.not65 = icmp slt i32 %.1, %8
  %or.cond = and i1 %.not, %.not65
  br i1 %or.cond, label %57, label %.loopexit.thread

.loopexit.thread:                                 ; preds = %48, %.loopexit
  %51 = getelementptr inbounds i8, ptr %0, i64 2424
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %53 = getelementptr inbounds i8, ptr %1, i64 108
  %54 = load i32, ptr %53, align 4, !tbaa !23
  %55 = getelementptr inbounds i8, ptr %2, i64 108
  %56 = load i32, ptr %55, align 4, !tbaa !23
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %52, i32 noundef 6104, ptr noundef nonnull @.str.11, i32 noundef %54, i32 noundef %56) #2
  tail call void @qh_errexit2(ptr noundef %0, i32 noundef 5, ptr noundef %1, ptr noundef %2) #2
  br label %57

57:                                               ; preds = %.loopexit, %.loopexit.thread
  %58 = getelementptr inbounds i8, ptr %1, i64 64
  %59 = load ptr, ptr %58, align 8, !tbaa !24
  %60 = load i32, ptr %7, align 8, !tbaa !5
  %61 = load i32, ptr %3, align 4, !tbaa !20
  %62 = tail call ptr @qh_setnew_delnthsorted(ptr noundef %0, ptr noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %5) #2
  %63 = getelementptr inbounds i8, ptr %0, i64 136
  %64 = load i32, ptr %63, align 8, !tbaa !25
  %65 = icmp sgt i32 %64, 3
  br i1 %65, label %66, label %75

66:                                               ; preds = %57
  %67 = getelementptr inbounds i8, ptr %0, i64 2424
  %68 = load ptr, ptr %67, align 8, !tbaa !22
  %69 = getelementptr inbounds i8, ptr %1, i64 108
  %70 = load i32, ptr %69, align 4, !tbaa !23
  %71 = load i32, ptr %3, align 4, !tbaa !20
  %72 = getelementptr inbounds i8, ptr %2, i64 108
  %73 = load i32, ptr %72, align 4, !tbaa !23
  %74 = load i32, ptr %4, align 4, !tbaa !20
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %68, i32 noundef 4047, ptr noundef nonnull @.str.12, i32 noundef %70, i32 noundef %71, i32 noundef %73, i32 noundef %74) #2
  br label %75

75:                                               ; preds = %66, %57
  ret ptr %62
}

declare ptr @qh_setnew_delnthsorted(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #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 = { 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 = { 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, !7, i64 632}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !7, i64 2984, !7, i64 2988, !8, i64 2992, !8, i64 3192, !7, i64 3232, !10, i64 3240, !11, i64 3248, !11, i64 3256, !11, i64 3264, !13, i64 3272, !14, i64 3424}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!"qhmemT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64, !11, i64 72, !11, i64 80, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!14 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !7, i64 5320, !7, i64 5324, !7, i64 5328, !7, i64 5332, !10, i64 5336}
!15 = !{!16, !11, i64 80}
!16 = !{!"facetT", !10, i64 0, !10, i64 8, !10, i64 16, !11, i64 24, !8, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 113, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 114, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115, !7, i64 115}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !19}
!22 = !{!6, !11, i64 2424}
!23 = !{!16, !7, i64 108}
!24 = !{!16, !11, i64 64}
!25 = !{!6, !7, i64 136}


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