; LLVM IR from Discngine/fpocket :: src/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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, ptr, double, double, double, double, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%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 [79 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 153), 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 ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 195), align 8, !tbaa !17
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 195), 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 %37, label %32

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

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

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

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

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

57:                                               ; preds = %54, %37
  %58 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !26
  %59 = icmp sle i32 %58, 4
  br i1 %59, label %60, label %149

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

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

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

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

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

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

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

105:                                              ; preds = %91
  br label %75, !llvm.loop !35

106:                                              ; preds = %75
  br label %107

107:                                              ; preds = %106, %63
  br label %135

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

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

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

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

133:                                              ; preds = %119
  br label %134

134:                                              ; preds = %133, %108
  br label %135

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

149:                                              ; preds = %135, %57
  %150 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !26
  %151 = icmp sgt i32 %150, 4
  br i1 %151, label %155, label %152

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

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

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

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

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

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

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

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

204:                                              ; preds = %190
  br label %205

205:                                              ; preds = %204, %172
  br label %167, !llvm.loop !38

206:                                              ; preds = %167
  br label %207

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

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

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

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

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

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

237:                                              ; preds = %225
  br label %219, !llvm.loop !40

238:                                              ; preds = %219
  br label %239

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

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

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

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

265:                                              ; preds = %262, %259
  br label %266

266:                                              ; preds = %265, %255
  br label %267

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

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

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

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

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

297:                                              ; preds = %291, %279
  br label %318

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

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

317:                                              ; preds = %311, %298
  br label %318

318:                                              ; preds = %317, %297
  br label %319

319:                                              ; preds = %318, %268
  %320 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 61), align 4, !tbaa !44
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %331, label %322

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

325:                                              ; preds = %322
  %326 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !45
  %327 = icmp ne i32 %326, 0
  br i1 %327, label %331, label %328

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

331:                                              ; preds = %328, %325, %322, %319
  %332 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 4, !tbaa !27
  store i32 %332, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 8, !tbaa !47
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 4, !tbaa !27
  store ptr null, ptr %4, align 8, !tbaa !5
  %333 = load ptr, ptr %2, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.facetT, ptr %333, i32 0, i32 8
  %335 = load ptr, ptr %334, align 8, !tbaa !15
  %336 = icmp ne ptr %335, null
  br i1 %336, label %337, label %419

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

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

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

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

363:                                              ; preds = %354
  %364 = load double, ptr %10, align 8, !tbaa !30
  %365 = fneg double %364
  br label %368

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

368:                                              ; preds = %366, %363
  %369 = phi double [ %365, %363 ], [ %367, %366 ]
  store double %369, ptr %10, align 8, !tbaa !30
  %370 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 143), align 8, !tbaa !17
  %371 = add nsw i32 %370, 1
  store i32 %371, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 143), align 8, !tbaa !17
  %372 = load double, ptr %10, align 8, !tbaa !30
  %373 = load double, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 144), align 8, !tbaa !17
  %374 = fadd double %373, %372
  store double %374, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 144), align 8, !tbaa !17
  %375 = load double, ptr %10, align 8, !tbaa !30
  %376 = load double, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 145), align 8, !tbaa !17
  %377 = fcmp ogt double %375, %376
  br i1 %377, label %378, label %391

378:                                              ; preds = %368
  %379 = load double, ptr %10, align 8, !tbaa !30
  store double %379, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 145), align 8, !tbaa !17
  %380 = load double, ptr %10, align 8, !tbaa !30
  %381 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 186), align 8, !tbaa !48
  %382 = fcmp ogt double %380, %381
  br i1 %382, label %383, label %390

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

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

389:                                              ; preds = %388, %383
  br label %390

390:                                              ; preds = %389, %378
  br label %398

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

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

397:                                              ; preds = %396, %391
  br label %398

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

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

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

417:                                              ; preds = %416, %348
  br label %343, !llvm.loop !51

