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

; 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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_distplane(ptr noundef, ptr noundef, ptr noundef) #0

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

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

declare i32 @qh_pointid(ptr noundef) #2

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

declare ptr @qh_memalloc(i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_setfacetplane(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  %17 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !9
  store i32 %17, ptr %6, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.facetT, ptr %18, i32 0, i32 8
  %20 = load ptr, ptr %19, align 8, !tbaa !15
  %21 = getelementptr inbounds %struct.setT, ptr %20, i32 0, i32 1
  %22 = getelementptr inbounds [1 x %union.setelemT], ptr %21, i64 0, i64 0
  %23 = load ptr, ptr %22, align 8, !tbaa !17
  %24 = getelementptr inbounds %struct.vertexT, ptr %23, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  store ptr %25, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !14
  %26 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 212), align 8, !tbaa !17
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 212), align 8, !tbaa !17
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 3
  %30 = load ptr, ptr %29, align 8, !tbaa !20
  %31 = icmp ne ptr %30, null
  br i1 %31, label %38, label %32

32:                                               ; preds = %1
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !14
  %35 = call ptr @qh_memalloc(i32 noundef %34)
  %36 = load ptr, ptr %2, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.facetT, ptr %36, i32 0, i32 3
  store ptr %35, ptr %37, align 8, !tbaa !20
  br label %38

38:                                               ; preds = %32, %1
  %39 = load ptr, ptr %2, align 8, !tbaa !5
  %40 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 8, !tbaa !21
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %42, label %58

42:                                               ; preds = %38
  %43 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  store i32 %43, ptr %9, align 4, !tbaa !14
  store i32 5, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %44 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 14
  %47 = load i32, ptr %46, align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %44, i32 noundef 8012, ptr noundef @.str.26, i32 noundef %47)
  %48 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %49 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %48, i32 noundef 8013, ptr noundef @.str.27, i32 noundef %49)
  %50 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %55

52:                                               ; preds = %42
  %53 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %54 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %53, i32 noundef 8014, ptr noundef @.str.28, i32 noundef %54)
  br label %55

55:                                               ; preds = %52, %42
  %56 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %56, i32 noundef 8015, ptr noundef @.str.29)
  %57 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void @qh_printsummary(ptr noundef %57)
  br label %58

58:                                               ; preds = %55, %38
  %59 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %60 = icmp sle i32 %59, 4
  br i1 %60, label %61, label %150

61:                                               ; preds = %58
  store i32 0, ptr %8, align 4, !tbaa !14
  %62 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !27
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %109

64:                                               ; preds = %61
  %65 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 227), align 8, !tbaa !28
  store ptr %65, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %4, align 8, !tbaa !5
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 8
  %68 = load ptr, ptr %67, align 8, !tbaa !15
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %108

70:                                               ; preds = %64
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.facetT, ptr %71, i32 0, i32 8
  %73 = load ptr, ptr %72, align 8, !tbaa !15
  %74 = getelementptr inbounds %struct.setT, ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds [1 x %union.setelemT], ptr %74, i64 0, i64 0
  store ptr %75, ptr %5, align 8, !tbaa !5
  br label %76

76:                                               ; preds = %106, %70
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds ptr, ptr %77, i32 1
  store ptr %78, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %77, align 8, !tbaa !5
  store ptr %79, ptr %4, align 8, !tbaa !5
  %80 = icmp ne ptr %79, null
  br i1 %80, label %81, label %107

81:                                               ; preds = %76
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %84 = load i32, ptr %8, align 4, !tbaa !14
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %8, align 4, !tbaa !14
  %86 = sext i32 %84 to i64
  %87 = getelementptr inbounds ptr, ptr %83, i64 %86
  store ptr %82, ptr %87, align 8, !tbaa !5
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.vertexT, ptr %88, i32 0, i32 2
  %90 = load ptr, ptr %89, align 8, !tbaa !18
  store ptr %90, ptr %12, align 8, !tbaa !5
  %91 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  store i32 %91, ptr %7, align 4, !tbaa !14
  br label %92

92:                                               ; preds = %96, %81
  %93 = load i32, ptr %7, align 4, !tbaa !14
  %94 = add nsw i32 %93, -1
  store i32 %94, ptr %7, align 4, !tbaa !14
  %95 = icmp ne i32 %93, 0
  br i1 %95, label %96, label %106

96:                                               ; preds = %92
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = getelementptr inbounds double, ptr %97, i32 1
  store ptr %98, ptr %12, align 8, !tbaa !5
  %99 = load double, ptr %97, align 8, !tbaa !30
  %100 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 74), align 8, !tbaa !31
  %101 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 75), align 8, !tbaa !32
  %102 = call double @qh_randomfactor(double noundef %100, double noundef %101)
  %103 = fmul double %99, %102
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = getelementptr inbounds double, ptr %104, i32 1
  store ptr %105, ptr %13, align 8, !tbaa !5
  store double %103, ptr %104, align 8, !tbaa !30
  br label %92, !llvm.loop !33

106:                                              ; preds = %92
  br label %76, !llvm.loop !35

107:                                              ; preds = %76
  br label %108

108:                                              ; preds = %107, %64
  br label %136

109:                                              ; preds = %61
  store ptr null, ptr %4, align 8, !tbaa !5
  %110 = load ptr, ptr %2, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.facetT, ptr %110, i32 0, i32 8
  %112 = load ptr, ptr %111, align 8, !tbaa !15
  %113 = icmp ne ptr %112, null
  br i1 %113, label %114, label %135

114:                                              ; preds = %109
  %115 = load ptr, ptr %2, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 8
  %117 = load ptr, ptr %116, align 8, !tbaa !15
  %118 = getelementptr inbounds %struct.setT, ptr %117, i32 0, i32 1
  %119 = getelementptr inbounds [1 x %union.setelemT], ptr %118, i64 0, i64 0
  store ptr %119, ptr %5, align 8, !tbaa !5
  br label %120

120:                                              ; preds = %125, %114
  %121 = load ptr, ptr %5, align 8, !tbaa !5
  %122 = getelementptr inbounds ptr, ptr %121, i32 1
  store ptr %122, ptr %5, align 8, !tbaa !5
  %123 = load ptr, ptr %121, align 8, !tbaa !5
  store ptr %123, ptr %4, align 8, !tbaa !5
  %124 = icmp ne ptr %123, null
  br i1 %124, label %125, label %134

125:                                              ; preds = %120
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.vertexT, ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %127, align 8, !tbaa !18
  %129 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %130 = load i32, ptr %8, align 4, !tbaa !14
  %131 = add nsw i32 %130, 1
  store i32 %131, ptr %8, align 4, !tbaa !14
  %132 = sext i32 %130 to i64
  %133 = getelementptr inbounds ptr, ptr %129, i64 %132
  store ptr %128, ptr %133, align 8, !tbaa !5
  br label %120, !llvm.loop !36

134:                                              ; preds = %120
  br label %135

135:                                              ; preds = %134, %109
  br label %136

136:                                              ; preds = %135, %108
  %137 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %138 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = load ptr, ptr %2, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.facetT, ptr %140, i32 0, i32 15
  %142 = load i32, ptr %141, align 8
  %143 = lshr i32 %142, 12
  %144 = and i32 %143, 1
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 3
  %147 = load ptr, ptr %146, align 8, !tbaa !20
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.facetT, ptr %148, i32 0, i32 2
  call void @qh_sethyperplane_det(i32 noundef %137, ptr noundef %138, ptr noundef %139, i32 noundef %144, ptr noundef %147, ptr noundef %149, ptr noundef %15)
  br label %150

150:                                              ; preds = %136, %58
  %151 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %152 = icmp sgt i32 %151, 4
  br i1 %152, label %156, label %153

153:                                              ; preds = %150
  %154 = load i32, ptr %15, align 4, !tbaa !14
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %269

156:                                              ; preds = %153, %150
  store i32 0, ptr %8, align 4, !tbaa !14
  %157 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 227), align 8, !tbaa !28
  store ptr %157, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %4, align 8, !tbaa !5
  %158 = load ptr, ptr %2, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.facetT, ptr %158, i32 0, i32 8
  %160 = load ptr, ptr %159, align 8, !tbaa !15
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %208

162:                                              ; preds = %156
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.facetT, ptr %163, i32 0, i32 8
  %165 = load ptr, ptr %164, align 8, !tbaa !15
  %166 = getelementptr inbounds %struct.setT, ptr %165, i32 0, i32 1
  %167 = getelementptr inbounds [1 x %union.setelemT], ptr %166, i64 0, i64 0
  store ptr %167, ptr %5, align 8, !tbaa !5
  br label %168

