; LLVM IR from Discngine/fpocket :: src/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, 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 global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.98 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [35 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.104 = 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

; 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
  store i32 -1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 223), align 8, !tbaa !13
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 174), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 175), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 173), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !17
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !18
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 185), align 8, !tbaa !19
  %9 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %11, label %15

11:                                               ; preds = %0
  %12 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %13 = sub nsw i32 %12, 1
  %14 = call ptr @qh_point(i32 noundef %13)
  store ptr %14, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 18), align 8, !tbaa !21
  br label %24

15:                                               ; preds = %0
  %16 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %17 = icmp slt i32 %16, 0
  br i1 %17, label %18, label %23

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

23:                                               ; preds = %18, %15
  br label %24

24:                                               ; preds = %23, %11
  %25 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %27, label %31

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

31:                                               ; preds = %24
  %32 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %33 = icmp slt i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %31
  %35 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %36 = sub nsw i32 0, %35
  %37 = sub nsw i32 %36, 1
  %38 = call ptr @qh_point(i32 noundef %37)
  store ptr %38, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  br label %39

39:                                               ; preds = %34, %31
  br label %40

40:                                               ; preds = %39, %27
  %41 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %53

43:                                               ; preds = %40
  %44 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 18), align 8, !tbaa !21
  %45 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %46 = icmp ult ptr %44, %45
  br i1 %46, label %66, label %47

47:                                               ; preds = %43
  %48 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 18), align 8, !tbaa !21
  %49 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %50 = sub nsw i32 %49, 1
  %51 = call ptr @qh_point(i32 noundef %50)
  %52 = icmp ugt ptr %48, %51
  br i1 %52, label %66, label %53

53:                                               ; preds = %47, %40
  %54 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %70

56:                                               ; preds = %53
  %57 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %58 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %59 = icmp ult ptr %57, %58
  br i1 %59, label %66, label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %62 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %63 = sub nsw i32 %62, 1
  %64 = call ptr @qh_point(i32 noundef %63)
  %65 = icmp ugt ptr %61, %64
  br i1 %65, label %66, label %70

66:                                               ; preds = %60, %56, %47, %43
  %67 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %68 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %69 = sub nsw i32 %68, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %67, i32 noundef 6150, ptr noundef @.str.98, i32 noundef %69)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %70

70:                                               ; preds = %66, %60, %53
  %71 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %72 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %73 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %74 = call ptr @qh_maxmin(ptr noundef %71, i32 noundef %72, i32 noundef %73)
  store ptr %74, ptr %1, align 8, !tbaa !28
  %75 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 77), align 8, !tbaa !29
  %76 = icmp ne i32 %75, 0
  br i1 %76, label %77, label %84

77:                                               ; preds = %70
  %78 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %79 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %80 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %81 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 137), align 8, !tbaa !30
  %82 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 130), align 8, !tbaa !31
  %83 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 132), align 8, !tbaa !32
  call void @qh_scalelast(ptr noundef %78, i32 noundef %79, i32 noundef %80, double noundef %81, double noundef %82, double noundef %83)
  br label %84

84:                                               ; preds = %77, %70
  call void @qh_detroundoff()
  %85 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 13), align 8, !tbaa !33
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %87, label %154

87:                                               ; preds = %84
  %88 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 121), align 8, !tbaa !34
  %89 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %90 = sub nsw i32 %89, 1
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds double, ptr %88, i64 %91
  %93 = load double, ptr %92, align 8, !tbaa !35
  %94 = fcmp ogt double %93, 0x7FDFFFFFFFFFFFFF
  br i1 %94, label %95, label %154

95:                                               ; preds = %87
  %96 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 122), align 8, !tbaa !36
  %97 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds double, ptr %96, i64 %99
  %101 = load double, ptr %100, align 8, !tbaa !35
  %102 = fcmp olt double %101, 0xFFDFFFFFFFFFFFFF
  br i1 %102, label %103, label %154

103:                                              ; preds = %95
  store i32 29, ptr %4, align 4, !tbaa !37
  br label %104

104:                                              ; preds = %124, %103
  %105 = load i32, ptr %4, align 4, !tbaa !37
  %106 = add nsw i32 %105, -1
  store i32 %106, ptr %4, align 4, !tbaa !37
  %107 = icmp ne i32 %105, 0
  br i1 %107, label %108, label %125

108:                                              ; preds = %104
  %109 = load i32, ptr %4, align 4, !tbaa !37
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds [29 x i32], ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 58), i64 0, i64 %110
  %112 = load i32, ptr %111, align 4, !tbaa !37
  %113 = icmp eq i32 %112, 7
  br i1 %113, label %114, label %124

114:                                              ; preds = %108
  %115 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 15), align 8, !tbaa !38
  %116 = icmp slt i32 %115, 0
  br i1 %116, label %117, label %124

117:                                              ; preds = %114
  %118 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 19), align 8, !tbaa !39
  %119 = icmp ne i32 %118, 0
  br i1 %119, label %124, label %120

120:                                              ; preds = %117
  %121 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 81), align 8, !tbaa !40
  %122 = icmp ne i32 %121, 0
  br i1 %122, label %124, label %123

123:                                              ; preds = %120
  br label %125

124:                                              ; preds = %120, %117, %114, %108
  br label %104, !llvm.loop !41

125:                                              ; preds = %123, %104
  %126 = load i32, ptr %4, align 4, !tbaa !37
  %127 = icmp slt i32 %126, 0
  br i1 %127, label %128, label %153

128:                                              ; preds = %125
  %129 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 93), align 4, !tbaa !43
  %130 = icmp ne i32 %129, 0
  br i1 %130, label %131, label %139

131:                                              ; preds = %128
  %132 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !44
  %133 = fmul double %132, 2.000000e+00
  %134 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 122), align 8, !tbaa !36
  %135 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %136 = sub nsw i32 %135, 1
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds double, ptr %134, i64 %137
  store double %133, ptr %138, align 8, !tbaa !35
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 19), align 8, !tbaa !39
  br label %152

139:                                              ; preds = %128
  %140 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 125), align 8, !tbaa !44
  %141 = fneg double %140
  %142 = fmul double %141, 2.000000e+00
  %143 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 121), align 8, !tbaa !34
  %144 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %145 = sub nsw i32 %144, 1
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds double, ptr %143, i64 %146
  store double %142, ptr %147, align 8, !tbaa !35
  %148 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 19), align 8, !tbaa !39
  %149 = icmp ne i32 %148, 0
  br i1 %149, label %151, label %150

150:                                              ; preds = %139
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 81), align 8, !tbaa !40
  br label %151

151:                                              ; preds = %150, %139
  br label %152

152:                                              ; preds = %151, %131
  br label %153

153:                                              ; preds = %152, %125
  br label %154

154:                                              ; preds = %153, %95, %87, %84
  %155 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !27
  %156 = load ptr, ptr %1, align 8, !tbaa !28
  %157 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %158 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  %159 = call ptr @qh_initialvertices(i32 noundef %155, ptr noundef %156, ptr noundef %157, i32 noundef %158)
  store ptr %159, ptr %2, align 8, !tbaa !28
  %160 = load ptr, ptr %2, align 8, !tbaa !28
  call void @qh_initialhull(ptr noundef %160)
  %161 = load ptr, ptr %2, align 8, !tbaa !28
  %162 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !24
  %163 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 106), align 8, !tbaa !25
  call void @qh_partitionall(ptr noundef %161, ptr noundef %162, i32 noundef %163)
  %164 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 55), align 4, !tbaa !45
  %165 = icmp ne i32 %164, 0
  br i1 %165, label %172, label %166

166:                                              ; preds = %154
  %167 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !46
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %172, label %169

169:                                              ; preds = %166
  %170 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !47
  %171 = icmp ne i32 %170, 0
  br i1 %171, label %172, label %190

172:                                              ; preds = %169, %166, %154
  %173 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !46
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %178, label %175

175:                                              ; preds = %172
  %176 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !47
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %188

178:                                              ; preds = %175, %172
  %179 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %180 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !47
  %181 = icmp ne i32 %180, 0
  br i1 %181, label %182, label %184

182:                                              ; preds = %178
  %183 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !47
  br label %186

184:                                              ; preds = %178
  %185 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 86), align 4, !tbaa !46
  br label %186

186:                                              ; preds = %184, %182
  %187 = phi i32 [ %183, %182 ], [ %185, %184 ]
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %179, i32 noundef 8103, ptr noundef @.str.99, i32 noundef %187, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 113), ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 111))
  br label %188

188:                                              ; preds = %186, %175
  %189 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %189, i32 noundef 8104, ptr noundef @.str.100, ptr noundef @qh_version, ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 114))
  br label %190

190:                                              ; preds = %188, %169
  call void @qh_resetlists(i32 noundef 0, i32 noundef 1)
  %191 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !48
  store ptr %191, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !49
  call void @qh_furthestnext()
  %192 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 46), align 8, !tbaa !50
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %197

194:                                              ; preds = %190
  %195 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 11), align 8, !tbaa !51
  store double %195, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 127), align 8, !tbaa !52
  %196 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 34), align 8, !tbaa !53
  store double %196, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 126), align 8, !tbaa !54
  br label %197

197:                                              ; preds = %194, %190
  %198 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 42), align 8, !tbaa !55
  %199 = icmp ne i32 %198, 0
  br i1 %199, label %200, label %259

200:                                              ; preds = %197
  %201 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %200
  %204 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 33), align 8, !tbaa !56
  %205 = icmp ne i32 %204, 0
  br i1 %205, label %206, label %208

206:                                              ; preds = %203
  %207 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %207, i32 noundef 6151, ptr noundef @.str.101)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %208

208:                                              ; preds = %206, %203, %200
  %209 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 19), align 8, !tbaa !39
  %210 = icmp ne i32 %209, 0
  br i1 %210, label %225, label %211

211:                                              ; preds = %208
  %212 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 17), align 8, !tbaa !20
  %213 = icmp ne i32 %212, 0
  br i1 %213, label %225, label %214

214:                                              ; preds = %211
  %215 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !57
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %223, label %217

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

220:                                              ; preds = %217
  %221 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %222 = icmp ne ptr %221, null
  br i1 %222, label %225, label %223

223:                                              ; preds = %220, %217, %214
  %224 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %224, i32 noundef 6152, ptr noundef @.str.102)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %225

225:                                              ; preds = %223, %220, %211, %208
  %226 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 20), align 4, !tbaa !22
  %227 = icmp sgt i32 %226, 0
  br i1 %227, label %228, label %256

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

231:                                              ; preds = %228
  %232 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %233 = load ptr, ptr %2, align 8, !tbaa !28
  %234 = call ptr @qh_isvertex(ptr noundef %232, ptr noundef %233)
  %235 = icmp ne ptr %234, null
  br i1 %235, label %256, label %236

236:                                              ; preds = %231
  %237 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %238 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !48
  %239 = call ptr @qh_findbestnew(ptr noundef %237, ptr noundef %238, ptr noundef %6, i32 noundef 0, ptr noundef %7, ptr noundef %5)
  store ptr %239, ptr %3, align 8, !tbaa !28
  %240 = load i32, ptr %5, align 4, !tbaa !37
  %241 = load i32, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 54), align 8, !tbaa !58
  %242 = add nsw i32 %241, %240
  store i32 %242, ptr getelementptr inbounds ([227 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 54), align 8, !tbaa !58
  %243 = load i32, ptr %7, align 4, !tbaa !37
  %244 = icmp ne i32 %243, 0
  br i1 %244, label %249, label %245

245:                                              ; preds = %236
  %246 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %248 = call i32 @qh_pointid(ptr noundef %247)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %246, i32 noundef 6153, ptr noundef @.str.103, i32 noundef %248)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %249

249:                                              ; preds = %245, %236
  %250 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 21), align 8, !tbaa !23
  %251 = load ptr, ptr %3, align 8, !tbaa !28
  %252 = call i32 @qh_addpoint(ptr noundef %250, ptr noundef %251, i32 noundef 0)
  %253 = icmp ne i32 %252, 0
  br i1 %253, label %255, label %254

254:                                              ; preds = %249
  call void @qh_settempfree(ptr noundef %2)
  call void @qh_settempfree(ptr noundef %1)
  store i32 1, ptr %8, align 4
  br label %265

255:                                              ; preds = %249
  br label %256

256:                                              ; preds = %255, %231, %228, %225
  %257 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !48
  %258 = call i32 @qh_findgood(ptr noundef %257, i32 noundef 0)
  br label %259

259:                                              ; preds = %256, %197
  call void @qh_settempfree(ptr noundef %2)
  call void @qh_settempfree(ptr noundef %1)
  %260 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !47
  %261 = icmp sge i32 %260, 1
  br i1 %261, label %262, label %264

262:                                              ; preds = %259
  %263 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %263, i32 noundef 1030, ptr noundef @.str.104)
  br label %264

264:                                              ; preds = %262, %259
  store i32 0, ptr %8, align 4
  br label %265

265:                                              ; preds = %264, %254
  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
  %266 = load i32, ptr %8, align 4
  switch i32 %266, label %268 [
    i32 0, label %267
    i32 1, label %267
  ]

267:                                              ; preds = %265, %265
  ret void

268:                                              ; preds = %265
  unreachable
}

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_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 2588}
!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 = !{!6, !7, i64 2864}
!14 = !{!6, !7, i64 2556}
!15 = !{!6, !7, i64 2560}
!16 = !{!6, !7, i64 2552}
!17 = !{!6, !7, i64 2716}
!18 = !{!6, !7, i64 2712}
!19 = !{!6, !7, i64 2616}
!20 = !{!6, !7, i64 88}
!21 = !{!6, !11, i64 96}
!22 = !{!6, !7, i64 108}
!23 = !{!6, !11, i64 112}
!24 = !{!6, !11, i64 640}
!25 = !{!6, !7, i64 632}
!26 = !{!6, !11, i64 2408}
!27 = !{!6, !7, i64 624}
!28 = !{!11, !11, i64 0}
!29 = !{!6, !7, i64 496}
!30 = !{!6, !10, i64 1848}
!31 = !{!6, !10, i64 1792}
!32 = !{!6, !10, i64 1808}
!33 = !{!6, !7, i64 72}
!34 = !{!6, !11, i64 1720}
!35 = !{!10, !10, i64 0}
!36 = !{!6, !11, i64 1728}
!37 = !{!7, !7, i64 0}
!38 = !{!6, !7, i64 80}
!39 = !{!6, !7, i64 104}
!40 = !{!6, !7, i64 512}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = !{!6, !7, i64 564}
!44 = !{!6, !10, i64 1752}
!45 = !{!6, !7, i64 284}
!46 = !{!6, !7, i64 532}
!47 = !{!6, !7, i64 128}
!48 = !{!6, !11, i64 2440}
!49 = !{!6, !11, i64 2456}
!50 = !{!6, !7, i64 248}
!51 = !{!6, !10, i64 56}
!52 = !{!6, !10, i64 1768}
!53 = !{!6, !10, i64 184}
!54 = !{!6, !10, i64 1760}
!55 = !{!6, !7, i64 232}
!56 = !{!6, !7, i64 176}
!57 = !{!6, !7, i64 168}
!58 = !{!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, 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 global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.98 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.99 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.100 = external hidden unnamed_addr constant [35 x i8], align 1
@qh_version = external constant [0 x i8], align 1
@.str.101 = external hidden unnamed_addr constant [134 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [138 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.104 = 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

; 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) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store i32 -1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !5
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2864), align 8, !tbaa !13
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2556), align 4, !tbaa !14
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2560), align 8, !tbaa !15
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2552), align 8, !tbaa !16
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !17
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !18
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2616), align 8, !tbaa !19
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 88), align 8, !tbaa !20
  %7 = icmp sgt i32 %6, 0
  br i1 %7, label %8, label %10

8:                                                ; preds = %0
  %9 = add nsw i32 %6, -1
  br label %.sink.split

10:                                               ; preds = %0
  %11 = icmp slt i32 %6, 0
  br i1 %11, label %12, label %15

12:                                               ; preds = %10
  %13 = xor i32 %6, -1
  br label %.sink.split

.sink.split:                                      ; preds = %8, %12
  %.sink53 = phi i32 [ %13, %12 ], [ %9, %8 ]
  %14 = tail call ptr @qh_point(i32 noundef %.sink53)
  store ptr %14, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 96), align 8, !tbaa !21
  br label %15

15:                                               ; preds = %.sink.split, %10
  %16 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 108), align 4, !tbaa !22
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %18, label %20

18:                                               ; preds = %15
  %19 = add nsw i32 %16, -1
  br label %.sink.split54

20:                                               ; preds = %15
  %21 = icmp slt i32 %16, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %20
  %23 = xor i32 %16, -1
  br label %.sink.split54

.sink.split54:                                    ; preds = %18, %22
  %.sink55 = phi i32 [ %23, %22 ], [ %19, %18 ]
  %24 = tail call ptr @qh_point(i32 noundef %.sink55)
  store ptr %24, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  br label %25

25:                                               ; preds = %.sink.split54, %20
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 88), align 8, !tbaa !20
  %.not = icmp eq i32 %26, 0
  br i1 %.not, label %36, label %27

27:                                               ; preds = %25
  %28 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 96), align 8, !tbaa !21
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %30 = icmp ult ptr %28, %29
  br i1 %30, label %47, label %31

31:                                               ; preds = %27
  %32 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %33 = add nsw i32 %32, -1
  %34 = tail call ptr @qh_point(i32 noundef %33)
  %35 = icmp ugt ptr %28, %34
  br i1 %35, label %47, label %36

36:                                               ; preds = %31, %25
  %37 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 108), align 4, !tbaa !22
  %.not29 = icmp eq i32 %37, 0
  br i1 %.not29, label %51, label %38

38:                                               ; preds = %36
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %41 = icmp ult ptr %39, %40
  br i1 %41, label %47, label %42

42:                                               ; preds = %38
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %44 = add nsw i32 %43, -1
  %45 = tail call ptr @qh_point(i32 noundef %44)
  %46 = icmp ugt ptr %39, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %42, %38, %31, %27
  %48 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  %49 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %50 = add nsw i32 %49, -1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %48, i32 noundef 6150, ptr noundef nonnull @.str.98, i32 noundef %50) #3
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #3
  br label %51

51:                                               ; preds = %47, %42, %36
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %53 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !27
  %55 = tail call ptr @qh_maxmin(ptr noundef %52, i32 noundef %53, i32 noundef %54) #3
  store ptr %55, ptr %1, align 8, !tbaa !28
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !29
  %.not30 = icmp eq i32 %56, 0
  br i1 %.not30, label %64, label %57

57:                                               ; preds = %51
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %59 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !27
  %61 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1848), align 8, !tbaa !30
  %62 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !31
  %63 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1808), align 8, !tbaa !32
  tail call void @qh_scalelast(ptr noundef %58, i32 noundef %59, i32 noundef %60, double noundef %61, double noundef %62, double noundef %63) #3
  br label %64

64:                                               ; preds = %57, %51
  tail call void @qh_detroundoff() #3
  %65 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 72), align 8, !tbaa !33
  %.not31 = icmp eq i32 %65, 0
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !27
  br i1 %.not31, label %.loopexit, label %66

66:                                               ; preds = %64
  %67 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1720), align 8, !tbaa !34
  %68 = add nsw i32 %.pre, -1
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds double, ptr %67, i64 %69
  %71 = load double, ptr %70, align 8, !tbaa !35
  %72 = fcmp ogt double %71, 0x7FDFFFFFFFFFFFFF
  br i1 %72, label %73, label %.loopexit

73:                                               ; preds = %66
  %74 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1728), align 8, !tbaa !36
  %75 = getelementptr inbounds double, ptr %74, i64 %69
  %76 = load double, ptr %75, align 8, !tbaa !35
  %77 = fcmp olt double %76, 0xFFDFFFFFFFFFFFFF
  br i1 %77, label %.preheader, label %.loopexit

.preheader:                                       ; preds = %73
  %78 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 80), align 8
  %.fr49 = freeze i32 %78
  %79 = icmp sgt i32 %.fr49, -1
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8
  %.fr = freeze i32 %80
  %81 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 512), align 8
  %.fr48 = freeze i32 %81
  %82 = or i32 %.fr48, %.fr
  %83 = icmp ne i32 %82, 0
  %84 = or i1 %83, %79
  br i1 %84, label %.thread, label %.preheader.split.preheader

.preheader.split.preheader:                       ; preds = %.preheader
  %85 = load <16 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 348), align 4
  %.fr85 = freeze <16 x i32> %85
  %86 = icmp eq <16 x i32> %.fr85, <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>
  %87 = load <8 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 316), align 4
  %.fr86 = freeze <8 x i32> %87
  %88 = icmp eq <8 x i32> %.fr86, <i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7>
  %89 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 300), align 4
  %.fr87 = freeze <4 x i32> %89
  %90 = icmp eq <4 x i32> %.fr87, <i32 7, i32 7, i32 7, i32 7>
  %91 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 296), align 8
  %.not50.28 = icmp eq i32 %91, 7
  %92 = bitcast <16 x i1> %86 to i16
  %93 = icmp ne i16 %92, 0
  %94 = bitcast <8 x i1> %88 to i8
  %95 = icmp ne i8 %94, 0
  %op.rdx = or i1 %93, %95
  %96 = bitcast <4 x i1> %90 to i4
  %97 = icmp ne i4 %96, 0
  %op.rdx83 = or i1 %op.rdx, %97
  %op.rdx84 = select i1 %op.rdx83, i1 true, i1 %.not50.28
  br i1 %op.rdx84, label %.loopexit, label %.thread, !llvm.loop !37

.thread:                                          ; preds = %.preheader.split.preheader, %.preheader
  %98 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 564), align 4, !tbaa !39
  %.not36 = icmp eq i32 %98, 0
  %99 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1752), align 8, !tbaa !40
  %100 = sext i32 %.pre to i64
  br i1 %.not36, label %105, label %101

101:                                              ; preds = %.thread
  %102 = fmul double %99, 2.000000e+00
  %103 = getelementptr double, ptr %74, i64 %100
  %104 = getelementptr i8, ptr %103, i64 -8
  store double %102, ptr %104, align 8, !tbaa !35
  br label %.loopexit.sink.split

105:                                              ; preds = %.thread
  %106 = fmul double %99, -2.000000e+00
  %107 = getelementptr double, ptr %67, i64 %100
  %108 = getelementptr i8, ptr %107, i64 -8
  store double %106, ptr %108, align 8, !tbaa !35
  %.not37 = icmp eq i32 %.fr, 0
  br i1 %.not37, label %.loopexit.sink.split, label %.loopexit

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

.loopexit:                                        ; preds = %.loopexit.sink.split, %.preheader.split.preheader, %105, %73, %66, %64
  %109 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  %111 = tail call ptr @qh_initialvertices(i32 noundef %.pre, ptr noundef %55, ptr noundef %109, i32 noundef %110)
  store ptr %111, ptr %2, align 8, !tbaa !28
  tail call void @qh_initialhull(ptr noundef %111)
  %112 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !24
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !25
  tail call void @qh_partitionall(ptr noundef %111, ptr noundef %112, i32 noundef %113) #3
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 284), align 4, !tbaa !42
  %115 = icmp ne i32 %114, 0
  %116 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 532), align 4
  %117 = icmp ne i32 %116, 0
  %or.cond7 = select i1 %115, i1 true, i1 %117
  %118 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8
  %119 = icmp ne i32 %118, 0
  %or.cond9 = select i1 %or.cond7, i1 true, i1 %119
  br i1 %or.cond9, label %120, label %126

120:                                              ; preds = %.loopexit
  %or.cond11 = select i1 %117, i1 true, i1 %119
  br i1 %or.cond11, label %121, label %124

121:                                              ; preds = %120
  %122 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  %123 = select i1 %119, i32 %118, i32 %116
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %122, i32 noundef 8103, ptr noundef nonnull @.str.99, i32 noundef %123, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 928), ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 668)) #3
  br label %124

124:                                              ; preds = %120, %121
  %125 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %125, i32 noundef 8104, ptr noundef nonnull @.str.100, ptr noundef nonnull @qh_version, ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 1184)) #3
  br label %126

126:                                              ; preds = %.loopexit, %124
  tail call void @qh_resetlists(i32 noundef 0, i32 noundef 1)
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !43
  store ptr %127, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !44
  tail call void @qh_furthestnext()
  %128 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 248), align 8, !tbaa !45
  %.not38 = icmp eq i32 %128, 0
  br i1 %.not38, label %132, label %129

129:                                              ; preds = %126
  %130 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 56), align 8, !tbaa !46
  store double %130, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1768), align 8, !tbaa !47
  %131 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 184), align 8, !tbaa !48
  store double %131, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1760), align 8, !tbaa !49
  br label %132

132:                                              ; preds = %129, %126
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 232), align 8, !tbaa !50
  %.not39 = icmp eq i32 %133, 0
  br i1 %.not39, label %182, label %134

134:                                              ; preds = %132
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 108), align 4, !tbaa !22
  %136 = icmp sgt i32 %135, 0
  %137 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 176), align 8
  %138 = icmp ne i32 %137, 0
  %or.cond13 = select i1 %136, i1 %138, i1 false
  br i1 %or.cond13, label %139, label %141

139:                                              ; preds = %134
  %140 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %140, i32 noundef 6151, ptr noundef nonnull @.str.101) #3
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #3
  br label %141

141:                                              ; preds = %139, %134
  %142 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !51
  %143 = icmp ne i32 %142, 0
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 88), align 8
  %145 = icmp ne i32 %144, 0
  %or.cond15 = select i1 %143, i1 true, i1 %145
  br i1 %or.cond15, label %155, label %146

146:                                              ; preds = %141
  %147 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 168), align 8, !tbaa !52
  %148 = icmp eq i32 %147, 0
  %149 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 248), align 8
  %150 = icmp eq i32 %149, 0
  %or.cond17.not42 = select i1 %148, i1 %150, i1 false
  %151 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8
  %152 = icmp ne ptr %151, null
  %or.cond19 = select i1 %or.cond17.not42, i1 %152, i1 false
  br i1 %or.cond19, label %155, label %153

153:                                              ; preds = %146
  %154 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %154, i32 noundef 6152, ptr noundef nonnull @.str.102) #3
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #3
  br label %155

155:                                              ; preds = %146, %153, %141
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 108), align 4, !tbaa !22
  %157 = icmp slt i32 %156, 1
  %158 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 176), align 8
  %159 = icmp ne i32 %158, 0
  %or.cond21 = select i1 %157, i1 true, i1 %159
  br i1 %or.cond21, label %179, label %160

160:                                              ; preds = %155
  %161 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  %162 = tail call ptr @qh_isvertex(ptr noundef %161, ptr noundef %111)
  %.not43 = icmp eq ptr %162, null
  br i1 %.not43, label %163, label %179

163:                                              ; preds = %160
  %164 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  %165 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !43
  %166 = call ptr @qh_findbestnew(ptr noundef %164, ptr noundef %165, ptr noundef nonnull %4, i32 noundef 0, ptr noundef nonnull %5, ptr noundef nonnull %3) #3
  %167 = load i32, ptr %3, align 4, !tbaa !41
  %168 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 432), align 8, !tbaa !53
  %169 = add nsw i32 %168, %167
  store i32 %169, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 432), align 8, !tbaa !53
  %170 = load i32, ptr %5, align 4, !tbaa !41
  %.not44 = icmp eq i32 %170, 0
  br i1 %.not44, label %171, label %175

171:                                              ; preds = %163
  %172 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  %173 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  %174 = call i32 @qh_pointid(ptr noundef %173) #3
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %172, i32 noundef 6153, ptr noundef nonnull @.str.103, i32 noundef %174) #3
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #3
  br label %175

175:                                              ; preds = %171, %163
  %176 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 112), align 8, !tbaa !23
  %177 = call i32 @qh_addpoint(ptr noundef %176, ptr noundef %166, i32 noundef 0) #3
  %.not45 = icmp eq i32 %177, 0
  br i1 %.not45, label %178, label %179

178:                                              ; preds = %175
  call void @qh_settempfree(ptr noundef nonnull %2) #3
  call void @qh_settempfree(ptr noundef nonnull %1) #3
  br label %187

179:                                              ; preds = %175, %160, %155
  %180 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !43
  %181 = call i32 @qh_findgood(ptr noundef %180, i32 noundef 0)
  br label %182

182:                                              ; preds = %179, %132
  call void @qh_settempfree(ptr noundef nonnull %2) #3
  call void @qh_settempfree(ptr noundef nonnull %1) #3
  %183 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !54
  %184 = icmp sgt i32 %183, 0
  br i1 %184, label %185, label %187

185:                                              ; preds = %182
  %186 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !26
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %186, i32 noundef 1030, ptr noundef nonnull @.str.104) #3
  br label %187

187:                                              ; preds = %182, %185, %178
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #3
  ret void
}

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_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

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 = { 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 2588}
!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 = !{!6, !7, i64 2864}
!14 = !{!6, !7, i64 2556}
!15 = !{!6, !7, i64 2560}
!16 = !{!6, !7, i64 2552}
!17 = !{!6, !7, i64 2716}
!18 = !{!6, !7, i64 2712}
!19 = !{!6, !7, i64 2616}
!20 = !{!6, !7, i64 88}
!21 = !{!6, !11, i64 96}
!22 = !{!6, !7, i64 108}
!23 = !{!6, !11, i64 112}
!24 = !{!6, !11, i64 640}
!25 = !{!6, !7, i64 632}
!26 = !{!6, !11, i64 2408}
!27 = !{!6, !7, i64 624}
!28 = !{!11, !11, i64 0}
!29 = !{!6, !7, i64 496}
!30 = !{!6, !10, i64 1848}
!31 = !{!6, !10, i64 1792}
!32 = !{!6, !10, i64 1808}
!33 = !{!6, !7, i64 72}
!34 = !{!6, !11, i64 1720}
!35 = !{!10, !10, i64 0}
!36 = !{!6, !11, i64 1728}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = !{!6, !7, i64 564}
!40 = !{!6, !10, i64 1752}
!41 = !{!7, !7, i64 0}
!42 = !{!6, !7, i64 284}
!43 = !{!6, !11, i64 2440}
!44 = !{!6, !11, i64 2456}
!45 = !{!6, !7, i64 248}
!46 = !{!6, !10, i64 56}
!47 = !{!6, !10, i64 1768}
!48 = !{!6, !10, i64 184}
!49 = !{!6, !10, i64 1760}
!50 = !{!6, !7, i64 232}
!51 = !{!6, !7, i64 104}
!52 = !{!6, !7, i64 168}
!53 = !{!8, !8, i64 0}
!54 = !{!6, !7, i64 128}


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