418:                                              ; preds = %343
  br label %419

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

421:                                              ; preds = %419, %328
  %422 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !22
  %423 = icmp sge i32 %422, 3
  br i1 %423, label %424, label %450

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

432:                                              ; preds = %445, %424
  %433 = load i32, ptr %7, align 4, !tbaa !14
  %434 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !26
  %435 = icmp slt i32 %433, %434
  br i1 %435, label %436, label %448

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

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

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

450:                                              ; preds = %448, %421
  %451 = load ptr, ptr %2, align 8, !tbaa !5
  %452 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !21
  %453 = icmp eq ptr %451, %452
  br i1 %453, label %454, label %456

454:                                              ; preds = %450
  %455 = load i32, ptr %9, align 4, !tbaa !14
  store i32 %455, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !22
  br label %456

456:                                              ; preds = %454, %450
  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

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 2424}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !6, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !12, i64 184, !12, i64 192, !11, i64 200, !12, i64 208, !11, i64 216, !11, i64 220, !11, i64 224, !11, i64 228, !11, i64 232, !11, i64 236, !11, i64 240, !11, i64 244, !11, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !7, i64 296, !11, i64 412, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !11, i64 436, !11, i64 440, !11, i64 444, !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, !12, i64 544, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !12, i64 584, !11, i64 592, !6, i64 600, !6, i64 608, !11, i64 616, !11, i64 620, !11, i64 624, !11, i64 628, !11, i64 632, !6, i64 640, !11, i64 648, !6, i64 656, !11, i64 664, !7, i64 668, !11, i64 924, !7, i64 928, !7, i64 1184, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !12, 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, !11, i64 1856, !6, i64 1864, !12, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !11, i64 2424, !11, i64 2428, !11, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !11, i64 2480, !11, i64 2484, !6, i64 2488, !11, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !11, i64 2536, !11, i64 2540, !11, i64 2544, !11, i64 2548, !11, i64 2552, !11, i64 2556, !11, i64 2560, !13, i64 2568, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !6, i64 2592, !11, i64 2600, !11, i64 2604, !12, i64 2608, !11, i64 2616, !12, i64 2624, !12, i64 2632, !12, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !11, i64 2660, !12, i64 2664, !12, i64 2672, !11, i64 2680, !11, i64 2684, !11, i64 2688, !11, i64 2692, !12, i64 2696, !12, i64 2704, !11, i64 2712, !11, i64 2716, !11, i64 2720, !11, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !11, i64 2792, !6, i64 2800, !6, i64 2808, !11, i64 2816, !11, i64 2820, !11, i64 2824, !6, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !11, i64 2864, !11, i64 2868, !6, i64 2872, !6, i64 2880, !11, i64 2888}
!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}
!20 = !{!16, !6, i64 24}
!21 = !{!10, !6, i64 2488}
!22 = !{!10, !11, i64 128}
!23 = !{!10, !6, i64 2408}
!24 = !{!16, !11, i64 108}
!25 = !{!10, !11, i64 2588}
!26 = !{!10, !11, i64 624}
!27 = !{!10, !11, i64 444}
!28 = !{!10, !6, i64 2768}
!29 = !{!10, !6, i64 2776}
!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 72}
!42 = !{!10, !11, i64 564}
!43 = !{!10, !12, i64 1752}
!44 = !{!10, !11, i64 420}
!45 = !{!10, !11, i64 532}
!46 = !{!10, !12, i64 2608}
!47 = !{!10, !11, i64 2824}
!48 = !{!10, !12, i64 2624}
!49 = !{!10, !12, i64 544}
!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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, i32, ptr, double, double, double, double, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [227 x %union.intrealT], [237 x i8], [227 x ptr], [227 x i16], [227 x i8], [227 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@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 [79 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 2424), 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 1560), align 8, !tbaa !15
  %13 = add nsw i32 %12, 1
  store i32 %13, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1560), 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 2488), 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 128), align 8, !tbaa !21
  store i32 5, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !21
  %23 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), 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 2408), align 8, !tbaa !22
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), 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 1592), align 8, !tbaa !15
  %.not113 = icmp eq i32 %28, 0
  br i1 %.not113, label %31, label %29

29:                                               ; preds = %21
  %30 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), 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 2408), 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 2408), align 8, !tbaa !22
  tail call void @qh_printsummary(ptr noundef %33) #3
  br label %34

34:                                               ; preds = %31, %18
  %.084 = phi i32 [ %22, %31 ], [ 0, %18 ]
  %35 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), 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
  %.not114 = icmp eq i32 %38, 0
  %39 = load ptr, ptr %5, align 8, !tbaa !13
  %.not115 = icmp eq ptr %39, null
  br i1 %.not114, label %63, label %40

40:                                               ; preds = %37
  br i1 %.not115, label %.loopexit143, label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2768), align 8, !tbaa !27
  %.095150 = getelementptr inbounds i8, ptr %39, i64 8
  %43 = load ptr, ptr %.095150, align 8, !tbaa !28
  %.not119151 = icmp eq ptr %43, null
  br i1 %.not119151, label %.loopexit143, label %.lr.ph155

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

.loopexit144.us:                                  ; preds = %.lr.ph155, %.loopexit144.us
  %indvars.iv200 = phi i64 [ %indvars.iv.next201, %.loopexit144.us ], [ 0, %.lr.ph155 ]
  %.095154.us = phi ptr [ %.095.us, %.loopexit144.us ], [ %.095150, %.lr.ph155 ]
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), align 8, !tbaa !29
  %indvars.iv.next201 = add nuw nsw i64 %indvars.iv200, 1
  %46 = getelementptr inbounds ptr, ptr %45, i64 %indvars.iv200
  store ptr %42, ptr %46, align 8, !tbaa !28
  %.095.us = getelementptr inbounds i8, ptr %.095154.us, i64 8
  %47 = load ptr, ptr %.095.us, align 8, !tbaa !28
  %.not119.us = icmp eq ptr %47, null
  br i1 %.not119.us, label %.loopexit143, label %.loopexit144.us, !llvm.loop !30

.loopexit144:                                     ; preds = %.lr.ph, %.lr.ph155.split
  %.1.lcssa = phi ptr [ %.081153, %.lr.ph155.split ], [ %62, %.lr.ph ]
  %.095 = getelementptr inbounds i8, ptr %.095154, i64 8
  %48 = load ptr, ptr %.095, align 8, !tbaa !28
  %.not119 = icmp eq ptr %48, null
  br i1 %.not119, label %.loopexit143.loopexit196, label %.lr.ph155.split, !llvm.loop !32

.lr.ph155.split:                                  ; preds = %.lr.ph155, %.loopexit144
  %indvars.iv = phi i64 [ %indvars.iv.next, %.loopexit144 ], [ 0, %.lr.ph155 ]
  %49 = phi ptr [ %48, %.loopexit144 ], [ %43, %.lr.ph155 ]
  %.095154 = phi ptr [ %.095, %.loopexit144 ], [ %.095150, %.lr.ph155 ]
  %.081153 = phi ptr [ %.1.lcssa, %.loopexit144 ], [ %42, %.lr.ph155 ]
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), 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 %.081153, ptr %51, align 8, !tbaa !28
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  %.not136146 = icmp eq i32 %52, 0
  br i1 %.not136146, label %.loopexit144, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph155.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
  %.1149 = phi ptr [ %62, %.lr.ph ], [ %.081153, %.lr.ph.preheader ]
  %.082148 = phi ptr [ %56, %.lr.ph ], [ %54, %.lr.ph.preheader ]
  %.091147 = phi i32 [ %55, %.lr.ph ], [ %52, %.lr.ph.preheader ]
  %55 = add nsw i32 %.091147, -1
  %56 = getelementptr inbounds i8, ptr %.082148, i64 8
  %57 = load double, ptr %.082148, 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 %.1149, i64 8
  store double %61, ptr %.1149, align 8, !tbaa !34
  %.not136 = icmp eq i32 %55, 0
  br i1 %.not136, label %.loopexit144, label %.lr.ph, !llvm.loop !37

63:                                               ; preds = %37
  br i1 %.not115, label %.loopexit143, label %.preheader142

.preheader142:                                    ; preds = %63
  %.196156 = getelementptr inbounds i8, ptr %39, i64 8
  %64 = load ptr, ptr %.196156, align 8, !tbaa !28
  %.not116157 = icmp eq ptr %64, null
  br i1 %.not116157, label %.loopexit143, label %.lr.ph160

.lr.ph160:                                        ; preds = %.preheader142, %.lr.ph160
  %indvars.iv203 = phi i64 [ %indvars.iv.next204, %.lr.ph160 ], [ 0, %.preheader142 ]
  %65 = phi ptr [ %70, %.lr.ph160 ], [ %64, %.preheader142 ]
  %.196159 = phi ptr [ %.196, %.lr.ph160 ], [ %.196156, %.preheader142 ]
  %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 2776), align 8, !tbaa !29
  %indvars.iv.next204 = add nuw nsw i64 %indvars.iv203, 1
  %69 = getelementptr inbounds ptr, ptr %68, i64 %indvars.iv203
  store ptr %67, ptr %69, align 8, !tbaa !28
  %.196 = getelementptr inbounds i8, ptr %.196159, i64 8
  %70 = load ptr, ptr %.196, align 8, !tbaa !28
  %.not116 = icmp eq ptr %70, null
  br i1 %.not116, label %.loopexit143, label %.lr.ph160, !llvm.loop !38

.loopexit143.loopexit196:                         ; preds = %.loopexit144
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  br label %.loopexit143

.loopexit143:                                     ; preds = %.loopexit144.us, %.lr.ph160, %.loopexit143.loopexit196, %41, %.preheader142, %63, %40
  %71 = phi i32 [ %.pre, %.loopexit143.loopexit196 ], [ %35, %41 ], [ %35, %.preheader142 ], [ %35, %63 ], [ %35, %40 ], [ %35, %.lr.ph160 ], [ 0, %.loopexit144.us ]
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), 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)
  %.pre209 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  %.pre210 = load i32, ptr %3, align 4
  br label %79

79:                                               ; preds = %.loopexit143, %34
  %80 = phi i32 [ %.pre210, %.loopexit143 ], [ 0, %34 ]
  %81 = phi i32 [ %.pre209, %.loopexit143 ], [ %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 2768), align 8, !tbaa !27
  %86 = load ptr, ptr %5, align 8, !tbaa !13
  %.not120 = icmp eq ptr %86, null
  br i1 %.not120, label %.loopexit141, label %.preheader140

.preheader140:                                    ; preds = %84
  %.297168 = getelementptr inbounds i8, ptr %86, i64 8
  %87 = load ptr, ptr %.297168, align 8, !tbaa !28
  %.not122169 = icmp eq ptr %87, null
  br i1 %.not122169, label %.loopexit141, label %.lr.ph173

.lr.ph173:                                        ; preds = %.preheader140
  %.not135161 = icmp eq i32 %.fr, 0
  br i1 %.not135161, label %.lr.ph173.split.us, label %.lr.ph173.split.preheader

.lr.ph173.split.preheader:                        ; preds = %.lr.ph173
  %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.end229 = sub i32 %.fr, %.cast
  %cmp.n = icmp eq i64 %n.vec, %88
  br label %.lr.ph173.split

.lr.ph173.split.us:                               ; preds = %.lr.ph173, %99
  %92 = phi ptr [ %100, %99 ], [ %87, %.lr.ph173 ]
  %.297172.us = phi ptr [ %.297.us, %99 ], [ %.297168, %.lr.ph173 ]
  %.287170.us = phi i32 [ %.388.us, %99 ], [ 0, %.lr.ph173 ]
  %93 = getelementptr inbounds i8, ptr %92, i64 16
  %94 = load ptr, ptr %93, align 8, !tbaa !16
  %.not134.us = icmp eq ptr %94, %10
  br i1 %.not134.us, label %99, label %.loopexit139.us

.loopexit139.us:                                  ; preds = %.lr.ph173.split.us
  %95 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), align 8, !tbaa !29
  %96 = add nsw i32 %.287170.us, 1
  %97 = sext i32 %.287170.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 = %.loopexit139.us, %.lr.ph173.split.us
  %.388.us = phi i32 [ %.287170.us, %.lr.ph173.split.us ], [ %96, %.loopexit139.us ]
  %.297.us = getelementptr inbounds i8, ptr %.297172.us, i64 8
  %100 = load ptr, ptr %.297.us, align 8, !tbaa !28
  %.not122.us = icmp eq ptr %100, null
  br i1 %.not122.us, label %.loopexit141, label %.lr.ph173.split.us, !llvm.loop !39

.lr.ph173.split:                                  ; preds = %.lr.ph173.split.preheader, %..loopexit139_crit_edge
  %101 = phi ptr [ %152, %..loopexit139_crit_edge ], [ %87, %.lr.ph173.split.preheader ]
  %.297172 = phi ptr [ %.297, %..loopexit139_crit_edge ], [ %.297168, %.lr.ph173.split.preheader ]
  %.2171 = phi ptr [ %.4, %..loopexit139_crit_edge ], [ %85, %.lr.ph173.split.preheader ]
  %.287170 = phi i32 [ %.388, %..loopexit139_crit_edge ], [ 0, %.lr.ph173.split.preheader ]
  %.2171223 = ptrtoint ptr %.2171 to i64
  %102 = getelementptr inbounds i8, ptr %101, i64 16
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %.not134 = icmp eq ptr %103, %10
  br i1 %.not134, label %..loopexit139_crit_edge, label %.lr.ph166

.lr.ph166:                                        ; preds = %.lr.ph173.split
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), align 8, !tbaa !29
  %105 = sext i32 %.287170 to i64
  %106 = getelementptr inbounds ptr, ptr %104, i64 %105
  store ptr %.2171, 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.ph166
  %108 = ptrtoint ptr %107 to i64
  %109 = sub i64 %.2171223, %108
  %diff.check = icmp ult i64 %109, 32
  %110 = sub i64 %.2171223, %11
  %diff.check224 = icmp ult i64 %110, 32
  %conflict.rdx = or i1 %diff.check, %diff.check224
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end225 = getelementptr i8, ptr %.2171, i64 %90
  %ind.end227 = 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.idx232 = shl i64 %index, 3
  %next.gep233 = getelementptr i8, ptr %.2171, i64 %offset.idx232
  %offset.idx235 = shl i64 %index, 3
  %next.gep236 = getelementptr i8, ptr %107, i64 %offset.idx235
  %111 = getelementptr i8, ptr %next.gep236, i64 16
  %wide.load = load <2 x double>, ptr %next.gep236, align 8, !tbaa !34
  %wide.load238 = load <2 x double>, ptr %111, align 8, !tbaa !34
  %112 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load239 = load <2 x double>, ptr %next.gep, align 8, !tbaa !34
  %wide.load240 = load <2 x double>, ptr %112, align 8, !tbaa !34
  %113 = fsub <2 x double> %wide.load, %wide.load239
  %114 = fsub <2 x double> %wide.load238, %wide.load240
  %115 = getelementptr i8, ptr %next.gep233, i64 16
  store <2 x double> %113, ptr %next.gep233, 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 %..loopexit139_crit_edge.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph166
  %.080165.ph = phi ptr [ %10, %vector.memcheck ], [ %10, %.lr.ph166 ], [ %ind.end, %middle.block ]
  %.3164.ph = phi ptr [ %.2171, %vector.memcheck ], [ %.2171, %.lr.ph166 ], [ %ind.end225, %middle.block ]
  %.183163.ph = phi ptr [ %107, %vector.memcheck ], [ %107, %.lr.ph166 ], [ %ind.end227, %middle.block ]
  %.192162.ph = phi i32 [ %.fr, %vector.memcheck ], [ %.fr, %.lr.ph166 ], [ %ind.end229, %middle.block ]
  %117 = add nsw i32 %.192162.ph, -1
  %xtraiter = and i32 %.192162.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
  %.080165.prol = phi ptr [ %121, %scalar.ph.prol ], [ %.080165.ph, %scalar.ph.preheader ]
  %.3164.prol = phi ptr [ %124, %scalar.ph.prol ], [ %.3164.ph, %scalar.ph.preheader ]
  %.183163.prol = phi ptr [ %119, %scalar.ph.prol ], [ %.183163.ph, %scalar.ph.preheader ]
  %.192162.prol = phi i32 [ %118, %scalar.ph.prol ], [ %.192162.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %118 = add nsw i32 %.192162.prol, -1
  %119 = getelementptr inbounds i8, ptr %.183163.prol, i64 8
  %120 = load double, ptr %.183163.prol, align 8, !tbaa !34
  %121 = getelementptr inbounds i8, ptr %.080165.prol, i64 8
  %122 = load double, ptr %.080165.prol, align 8, !tbaa !34
  %123 = fsub double %120, %122
  %124 = getelementptr inbounds i8, ptr %.3164.prol, i64 8
  store double %123, ptr %.3164.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
  %.lcssa242.unr = phi ptr [ poison, %scalar.ph.preheader ], [ %124, %scalar.ph.prol ]
  %.080165.unr = phi ptr [ %.080165.ph, %scalar.ph.preheader ], [ %121, %scalar.ph.prol ]
  %.3164.unr = phi ptr [ %.3164.ph, %scalar.ph.preheader ], [ %124, %scalar.ph.prol ]
  %.183163.unr = phi ptr [ %.183163.ph, %scalar.ph.preheader ], [ %119, %scalar.ph.prol ]
  %.192162.unr = phi i32 [ %.192162.ph, %scalar.ph.preheader ], [ %118, %scalar.ph.prol ]
  %125 = icmp ult i32 %117, 3
  br i1 %125, label %..loopexit139_crit_edge.loopexit, label %scalar.ph

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

..loopexit139_crit_edge.loopexit:                 ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.lcssa221 = phi ptr [ %ind.end225, %middle.block ], [ %.lcssa242.unr, %scalar.ph.prol.loopexit ], [ %150, %scalar.ph ]
  %151 = add nsw i32 %.287170, 1
  br label %..loopexit139_crit_edge

..loopexit139_crit_edge:                          ; preds = %..loopexit139_crit_edge.loopexit, %.lr.ph173.split
  %.388 = phi i32 [ %.287170, %.lr.ph173.split ], [ %151, %..loopexit139_crit_edge.loopexit ]
  %.4 = phi ptr [ %.2171, %.lr.ph173.split ], [ %.lcssa221, %..loopexit139_crit_edge.loopexit ]
  %.297 = getelementptr inbounds i8, ptr %.297172, i64 8
  %152 = load ptr, ptr %.297, align 8, !tbaa !28
  %.not122 = icmp eq ptr %152, null
  br i1 %.not122, label %.loopexit141, label %.lr.ph173.split, !llvm.loop !39

.loopexit141:                                     ; preds = %..loopexit139_crit_edge, %99, %.preheader140, %84
  %.489 = phi i32 [ 0, %84 ], [ 0, %.preheader140 ], [ %.388.us, %99 ], [ %.388, %..loopexit139_crit_edge ]
  %.5 = phi ptr [ %85, %84 ], [ %85, %.preheader140 ], [ %85, %99 ], [ %.4, %..loopexit139_crit_edge ]
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), align 8, !tbaa !29
  %154 = sext i32 %.489 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
  %.not123 = icmp eq i32 %156, 0
  br i1 %.not123, label %.loopexit138, label %157

157:                                              ; preds = %.loopexit141
  %.590182 = add nsw i32 %.fr, -1
  %.not124183 = icmp eq i32 %.590182, 0
  br i1 %.not124183, label %.loopexit138, label %.lr.ph186

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

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

.loopexit137:                                     ; preds = %.lr.ph180, %.lr.ph186.split
  %.7.lcssa = phi ptr [ %.6184, %.lr.ph186.split ], [ %165, %.lr.ph180 ]
  %.590 = add nsw i32 %.590185, -1
  %.not124 = icmp eq i32 %.590, 0
  br i1 %.not124, label %.loopexit138.loopexit193, label %.lr.ph186.split, !llvm.loop !46

.lr.ph186.split:                                  ; preds = %.lr.ph186.split.preheader, %.loopexit137
  %.590185 = phi i32 [ %.590, %.loopexit137 ], [ %.590182, %.lr.ph186.split.preheader ]
  %.6184 = phi ptr [ %.7.lcssa, %.loopexit137 ], [ %159, %.lr.ph186.split.preheader ]
  %160 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  %.not133177 = icmp eq i32 %160, 0
  br i1 %.not133177, label %.loopexit137, label %.lr.ph180

.lr.ph180:                                        ; preds = %.lr.ph186.split, %.lr.ph180
  %.7179 = phi ptr [ %165, %.lr.ph180 ], [ %.6184, %.lr.ph186.split ]
  %.293178 = phi i32 [ %161, %.lr.ph180 ], [ %160, %.lr.ph186.split ]
  %161 = add nsw i32 %.293178, -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 %.7179, i64 8
  %166 = load double, ptr %.7179, align 8, !tbaa !34
  %167 = fmul double %164, %166
  store double %167, ptr %.7179, align 8, !tbaa !34
  %.not133 = icmp eq i32 %161, 0
  br i1 %.not133, label %.loopexit137, label %.lr.ph180, !llvm.loop !47

.loopexit138.loopexit193:                         ; preds = %.loopexit137
  %.pre211 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  br label %.loopexit138

.loopexit138:                                     ; preds = %.lr.ph186, %.loopexit138.loopexit193, %157, %.loopexit141
  %168 = phi i32 [ %.pre211, %.loopexit138.loopexit193 ], [ 1, %157 ], [ %.fr, %.loopexit141 ], [ 0, %.lr.ph186 ]
  %169 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2776), 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
  %.not125 = icmp eq i32 %176, 0
  br i1 %.not125, label %185, label %177

177:                                              ; preds = %.loopexit138
  %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 128), 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 2408), align 8, !tbaa !22
  %184 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), 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 = %.loopexit138, %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 72), align 8, !tbaa !48
  %.not126 = icmp eq i32 %189, 0
  br i1 %.not126, label %206, label %190

190:                                              ; preds = %185
  %191 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 564), align 4, !tbaa !49
  %.not127 = 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 624), 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 1752), align 8, !tbaa !50
  br i1 %.not127, 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 420), align 4, !tbaa !51
  %208 = icmp ne i32 %207, 0
  %209 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), 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 532), align 4
  %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 2608), 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 2824), 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
  %.not128 = icmp eq ptr %217, null
  br i1 %.not128, label %258, label %.preheader

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

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

220:                                              ; preds = %.lr.ph190, %256
  %221 = phi ptr [ %218, %.lr.ph190 ], [ %257, %256 ]
  %.398189 = phi ptr [ %.398187, %.lr.ph190 ], [ %.398, %256 ]
  %222 = getelementptr inbounds i8, ptr %221, i64 16
  %223 = load ptr, ptr %222, align 8, !tbaa !16
  %.not131 = icmp eq ptr %223, %10
  br i1 %.not131, label %256, label %224

224:                                              ; preds = %220
  %225 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 456), align 8, !tbaa !15
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 456), 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 1144), align 8, !tbaa !15
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1144), align 8, !tbaa !15
  %234 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1152), align 8, !tbaa !15
  %235 = fadd double %231, %234
  store double %235, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1152), align 8, !tbaa !15
  %236 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1160), 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 1160), align 8, !tbaa !15
  %239 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2624), 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 2624), align 8, !tbaa !53
  %242 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), 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 544), 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 2408), 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 2588), align 4, !tbaa !24
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %248, i32 noundef 8016, 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
  %.398 = getelementptr inbounds i8, ptr %.398189, i64 8
  %257 = load ptr, ptr %.398, align 8, !tbaa !28
  %.not130 = icmp eq ptr %257, null
  br i1 %.not130, label %.loopexit.loopexit, label %220, !llvm.loop !56

.loopexit.loopexit:                               ; preds = %256
  %.pre212 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !52
  %.pre213.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !21
  br label %258

258:                                              ; preds = %215, %.preheader, %.loopexit.loopexit
  %.pre213 = phi i32 [ %.pre213.pre, %.loopexit.loopexit ], [ %209, %.preheader ], [ %209, %215 ]
  %259 = phi i32 [ %.pre212, %.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 %.pre213, 2
  br i1 %260, label %261, label %.thread

261:                                              ; preds = %258
  %262 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), 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 624), align 8, !tbaa !25
  %268 = icmp sgt i32 %267, 0
  br i1 %268, label %.lr.ph192, label %._crit_edge

.lr.ph192:                                        ; preds = %261, %.lr.ph192
  %indvars.iv206 = phi i64 [ %indvars.iv.next207, %.lr.ph192 ], [ 0, %261 ]
  %269 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !22
  %270 = load ptr, ptr %14, align 8, !tbaa !19
  %271 = getelementptr inbounds double, ptr %270, i64 %indvars.iv206
  %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.next207 = add nuw nsw i64 %indvars.iv206, 1
  %273 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !25
  %274 = sext i32 %273 to i64
  %275 = icmp slt i64 %indvars.iv.next207, %274
  br i1 %275, label %.lr.ph192, label %._crit_edge, !llvm.loop !58

._crit_edge:                                      ; preds = %.lr.ph192, %261
  %276 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), 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 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2488), align 8, !tbaa !20
  %278 = icmp eq ptr %277, %0
  br i1 %278, label %279, label %280

279:                                              ; preds = %.thread
  store i32 %.084, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !21
  br label %280

280:                                              ; preds = %279, %.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

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 2424}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !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, !8, i64 296, !7, i64 412, !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, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, 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, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!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}
!18 = !{!7, !7, i64 0}
!19 = !{!14, !11, i64 24}
!20 = !{!6, !11, i64 2488}
!21 = !{!6, !7, i64 128}
!22 = !{!6, !11, i64 2408}
!23 = !{!14, !7, i64 108}
!24 = !{!6, !7, i64 2588}
!25 = !{!6, !7, i64 624}
!26 = !{!6, !7, i64 444}
!27 = !{!6, !11, i64 2768}
!28 = !{!11, !11, i64 0}
!29 = !{!6, !11, i64 2776}
!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 72}
!49 = !{!6, !7, i64 564}
!50 = !{!6, !10, i64 1752}
!51 = !{!6, !7, i64 420}
!52 = !{!6, !7, i64 2824}
!53 = !{!6, !10, i64 2624}
!54 = !{!6, !10, i64 544}
!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