168:                                              ; preds = %206, %162
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = getelementptr inbounds ptr, ptr %169, i32 1
  store ptr %170, ptr %5, align 8, !tbaa !5
  %171 = load ptr, ptr %169, align 8, !tbaa !5
  store ptr %171, ptr %4, align 8, !tbaa !5
  %172 = icmp ne ptr %171, null
  br i1 %172, label %173, label %207

173:                                              ; preds = %168
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.vertexT, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !18
  %177 = load ptr, ptr %14, align 8, !tbaa !5
  %178 = icmp ne ptr %176, %177
  br i1 %178, label %179, label %206

179:                                              ; preds = %173
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %182 = load i32, ptr %8, align 4, !tbaa !14
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %8, align 4, !tbaa !14
  %184 = sext i32 %182 to i64
  %185 = getelementptr inbounds ptr, ptr %181, i64 %184
  store ptr %180, ptr %185, align 8, !tbaa !5
  %186 = load ptr, ptr %4, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.vertexT, ptr %186, i32 0, i32 2
  %188 = load ptr, ptr %187, align 8, !tbaa !18
  store ptr %188, ptr %12, align 8, !tbaa !5
  %189 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %189, ptr %3, align 8, !tbaa !5
  %190 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  store i32 %190, ptr %7, align 4, !tbaa !14
  br label %191

191:                                              ; preds = %195, %179
  %192 = load i32, ptr %7, align 4, !tbaa !14
  %193 = add nsw i32 %192, -1
  store i32 %193, ptr %7, align 4, !tbaa !14
  %194 = icmp ne i32 %192, 0
  br i1 %194, label %195, label %205

195:                                              ; preds = %191
  %196 = load ptr, ptr %12, align 8, !tbaa !5
  %197 = getelementptr inbounds double, ptr %196, i32 1
  store ptr %197, ptr %12, align 8, !tbaa !5
  %198 = load double, ptr %196, align 8, !tbaa !30
  %199 = load ptr, ptr %3, align 8, !tbaa !5
  %200 = getelementptr inbounds double, ptr %199, i32 1
  store ptr %200, ptr %3, align 8, !tbaa !5
  %201 = load double, ptr %199, align 8, !tbaa !30
  %202 = fsub double %198, %201
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds double, ptr %203, i32 1
  store ptr %204, ptr %13, align 8, !tbaa !5
  store double %202, ptr %203, align 8, !tbaa !30
  br label %191, !llvm.loop !37

205:                                              ; preds = %191
  br label %206

206:                                              ; preds = %205, %173
  br label %168, !llvm.loop !38

207:                                              ; preds = %168
  br label %208

208:                                              ; preds = %207, %156
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %211 = load i32, ptr %8, align 4, !tbaa !14
  %212 = sext i32 %211 to i64
  %213 = getelementptr inbounds ptr, ptr %210, i64 %212
  store ptr %209, ptr %213, align 8, !tbaa !5
  %214 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !27
  %215 = icmp ne i32 %214, 0
  br i1 %215, label %216, label %240

216:                                              ; preds = %208
  %217 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 227), align 8, !tbaa !28
  store ptr %217, ptr %13, align 8, !tbaa !5
  %218 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %219 = sub nsw i32 %218, 1
  store i32 %219, ptr %8, align 4, !tbaa !14
  br label %220

220:                                              ; preds = %238, %216
  %221 = load i32, ptr %8, align 4, !tbaa !14
  %222 = add nsw i32 %221, -1
  store i32 %222, ptr %8, align 4, !tbaa !14
  %223 = icmp ne i32 %221, 0
  br i1 %223, label %224, label %239

224:                                              ; preds = %220
  %225 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  store i32 %225, ptr %7, align 4, !tbaa !14
  br label %226

226:                                              ; preds = %230, %224
  %227 = load i32, ptr %7, align 4, !tbaa !14
  %228 = add nsw i32 %227, -1
  store i32 %228, ptr %7, align 4, !tbaa !14
  %229 = icmp ne i32 %227, 0
  br i1 %229, label %230, label %238

230:                                              ; preds = %226
  %231 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 74), align 8, !tbaa !31
  %232 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 75), align 8, !tbaa !32
  %233 = call double @qh_randomfactor(double noundef %231, double noundef %232)
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = getelementptr inbounds double, ptr %234, i32 1
  store ptr %235, ptr %13, align 8, !tbaa !5
  %236 = load double, ptr %234, align 8, !tbaa !30
  %237 = fmul double %236, %233
  store double %237, ptr %234, align 8, !tbaa !30
  br label %226, !llvm.loop !39

238:                                              ; preds = %226
  br label %220, !llvm.loop !40

239:                                              ; preds = %220
  br label %240

240:                                              ; preds = %239, %208
  %241 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %242 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 228), align 8, !tbaa !29
  %243 = load ptr, ptr %14, align 8, !tbaa !5
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.facetT, ptr %244, i32 0, i32 15
  %246 = load i32, ptr %245, align 8
  %247 = lshr i32 %246, 12
  %248 = and i32 %247, 1
  %249 = load ptr, ptr %2, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.facetT, ptr %249, i32 0, i32 3
  %251 = load ptr, ptr %250, align 8, !tbaa !20
  %252 = load ptr, ptr %2, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.facetT, ptr %252, i32 0, i32 2
  call void @qh_sethyperplane_gauss(i32 noundef %241, ptr noundef %242, ptr noundef %243, i32 noundef %248, ptr noundef %251, ptr noundef %253, ptr noundef %15)
  %254 = load i32, ptr %15, align 4, !tbaa !14
  %255 = icmp ne i32 %254, 0
  br i1 %255, label %256, label %268

256:                                              ; preds = %240
  %257 = load ptr, ptr %2, align 8, !tbaa !5
  %258 = call i32 @qh_orientoutside(ptr noundef %257)
  %259 = icmp ne i32 %258, 0
  br i1 %259, label %260, label %267

260:                                              ; preds = %256
  %261 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %262 = icmp ne i32 %261, 0
  br i1 %262, label %263, label %266

263:                                              ; preds = %260
  %264 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %265 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %264, i32 noundef 2, ptr noundef @.str.30, i32 noundef %265)
  br label %266

266:                                              ; preds = %263, %260
  br label %267

267:                                              ; preds = %266, %256
  br label %268

268:                                              ; preds = %267, %240
  br label %269

269:                                              ; preds = %268, %153
  %270 = load ptr, ptr %2, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.facetT, ptr %270, i32 0, i32 15
  %272 = load i32, ptr %271, align 8
  %273 = and i32 %272, -131073
  %274 = or i32 %273, 0
  store i32 %274, ptr %271, align 8
  %275 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !41
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %277, label %320

277:                                              ; preds = %269
  %278 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 99), align 4, !tbaa !42
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %299

280:                                              ; preds = %277
  %281 = load ptr, ptr %2, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.facetT, ptr %281, i32 0, i32 3
  %283 = load ptr, ptr %282, align 8, !tbaa !20
  %284 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %285 = sub nsw i32 %284, 1
  %286 = sext i32 %285 to i64
  %287 = getelementptr inbounds double, ptr %283, i64 %286
  %288 = load double, ptr %287, align 8, !tbaa !30
  %289 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 131), align 8, !tbaa !43
  %290 = fmul double %289, 2.000000e+00
  %291 = fcmp oge double %288, %290
  br i1 %291, label %292, label %298

292:                                              ; preds = %280
  %293 = load ptr, ptr %2, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.facetT, ptr %293, i32 0, i32 15
  %295 = load i32, ptr %294, align 8
  %296 = and i32 %295, -131073
  %297 = or i32 %296, 131072
  store i32 %297, ptr %294, align 8
  br label %298

298:                                              ; preds = %292, %280
  br label %319

299:                                              ; preds = %277
  %300 = load ptr, ptr %2, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.facetT, ptr %300, i32 0, i32 3
  %302 = load ptr, ptr %301, align 8, !tbaa !20
  %303 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %304 = sub nsw i32 %303, 1
  %305 = sext i32 %304 to i64
  %306 = getelementptr inbounds double, ptr %302, i64 %305
  %307 = load double, ptr %306, align 8, !tbaa !30
  %308 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 131), align 8, !tbaa !43
  %309 = fneg double %308
  %310 = fmul double %309, 2.000000e+00
  %311 = fcmp ogt double %307, %310
  br i1 %311, label %312, label %318

312:                                              ; preds = %299
  %313 = load ptr, ptr %2, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.facetT, ptr %313, i32 0, i32 15
  %315 = load i32, ptr %314, align 8
  %316 = and i32 %315, -131073
  %317 = or i32 %316, 131072
  store i32 %317, ptr %314, align 8
  br label %318

318:                                              ; preds = %312, %299
  br label %319

319:                                              ; preds = %318, %298
  br label %320

320:                                              ; preds = %319, %269
  %321 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !44
  %322 = icmp ne i32 %321, 0
  br i1 %322, label %332, label %323

323:                                              ; preds = %320
  %324 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %325 = icmp ne i32 %324, 0
  br i1 %325, label %332, label %326

326:                                              ; preds = %323
  %327 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !45
  %328 = icmp ne i32 %327, 0
  br i1 %328, label %332, label %329

329:                                              ; preds = %326
  %330 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 197), align 8, !tbaa !46
  %331 = fcmp olt double %330, 0x7FEFFFFFFFFFFFFF
  br i1 %331, label %332, label %422

332:                                              ; preds = %329, %326, %323, %320
  %333 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !27
  store i32 %333, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !47
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !27
  store ptr null, ptr %4, align 8, !tbaa !5
  %334 = load ptr, ptr %2, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.facetT, ptr %334, i32 0, i32 8
  %336 = load ptr, ptr %335, align 8, !tbaa !15
  %337 = icmp ne ptr %336, null
  br i1 %337, label %338, label %420

338:                                              ; preds = %332
  %339 = load ptr, ptr %2, align 8, !tbaa !5
  %340 = getelementptr inbounds %struct.facetT, ptr %339, i32 0, i32 8
  %341 = load ptr, ptr %340, align 8, !tbaa !15
  %342 = getelementptr inbounds %struct.setT, ptr %341, i32 0, i32 1
  %343 = getelementptr inbounds [1 x %union.setelemT], ptr %342, i64 0, i64 0
  store ptr %343, ptr %5, align 8, !tbaa !5
  br label %344

344:                                              ; preds = %418, %338
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds ptr, ptr %345, i32 1
  store ptr %346, ptr %5, align 8, !tbaa !5
  %347 = load ptr, ptr %345, align 8, !tbaa !5
  store ptr %347, ptr %4, align 8, !tbaa !5
  %348 = icmp ne ptr %347, null
  br i1 %348, label %349, label %419

349:                                              ; preds = %344
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.vertexT, ptr %350, i32 0, i32 2
  %352 = load ptr, ptr %351, align 8, !tbaa !18
  %353 = load ptr, ptr %14, align 8, !tbaa !5
  %354 = icmp ne ptr %352, %353
  br i1 %354, label %355, label %418

355:                                              ; preds = %349
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  store i32 0, ptr %16, align 4, !tbaa !14
  %356 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 62), align 8, !tbaa !17
  %357 = add nsw i32 %356, 1
  store i32 %357, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 62), align 8, !tbaa !17
  %358 = load ptr, ptr %4, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.vertexT, ptr %358, i32 0, i32 2
  %360 = load ptr, ptr %359, align 8, !tbaa !18
  %361 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %360, ptr noundef %361, ptr noundef %10)
  %362 = load double, ptr %10, align 8, !tbaa !30
  %363 = fcmp olt double %362, 0.000000e+00
  br i1 %363, label %364, label %367

364:                                              ; preds = %355
  %365 = load double, ptr %10, align 8, !tbaa !30
  %366 = fneg double %365
  br label %369

367:                                              ; preds = %355
  %368 = load double, ptr %10, align 8, !tbaa !30
  br label %369

369:                                              ; preds = %367, %364
  %370 = phi double [ %366, %364 ], [ %368, %367 ]
  store double %370, ptr %10, align 8, !tbaa !30
  %371 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 151), align 8, !tbaa !17
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 151), align 8, !tbaa !17
  %373 = load double, ptr %10, align 8, !tbaa !30
  %374 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 152), align 8, !tbaa !17
  %375 = fadd double %374, %373
  store double %375, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 152), align 8, !tbaa !17
  %376 = load double, ptr %10, align 8, !tbaa !30
  %377 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 153), align 8, !tbaa !17
  %378 = fcmp ogt double %376, %377
  br i1 %378, label %379, label %392

379:                                              ; preds = %369
  %380 = load double, ptr %10, align 8, !tbaa !30
  store double %380, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 153), align 8, !tbaa !17
  %381 = load double, ptr %10, align 8, !tbaa !30
  %382 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !48
  %383 = fcmp ogt double %381, %382
  br i1 %383, label %384, label %391

384:                                              ; preds = %379
  %385 = load double, ptr %10, align 8, !tbaa !30
  store double %385, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !48
  %386 = load double, ptr %10, align 8, !tbaa !30
  %387 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !49
  %388 = fcmp ogt double %386, %387
  br i1 %388, label %389, label %390

389:                                              ; preds = %384
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %390

390:                                              ; preds = %389, %384
  br label %391

391:                                              ; preds = %390, %379
  br label %399

392:                                              ; preds = %369
  %393 = load double, ptr %10, align 8, !tbaa !30
  %394 = fneg double %393
  %395 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !49
  %396 = fcmp ogt double %394, %395
  br i1 %396, label %397, label %398

397:                                              ; preds = %392
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %398

398:                                              ; preds = %397, %392
  br label %399

399:                                              ; preds = %398, %391
  %400 = load i32, ptr %16, align 4, !tbaa !14
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %417

402:                                              ; preds = %399
  %403 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %404 = load ptr, ptr %4, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.vertexT, ptr %404, i32 0, i32 2
  %406 = load ptr, ptr %405, align 8, !tbaa !18
  %407 = call i32 @qh_pointid(ptr noundef %406)
  %408 = load ptr, ptr %4, align 8, !tbaa !5
  %409 = getelementptr inbounds %struct.vertexT, ptr %408, i32 0, i32 4
  %410 = load i32, ptr %409, align 8, !tbaa !50
  %411 = load double, ptr %10, align 8, !tbaa !30
  %412 = load ptr, ptr %2, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.facetT, ptr %412, i32 0, i32 14
  %414 = load i32, ptr %413, align 4, !tbaa !24
  %415 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !25
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %403, i32 noundef 3060, ptr noundef @.str.31, i32 noundef %407, i32 noundef %410, double noundef %411, i32 noundef %414, i32 noundef %415)
  %416 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_errprint(ptr noundef @.str.32, ptr noundef %416, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %417

417:                                              ; preds = %402, %399
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  br label %418

418:                                              ; preds = %417, %349
  br label %344, !llvm.loop !51

419:                                              ; preds = %344
  br label %420

420:                                              ; preds = %419, %332
  %421 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 235), align 8, !tbaa !47
  store i32 %421, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 72), align 4, !tbaa !27
  br label %422

422:                                              ; preds = %420, %329
  %423 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %424 = icmp sge i32 %423, 4
  br i1 %424, label %425, label %451

425:                                              ; preds = %422
  %426 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %427 = load ptr, ptr %2, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.facetT, ptr %427, i32 0, i32 14
  %429 = load i32, ptr %428, align 4, !tbaa !24
  %430 = load ptr, ptr %2, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.facetT, ptr %430, i32 0, i32 2
  %432 = load double, ptr %431, align 8, !tbaa !52
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %426, i32 noundef 8017, ptr noundef @.str.33, i32 noundef %429, double noundef %432)
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %433

433:                                              ; preds = %446, %425
  %434 = load i32, ptr %7, align 4, !tbaa !14
  %435 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !26
  %436 = icmp slt i32 %434, %435
  br i1 %436, label %437, label %449

437:                                              ; preds = %433
  %438 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %439 = load ptr, ptr %2, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.facetT, ptr %439, i32 0, i32 3
  %441 = load ptr, ptr %440, align 8, !tbaa !20
  %442 = load i32, ptr %7, align 4, !tbaa !14
  %443 = sext i32 %442 to i64
  %444 = getelementptr inbounds double, ptr %441, i64 %443
  %445 = load double, ptr %444, align 8, !tbaa !30
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %438, i32 noundef 8018, ptr noundef @.str.34, double noundef %445)
  br label %446

446:                                              ; preds = %437
  %447 = load i32, ptr %7, align 4, !tbaa !14
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %7, align 4, !tbaa !14
  br label %433, !llvm.loop !53

449:                                              ; preds = %433
  %450 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %450, i32 noundef 8019, ptr noundef @.str.35)
  br label %451

451:                                              ; preds = %449, %422
  %452 = load ptr, ptr %2, align 8, !tbaa !5
  %453 = call i32 @qh_checkflipped(ptr noundef %452, ptr noundef null, i32 noundef 1)
  %454 = load ptr, ptr %2, align 8, !tbaa !5
  %455 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 8, !tbaa !21
  %456 = icmp eq ptr %454, %455
  br i1 %456, label %457, label %461

457:                                              ; preds = %451
  %458 = load i32, ptr %9, align 4, !tbaa !14
  store i32 %458, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %459 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %460 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_printfacet(ptr noundef %459, ptr noundef %460)
  br label %461

461:                                              ; preds = %457, %451
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

declare void @qh_printsummary(ptr noundef) #2

declare double @qh_randomfactor(double noundef, double noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_sethyperplane_det(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local void @qh_sethyperplane_gauss(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @qh_orientoutside(ptr noundef) #2

declare void @qh_errprint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

declare i32 @qh_checkflipped(ptr noundef, ptr noundef, i32 noundef) #2

declare void @qh_printfacet(ptr noundef, ptr noundef) #2

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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, !11, i64 2440}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !6, i64 104, !11, i64 112, !11, i64 116, !6, i64 120, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !12, i64 160, !12, i64 168, !11, i64 176, !11, i64 180, !11, i64 184, !11, i64 188, !12, i64 192, !12, i64 200, !11, i64 208, !11, i64 212, !12, i64 216, !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, !11, i64 296, !7, i64 300, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !12, i64 448, !12, i64 456, !12, 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, !11, i64 544, !12, i64 552, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !11, i64 584, !11, i64 588, !12, i64 592, !11, i64 600, !6, i64 608, !6, i64 616, !11, i64 624, !11, i64 628, !11, i64 632, !11, i64 636, !11, i64 640, !6, i64 648, !11, i64 656, !6, i64 664, !11, i64 672, !7, i64 676, !11, i64 932, !7, i64 936, !7, i64 1192, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !11, i64 1720, !11, i64 1724, !6, i64 1728, !6, i64 1736, !6, i64 1744, !6, i64 1752, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, i64 1904, !11, 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, !11, i64 2440, !11, i64 2444, !11, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !6, i64 2480, !6, i64 2488, !11, i64 2496, !11, i64 2500, !6, i64 2504, !11, i64 2512, !6, i64 2520, !11, i64 2528, !6, i64 2536, !6, i64 2544, !6, i64 2552, !6, i64 2560, !11, i64 2568, !11, i64 2572, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !11, i64 2592, !11, i64 2596, !13, i64 2600, !11, i64 2608, !11, i64 2612, !11, i64 2616, !11, i64 2620, !11, i64 2624, !6, i64 2632, !6, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !12, i64 2664, !11, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !11, i64 2704, !11, i64 2708, !11, i64 2712, !11, i64 2716, !11, i64 2720, !12, i64 2728, !12, i64 2736, !11, i64 2744, !11, i64 2748, !11, i64 2752, !11, i64 2756, !11, i64 2760, !11, i64 2764, !12, i64 2768, !12, i64 2776, !11, i64 2784, !11, i64 2788, !11, i64 2792, !11, 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, !11, i64 2872, !6, i64 2880, !6, i64 2888, !11, i64 2896, !11, i64 2900, !11, i64 2904, !6, i64 2912, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, i64 2944, !11, i64 2952, !11, i64 2956, !11, i64 2960, !11, i64 2964, !11, i64 2968, !11, i64 2972, !6, i64 2976, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 64}
!16 = !{!"facetT", !12, i64 0, !12, i64 8, !12, 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, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !6, i64 16}
!19 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!20 = !{!16, !6, i64 24}
!21 = !{!10, !6, i64 2504}
!22 = !{!10, !11, i64 136}
!23 = !{!10, !6, i64 2424}
!24 = !{!16, !11, i64 108}
!25 = !{!10, !11, i64 2620}
!26 = !{!10, !11, i64 632}
!27 = !{!10, !11, i64 444}
!28 = !{!10, !6, i64 2848}
!29 = !{!10, !6, i64 2856}
!30 = !{!12, !12, i64 0}
!31 = !{!10, !12, i64 456}
!32 = !{!10, !12, i64 464}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = distinct !{!35, !34}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !34}
!38 = distinct !{!38, !34}
!39 = distinct !{!39, !34}
!40 = distinct !{!40, !34}
!41 = !{!10, !11, i64 80}
!42 = !{!10, !11, i64 572}
!43 = !{!10, !12, i64 1760}
!44 = !{!10, !11, i64 424}
!45 = !{!10, !11, i64 536}
!46 = !{!10, !12, i64 2664}
!47 = !{!10, !11, i64 2904}
!48 = !{!10, !12, i64 2680}
!49 = !{!10, !12, i64 552}
!50 = !{!19, !11, i64 32}
!51 = distinct !{!51, !34}
!52 = !{!16, !12, i64 16}
!53 = distinct !{!53, !34}


; 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.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, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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 }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.26 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_distplane(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #2

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

declare ptr @qh_memalloc(i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_setfacetplane(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca double, align 8
  %3 = alloca i32, align 4
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 64
  %6 = load ptr, ptr %5, align 8, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %6, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !15
  %9 = getelementptr inbounds i8, ptr %8, i64 16
  %10 = load ptr, ptr %9, align 8, !tbaa !16
  %11 = ptrtoint ptr %10 to i64
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  store i32 0, ptr %3, align 4, !tbaa !18
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1696), align 8, !tbaa !15
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1696), align 8, !tbaa !15
  %14 = getelementptr inbounds i8, ptr %0, i64 24
  %15 = load ptr, ptr %14, align 8, !tbaa !19
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %16, label %18

16:                                               ; preds = %1
  %17 = tail call ptr @qh_memalloc(i32 noundef %4) #3
  store ptr %17, ptr %14, align 8, !tbaa !19
  br label %18

18:                                               ; preds = %16, %1
  %19 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2504), align 8, !tbaa !20
  %20 = icmp eq ptr %19, %0
  br i1 %20, label %21, label %34

21:                                               ; preds = %18
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  store i32 5, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %24 = getelementptr inbounds i8, ptr %0, i64 108
  %25 = load i32, ptr %24, align 4, !tbaa !23
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %23, i32 noundef 8012, ptr noundef nonnull @.str.26, i32 noundef %25) #3
  %26 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !24
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %26, i32 noundef 8013, ptr noundef nonnull @.str.27, i32 noundef %27) #3
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !15
  %.not117 = icmp eq i32 %28, 0
  br i1 %.not117, label %31, label %29

29:                                               ; preds = %21
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %30, i32 noundef 8014, ptr noundef nonnull @.str.28, i32 noundef %28) #3
  br label %31

31:                                               ; preds = %29, %21
  %32 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %32, i32 noundef 8015, ptr noundef nonnull @.str.29) #3
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  tail call void @qh_printsummary(ptr noundef %33) #3
  br label %34

34:                                               ; preds = %31, %18
  %.087 = phi i32 [ %22, %31 ], [ 0, %18 ]
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %36 = icmp slt i32 %35, 5
  br i1 %36, label %37, label %79

37:                                               ; preds = %34
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !26
  %.not118 = icmp eq i32 %38, 0
  %39 = load ptr, ptr %5, align 8, !tbaa !13
  %.not119 = icmp eq ptr %39, null
  br i1 %.not118, label %63, label %40

40:                                               ; preds = %37
  br i1 %.not119, label %.loopexit147, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2848), align 8, !tbaa !27
  %.098154 = getelementptr inbounds i8, ptr %39, i64 8
  %43 = load ptr, ptr %.098154, align 8, !tbaa !28
  %.not123155 = icmp eq ptr %43, null
  br i1 %.not123155, label %.loopexit147, label %.lr.ph159

.lr.ph159:                                        ; preds = %41
  %44 = icmp eq i32 %35, 0
  br i1 %44, label %.loopexit148.us, label %.lr.ph159.split

.loopexit148.us:                                  ; preds = %.lr.ph159, %.loopexit148.us
  %indvars.iv204 = phi i64 [ %indvars.iv.next205, %.loopexit148.us ], [ 0, %.lr.ph159 ]
  %.098158.us = phi ptr [ %.098.us, %.loopexit148.us ], [ %.098154, %.lr.ph159 ]
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv204
  store ptr %42, ptr %46, align 8, !tbaa !28
  %.098.us = getelementptr inbounds i8, ptr %.098158.us, i64 8
  %47 = load ptr, ptr %.098.us, align 8, !tbaa !28
  %.not123.us = icmp eq ptr %47, null
  br i1 %.not123.us, label %.loopexit147, label %.loopexit148.us, !llvm.loop !30

.loopexit148:                                     ; preds = %.lr.ph, %.lr.ph159.split
  %.1.lcssa = phi ptr [ %.084157, %.lr.ph159.split ], [ %62, %.lr.ph ]
  %.098 = getelementptr inbounds i8, ptr %.098158, i64 8
  %48 = load ptr, ptr %.098, align 8, !tbaa !28
  %.not123 = icmp eq ptr %48, null
  br i1 %.not123, label %.loopexit147.loopexit200, label %.lr.ph159.split, !llvm.loop !32

.lr.ph159.split:                                  ; preds = %.lr.ph159, %.loopexit148
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit148 ], [ 0, %.lr.ph159 ]
  %49 = phi ptr [ %48, %.loopexit148 ], [ %43, %.lr.ph159 ]
  %.098158 = phi ptr [ %.098, %.loopexit148 ], [ %.098154, %.lr.ph159 ]
  %.084157 = phi ptr [ %.1.lcssa, %.loopexit148 ], [ %42, %.lr.ph159 ]
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %51 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv
  store ptr %.084157, ptr %51, align 8, !tbaa !28
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %.not140150 = icmp eq i32 %52, 0
  br i1 %.not140150, label %.loopexit148, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph159.split
  %53 = getelementptr inbounds i8, ptr %49, i64 16
  %54 = load ptr, ptr %53, align 8, !tbaa !16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.1153 = phi ptr [ %62, %.lr.ph ], [ %.084157, %.lr.ph.preheader ]
  %.085152 = phi ptr [ %56, %.lr.ph ], [ %54, %.lr.ph.preheader ]
  %.094151 = phi i32 [ %55, %.lr.ph ], [ %52, %.lr.ph.preheader ]
  %55 = add nsw i32 %.094151, -1
  %56 = getelementptr inbounds i8, ptr %.085152, i64 8
  %57 = load double, ptr %.085152, align 8, !tbaa !34
  %58 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 456), align 8, !tbaa !35
  %59 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 464), align 8, !tbaa !36
  %60 = tail call double @qh_randomfactor(double noundef %58, double noundef %59) #3
  %61 = fmul double %57, %60
  %62 = getelementptr inbounds i8, ptr %.1153, i64 8
  store double %61, ptr %.1153, align 8, !tbaa !34
  %.not140 = icmp eq i32 %55, 0
  br i1 %.not140, label %.loopexit148, label %.lr.ph, !llvm.loop !37

63:                                               ; preds = %37
  br i1 %.not119, label %.loopexit147, label %.preheader146

.preheader146:                                    ; preds = %63
  %.199160 = getelementptr inbounds i8, ptr %39, i64 8
  %64 = load ptr, ptr %.199160, align 8, !tbaa !28
  %.not120161 = icmp eq ptr %64, null
  br i1 %.not120161, label %.loopexit147, label %.lr.ph164

.lr.ph164:                                        ; preds = %.preheader146, %.lr.ph164
  %indvars.iv207 = phi i64 [ %indvars.iv.next208, %.lr.ph164 ], [ 0, %.preheader146 ]
  %65 = phi ptr [ %70, %.lr.ph164 ], [ %64, %.preheader146 ]
  %.199163 = phi ptr [ %.199, %.lr.ph164 ], [ %.199160, %.preheader146 ]
  %66 = getelementptr inbounds i8, ptr %65, i64 16
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  %68 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %indvars.iv.next208 = add nuw nsw i64 %indvars.iv207, 1
  %69 = getelementptr inbounds ptr, ptr %68, i64 %indvars.iv207
  store ptr %67, ptr %69, align 8, !tbaa !28
  %.199 = getelementptr inbounds i8, ptr %.199163, i64 8
  %70 = load ptr, ptr %.199, align 8, !tbaa !28
  %.not120 = icmp eq ptr %70, null
  br i1 %.not120, label %.loopexit147, label %.lr.ph164, !llvm.loop !38

.loopexit147.loopexit200:                         ; preds = %.loopexit148
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  br label %.loopexit147

.loopexit147:                                     ; preds = %.loopexit148.us, %.lr.ph164, %.loopexit147.loopexit200, %41, %.preheader146, %63, %40
  %71 = phi i32 [ %.pre, %.loopexit147.loopexit200 ], [ %35, %41 ], [ %35, %.preheader146 ], [ %35, %63 ], [ %35, %40 ], [ %35, %.lr.ph164 ], [ 0, %.loopexit148.us ]
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %73 = getelementptr inbounds i8, ptr %0, i64 112
  %74 = load i32, ptr %73, align 8
  %75 = lshr i32 %74, 12
  %76 = and i32 %75, 1
  %77 = load ptr, ptr %14, align 8, !tbaa !19
  %78 = getelementptr inbounds i8, ptr %0, i64 16
  call void @qh_sethyperplane_det(i32 noundef %71, ptr noundef %72, ptr noundef %10, i32 noundef %76, ptr noundef %77, ptr noundef nonnull %78, ptr noundef nonnull %3)
  %.pre213 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %.pre214 = load i32, ptr %3, align 4
  br label %79

79:                                               ; preds = %.loopexit147, %34
  %80 = phi i32 [ %.pre214, %.loopexit147 ], [ 0, %34 ]
  %81 = phi i32 [ %.pre213, %.loopexit147 ], [ %35, %34 ]
  %.fr = freeze i32 %81
  %82 = icmp sgt i32 %.fr, 4
  %83 = icmp ne i32 %80, 0
  %or.cond = select i1 %82, i1 true, i1 %83
  br i1 %or.cond, label %84, label %185

84:                                               ; preds = %79
  %85 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2848), align 8, !tbaa !27
  %86 = load ptr, ptr %5, align 8, !tbaa !13
  %.not124 = icmp eq ptr %86, null
  br i1 %.not124, label %.loopexit145, label %.preheader144

.preheader144:                                    ; preds = %84
  %.2100172 = getelementptr inbounds i8, ptr %86, i64 8
  %87 = load ptr, ptr %.2100172, align 8, !tbaa !28
  %.not126173 = icmp eq ptr %87, null
  br i1 %.not126173, label %.loopexit145, label %.lr.ph177

.lr.ph177:                                        ; preds = %.preheader144
  %.not139165 = icmp eq i32 %.fr, 0
  br i1 %.not139165, label %.lr.ph177.split.us, label %.lr.ph177.split.preheader

.lr.ph177.split.preheader:                        ; preds = %.lr.ph177
  %88 = zext i32 %.fr to i64
  %min.iters.check = icmp ult i32 %.fr, 4
  %n.vec = and i64 %88, 4294967292
  %89 = shl nuw nsw i64 %n.vec, 3
  %ind.end = getelementptr i8, ptr %10, i64 %89
  %90 = shl nuw nsw i64 %n.vec, 3
  %91 = shl nuw nsw i64 %n.vec, 3
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end233 = sub i32 %.fr, %.cast
  %cmp.n = icmp eq i64 %n.vec, %88
  br label %.lr.ph177.split

.lr.ph177.split.us:                               ; preds = %.lr.ph177, %99
  %92 = phi ptr [ %100, %99 ], [ %87, %.lr.ph177 ]
  %.2100176.us = phi ptr [ %.2100.us, %99 ], [ %.2100172, %.lr.ph177 ]
  %.290174.us = phi i32 [ %.391.us, %99 ], [ 0, %.lr.ph177 ]
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %.not138.us = icmp eq ptr %94, %10
  br i1 %.not138.us, label %99, label %.loopexit143.us

.loopexit143.us:                                  ; preds = %.lr.ph177.split.us
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %96 = add nsw i32 %.290174.us, 1
  %97 = sext i32 %.290174.us to i64
  %98 = getelementptr inbounds ptr, ptr %95, i64 %97
  store ptr %85, ptr %98, align 8, !tbaa !28
  br label %99

99:                                               ; preds = %.loopexit143.us, %.lr.ph177.split.us
  %.391.us = phi i32 [ %.290174.us, %.lr.ph177.split.us ], [ %96, %.loopexit143.us ]
  %.2100.us = getelementptr inbounds i8, ptr %.2100176.us, i64 8
  %100 = load ptr, ptr %.2100.us, align 8, !tbaa !28
  %.not126.us = icmp eq ptr %100, null
  br i1 %.not126.us, label %.loopexit145, label %.lr.ph177.split.us, !llvm.loop !39

.lr.ph177.split:                                  ; preds = %.lr.ph177.split.preheader, %..loopexit143_crit_edge
  %101 = phi ptr [ %152, %..loopexit143_crit_edge ], [ %87, %.lr.ph177.split.preheader ]
  %.2100176 = phi ptr [ %.2100, %..loopexit143_crit_edge ], [ %.2100172, %.lr.ph177.split.preheader ]
  %.2175 = phi ptr [ %.4, %..loopexit143_crit_edge ], [ %85, %.lr.ph177.split.preheader ]
  %.290174 = phi i32 [ %.391, %..loopexit143_crit_edge ], [ 0, %.lr.ph177.split.preheader ]
  %.2175227 = ptrtoint ptr %.2175 to i64
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %.not138 = icmp eq ptr %103, %10
  br i1 %.not138, label %..loopexit143_crit_edge, label %.lr.ph170

.lr.ph170:                                        ; preds = %.lr.ph177.split
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %105 = sext i32 %.290174 to i64
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  store ptr %.2175, ptr %106, align 8, !tbaa !28
  %107 = load ptr, ptr %102, align 8, !tbaa !16
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph170
  %108 = ptrtoint ptr %107 to i64
  %109 = sub i64 %.2175227, %108
  %diff.check = icmp ult i64 %109, 32
  %110 = sub i64 %.2175227, %11
  %diff.check228 = icmp ult i64 %110, 32
  %conflict.rdx = or i1 %diff.check, %diff.check228
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end229 = getelementptr i8, ptr %.2175, i64 %90
  %ind.end231 = getelementptr i8, ptr %107, i64 %91
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 3
  %next.gep = getelementptr i8, ptr %10, i64 %offset.idx
  %offset.idx236 = shl i64 %index, 3
  %next.gep237 = getelementptr i8, ptr %.2175, i64 %offset.idx236
  %offset.idx239 = shl i64 %index, 3
  %next.gep240 = getelementptr i8, ptr %107, i64 %offset.idx239
  %111 = getelementptr i8, ptr %next.gep240, i64 16
  %wide.load = load <2 x double>, ptr %next.gep240, align 8, !tbaa !34
  %wide.load242 = load <2 x double>, ptr %111, align 8, !tbaa !34
  %112 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load243 = load <2 x double>, ptr %next.gep, align 8, !tbaa !34
  %wide.load244 = load <2 x double>, ptr %112, align 8, !tbaa !34
  %113 = fsub <2 x double> %wide.load, %wide.load243
  %114 = fsub <2 x double> %wide.load242, %wide.load244
  %115 = getelementptr i8, ptr %next.gep237, i64 16
  store <2 x double> %113, ptr %next.gep237, align 8, !tbaa !34
  store <2 x double> %114, ptr %115, align 8, !tbaa !34
  %index.next = add nuw i64 %index, 4
  %116 = icmp eq i64 %index.next, %n.vec
  br i1 %116, label %middle.block, label %vector.body, !llvm.loop !40

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit143_crit_edge.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph170
  %.083169.ph = phi ptr [ %10, %vector.memcheck ], [ %10, %.lr.ph170 ], [ %ind.end, %middle.block ]
  %.3168.ph = phi ptr [ %.2175, %vector.memcheck ], [ %.2175, %.lr.ph170 ], [ %ind.end229, %middle.block ]
  %.186167.ph = phi ptr [ %107, %vector.memcheck ], [ %107, %.lr.ph170 ], [ %ind.end231, %middle.block ]
  %.195166.ph = phi i32 [ %.fr, %vector.memcheck ], [ %.fr, %.lr.ph170 ], [ %ind.end233, %middle.block ]
  %117 = add nsw i32 %.195166.ph, -1
  %xtraiter = and i32 %.195166.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.083169.prol = phi ptr [ %121, %scalar.ph.prol ], [ %.083169.ph, %scalar.ph.preheader ]
  %.3168.prol = phi ptr [ %124, %scalar.ph.prol ], [ %.3168.ph, %scalar.ph.preheader ]
  %.186167.prol = phi ptr [ %119, %scalar.ph.prol ], [ %.186167.ph, %scalar.ph.preheader ]
  %.195166.prol = phi i32 [ %118, %scalar.ph.prol ], [ %.195166.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %118 = add nsw i32 %.195166.prol, -1
  %119 = getelementptr inbounds i8, ptr %.186167.prol, i64 8
  %120 = load double, ptr %.186167.prol, align 8, !tbaa !34
  %121 = getelementptr inbounds i8, ptr %.083169.prol, i64 8
  %122 = load double, ptr %.083169.prol, align 8, !tbaa !34
  %123 = fsub double %120, %122
  %124 = getelementptr inbounds i8, ptr %.3168.prol, i64 8
  store double %123, ptr %.3168.prol, align 8, !tbaa !34
  %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 %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !43

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.lcssa246.unr = phi ptr [ poison, %scalar.ph.preheader ], [ %124, %scalar.ph.prol ]
  %.083169.unr = phi ptr [ %.083169.ph, %scalar.ph.preheader ], [ %121, %scalar.ph.prol ]
  %.3168.unr = phi ptr [ %.3168.ph, %scalar.ph.preheader ], [ %124, %scalar.ph.prol ]
  %.186167.unr = phi ptr [ %.186167.ph, %scalar.ph.preheader ], [ %119, %scalar.ph.prol ]
  %.195166.unr = phi i32 [ %.195166.ph, %scalar.ph.preheader ], [ %118, %scalar.ph.prol ]
  %125 = icmp ult i32 %117, 3
  br i1 %125, label %..loopexit143_crit_edge.loopexit, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.083169 = phi ptr [ %147, %scalar.ph ], [ %.083169.unr, %scalar.ph.prol.loopexit ]
  %.3168 = phi ptr [ %150, %scalar.ph ], [ %.3168.unr, %scalar.ph.prol.loopexit ]
  %.186167 = phi ptr [ %145, %scalar.ph ], [ %.186167.unr, %scalar.ph.prol.loopexit ]
  %.195166 = phi i32 [ %144, %scalar.ph ], [ %.195166.unr, %scalar.ph.prol.loopexit ]
  %126 = getelementptr inbounds i8, ptr %.186167, i64 8
  %127 = load double, ptr %.186167, align 8, !tbaa !34
  %128 = getelementptr inbounds i8, ptr %.083169, i64 8
  %129 = load double, ptr %.083169, align 8, !tbaa !34
  %130 = fsub double %127, %129
  %131 = getelementptr inbounds i8, ptr %.3168, i64 8
  store double %130, ptr %.3168, align 8, !tbaa !34
  %132 = getelementptr inbounds i8, ptr %.186167, i64 16
  %133 = load double, ptr %126, align 8, !tbaa !34
  %134 = getelementptr inbounds i8, ptr %.083169, i64 16
  %135 = load double, ptr %128, align 8, !tbaa !34
  %136 = fsub double %133, %135
  %137 = getelementptr inbounds i8, ptr %.3168, i64 16
  store double %136, ptr %131, align 8, !tbaa !34
  %138 = getelementptr inbounds i8, ptr %.186167, i64 24
  %139 = load double, ptr %132, align 8, !tbaa !34
  %140 = getelementptr inbounds i8, ptr %.083169, i64 24
  %141 = load double, ptr %134, align 8, !tbaa !34
  %142 = fsub double %139, %141
  %143 = getelementptr inbounds i8, ptr %.3168, i64 24
  store double %142, ptr %137, align 8, !tbaa !34
  %144 = add nsw i32 %.195166, -4
  %145 = getelementptr inbounds i8, ptr %.186167, i64 32
  %146 = load double, ptr %138, align 8, !tbaa !34
  %147 = getelementptr inbounds i8, ptr %.083169, i64 32
  %148 = load double, ptr %140, align 8, !tbaa !34
  %149 = fsub double %146, %148
  %150 = getelementptr inbounds i8, ptr %.3168, i64 32
  store double %149, ptr %143, align 8, !tbaa !34
  %.not139.3 = icmp eq i32 %144, 0
  br i1 %.not139.3, label %..loopexit143_crit_edge.loopexit, label %scalar.ph, !llvm.loop !45

..loopexit143_crit_edge.loopexit:                 ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.lcssa225 = phi ptr [ %ind.end229, %middle.block ], [ %.lcssa246.unr, %scalar.ph.prol.loopexit ], [ %150, %scalar.ph ]
  %151 = add nsw i32 %.290174, 1
  br label %..loopexit143_crit_edge

..loopexit143_crit_edge:                          ; preds = %..loopexit143_crit_edge.loopexit, %.lr.ph177.split
  %.391 = phi i32 [ %.290174, %.lr.ph177.split ], [ %151, %..loopexit143_crit_edge.loopexit ]
  %.4 = phi ptr [ %.2175, %.lr.ph177.split ], [ %.lcssa225, %..loopexit143_crit_edge.loopexit ]
  %.2100 = getelementptr inbounds i8, ptr %.2100176, i64 8
  %152 = load ptr, ptr %.2100, align 8, !tbaa !28
  %.not126 = icmp eq ptr %152, null
  br i1 %.not126, label %.loopexit145, label %.lr.ph177.split, !llvm.loop !39

.loopexit145:                                     ; preds = %..loopexit143_crit_edge, %99, %.preheader144, %84
  %.492 = phi i32 [ 0, %84 ], [ 0, %.preheader144 ], [ %.391.us, %99 ], [ %.391, %..loopexit143_crit_edge ]
  %.5 = phi ptr [ %85, %84 ], [ %85, %.preheader144 ], [ %85, %99 ], [ %.4, %..loopexit143_crit_edge ]
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %154 = sext i32 %.492 to i64
  %155 = getelementptr inbounds ptr, ptr %153, i64 %154
  store ptr %.5, ptr %155, align 8, !tbaa !28
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !26
  %.not127 = icmp eq i32 %156, 0
  br i1 %.not127, label %.loopexit142, label %157

157:                                              ; preds = %.loopexit145
  %.593186 = add nsw i32 %.fr, -1
  %.not128187 = icmp eq i32 %.593186, 0
  br i1 %.not128187, label %.loopexit142, label %.lr.ph190

.lr.ph190:                                        ; preds = %157
  %158 = icmp eq i32 %.fr, 0
  br i1 %158, label %.loopexit142, label %.lr.ph190.split.preheader

.lr.ph190.split.preheader:                        ; preds = %.lr.ph190
  %159 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2848), align 8, !tbaa !27
  br label %.lr.ph190.split

.loopexit141:                                     ; preds = %.lr.ph184, %.lr.ph190.split
  %.7.lcssa = phi ptr [ %.6188, %.lr.ph190.split ], [ %165, %.lr.ph184 ]
  %.593 = add nsw i32 %.593189, -1
  %.not128 = icmp eq i32 %.593, 0
  br i1 %.not128, label %.loopexit142.loopexit197, label %.lr.ph190.split, !llvm.loop !46

.lr.ph190.split:                                  ; preds = %.lr.ph190.split.preheader, %.loopexit141
  %.593189 = phi i32 [ %.593, %.loopexit141 ], [ %.593186, %.lr.ph190.split.preheader ]
  %.6188 = phi ptr [ %.7.lcssa, %.loopexit141 ], [ %159, %.lr.ph190.split.preheader ]
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %.not137181 = icmp eq i32 %160, 0
  br i1 %.not137181, label %.loopexit141, label %.lr.ph184

.lr.ph184:                                        ; preds = %.lr.ph190.split, %.lr.ph184
  %.7183 = phi ptr [ %165, %.lr.ph184 ], [ %.6188, %.lr.ph190.split ]
  %.296182 = phi i32 [ %161, %.lr.ph184 ], [ %160, %.lr.ph190.split ]
  %161 = add nsw i32 %.296182, -1
  %162 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 456), align 8, !tbaa !35
  %163 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 464), align 8, !tbaa !36
  %164 = call double @qh_randomfactor(double noundef %162, double noundef %163) #3
  %165 = getelementptr inbounds i8, ptr %.7183, i64 8
  %166 = load double, ptr %.7183, align 8, !tbaa !34
  %167 = fmul double %164, %166
  store double %167, ptr %.7183, align 8, !tbaa !34
  %.not137 = icmp eq i32 %161, 0
  br i1 %.not137, label %.loopexit141, label %.lr.ph184, !llvm.loop !47

.loopexit142.loopexit197:                         ; preds = %.loopexit141
  %.pre215 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  br label %.loopexit142

.loopexit142:                                     ; preds = %.lr.ph190, %.loopexit142.loopexit197, %157, %.loopexit145
  %168 = phi i32 [ %.pre215, %.loopexit142.loopexit197 ], [ 1, %157 ], [ %.fr, %.loopexit145 ], [ 0, %.lr.ph190 ]
  %169 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2856), align 8, !tbaa !29
  %170 = getelementptr inbounds i8, ptr %0, i64 112
  %171 = load i32, ptr %170, align 8
  %172 = lshr i32 %171, 12
  %173 = and i32 %172, 1
  %174 = load ptr, ptr %14, align 8, !tbaa !19
  %175 = getelementptr inbounds i8, ptr %0, i64 16
  call void @qh_sethyperplane_gauss(i32 noundef %168, ptr noundef %169, ptr noundef %10, i32 noundef %173, ptr noundef %174, ptr noundef nonnull %175, ptr noundef nonnull %3)
  %176 = load i32, ptr %3, align 4, !tbaa !18
  %.not129 = icmp eq i32 %176, 0
  br i1 %.not129, label %185, label %177

177:                                              ; preds = %.loopexit142
  %178 = call i32 @qh_orientoutside(ptr noundef nonnull %0) #3
  %179 = icmp ne i32 %178, 0
  %180 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %181 = icmp ne i32 %180, 0
  %or.cond9 = select i1 %179, i1 %181, i1 false
  br i1 %or.cond9, label %182, label %185

182:                                              ; preds = %177
  %183 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %183, i32 noundef 2, ptr noundef nonnull @.str.30, i32 noundef %184) #3
  br label %185

185:                                              ; preds = %.loopexit142, %182, %177, %79
  %186 = getelementptr inbounds i8, ptr %0, i64 112
  %187 = load i32, ptr %186, align 8
  %188 = and i32 %187, -131073
  store i32 %188, ptr %186, align 8
  %189 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8, !tbaa !48
  %.not130 = icmp eq i32 %189, 0
  br i1 %.not130, label %206, label %190

190:                                              ; preds = %185
  %191 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 572), align 4, !tbaa !49
  %.not131 = icmp eq i32 %191, 0
  %192 = load ptr, ptr %14, align 8, !tbaa !19
  %193 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %194 = sext i32 %193 to i64
  %195 = getelementptr double, ptr %192, i64 %194
  %196 = getelementptr i8, ptr %195, i64 -8
  %197 = load double, ptr %196, align 8, !tbaa !34
  %198 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1760), align 8, !tbaa !50
  br i1 %.not131, label %202, label %199

199:                                              ; preds = %190
  %200 = fmul double %198, 2.000000e+00
  %201 = fcmp ult double %197, %200
  br i1 %201, label %206, label %.sink.split

202:                                              ; preds = %190
  %203 = fmul double %198, -2.000000e+00
  %204 = fcmp ogt double %197, %203
  br i1 %204, label %.sink.split, label %206

.sink.split:                                      ; preds = %202, %199
  %205 = or i32 %187, 131072
  store i32 %205, ptr %186, align 8
  br label %206

206:                                              ; preds = %.sink.split, %199, %202, %185
  %207 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !51
  %208 = icmp ne i32 %207, 0
  %209 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %210 = icmp ne i32 %209, 0
  %or.cond3 = select i1 %208, i1 true, i1 %210
  %211 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8
  %212 = icmp ne i32 %211, 0
  %or.cond5 = select i1 %or.cond3, i1 true, i1 %212
  %213 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2664), align 8
  %214 = fcmp olt double %213, 0x7FEFFFFFFFFFFFFF
  %or.cond7 = select i1 %or.cond5, i1 true, i1 %214
  br i1 %or.cond7, label %215, label %.thread

215:                                              ; preds = %206
  %216 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !26
  store i32 %216, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !52
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !26
  %217 = load ptr, ptr %5, align 8, !tbaa !13
  %.not132 = icmp eq ptr %217, null
  br i1 %.not132, label %258, label %.preheader

.preheader:                                       ; preds = %215
  %.3101191 = getelementptr inbounds i8, ptr %217, i64 8
  %218 = load ptr, ptr %.3101191, align 8, !tbaa !28
  %.not134192 = icmp eq ptr %218, null
  br i1 %.not134192, label %258, label %.lr.ph194

.lr.ph194:                                        ; preds = %.preheader
  %219 = getelementptr inbounds i8, ptr %0, i64 108
  br label %220

220:                                              ; preds = %.lr.ph194, %256
  %221 = phi ptr [ %218, %.lr.ph194 ], [ %257, %256 ]
  %.3101193 = phi ptr [ %.3101191, %.lr.ph194 ], [ %.3101, %256 ]
  %222 = getelementptr inbounds i8, ptr %221, i64 16
  %223 = load ptr, ptr %222, align 8, !tbaa !16
  %.not135 = icmp eq ptr %223, %10
  br i1 %.not135, label %256, label %224

224:                                              ; preds = %220
  %225 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 496), align 8, !tbaa !15
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 496), align 8, !tbaa !15
  %227 = load ptr, ptr %222, align 8, !tbaa !16
  call void @qh_distplane(ptr noundef %227, ptr noundef %0, ptr noundef nonnull %2)
  %228 = load double, ptr %2, align 8
  %229 = fcmp olt double %228, 0.000000e+00
  %230 = fneg double %228
  %231 = select i1 %229, double %230, double %228
  store double %231, ptr %2, align 8, !tbaa !34
  %232 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1208), align 8, !tbaa !15
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1208), align 8, !tbaa !15
  %234 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1216), align 8, !tbaa !15
  %235 = fadd double %231, %234
  store double %235, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1216), align 8, !tbaa !15
  %236 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1224), align 8, !tbaa !15
  %237 = fcmp ogt double %231, %236
  br i1 %237, label %238, label %244

238:                                              ; preds = %224
  store double %231, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1224), align 8, !tbaa !15
  %239 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !53
  %240 = fcmp ogt double %231, %239
  br i1 %240, label %241, label %256

241:                                              ; preds = %238
  store double %231, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !53
  %242 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8, !tbaa !54
  %243 = fcmp ogt double %231, %242
  br i1 %243, label %.critedge, label %256

244:                                              ; preds = %224
  %245 = fneg double %231
  %246 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8, !tbaa !54
  %247 = fcmp olt double %246, %245
  br i1 %247, label %.critedge, label %256

.critedge:                                        ; preds = %244, %241
  %248 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %249 = load ptr, ptr %222, align 8, !tbaa !16
  %250 = call i32 @qh_pointid(ptr noundef %249) #3
  %251 = getelementptr inbounds i8, ptr %221, i64 32
  %252 = load i32, ptr %251, align 8, !tbaa !55
  %253 = load double, ptr %2, align 8, !tbaa !34
  %254 = load i32, ptr %219, align 4, !tbaa !23
  %255 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %248, i32 noundef 3060, ptr noundef nonnull @.str.31, i32 noundef %250, i32 noundef %252, double noundef %253, i32 noundef %254, i32 noundef %255) #3
  call void @qh_errprint(ptr noundef nonnull @.str.32, ptr noundef %0, ptr noundef null, ptr noundef null, ptr noundef null) #3
  br label %256

256:                                              ; preds = %.critedge, %244, %238, %241, %220
  %.3101 = getelementptr inbounds i8, ptr %.3101193, i64 8
  %257 = load ptr, ptr %.3101, align 8, !tbaa !28
  %.not134 = icmp eq ptr %257, null
  br i1 %.not134, label %.loopexit.loopexit, label %220, !llvm.loop !56

.loopexit.loopexit:                               ; preds = %256
  %.pre216 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2904), align 8, !tbaa !52
  %.pre217.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  br label %258

258:                                              ; preds = %215, %.preheader, %.loopexit.loopexit
  %.pre217 = phi i32 [ %.pre217.pre, %.loopexit.loopexit ], [ %209, %.preheader ], [ %209, %215 ]
  %259 = phi i32 [ %.pre216, %.loopexit.loopexit ], [ %216, %.preheader ], [ %216, %215 ]
  store i32 %259, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 444), align 4, !tbaa !26
  %260 = icmp sgt i32 %.pre217, 3
  br i1 %260, label %261, label %.thread

261:                                              ; preds = %258
  %262 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %263 = getelementptr inbounds i8, ptr %0, i64 108
  %264 = load i32, ptr %263, align 4, !tbaa !23
  %265 = getelementptr inbounds i8, ptr %0, i64 16
  %266 = load double, ptr %265, align 8, !tbaa !57
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %262, i32 noundef 8017, ptr noundef nonnull @.str.33, i32 noundef %264, double noundef %266) #3
  %267 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %268 = icmp sgt i32 %267, 0
  br i1 %268, label %.lr.ph196, label %._crit_edge

.lr.ph196:                                        ; preds = %261, %.lr.ph196
  %indvars.iv210 = phi i64 [ %indvars.iv.next211, %.lr.ph196 ], [ 0, %261 ]
  %269 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  %270 = load ptr, ptr %14, align 8, !tbaa !19
  %271 = getelementptr inbounds double, ptr %270, i64 %indvars.iv210
  %272 = load double, ptr %271, align 8, !tbaa !34
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %269, i32 noundef 8018, ptr noundef nonnull @.str.34, double noundef %272) #3
  %indvars.iv.next211 = add nuw nsw i64 %indvars.iv210, 1
  %273 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %274 = sext i32 %273 to i64
  %275 = icmp slt i64 %indvars.iv.next211, %274
  br i1 %275, label %.lr.ph196, label %._crit_edge, !llvm.loop !58

._crit_edge:                                      ; preds = %.lr.ph196, %261
  %276 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %276, i32 noundef 8019, ptr noundef nonnull @.str.35) #3
  br label %.thread

.thread:                                          ; preds = %206, %._crit_edge, %258
  %277 = call i32 @qh_checkflipped(ptr noundef %0, ptr noundef null, i32 noundef 1) #3
  %278 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2504), align 8, !tbaa !20
  %279 = icmp eq ptr %278, %0
  br i1 %279, label %280, label %282

280:                                              ; preds = %.thread
  store i32 %.087, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !21
  %281 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !22
  call void @qh_printfacet(ptr noundef %281, ptr noundef %0) #3
  br label %282

282:                                              ; preds = %280, %.thread
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret void
}

declare void @qh_printsummary(ptr noundef) local_unnamed_addr #2

declare double @qh_randomfactor(double noundef, double noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_sethyperplane_det(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @qh_sethyperplane_gauss(i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @qh_orientoutside(ptr noundef) local_unnamed_addr #2

declare void @qh_errprint(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @qh_checkflipped(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

declare void @qh_printfacet(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 willreturn memory(argmem: readwrite) }
attributes #2 = { "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, !7, i64 2440}
!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, !11, i64 2984, !7, i64 2992}
!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 = !{!14, !11, i64 64}
!14 = !{!"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}
!15 = !{!8, !8, i64 0}
!16 = !{!17, !11, i64 16}
!17 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!18 = !{!7, !7, i64 0}
!19 = !{!14, !11, i64 24}
!20 = !{!6, !11, i64 2504}
!21 = !{!6, !7, i64 136}
!22 = !{!6, !11, i64 2424}
!23 = !{!14, !7, i64 108}
!24 = !{!6, !7, i64 2620}
!25 = !{!6, !7, i64 632}
!26 = !{!6, !7, i64 444}
!27 = !{!6, !11, i64 2848}
!28 = !{!11, !11, i64 0}
!29 = !{!6, !11, i64 2856}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = distinct !{!32, !31, !33}
!33 = !{!"llvm.loop.unswitch.partial.disable"}
!34 = !{!10, !10, i64 0}
!35 = !{!6, !10, i64 456}
!36 = !{!6, !10, i64 464}
!37 = distinct !{!37, !31}
!38 = distinct !{!38, !31}
!39 = distinct !{!39, !31}
!40 = distinct !{!40, !31, !41, !42}
!41 = !{!"llvm.loop.isvectorized", i32 1}
!42 = !{!"llvm.loop.unroll.runtime.disable"}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.unroll.disable"}
!45 = distinct !{!45, !31, !41}
!46 = distinct !{!46, !31, !33}
!47 = distinct !{!47, !31}
!48 = !{!6, !7, i64 80}
!49 = !{!6, !7, i64 572}
!50 = !{!6, !10, i64 1760}
!51 = !{!6, !7, i64 424}
!52 = !{!6, !7, i64 2904}
!53 = !{!6, !10, i64 2680}
!54 = !{!6, !10, i64 552}
!55 = !{!17, !7, i64 32}
!56 = distinct !{!56, !31}
!57 = !{!14, !10, i64 16}
!58 = distinct !{!58, !31}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass