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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.151 = external hidden unnamed_addr constant [30 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [59 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_point(i32 noundef) #2

declare void @qh_settempfree(ptr noundef) #1

declare i32 @qh_pointid(ptr noundef) #1

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

declare ptr @qh_newfacet() #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_findgood(ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_isvertex(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_furthestnext() #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_initbuild() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  %9 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !5
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %11, label %14

11:                                               ; preds = %0
  %12 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %12, i32 noundef 9350, ptr noundef @.str.151, ptr noundef @qh_version, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 117))
  %13 = call i32 @fflush(ptr noundef null)
  br label %14

14:                                               ; preds = %11, %0
  store i32 -1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 190), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 245), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 241), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 242), align 4, !tbaa !17
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 243), align 8, !tbaa !18
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 244), align 4, !tbaa !19
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 183), align 4, !tbaa !20
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 184), align 8, !tbaa !21
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 182), align 8, !tbaa !22
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !23
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !24
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 198), align 8, !tbaa !25
  %15 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %16 = icmp sgt i32 %15, 0
  br i1 %16, label %17, label %21

17:                                               ; preds = %14
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %19 = sub nsw i32 %18, 1
  %20 = call ptr @qh_point(i32 noundef %19)
  store ptr %20, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !27
  br label %30

21:                                               ; preds = %14
  %22 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %23 = icmp slt i32 %22, 0
  br i1 %23, label %24, label %29

24:                                               ; preds = %21
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %26 = sub nsw i32 0, %25
  %27 = sub nsw i32 %26, 1
  %28 = call ptr @qh_point(i32 noundef %27)
  store ptr %28, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !27
  br label %29

29:                                               ; preds = %24, %21
  br label %30

30:                                               ; preds = %29, %17
  %31 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %32 = icmp sgt i32 %31, 0
  br i1 %32, label %33, label %37

33:                                               ; preds = %30
  %34 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %35 = sub nsw i32 %34, 1
  %36 = call ptr @qh_point(i32 noundef %35)
  store ptr %36, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  br label %46

37:                                               ; preds = %30
  %38 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %39 = icmp slt i32 %38, 0
  br i1 %39, label %40, label %45

40:                                               ; preds = %37
  %41 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %42 = sub nsw i32 0, %41
  %43 = sub nsw i32 %42, 1
  %44 = call ptr @qh_point(i32 noundef %43)
  store ptr %44, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  br label %45

45:                                               ; preds = %40, %37
  br label %46

46:                                               ; preds = %45, %33
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %59

49:                                               ; preds = %46
  %50 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !27
  %51 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %52 = icmp ult ptr %50, %51
  br i1 %52, label %72, label %53

53:                                               ; preds = %49
  %54 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !27
  %55 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %56 = sub nsw i32 %55, 1
  %57 = call ptr @qh_point(i32 noundef %56)
  %58 = icmp ugt ptr %54, %57
  br i1 %58, label %72, label %59

59:                                               ; preds = %53, %46
  %60 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %61 = icmp ne i32 %60, 0
  br i1 %61, label %62, label %76

62:                                               ; preds = %59
  %63 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %64 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %65 = icmp ult ptr %63, %64
  br i1 %65, label %72, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %68 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %69 = sub nsw i32 %68, 1
  %70 = call ptr @qh_point(i32 noundef %69)
  %71 = icmp ugt ptr %67, %70
  br i1 %71, label %72, label %76

72:                                               ; preds = %66, %62, %53, %49
  %73 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %74 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %75 = sub nsw i32 %74, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %73, i32 noundef 6150, ptr noundef @.str.152, i32 noundef %75)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %76

76:                                               ; preds = %72, %66, %59
  %77 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %78 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %79 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %80 = call ptr @qh_maxmin(ptr noundef %77, i32 noundef %78, i32 noundef %79)
  store ptr %80, ptr %1, align 8, !tbaa !33
  %81 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 82), align 8, !tbaa !34
  %82 = icmp ne i32 %81, 0
  br i1 %82, label %83, label %90

83:                                               ; preds = %76
  %84 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %85 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %86 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %87 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 144), align 8, !tbaa !35
  %88 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 136), align 8, !tbaa !36
  %89 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !37
  call void @qh_scalelast(ptr noundef %84, i32 noundef %85, i32 noundef %86, double noundef %87, double noundef %88, double noundef %89)
  br label %90

90:                                               ; preds = %83, %76
  call void @qh_detroundoff()
  %91 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !38
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %93, label %160

93:                                               ; preds = %90
  %94 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 127), align 8, !tbaa !39
  %95 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %96 = sub nsw i32 %95, 1
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %94, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !40
  %100 = fcmp ogt double %99, 0x7FDFFFFFFFFFFFFF
  br i1 %100, label %101, label %160

101:                                              ; preds = %93
  %102 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !41
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %104 = sub nsw i32 %103, 1
  %105 = sext i32 %104 to i64
  %106 = getelementptr inbounds double, ptr %102, i64 %105
  %107 = load double, ptr %106, align 8, !tbaa !40
  %108 = fcmp olt double %107, 0xFFDFFFFFFFFFFFFF
  br i1 %108, label %109, label %160

109:                                              ; preds = %101
  store i32 29, ptr %4, align 4, !tbaa !42
  br label %110

110:                                              ; preds = %130, %109
  %111 = load i32, ptr %4, align 4, !tbaa !42
  %112 = add nsw i32 %111, -1
  store i32 %112, ptr %4, align 4, !tbaa !42
  %113 = icmp ne i32 %111, 0
  br i1 %113, label %114, label %131

114:                                              ; preds = %110
  %115 = load i32, ptr %4, align 4, !tbaa !42
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [29 x i32], ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 64), i64 0, i64 %116
  %118 = load i32, ptr %117, align 4, !tbaa !42
  %119 = icmp eq i32 %118, 7
  br i1 %119, label %120, label %130

120:                                              ; preds = %114
  %121 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 19), align 8, !tbaa !43
  %122 = icmp slt i32 %121, 0
  br i1 %122, label %123, label %130

123:                                              ; preds = %120
  %124 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !44
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %130, label %126

126:                                              ; preds = %123
  %127 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 8, !tbaa !45
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %130, label %129

129:                                              ; preds = %126
  br label %131

130:                                              ; preds = %126, %123, %120, %114
  br label %110, !llvm.loop !46

131:                                              ; preds = %129, %110
  %132 = load i32, ptr %4, align 4, !tbaa !42
  %133 = icmp slt i32 %132, 0
  br i1 %133, label %134, label %159

134:                                              ; preds = %131
  %135 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 99), align 4, !tbaa !48
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %145

137:                                              ; preds = %134
  %138 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 131), align 8, !tbaa !49
  %139 = fmul double %138, 2.000000e+00
  %140 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 128), align 8, !tbaa !41
  %141 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %142 = sub nsw i32 %141, 1
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %140, i64 %143
  store double %139, ptr %144, align 8, !tbaa !40
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !44
  br label %158

145:                                              ; preds = %134
  %146 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 131), align 8, !tbaa !49
  %147 = fneg double %146
  %148 = fmul double %147, 2.000000e+00
  %149 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 127), align 8, !tbaa !39
  %150 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %151 = sub nsw i32 %150, 1
  %152 = sext i32 %151 to i64
  %153 = getelementptr inbounds double, ptr %149, i64 %152
  store double %148, ptr %153, align 8, !tbaa !40
  %154 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !44
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %157, label %156

156:                                              ; preds = %145
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 8, !tbaa !45
  br label %157

157:                                              ; preds = %156, %145
  br label %158

158:                                              ; preds = %157, %137
  br label %159

159:                                              ; preds = %158, %131
  br label %160

160:                                              ; preds = %159, %101, %93, %90
  %161 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !50
  %162 = icmp sge i32 %161, 4
  br i1 %162, label %163, label %165

163:                                              ; preds = %160
  %164 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %164, i32 noundef 4091, ptr noundef @.str.153)
  br label %165

165:                                              ; preds = %163, %160
  %166 = call ptr @qh_newfacet()
  store ptr %166, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 164), align 8, !tbaa !51
  store ptr %166, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !52
  store ptr %166, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !53
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !54
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 179), align 4, !tbaa !55
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !56
  %167 = call ptr @qh_newvertex(ptr noundef null)
  store ptr %167, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 176), align 8, !tbaa !57
  store ptr %167, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 177), align 8, !tbaa !58
  store ptr %167, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 175), align 8, !tbaa !59
  %168 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !32
  %169 = load ptr, ptr %1, align 8, !tbaa !33
  %170 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %171 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  %172 = call ptr @qh_initialvertices(i32 noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171)
  store ptr %172, ptr %2, align 8, !tbaa !33
  %173 = load ptr, ptr %2, align 8, !tbaa !33
  call void @qh_initialhull(ptr noundef %173)
  %174 = load ptr, ptr %2, align 8, !tbaa !33
  %175 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), align 8, !tbaa !30
  %176 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !31
  call void @qh_partitionall(ptr noundef %174, ptr noundef %175, i32 noundef %176)
  %177 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 61), align 8, !tbaa !60
  %178 = icmp ne i32 %177, 0
  br i1 %178, label %185, label %179

179:                                              ; preds = %165
  %180 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !61
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %185, label %182

182:                                              ; preds = %179
  %183 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !50
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %204

185:                                              ; preds = %182, %179, %165
  %186 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !61
  %187 = icmp ne i32 %186, 0
  br i1 %187, label %191, label %188

188:                                              ; preds = %185
  %189 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !50
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %202

191:                                              ; preds = %188, %185
  %192 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %193 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !61
  %194 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !50
  %195 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 94), align 8, !tbaa !62
  %196 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !63
  %197 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 95), align 8, !tbaa !64
  %198 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 4, !tbaa !65
  %199 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 171), align 8, !tbaa !66
  %200 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !67
  %201 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 93), align 4, !tbaa !68
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %192, i32 noundef 8103, ptr noundef @.str.154, i32 noundef %193, i32 noundef %194, i32 noundef %195, i32 noundef %196, double noundef %197, i32 noundef %198, i32 noundef %199, i32 noundef %200, i32 noundef %201, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 117))
  br label %202

202:                                              ; preds = %191, %188
  %203 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %203, i32 noundef 8104, ptr noundef @.str.155, ptr noundef @qh_version, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 120))
  br label %204

204:                                              ; preds = %202, %182
  call void @qh_resetlists(i32 noundef 0, i32 noundef 1)
  %205 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !53
  store ptr %205, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 165), align 8, !tbaa !69
  call void @qh_furthestnext()
  %206 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 52), align 4, !tbaa !70
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %211

208:                                              ; preds = %204
  %209 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 15), align 8, !tbaa !71
  store double %209, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 133), align 8, !tbaa !72
  %210 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 40), align 8, !tbaa !73
  store double %210, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 132), align 8, !tbaa !74
  br label %211

211:                                              ; preds = %208, %204
  %212 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !75
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %214, label %273

214:                                              ; preds = %211
  %215 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %216 = icmp sgt i32 %215, 0
  br i1 %216, label %217, label %222

217:                                              ; preds = %214
  %218 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !76
  %219 = icmp ne i32 %218, 0
  br i1 %219, label %220, label %222

220:                                              ; preds = %217
  %221 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %221, i32 noundef 6151, ptr noundef @.str.156)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %222

222:                                              ; preds = %220, %217, %214
  %223 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !44
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %239, label %225

225:                                              ; preds = %222
  %226 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 22), align 4, !tbaa !26
  %227 = icmp ne i32 %226, 0
  br i1 %227, label %239, label %228

228:                                              ; preds = %225
  %229 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !77
  %230 = icmp ne i32 %229, 0
  br i1 %230, label %237, label %231

231:                                              ; preds = %228
  %232 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 52), align 4, !tbaa !70
  %233 = icmp ne i32 %232, 0
  br i1 %233, label %237, label %234

234:                                              ; preds = %231
  %235 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %236 = icmp ne ptr %235, null
  br i1 %236, label %239, label %237

237:                                              ; preds = %234, %231, %228
  %238 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %238, i32 noundef 6152, ptr noundef @.str.157)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %239

239:                                              ; preds = %237, %234, %225, %222
  %240 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 25), align 4, !tbaa !28
  %241 = icmp sgt i32 %240, 0
  br i1 %241, label %242, label %270

242:                                              ; preds = %239
  %243 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !76
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %270, label %245

245:                                              ; preds = %242
  %246 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %247 = load ptr, ptr %2, align 8, !tbaa !33
  %248 = call ptr @qh_isvertex(ptr noundef %246, ptr noundef %247)
  %249 = icmp ne ptr %248, null
  br i1 %249, label %270, label %250

250:                                              ; preds = %245
  %251 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %252 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !53
  %253 = call ptr @qh_findbestnew(ptr noundef %251, ptr noundef %252, ptr noundef %6, i32 noundef 0, ptr noundef %7, ptr noundef %5)
  store ptr %253, ptr %3, align 8, !tbaa !33
  %254 = load i32, ptr %5, align 4, !tbaa !42
  %255 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !78
  %256 = add nsw i32 %255, %254
  store i32 %256, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 59), align 8, !tbaa !78
  %257 = load i32, ptr %7, align 4, !tbaa !42
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %263, label %259

259:                                              ; preds = %250
  %260 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  %261 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %262 = call i32 @qh_pointid(ptr noundef %261)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %260, i32 noundef 6153, ptr noundef @.str.158, i32 noundef %262)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %263

263:                                              ; preds = %259, %250
  %264 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !29
  %265 = load ptr, ptr %3, align 8, !tbaa !33
  %266 = call i32 @qh_addpoint(ptr noundef %264, ptr noundef %265, i32 noundef 0)
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %269, label %268

268:                                              ; preds = %263
  call void @qh_settempfree(ptr noundef %2)
  call void @qh_settempfree(ptr noundef %1)
  store i32 1, ptr %8, align 4
  br label %279

269:                                              ; preds = %263
  br label %270

270:                                              ; preds = %269, %245, %242, %239
  %271 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !53
  %272 = call i32 @qh_findgood(ptr noundef %271, i32 noundef 0)
  br label %273

273:                                              ; preds = %270, %211
  call void @qh_settempfree(ptr noundef %2)
  call void @qh_settempfree(ptr noundef %1)
  %274 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !50
  %275 = icmp sge i32 %274, 1
  br i1 %275, label %276, label %278

276:                                              ; preds = %273
  %277 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %277, i32 noundef 1030, ptr noundef @.str.159)
  br label %278

278:                                              ; preds = %276, %273
  store i32 0, ptr %8, align 4
  br label %279

279:                                              ; preds = %278, %268
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  %280 = load i32, ptr %8, align 4
  switch i32 %280, label %282 [
    i32 0, label %281
    i32 1, label %281
  ]

281:                                              ; preds = %279, %279
  ret void

282:                                              ; preds = %279
  unreachable
}

declare i32 @fflush(ptr noundef) #1

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

declare void @qh_scalelast(ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef) #1

declare void @qh_detroundoff() #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_newvertex(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_initialvertices(i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_initialhull(ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_resetlists(i32 noundef, i32 noundef) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 424}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 2424}
!14 = !{!6, !7, i64 2620}
!15 = !{!6, !7, i64 2968}
!16 = !{!6, !7, i64 2952}
!17 = !{!6, !7, i64 2956}
!18 = !{!6, !7, i64 2960}
!19 = !{!6, !7, i64 2964}
!20 = !{!6, !7, i64 2588}
!21 = !{!6, !7, i64 2592}
!22 = !{!6, !7, i64 2584}
!23 = !{!6, !7, i64 2788}
!24 = !{!6, !7, i64 2784}
!25 = !{!6, !7, i64 2672}
!26 = !{!6, !7, i64 100}
!27 = !{!6, !11, i64 104}
!28 = !{!6, !7, i64 116}
!29 = !{!6, !11, i64 120}
!30 = !{!6, !11, i64 648}
!31 = !{!6, !7, i64 640}
!32 = !{!6, !7, i64 632}
!33 = !{!11, !11, i64 0}
!34 = !{!6, !7, i64 496}
!35 = !{!6, !10, i64 1864}
!36 = !{!6, !10, i64 1800}
!37 = !{!6, !10, i64 1792}
!38 = !{!6, !7, i64 80}
!39 = !{!6, !11, i64 1728}
!40 = !{!10, !10, i64 0}
!41 = !{!6, !11, i64 1736}
!42 = !{!7, !7, i64 0}
!43 = !{!6, !7, i64 88}
!44 = !{!6, !7, i64 112}
!45 = !{!6, !7, i64 512}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}
!48 = !{!6, !7, i64 572}
!49 = !{!6, !10, i64 1760}
!50 = !{!6, !7, i64 136}
!51 = !{!6, !11, i64 2464}
!52 = !{!6, !11, i64 2480}
!53 = !{!6, !11, i64 2456}
!54 = !{!6, !7, i64 2496}
!55 = !{!6, !7, i64 2572}
!56 = !{!6, !7, i64 2568}
!57 = !{!6, !11, i64 2552}
!58 = !{!6, !11, i64 2560}
!59 = !{!6, !11, i64 2544}
!60 = !{!6, !7, i64 288}
!61 = !{!6, !7, i64 536}
!62 = !{!6, !7, i64 544}
!63 = !{!6, !7, i64 560}
!64 = !{!6, !10, i64 552}
!65 = !{!6, !7, i64 2500}
!66 = !{!6, !7, i64 2512}
!67 = !{!6, !7, i64 2528}
!68 = !{!6, !7, i64 540}
!69 = !{!6, !11, i64 2472}
!70 = !{!6, !7, i64 252}
!71 = !{!6, !10, i64 64}
!72 = !{!6, !10, i64 1776}
!73 = !{!6, !10, i64 192}
!74 = !{!6, !10, i64 1768}
!75 = !{!6, !7, i64 236}
!76 = !{!6, !7, i64 188}
!77 = !{!6, !7, i64 180}
!78 = !{!8, !8, i64 0}


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.151 = external hidden unnamed_addr constant [30 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [69 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [155 x i8], align 1
@.str.155 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.156 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.157 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.158 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.159 = external hidden unnamed_addr constant [59 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_point(i32 noundef) local_unnamed_addr #2

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

declare void @qh_errexit(i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_newfacet() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_findgood(ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_isvertex(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_furthestnext() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @qh_initbuild() local_unnamed_addr #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %10, label %7

7:                                                ; preds = %0
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %8, i32 noundef 9350, ptr noundef nonnull @.str.151, ptr noundef nonnull @qh_version, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 936), ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 676)) #5
  %9 = tail call i32 @fflush(ptr noundef null)
  br label %10

10:                                               ; preds = %7, %0
  store i32 -1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2620), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !15
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2592), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2584), align 8, !tbaa !17
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !18
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !19
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2672), align 8, !tbaa !20
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(20) getelementptr inbounds (i8, ptr @qh_qh, i64 2952), i8 0, i64 20, i1 false)
  %11 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4, !tbaa !21
  %12 = icmp sgt i32 %11, 0
  br i1 %12, label %13, label %15

13:                                               ; preds = %10
  %14 = add nsw i32 %11, -1
  br label %.sink.split

15:                                               ; preds = %10
  %16 = icmp slt i32 %11, 0
  br i1 %16, label %17, label %20

17:                                               ; preds = %15
  %18 = xor i32 %11, -1
  br label %.sink.split

.sink.split:                                      ; preds = %13, %17
  %.sink54 = phi i32 [ %18, %17 ], [ %14, %13 ]
  %19 = tail call ptr @qh_point(i32 noundef %.sink54)
  store ptr %19, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !22
  br label %20

20:                                               ; preds = %.sink.split, %15
  %21 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !23
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = add nsw i32 %21, -1
  br label %.sink.split55

25:                                               ; preds = %20
  %26 = icmp slt i32 %21, 0
  br i1 %26, label %27, label %30

27:                                               ; preds = %25
  %28 = xor i32 %21, -1
  br label %.sink.split55

.sink.split55:                                    ; preds = %23, %27
  %.sink56 = phi i32 [ %28, %27 ], [ %24, %23 ]
  %29 = tail call ptr @qh_point(i32 noundef %.sink56)
  store ptr %29, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  br label %30

30:                                               ; preds = %.sink.split55, %25
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4, !tbaa !21
  %.not29 = icmp eq i32 %31, 0
  br i1 %.not29, label %41, label %32

32:                                               ; preds = %30
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !22
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %35 = icmp ult ptr %33, %34
  br i1 %35, label %52, label %36

36:                                               ; preds = %32
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %38 = add nsw i32 %37, -1
  %39 = tail call ptr @qh_point(i32 noundef %38)
  %40 = icmp ugt ptr %33, %39
  br i1 %40, label %52, label %41

41:                                               ; preds = %36, %30
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !23
  %.not30 = icmp eq i32 %42, 0
  br i1 %.not30, label %56, label %43

43:                                               ; preds = %41
  %44 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %46 = icmp ult ptr %44, %45
  br i1 %46, label %52, label %47

47:                                               ; preds = %43
  %48 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %49 = add nsw i32 %48, -1
  %50 = tail call ptr @qh_point(i32 noundef %49)
  %51 = icmp ugt ptr %44, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %47, %43, %36, %32
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %55 = add nsw i32 %54, -1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %53, i32 noundef 6150, ptr noundef nonnull @.str.152, i32 noundef %55) #5
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #5
  br label %56

56:                                               ; preds = %52, %47, %41
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !27
  %60 = tail call ptr @qh_maxmin(ptr noundef %57, i32 noundef %58, i32 noundef %59) #5
  store ptr %60, ptr %1, align 8, !tbaa !28
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !29
  %.not31 = icmp eq i32 %61, 0
  br i1 %.not31, label %69, label %62

62:                                               ; preds = %56
  %63 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !27
  %66 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1864), align 8, !tbaa !30
  %67 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1800), align 8, !tbaa !31
  %68 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !32
  tail call void @qh_scalelast(ptr noundef %63, i32 noundef %64, i32 noundef %65, double noundef %66, double noundef %67, double noundef %68) #5
  br label %69

69:                                               ; preds = %62, %56
  tail call void @qh_detroundoff() #5
  %70 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8, !tbaa !33
  %.not32 = icmp eq i32 %70, 0
  br i1 %.not32, label %.loopexit, label %71

71:                                               ; preds = %69
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1728), align 8, !tbaa !34
  %73 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !27
  %74 = add nsw i32 %73, -1
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %72, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !35
  %78 = fcmp ogt double %77, 0x7FDFFFFFFFFFFFFF
  br i1 %78, label %79, label %.loopexit

79:                                               ; preds = %71
  %80 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1736), align 8, !tbaa !36
  %81 = getelementptr inbounds double, ptr %80, i64 %75
  %82 = load double, ptr %81, align 8, !tbaa !35
  %83 = fcmp olt double %82, 0xFFDFFFFFFFFFFFFF
  br i1 %83, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %79
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 88), align 8
  %.fr50 = freeze i32 %84
  %85 = icmp sgt i32 %.fr50, -1
  %86 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8
  %.fr = freeze i32 %86
  %87 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 512), align 8
  %.fr49 = freeze i32 %87
  %88 = or i32 %.fr49, %.fr
  %89 = icmp ne i32 %88, 0
  %90 = or i1 %89, %85
  br i1 %90, label %.thread, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %91 = load <16 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 352), align 8
  %.fr86 = freeze <16 x i32> %91
  %92 = icmp eq <16 x i32> %.fr86, <i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7>
  %93 = load <8 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 320), align 8
  %.fr87 = freeze <8 x i32> %93
  %94 = icmp eq <8 x i32> %.fr87, <i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7>
  %95 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 304), align 8
  %.fr88 = freeze <4 x i32> %95
  %96 = icmp eq <4 x i32> %.fr88, <i32 7, i32 7, i32 7, i32 7>
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 300), align 4
  %.not51.28 = icmp eq i32 %97, 7
  %98 = bitcast <16 x i1> %92 to i16
  %99 = icmp ne i16 %98, 0
  %100 = bitcast <8 x i1> %94 to i8
  %101 = icmp ne i8 %100, 0
  %op.rdx = or i1 %99, %101
  %102 = bitcast <4 x i1> %96 to i4
  %103 = icmp ne i4 %102, 0
  %op.rdx84 = or i1 %op.rdx, %103
  %op.rdx85 = select i1 %op.rdx84, i1 true, i1 %.not51.28
  br i1 %op.rdx85, label %.loopexit, label %.thread, !llvm.loop !37

.thread:                                          ; preds = %.preheader.split.preheader, %.preheader
  %104 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 572), align 4, !tbaa !39
  %.not37 = icmp eq i32 %104, 0
  %105 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1760), align 8, !tbaa !40
  %106 = sext i32 %73 to i64
  br i1 %.not37, label %111, label %107

107:                                              ; preds = %.thread
  %108 = fmul double %105, 2.000000e+00
  %109 = getelementptr double, ptr %80, i64 %106
  %110 = getelementptr i8, ptr %109, i64 -8
  store double %108, ptr %110, align 8, !tbaa !35
  br label %.loopexit.sink.split

111:                                              ; preds = %.thread
  %112 = fmul double %105, -2.000000e+00
  %113 = getelementptr double, ptr %72, i64 %106
  %114 = getelementptr i8, ptr %113, i64 -8
  store double %112, ptr %114, align 8, !tbaa !35
  %.not38 = icmp eq i32 %.fr, 0
  br i1 %.not38, label %.loopexit.sink.split, label %.loopexit

.loopexit.sink.split:                             ; preds = %111, %107
  %.sink = phi ptr [ getelementptr inbounds (i8, ptr @qh_qh, i64 112), %107 ], [ getelementptr inbounds (i8, ptr @qh_qh, i64 512), %111 ]
  store i32 1, ptr %.sink, align 8, !tbaa !41
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.sink.split, %.preheader.split.preheader, %111, %79, %71, %69
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !42
  %116 = icmp sgt i32 %115, 3
  br i1 %116, label %117, label %119

117:                                              ; preds = %.loopexit
  %118 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %118, i32 noundef 4091, ptr noundef nonnull @.str.153) #5
  br label %119

119:                                              ; preds = %117, %.loopexit
  %120 = tail call ptr @qh_newfacet() #5
  store ptr %120, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !43
  store ptr %120, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !44
  store ptr %120, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !45
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2496), align 8, !tbaa !46
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2572), align 4, !tbaa !47
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !48
  %121 = tail call ptr @qh_newvertex(ptr noundef null)
  store ptr %121, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !49
  store ptr %121, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !50
  store ptr %121, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2544), align 8, !tbaa !51
  %122 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !27
  %123 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  %125 = tail call ptr @qh_initialvertices(i32 noundef %122, ptr noundef %60, ptr noundef %123, i32 noundef %124)
  store ptr %125, ptr %2, align 8, !tbaa !28
  tail call void @qh_initialhull(ptr noundef %125)
  %126 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 648), align 8, !tbaa !25
  %127 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !26
  tail call void @qh_partitionall(ptr noundef %125, ptr noundef %126, i32 noundef %127) #5
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 288), align 8, !tbaa !52
  %129 = icmp ne i32 %128, 0
  %130 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8
  %131 = icmp ne i32 %130, 0
  %or.cond7 = select i1 %129, i1 true, i1 %131
  %132 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %133 = icmp ne i32 %132, 0
  %or.cond9 = select i1 %or.cond7, i1 true, i1 %133
  br i1 %or.cond9, label %134, label %146

134:                                              ; preds = %119
  %or.cond11 = select i1 %131, i1 true, i1 %133
  br i1 %or.cond11, label %135, label %144

135:                                              ; preds = %134
  %136 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 544), align 8, !tbaa !53
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !54
  %139 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 552), align 8, !tbaa !55
  %140 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2500), align 4, !tbaa !56
  %141 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8, !tbaa !57
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !58
  %143 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 540), align 4, !tbaa !59
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %136, i32 noundef 8103, ptr noundef nonnull @.str.154, i32 noundef %130, i32 noundef %132, i32 noundef %137, i32 noundef %138, double noundef %139, i32 noundef %140, i32 noundef %141, i32 noundef %142, i32 noundef %143, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 936), ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 676)) #5
  br label %144

144:                                              ; preds = %134, %135
  %145 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %145, i32 noundef 8104, ptr noundef nonnull @.str.155, ptr noundef nonnull @qh_version, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 1192)) #5
  br label %146

146:                                              ; preds = %119, %144
  tail call void @qh_resetlists(i32 noundef 0, i32 noundef 1)
  %147 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !45
  store ptr %147, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !60
  tail call void @qh_furthestnext()
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 252), align 4, !tbaa !61
  %.not39 = icmp eq i32 %148, 0
  br i1 %.not39, label %152, label %149

149:                                              ; preds = %146
  %150 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 64), align 8, !tbaa !62
  store double %150, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1776), align 8, !tbaa !63
  %151 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 192), align 8, !tbaa !64
  store double %151, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1768), align 8, !tbaa !65
  br label %152

152:                                              ; preds = %149, %146
  %153 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4, !tbaa !66
  %.not40 = icmp eq i32 %153, 0
  br i1 %.not40, label %202, label %154

154:                                              ; preds = %152
  %155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !23
  %156 = icmp sgt i32 %155, 0
  %157 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %158 = icmp ne i32 %157, 0
  %or.cond13 = select i1 %156, i1 %158, i1 false
  br i1 %or.cond13, label %159, label %161

159:                                              ; preds = %154
  %160 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %160, i32 noundef 6151, ptr noundef nonnull @.str.156) #5
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #5
  br label %161

161:                                              ; preds = %159, %154
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !67
  %163 = icmp ne i32 %162, 0
  %164 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 100), align 4
  %165 = icmp ne i32 %164, 0
  %or.cond15 = select i1 %163, i1 true, i1 %165
  br i1 %or.cond15, label %175, label %166

166:                                              ; preds = %161
  %167 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4, !tbaa !68
  %168 = icmp eq i32 %167, 0
  %169 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 252), align 4
  %170 = icmp eq i32 %169, 0
  %or.cond17.not43 = select i1 %168, i1 %170, i1 false
  %171 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8
  %172 = icmp ne ptr %171, null
  %or.cond19 = select i1 %or.cond17.not43, i1 %172, i1 false
  br i1 %or.cond19, label %175, label %173

173:                                              ; preds = %166
  %174 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %174, i32 noundef 6152, ptr noundef nonnull @.str.157) #5
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #5
  br label %175

175:                                              ; preds = %166, %173, %161
  %176 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 116), align 4, !tbaa !23
  %177 = icmp slt i32 %176, 1
  %178 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %179 = icmp ne i32 %178, 0
  %or.cond21 = select i1 %177, i1 true, i1 %179
  br i1 %or.cond21, label %199, label %180

180:                                              ; preds = %175
  %181 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  %182 = tail call ptr @qh_isvertex(ptr noundef %181, ptr noundef %125)
  %.not44 = icmp eq ptr %182, null
  br i1 %.not44, label %183, label %199

183:                                              ; preds = %180
  %184 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  %185 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !45
  %186 = call ptr @qh_findbestnew(ptr noundef %184, ptr noundef %185, ptr noundef nonnull %4, i32 noundef 0, ptr noundef nonnull %5, ptr noundef nonnull %3) #5
  %187 = load i32, ptr %3, align 4, !tbaa !41
  %188 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !69
  %189 = add nsw i32 %188, %187
  store i32 %189, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 472), align 8, !tbaa !69
  %190 = load i32, ptr %5, align 4, !tbaa !41
  %.not45 = icmp eq i32 %190, 0
  br i1 %.not45, label %191, label %195

191:                                              ; preds = %183
  %192 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %193 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  %194 = call i32 @qh_pointid(ptr noundef %193) #5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %192, i32 noundef 6153, ptr noundef nonnull @.str.158, i32 noundef %194) #5
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #5
  br label %195

195:                                              ; preds = %191, %183
  %196 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !24
  %197 = call i32 @qh_addpoint(ptr noundef %196, ptr noundef %186, i32 noundef 0) #5
  %.not46 = icmp eq i32 %197, 0
  br i1 %.not46, label %198, label %199

198:                                              ; preds = %195
  call void @qh_settempfree(ptr noundef nonnull %2) #5
  call void @qh_settempfree(ptr noundef nonnull %1) #5
  br label %207

199:                                              ; preds = %195, %180, %175
  %200 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !45
  %201 = call i32 @qh_findgood(ptr noundef %200, i32 noundef 0)
  br label %202

202:                                              ; preds = %199, %152
  call void @qh_settempfree(ptr noundef nonnull %2) #5
  call void @qh_settempfree(ptr noundef nonnull %1) #5
  %203 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !42
  %204 = icmp sgt i32 %203, 0
  br i1 %204, label %205, label %207

205:                                              ; preds = %202
  %206 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %206, i32 noundef 1030, ptr noundef nonnull @.str.159) #5
  br label %207

207:                                              ; preds = %202, %205, %198
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret void
}

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #3

declare ptr @qh_maxmin(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare void @qh_scalelast(ptr noundef, i32 noundef, i32 noundef, double noundef, double noundef, double noundef) local_unnamed_addr #1

declare void @qh_detroundoff() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_newvertex(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_initialvertices(i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_initialhull(ptr noundef) local_unnamed_addr #2

declare void @qh_partitionall(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @qh_resetlists(i32 noundef, i32 noundef) local_unnamed_addr #2

declare ptr @qh_findbestnew(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare i32 @qh_addpoint(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 424}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !10, i64 64, !10, i64 72, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !11, i64 104, !7, i64 112, !7, i64 116, !11, i64 120, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !10, i64 160, !10, i64 168, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !10, i64 192, !10, i64 200, !7, i64 208, !7, i64 212, !10, i64 216, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !8, i64 300, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !10, i64 448, !10, i64 456, !10, i64 464, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !7, i64 512, !7, i64 516, !7, i64 520, !7, i64 524, !7, i64 528, !7, i64 532, !7, i64 536, !7, i64 540, !7, i64 544, !10, i64 552, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !7, i64 588, !10, i64 592, !7, i64 600, !11, i64 608, !11, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !11, i64 648, !7, i64 656, !11, i64 664, !7, i64 672, !8, i64 676, !7, i64 932, !8, i64 936, !8, i64 1192, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !7, i64 1720, !7, i64 1724, !11, i64 1728, !11, i64 1736, !11, i64 1744, !11, i64 1752, !10, i64 1760, !10, i64 1768, !10, i64 1776, !10, i64 1784, !10, i64 1792, !10, i64 1800, !10, i64 1808, !10, i64 1816, !10, i64 1824, !10, i64 1832, !10, i64 1840, !10, i64 1848, !10, i64 1856, !10, i64 1864, !11, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !10, i64 1904, !7, i64 1912, !8, i64 1916, !8, i64 1928, !8, i64 2128, !8, i64 2168, !8, i64 2368, !11, i64 2408, !11, i64 2416, !11, i64 2424, !11, i64 2432, !7, i64 2440, !7, i64 2444, !7, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !11, i64 2480, !11, i64 2488, !7, i64 2496, !7, i64 2500, !11, i64 2504, !7, i64 2512, !11, i64 2520, !7, i64 2528, !11, i64 2536, !11, i64 2544, !11, i64 2552, !11, i64 2560, !7, i64 2568, !7, i64 2572, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !7, i64 2592, !7, i64 2596, !12, i64 2600, !7, i64 2608, !7, i64 2612, !7, i64 2616, !7, i64 2620, !7, i64 2624, !11, i64 2632, !11, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !10, i64 2664, !7, i64 2672, !10, i64 2680, !10, i64 2688, !10, i64 2696, !7, i64 2704, !7, i64 2708, !7, i64 2712, !7, i64 2716, !7, i64 2720, !10, i64 2728, !10, i64 2736, !7, i64 2744, !7, i64 2748, !7, i64 2752, !7, i64 2756, !7, i64 2760, !7, i64 2764, !10, i64 2768, !10, i64 2776, !7, i64 2784, !7, i64 2788, !7, i64 2792, !7, i64 2796, !11, i64 2800, !11, i64 2808, !11, i64 2816, !11, i64 2824, !11, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !11, i64 2864, !7, i64 2872, !11, i64 2880, !11, i64 2888, !7, i64 2896, !7, i64 2900, !7, i64 2904, !11, i64 2912, !10, i64 2920, !10, i64 2928, !10, i64 2936, !10, i64 2944, !7, i64 2952, !7, i64 2956, !7, i64 2960, !7, i64 2964, !7, i64 2968, !7, i64 2972, !11, i64 2976, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 2424}
!14 = !{!6, !7, i64 2620}
!15 = !{!6, !7, i64 2588}
!16 = !{!6, !7, i64 2592}
!17 = !{!6, !7, i64 2584}
!18 = !{!6, !7, i64 2788}
!19 = !{!6, !7, i64 2784}
!20 = !{!6, !7, i64 2672}
!21 = !{!6, !7, i64 100}
!22 = !{!6, !11, i64 104}
!23 = !{!6, !7, i64 116}
!24 = !{!6, !11, i64 120}
!25 = !{!6, !11, i64 648}
!26 = !{!6, !7, i64 640}
!27 = !{!6, !7, i64 632}
!28 = !{!11, !11, i64 0}
!29 = !{!6, !7, i64 496}
!30 = !{!6, !10, i64 1864}
!31 = !{!6, !10, i64 1800}
!32 = !{!6, !10, i64 1792}
!33 = !{!6, !7, i64 80}
!34 = !{!6, !11, i64 1728}
!35 = !{!10, !10, i64 0}
!36 = !{!6, !11, i64 1736}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!6, !7, i64 572}
!40 = !{!6, !10, i64 1760}
!41 = !{!7, !7, i64 0}
!42 = !{!6, !7, i64 136}
!43 = !{!6, !11, i64 2464}
!44 = !{!6, !11, i64 2480}
!45 = !{!6, !11, i64 2456}
!46 = !{!6, !7, i64 2496}
!47 = !{!6, !7, i64 2572}
!48 = !{!6, !7, i64 2568}
!49 = !{!6, !11, i64 2552}
!50 = !{!6, !11, i64 2560}
!51 = !{!6, !11, i64 2544}
!52 = !{!6, !7, i64 288}
!53 = !{!6, !7, i64 544}
!54 = !{!6, !7, i64 560}
!55 = !{!6, !10, i64 552}
!56 = !{!6, !7, i64 2500}
!57 = !{!6, !7, i64 2512}
!58 = !{!6, !7, i64 2528}
!59 = !{!6, !7, i64 540}
!60 = !{!6, !11, i64 2472}
!61 = !{!6, !7, i64 252}
!62 = !{!6, !10, i64 64}
!63 = !{!6, !10, i64 1776}
!64 = !{!6, !10, i64 192}
!65 = !{!6, !10, i64 1768}
!66 = !{!6, !7, i64 236}
!67 = !{!6, !7, i64 112}
!68 = !{!6, !7, i64 180}
!69 = !{!8, !8, i64 0}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass