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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.43 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [102 x i8], align 1

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

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

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

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

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

declare i32 @qh_pointid(ptr noundef) #1

declare i32 @qh_setsize(ptr noundef) #1

declare void @qh_setappend(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_maxsimplex(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) #2 {
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  store i32 %0, ptr %6, align 4, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store ptr null, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  store ptr null, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  store i32 0, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store double -1.000000e+00, ptr %22, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  store double -1.000000e+00, ptr %23, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  store double 0x7FEFFFFFFFFFFFFF, ptr %25, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  store double 0xFFEFFFFFFFFFFFFF, ptr %26, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %30 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !13
  %31 = fcmp ole double %30, 0.000000e+00
  br i1 %31, label %32, label %34

32:                                               ; preds = %5
  %33 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %33, i32 noundef 6421, ptr noundef @.str.43)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %34

34:                                               ; preds = %32, %5
  %35 = load ptr, ptr %10, align 8, !tbaa !9
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = call i32 @qh_setsize(ptr noundef %36)
  store i32 %37, ptr %21, align 4, !tbaa !5
  %38 = load i32, ptr %21, align 4, !tbaa !5
  %39 = icmp sge i32 %38, 2
  br i1 %39, label %40, label %46

40:                                               ; preds = %34
  %41 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !13
  %42 = load i32, ptr %21, align 4, !tbaa !5
  %43 = sub nsw i32 %42, 1
  %44 = sitofp i32 %43 to double
  %45 = call double @pow(double noundef %41, double noundef %44) #4
  store double %45, ptr %22, align 8, !tbaa !11
  br label %172

46:                                               ; preds = %34
  %47 = load ptr, ptr %7, align 8, !tbaa !9
  %48 = call i32 @qh_setsize(ptr noundef %47)
  %49 = icmp sge i32 %48, 2
  br i1 %49, label %50, label %87

50:                                               ; preds = %46
  store ptr null, ptr %11, align 8, !tbaa !9
  %51 = load ptr, ptr %7, align 8, !tbaa !9
  %52 = icmp ne ptr %51, null
  br i1 %52, label %53, label %86

53:                                               ; preds = %50
  %54 = load ptr, ptr %7, align 8, !tbaa !9
  %55 = getelementptr inbounds %struct.setT, ptr %54, i32 0, i32 1
  %56 = getelementptr inbounds [1 x %union.setelemT], ptr %55, i64 0, i64 0
  store ptr %56, ptr %12, align 8, !tbaa !9
  br label %57

57:                                               ; preds = %84, %53
  %58 = load ptr, ptr %12, align 8, !tbaa !9
  %59 = getelementptr inbounds ptr, ptr %58, i32 1
  store ptr %59, ptr %12, align 8, !tbaa !9
  %60 = load ptr, ptr %58, align 8, !tbaa !9
  store ptr %60, ptr %11, align 8, !tbaa !9
  %61 = icmp ne ptr %60, null
  br i1 %61, label %62, label %85

62:                                               ; preds = %57
  %63 = load double, ptr %26, align 8, !tbaa !11
  %64 = load ptr, ptr %11, align 8, !tbaa !9
  %65 = getelementptr inbounds double, ptr %64, i64 0
  %66 = load double, ptr %65, align 8, !tbaa !11
  %67 = fcmp olt double %63, %66
  br i1 %67, label %68, label %73

68:                                               ; preds = %62
  %69 = load ptr, ptr %11, align 8, !tbaa !9
  %70 = getelementptr inbounds double, ptr %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !11
  store double %71, ptr %26, align 8, !tbaa !11
  %72 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %72, ptr %16, align 8, !tbaa !9
  br label %73

73:                                               ; preds = %68, %62
  %74 = load double, ptr %25, align 8, !tbaa !11
  %75 = load ptr, ptr %11, align 8, !tbaa !9
  %76 = getelementptr inbounds double, ptr %75, i64 0
  %77 = load double, ptr %76, align 8, !tbaa !11
  %78 = fcmp ogt double %74, %77
  br i1 %78, label %79, label %84

79:                                               ; preds = %73
  %80 = load ptr, ptr %11, align 8, !tbaa !9
  %81 = getelementptr inbounds double, ptr %80, i64 0
  %82 = load double, ptr %81, align 8, !tbaa !11
  store double %82, ptr %25, align 8, !tbaa !11
  %83 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %83, ptr %15, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %79, %73
  br label %57, !llvm.loop !17

85:                                               ; preds = %57
  br label %86

86:                                               ; preds = %85, %50
  br label %133

87:                                               ; preds = %46
  %88 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %88, ptr %11, align 8, !tbaa !9
  %89 = load ptr, ptr %8, align 8, !tbaa !9
  %90 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %91 = load i32, ptr %9, align 4, !tbaa !5
  %92 = mul nsw i32 %90, %91
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds double, ptr %89, i64 %93
  store ptr %94, ptr %13, align 8, !tbaa !9
  br label %95

95:                                               ; preds = %127, %87
  %96 = load ptr, ptr %11, align 8, !tbaa !9
  %97 = load ptr, ptr %13, align 8, !tbaa !9
  %98 = icmp ult ptr %96, %97
  br i1 %98, label %99, label %132

99:                                               ; preds = %95
  %100 = load ptr, ptr %11, align 8, !tbaa !9
  %101 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !20
  %102 = icmp eq ptr %100, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %99
  br label %127

104:                                              ; preds = %99
  %105 = load double, ptr %26, align 8, !tbaa !11
  %106 = load ptr, ptr %11, align 8, !tbaa !9
  %107 = getelementptr inbounds double, ptr %106, i64 0
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = fcmp olt double %105, %108
  br i1 %109, label %110, label %115

110:                                              ; preds = %104
  %111 = load ptr, ptr %11, align 8, !tbaa !9
  %112 = getelementptr inbounds double, ptr %111, i64 0
  %113 = load double, ptr %112, align 8, !tbaa !11
  store double %113, ptr %26, align 8, !tbaa !11
  %114 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %114, ptr %16, align 8, !tbaa !9
  br label %115

115:                                              ; preds = %110, %104
  %116 = load double, ptr %25, align 8, !tbaa !11
  %117 = load ptr, ptr %11, align 8, !tbaa !9
  %118 = getelementptr inbounds double, ptr %117, i64 0
  %119 = load double, ptr %118, align 8, !tbaa !11
  %120 = fcmp ogt double %116, %119
  br i1 %120, label %121, label %126

121:                                              ; preds = %115
  %122 = load ptr, ptr %11, align 8, !tbaa !9
  %123 = getelementptr inbounds double, ptr %122, i64 0
  %124 = load double, ptr %123, align 8, !tbaa !11
  store double %124, ptr %25, align 8, !tbaa !11
  %125 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %125, ptr %15, align 8, !tbaa !9
  br label %126

126:                                              ; preds = %121, %115
  br label %127

127:                                              ; preds = %126, %103
  %128 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %129 = load ptr, ptr %11, align 8, !tbaa !9
  %130 = sext i32 %128 to i64
  %131 = getelementptr inbounds double, ptr %129, i64 %130
  store ptr %131, ptr %11, align 8, !tbaa !9
  br label %95, !llvm.loop !21

132:                                              ; preds = %95
  br label %133

133:                                              ; preds = %132, %86
  %134 = load double, ptr %26, align 8, !tbaa !11
  %135 = load double, ptr %25, align 8, !tbaa !11
  %136 = fsub double %134, %135
  store double %136, ptr %22, align 8, !tbaa !11
  %137 = load ptr, ptr %10, align 8, !tbaa !9
  %138 = load ptr, ptr %15, align 8, !tbaa !9
  %139 = call i32 @qh_setunique(ptr noundef %137, ptr noundef %138)
  %140 = load ptr, ptr %10, align 8, !tbaa !9
  %141 = load ptr, ptr %140, align 8, !tbaa !9
  %142 = call i32 @qh_setsize(ptr noundef %141)
  %143 = icmp slt i32 %142, 2
  br i1 %143, label %144, label %148

144:                                              ; preds = %133
  %145 = load ptr, ptr %10, align 8, !tbaa !9
  %146 = load ptr, ptr %16, align 8, !tbaa !9
  %147 = call i32 @qh_setunique(ptr noundef %145, ptr noundef %146)
  br label %148

148:                                              ; preds = %144, %133
  %149 = load ptr, ptr %10, align 8, !tbaa !9
  %150 = load ptr, ptr %149, align 8, !tbaa !9
  %151 = call i32 @qh_setsize(ptr noundef %150)
  store i32 %151, ptr %21, align 4, !tbaa !5
  %152 = load i32, ptr %21, align 4, !tbaa !5
  %153 = icmp slt i32 %152, 2
  br i1 %153, label %154, label %171

154:                                              ; preds = %148
  call void @qh_joggle_restart(ptr noundef @.str.44)
  %155 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 212), align 8, !tbaa !22
  %156 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %157 = add nsw i32 %156, 1
  %158 = icmp sgt i32 %155, %157
  br i1 %158, label %159, label %166

159:                                              ; preds = %154
  %160 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %161 = load ptr, ptr %7, align 8, !tbaa !9
  %162 = call i32 @qh_setsize(ptr noundef %161)
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = add nsw i32 %162, %163
  %165 = load double, ptr %25, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %160, i32 noundef 6012, ptr noundef @.str.45, i32 noundef %164, double noundef %165)
  call void @qh_errexit(i32 noundef 3, ptr noundef null, ptr noundef null)
  br label %170

166:                                              ; preds = %154
  %167 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %168 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %169 = load double, ptr %25, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %167, i32 noundef 6013, ptr noundef @.str.46, i32 noundef %168, double noundef %169)
  call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %170

170:                                              ; preds = %166, %159
  br label %171

171:                                              ; preds = %170, %148
  br label %172

172:                                              ; preds = %171, %40
  %173 = load i32, ptr %21, align 4, !tbaa !5
  store i32 %173, ptr %20, align 4, !tbaa !5
  br label %174

174:                                              ; preds = %403, %172
  %175 = load i32, ptr %20, align 4, !tbaa !5
  %176 = load i32, ptr %6, align 4, !tbaa !5
  %177 = add nsw i32 %176, 1
  %178 = icmp slt i32 %175, %177
  br i1 %178, label %179, label %406

179:                                              ; preds = %174
  %180 = load double, ptr %22, align 8, !tbaa !11
  store double %180, ptr %23, align 8, !tbaa !11
  store ptr null, ptr %14, align 8, !tbaa !9
  store double -1.000000e+00, ptr %22, align 8, !tbaa !11
  store ptr null, ptr %11, align 8, !tbaa !9
  %181 = load ptr, ptr %7, align 8, !tbaa !9
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %226

183:                                              ; preds = %179
  %184 = load ptr, ptr %7, align 8, !tbaa !9
  %185 = getelementptr inbounds %struct.setT, ptr %184, i32 0, i32 1
  %186 = getelementptr inbounds [1 x %union.setelemT], ptr %185, i64 0, i64 0
  store ptr %186, ptr %12, align 8, !tbaa !9
  br label %187

187:                                              ; preds = %224, %183
  %188 = load ptr, ptr %12, align 8, !tbaa !9
  %189 = getelementptr inbounds ptr, ptr %188, i32 1
  store ptr %189, ptr %12, align 8, !tbaa !9
  %190 = load ptr, ptr %188, align 8, !tbaa !9
  store ptr %190, ptr %11, align 8, !tbaa !9
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %225

192:                                              ; preds = %187
  %193 = load ptr, ptr %10, align 8, !tbaa !9
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = load ptr, ptr %11, align 8, !tbaa !9
  %196 = call i32 @qh_setin(ptr noundef %194, ptr noundef %195)
  %197 = icmp ne i32 %196, 0
  br i1 %197, label %224, label %198

198:                                              ; preds = %192
  %199 = load ptr, ptr %11, align 8, !tbaa !9
  %200 = load ptr, ptr %14, align 8, !tbaa !9
  %201 = icmp ne ptr %199, %200
  br i1 %201, label %202, label %224

202:                                              ; preds = %198
  %203 = load ptr, ptr %11, align 8, !tbaa !9
  %204 = load ptr, ptr %10, align 8, !tbaa !9
  %205 = load ptr, ptr %204, align 8, !tbaa !9
  %206 = load i32, ptr %20, align 4, !tbaa !5
  %207 = call double @qh_detsimplex(ptr noundef %203, ptr noundef %205, i32 noundef %206, ptr noundef %17)
  store double %207, ptr %24, align 8, !tbaa !11
  %208 = load double, ptr %24, align 8, !tbaa !11
  %209 = fcmp olt double %208, 0.000000e+00
  br i1 %209, label %210, label %213

210:                                              ; preds = %202
  %211 = load double, ptr %24, align 8, !tbaa !11
  %212 = fneg double %211
  br label %215

213:                                              ; preds = %202
  %214 = load double, ptr %24, align 8, !tbaa !11
  br label %215

215:                                              ; preds = %213, %210
  %216 = phi double [ %212, %210 ], [ %214, %213 ]
  store double %216, ptr %24, align 8, !tbaa !11
  %217 = load double, ptr %22, align 8, !tbaa !11
  %218 = fcmp ogt double %216, %217
  br i1 %218, label %219, label %223

219:                                              ; preds = %215
  %220 = load double, ptr %24, align 8, !tbaa !11
  store double %220, ptr %22, align 8, !tbaa !11
  %221 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %221, ptr %14, align 8, !tbaa !9
  %222 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %222, ptr %18, align 4, !tbaa !5
  br label %223

223:                                              ; preds = %219, %215
  br label %224

224:                                              ; preds = %223, %198, %192
  br label %187, !llvm.loop !23

225:                                              ; preds = %187
  br label %226

226:                                              ; preds = %225, %179
  store i32 0, ptr %19, align 4, !tbaa !5
  store double 1.000000e+00, ptr %28, align 8, !tbaa !11
  %227 = load double, ptr %23, align 8, !tbaa !11
  %228 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !13
  %229 = fmul double %227, %228
  store double %229, ptr %29, align 8, !tbaa !11
  %230 = load double, ptr %29, align 8, !tbaa !11
  %231 = fmul double 1.000000e-02, %230
  store double %231, ptr %27, align 8, !tbaa !11
  %232 = load double, ptr %22, align 8, !tbaa !11
  %233 = fcmp ogt double %232, 0.000000e+00
  br i1 %233, label %234, label %242

234:                                              ; preds = %226
  %235 = load double, ptr %22, align 8, !tbaa !11
  %236 = load double, ptr %29, align 8, !tbaa !11
  %237 = fdiv double %235, %236
  store double %237, ptr %28, align 8, !tbaa !11
  %238 = load double, ptr %28, align 8, !tbaa !11
  %239 = fcmp olt double %238, 1.000000e-03
  br i1 %239, label %240, label %241

240:                                              ; preds = %234
  store i32 1, ptr %19, align 4, !tbaa !5
  br label %241

241:                                              ; preds = %240, %234
  br label %242

242:                                              ; preds = %241, %226
  %243 = load ptr, ptr %14, align 8, !tbaa !9
  %244 = icmp ne ptr %243, null
  br i1 %244, label %245, label %251

245:                                              ; preds = %242
  %246 = load i32, ptr %18, align 4, !tbaa !5
  %247 = icmp ne i32 %246, 0
  br i1 %247, label %251, label %248

248:                                              ; preds = %245
  %249 = load i32, ptr %19, align 4, !tbaa !5
  %250 = icmp ne i32 %249, 0
  br i1 %250, label %251, label %381

251:                                              ; preds = %248, %245, %242
  %252 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 211), align 8, !tbaa !22
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 211), align 8, !tbaa !22
  %254 = load ptr, ptr %14, align 8, !tbaa !9
  %255 = icmp ne ptr %254, null
  br i1 %255, label %266, label %256

256:                                              ; preds = %251
  %257 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !24
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %265

259:                                              ; preds = %256
  %260 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %261 = load i32, ptr %20, align 4, !tbaa !5
  %262 = add nsw i32 %261, 1
  %263 = load double, ptr %27, align 8, !tbaa !11
  %264 = load double, ptr %29, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %260, i32 noundef 7, ptr noundef @.str.47, i32 noundef %262, double noundef %263, double noundef %264)
  br label %265

265:                                              ; preds = %259, %256
  br label %313

266:                                              ; preds = %251
  %267 = load i32, ptr @qh_qh, align 8, !tbaa !25
  %268 = icmp ne i32 %267, 0
  br i1 %268, label %269, label %282

269:                                              ; preds = %266
  %270 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !24
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %281

272:                                              ; preds = %269
  %273 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %274 = load i32, ptr %20, align 4, !tbaa !5
  %275 = add nsw i32 %274, 1
  %276 = load ptr, ptr %14, align 8, !tbaa !9
  %277 = call i32 @qh_pointid(ptr noundef %276)
  %278 = load double, ptr %22, align 8, !tbaa !11
  %279 = load double, ptr %29, align 8, !tbaa !11
  %280 = load double, ptr %28, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %273, i32 noundef 30, ptr noundef @.str.48, i32 noundef %275, i32 noundef %277, double noundef %278, double noundef %279, double noundef %280)
  br label %281

281:                                              ; preds = %272, %269
  br label %312

282:                                              ; preds = %266
  %283 = load i32, ptr %19, align 4, !tbaa !5
  %284 = icmp ne i32 %283, 0
  br i1 %284, label %285, label %298

285:                                              ; preds = %282
  %286 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !24
  %287 = icmp ne i32 %286, 0
  br i1 %287, label %288, label %297

288:                                              ; preds = %285
  %289 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %290 = load i32, ptr %20, align 4, !tbaa !5
  %291 = add nsw i32 %290, 1
  %292 = load ptr, ptr %14, align 8, !tbaa !9
  %293 = call i32 @qh_pointid(ptr noundef %292)
  %294 = load double, ptr %22, align 8, !tbaa !11
  %295 = load double, ptr %27, align 8, !tbaa !11
  %296 = load double, ptr %28, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %289, i32 noundef 17, ptr noundef @.str.49, i32 noundef %291, i32 noundef %293, double noundef %294, double noundef %295, double noundef %296)
  br label %297

297:                                              ; preds = %288, %285
  br label %311

298:                                              ; preds = %282
  %299 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !24
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %310

301:                                              ; preds = %298
  %302 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %303 = load i32, ptr %20, align 4, !tbaa !5
  %304 = add nsw i32 %303, 1
  %305 = load ptr, ptr %14, align 8, !tbaa !9
  %306 = call i32 @qh_pointid(ptr noundef %305)
  %307 = load double, ptr %22, align 8, !tbaa !11
  %308 = load double, ptr %27, align 8, !tbaa !11
  %309 = load double, ptr %29, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %302, i32 noundef 8, ptr noundef @.str.50, i32 noundef %304, i32 noundef %306, double noundef %307, double noundef %308, double noundef %309)
  br label %310

310:                                              ; preds = %301, %298
  br label %311

311:                                              ; preds = %310, %297
  br label %312

312:                                              ; preds = %311, %281
  br label %313

313:                                              ; preds = %312, %265
  %314 = load ptr, ptr %8, align 8, !tbaa !9
  store ptr %314, ptr %11, align 8, !tbaa !9
  %315 = load ptr, ptr %8, align 8, !tbaa !9
  %316 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %317 = load i32, ptr %9, align 4, !tbaa !5
  %318 = mul nsw i32 %316, %317
  %319 = sext i32 %318 to i64
  %320 = getelementptr inbounds double, ptr %315, i64 %319
  store ptr %320, ptr %13, align 8, !tbaa !9
  br label %321

321:                                              ; preds = %375, %313
  %322 = load ptr, ptr %11, align 8, !tbaa !9
  %323 = load ptr, ptr %13, align 8, !tbaa !9
  %324 = icmp ult ptr %322, %323
  br i1 %324, label %325, label %380

325:                                              ; preds = %321
  %326 = load ptr, ptr %11, align 8, !tbaa !9
  %327 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !20
  %328 = icmp eq ptr %326, %327
  br i1 %328, label %329, label %330

329:                                              ; preds = %325
  br label %375

330:                                              ; preds = %325
  %331 = load ptr, ptr %7, align 8, !tbaa !9
  %332 = load ptr, ptr %11, align 8, !tbaa !9
  %333 = call i32 @qh_setin(ptr noundef %331, ptr noundef %332)
  %334 = icmp ne i32 %333, 0
  br i1 %334, label %374, label %335

335:                                              ; preds = %330
  %336 = load ptr, ptr %10, align 8, !tbaa !9
  %337 = load ptr, ptr %336, align 8, !tbaa !9
  %338 = load ptr, ptr %11, align 8, !tbaa !9
  %339 = call i32 @qh_setin(ptr noundef %337, ptr noundef %338)
  %340 = icmp ne i32 %339, 0
  br i1 %340, label %374, label %341

341:                                              ; preds = %335
  %342 = load ptr, ptr %11, align 8, !tbaa !9
  %343 = load ptr, ptr %10, align 8, !tbaa !9
  %344 = load ptr, ptr %343, align 8, !tbaa !9
  %345 = load i32, ptr %20, align 4, !tbaa !5
  %346 = call double @qh_detsimplex(ptr noundef %342, ptr noundef %344, i32 noundef %345, ptr noundef %17)
  store double %346, ptr %24, align 8, !tbaa !11
  %347 = load double, ptr %24, align 8, !tbaa !11
  %348 = fcmp olt double %347, 0.000000e+00
  br i1 %348, label %349, label %352

349:                                              ; preds = %341
  %350 = load double, ptr %24, align 8, !tbaa !11
  %351 = fneg double %350
  br label %354

352:                                              ; preds = %341
  %353 = load double, ptr %24, align 8, !tbaa !11
  br label %354

354:                                              ; preds = %352, %349
  %355 = phi double [ %351, %349 ], [ %353, %352 ]
  store double %355, ptr %24, align 8, !tbaa !11
  %356 = load double, ptr %22, align 8, !tbaa !11
  %357 = fcmp ogt double %355, %356
  br i1 %357, label %358, label %373

358:                                              ; preds = %354
  %359 = load double, ptr %24, align 8, !tbaa !11
  store double %359, ptr %22, align 8, !tbaa !11
  %360 = load ptr, ptr %11, align 8, !tbaa !9
  store ptr %360, ptr %14, align 8, !tbaa !9
  %361 = load i32, ptr %17, align 4, !tbaa !5
  store i32 %361, ptr %18, align 4, !tbaa !5
  %362 = load i32, ptr %18, align 4, !tbaa !5
  %363 = icmp ne i32 %362, 0
  br i1 %363, label %372, label %364

364:                                              ; preds = %358
  %365 = load i32, ptr @qh_qh, align 8, !tbaa !25
  %366 = icmp ne i32 %365, 0
  br i1 %366, label %372, label %367

367:                                              ; preds = %364
  %368 = load double, ptr %22, align 8, !tbaa !11
  %369 = load double, ptr %27, align 8, !tbaa !11
  %370 = fcmp ogt double %368, %369
  br i1 %370, label %371, label %372

371:                                              ; preds = %367
  br label %380

372:                                              ; preds = %367, %364, %358
  br label %373

373:                                              ; preds = %372, %354
  br label %374

374:                                              ; preds = %373, %335, %330
  br label %375

375:                                              ; preds = %374, %329
  %376 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !19
  %377 = load ptr, ptr %11, align 8, !tbaa !9
  %378 = sext i32 %376 to i64
  %379 = getelementptr inbounds double, ptr %377, i64 %378
  store ptr %379, ptr %11, align 8, !tbaa !9
  br label %321, !llvm.loop !26

380:                                              ; preds = %371, %321
  br label %381

381:                                              ; preds = %380, %248
  %382 = load ptr, ptr %14, align 8, !tbaa !9
  %383 = icmp ne ptr %382, null
  br i1 %383, label %386, label %384

384:                                              ; preds = %381
  %385 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %385, i32 noundef 6014, ptr noundef @.str.51)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %386

386:                                              ; preds = %384, %381
  %387 = load ptr, ptr %10, align 8, !tbaa !9
  %388 = load ptr, ptr %14, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %387, ptr noundef %388)
  %389 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !24
  %390 = icmp sge i32 %389, 1
  br i1 %390, label %391, label %402

391:                                              ; preds = %386
  %392 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %393 = load ptr, ptr %14, align 8, !tbaa !9
  %394 = call i32 @qh_pointid(ptr noundef %393)
  %395 = load i32, ptr %20, align 4, !tbaa !5
  %396 = add nsw i32 %395, 1
  %397 = load double, ptr %22, align 8, !tbaa !11
  %398 = load double, ptr %23, align 8, !tbaa !11
  %399 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !13
  %400 = fmul double %398, %399
  %401 = load double, ptr %27, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %392, i32 noundef 1002, ptr noundef @.str.52, i32 noundef %394, i32 noundef %396, double noundef %397, double noundef %400, double noundef %401)
  br label %402

402:                                              ; preds = %391, %386
  br label %403

403:                                              ; preds = %402
  %404 = load i32, ptr %20, align 4, !tbaa !5
  %405 = add nsw i32 %404, 1
  store i32 %405, ptr %20, align 4, !tbaa !5
  br label %174, !llvm.loop !27

406:                                              ; preds = %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  ret void
}

; Function Attrs: nounwind
declare double @pow(double noundef, double noundef) #3

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

declare void @qh_joggle_restart(ptr noundef) #1

declare i32 @qh_setin(ptr noundef, ptr 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 "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 = { nounwind }

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

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


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.43 = external hidden unnamed_addr constant [109 x i8], align 1
@.str.44 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.45 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.46 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.47 = external hidden unnamed_addr constant [105 x i8], align 1
@.str.48 = external hidden unnamed_addr constant [126 x i8], align 1
@.str.49 = external hidden unnamed_addr constant [119 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [123 x i8], align 1
@.str.51 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.52 = external hidden unnamed_addr constant [102 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

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

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

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

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

declare void @qh_setappend(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_maxsimplex(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4) local_unnamed_addr #2 {
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #4
  %7 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !5
  %8 = fcmp ugt double %7, 0.000000e+00
  br i1 %8, label %11, label %9

9:                                                ; preds = %5
  %10 = 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 %10, i32 noundef 6421, ptr noundef nonnull @.str.43) #4
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %11

11:                                               ; preds = %9, %5
  %12 = load ptr, ptr %4, align 8, !tbaa !14
  %13 = tail call i32 @qh_setsize(ptr noundef %12) #4
  %14 = icmp sgt i32 %13, 1
  br i1 %14, label %15, label %20

15:                                               ; preds = %11
  %16 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !5
  %17 = add nsw i32 %13, -1
  %18 = uitofp nneg i32 %17 to double
  %19 = tail call double @pow(double noundef %16, double noundef %18) #4
  br label %69

20:                                               ; preds = %11
  %21 = tail call i32 @qh_setsize(ptr noundef %1) #4
  %22 = icmp sgt i32 %21, 1
  br i1 %22, label %23, label %30

23:                                               ; preds = %20
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.loopexit, label %.preheader248

.preheader248:                                    ; preds = %23
  %.0129258 = getelementptr inbounds i8, ptr %1, i64 8
  %24 = load ptr, ptr %.0129258, align 8, !tbaa !14
  %.not187259 = icmp eq ptr %24, null
  br i1 %.not187259, label %.loopexit, label %.lr.ph265

.lr.ph265:                                        ; preds = %.preheader248, %.lr.ph265
  %25 = phi ptr [ %29, %.lr.ph265 ], [ %24, %.preheader248 ]
  %.0129264 = phi ptr [ %.0129, %.lr.ph265 ], [ %.0129258, %.preheader248 ]
  %.0131263 = phi double [ %.1132, %.lr.ph265 ], [ 0xFFEFFFFFFFFFFFFF, %.preheader248 ]
  %.0133262 = phi double [ %.1134, %.lr.ph265 ], [ 0x7FEFFFFFFFFFFFFF, %.preheader248 ]
  %.0154261 = phi ptr [ %.1155, %.lr.ph265 ], [ null, %.preheader248 ]
  %.0160260 = phi ptr [ %.1161, %.lr.ph265 ], [ null, %.preheader248 ]
  %26 = load double, ptr %25, align 8, !tbaa !15
  %27 = fcmp olt double %.0131263, %26
  %.1155 = select i1 %27, ptr %25, ptr %.0154261
  %.1132 = select i1 %27, double %26, double %.0131263
  %28 = fcmp ogt double %.0133262, %26
  %.1161 = select i1 %28, ptr %25, ptr %.0160260
  %.1134 = select i1 %28, double %26, double %.0133262
  %.0129 = getelementptr inbounds i8, ptr %.0129264, i64 8
  %29 = load ptr, ptr %.0129, align 8, !tbaa !14
  %.not187 = icmp eq ptr %29, null
  br i1 %.not187, label %.loopexit, label %.lr.ph265, !llvm.loop !16

30:                                               ; preds = %20
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %32 = mul nsw i32 %31, %3
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds double, ptr %2, i64 %33
  %35 = icmp sgt i32 %32, 0
  br i1 %35, label %.lr.ph, label %.loopexit

.lr.ph:                                           ; preds = %30
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !19
  %37 = sext i32 %31 to i64
  br label %38

38:                                               ; preds = %.lr.ph, %45
  %.0254 = phi ptr [ %2, %.lr.ph ], [ %46, %45 ]
  %.2253 = phi double [ 0xFFEFFFFFFFFFFFFF, %.lr.ph ], [ %.4, %45 ]
  %.2135252 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph ], [ %.3136, %45 ]
  %.2156251 = phi ptr [ null, %.lr.ph ], [ %.4158, %45 ]
  %.2162250 = phi ptr [ null, %.lr.ph ], [ %.3163, %45 ]
  %39 = icmp eq ptr %.0254, %36
  br i1 %39, label %45, label %40

40:                                               ; preds = %38
  %41 = load double, ptr %.0254, align 8, !tbaa !15
  %42 = fcmp olt double %.2253, %41
  %.3157 = select i1 %42, ptr %.0254, ptr %.2156251
  %.3 = select i1 %42, double %41, double %.2253
  %43 = fcmp ogt double %.2135252, %41
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  br label %45

45:                                               ; preds = %40, %44, %38
  %.3163 = phi ptr [ %.2162250, %38 ], [ %.0254, %44 ], [ %.2162250, %40 ]
  %.4158 = phi ptr [ %.2156251, %38 ], [ %.3157, %44 ], [ %.3157, %40 ]
  %.3136 = phi double [ %.2135252, %38 ], [ %41, %44 ], [ %.2135252, %40 ]
  %.4 = phi double [ %.2253, %38 ], [ %.3, %44 ], [ %.3, %40 ]
  %46 = getelementptr inbounds double, ptr %.0254, i64 %37
  %47 = icmp ult ptr %46, %34
  br i1 %47, label %38, label %.loopexit, !llvm.loop !20

.loopexit:                                        ; preds = %45, %.lr.ph265, %30, %.preheader248, %23
  %.4164 = phi ptr [ null, %23 ], [ null, %.preheader248 ], [ null, %30 ], [ %.1161, %.lr.ph265 ], [ %.3163, %45 ]
  %.5159 = phi ptr [ null, %23 ], [ null, %.preheader248 ], [ null, %30 ], [ %.1155, %.lr.ph265 ], [ %.4158, %45 ]
  %.4137 = phi double [ 0x7FEFFFFFFFFFFFFF, %23 ], [ 0x7FEFFFFFFFFFFFFF, %.preheader248 ], [ 0x7FEFFFFFFFFFFFFF, %30 ], [ %.1134, %.lr.ph265 ], [ %.3136, %45 ]
  %.5 = phi double [ 0xFFEFFFFFFFFFFFFF, %23 ], [ 0xFFEFFFFFFFFFFFFF, %.preheader248 ], [ 0xFFEFFFFFFFFFFFFF, %30 ], [ %.1132, %.lr.ph265 ], [ %.4, %45 ]
  %48 = fsub double %.5, %.4137
  %49 = tail call i32 @qh_setunique(ptr noundef nonnull %4, ptr noundef %.4164) #4
  %50 = load ptr, ptr %4, align 8, !tbaa !14
  %51 = tail call i32 @qh_setsize(ptr noundef %50) #4
  %52 = icmp slt i32 %51, 2
  br i1 %52, label %53, label %55

53:                                               ; preds = %.loopexit
  %54 = tail call i32 @qh_setunique(ptr noundef nonnull %4, ptr noundef %.5159) #4
  br label %55

55:                                               ; preds = %53, %.loopexit
  %56 = load ptr, ptr %4, align 8, !tbaa !14
  %57 = tail call i32 @qh_setsize(ptr noundef %56) #4
  %58 = icmp slt i32 %57, 2
  br i1 %58, label %59, label %69

59:                                               ; preds = %55
  tail call void @qh_joggle_restart(ptr noundef nonnull @.str.44) #4
  %60 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1696), align 8, !tbaa !21
  %61 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %62 = add nsw i32 %61, 1
  %63 = icmp sgt i32 %60, %62
  %64 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  br i1 %63, label %65, label %68

65:                                               ; preds = %59
  %66 = tail call i32 @qh_setsize(ptr noundef %1) #4
  %67 = add nsw i32 %66, %3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, i32 noundef 6012, ptr noundef nonnull @.str.45, i32 noundef %67, double noundef %.4137) #4
  tail call void @qh_errexit(i32 noundef 3, ptr noundef null, ptr noundef null) #4
  br label %69

68:                                               ; preds = %59
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %64, i32 noundef 6013, ptr noundef nonnull @.str.46, i32 noundef %61, double noundef %.4137) #4
  tail call void @qh_errexit(i32 noundef 1, ptr noundef null, ptr noundef null) #4
  br label %69

69:                                               ; preds = %55, %68, %65, %15
  %.0144 = phi i32 [ %13, %15 ], [ %57, %65 ], [ %57, %68 ], [ %57, %55 ]
  %.0138 = phi double [ %19, %15 ], [ %48, %65 ], [ %48, %68 ], [ %48, %55 ]
  %.not188294 = icmp sgt i32 %.0144, %0
  br i1 %.not188294, label %._crit_edge304, label %.lr.ph303

.lr.ph303:                                        ; preds = %69
  %.not189 = icmp eq ptr %1, null
  %.1130270 = getelementptr inbounds i8, ptr %1, i64 8
  %70 = add i32 %0, 1
  br label %71

71:                                               ; preds = %.lr.ph303, %180
  %.1139299 = phi double [ %.0138, %.lr.ph303 ], [ %.7240, %180 ]
  %.0145296 = phi i32 [ %.0144, %.lr.ph303 ], [ %.pre-phi, %180 ]
  %.0147295 = phi i32 [ 0, %.lr.ph303 ], [ %.6153239, %180 ]
  br i1 %.not189, label %.sink.split, label %.preheader

.preheader:                                       ; preds = %71
  %72 = load ptr, ptr %.1130270, align 8, !tbaa !14
  %.not191271 = icmp eq ptr %72, null
  br i1 %.not191271, label %.sink.split, label %.lr.ph276

.lr.ph276:                                        ; preds = %.preheader, %85
  %73 = phi ptr [ %86, %85 ], [ %72, %.preheader ]
  %.1130275 = phi ptr [ %.1130, %85 ], [ %.1130270, %.preheader ]
  %.2140274 = phi double [ %.3141, %85 ], [ -1.000000e+00, %.preheader ]
  %.1148273 = phi i32 [ %.2149, %85 ], [ %.0147295, %.preheader ]
  %.0165272 = phi ptr [ %.1166, %85 ], [ null, %.preheader ]
  %74 = load ptr, ptr %4, align 8, !tbaa !14
  %75 = call i32 @qh_setin(ptr noundef %74, ptr noundef nonnull %73) #4
  %.not201 = icmp ne i32 %75, 0
  %.not202 = icmp eq ptr %73, %.0165272
  %or.cond203 = select i1 %.not201, i1 true, i1 %.not202
  br i1 %or.cond203, label %85, label %76

76:                                               ; preds = %.lr.ph276
  %77 = load ptr, ptr %4, align 8, !tbaa !14
  %78 = call double @qh_detsimplex(ptr noundef nonnull %73, ptr noundef %77, i32 noundef %.0145296, ptr noundef nonnull %6)
  %79 = fcmp olt double %78, 0.000000e+00
  %80 = fneg double %78
  %81 = select i1 %79, double %80, double %78
  %82 = fcmp ogt double %81, %.2140274
  br i1 %82, label %83, label %85

83:                                               ; preds = %76
  %84 = load i32, ptr %6, align 4, !tbaa !22
  br label %85

85:                                               ; preds = %76, %83, %.lr.ph276
  %.1166 = phi ptr [ %.0165272, %.lr.ph276 ], [ %73, %83 ], [ %.0165272, %76 ]
  %.2149 = phi i32 [ %.1148273, %.lr.ph276 ], [ %84, %83 ], [ %.1148273, %76 ]
  %.3141 = phi double [ %.2140274, %.lr.ph276 ], [ %81, %83 ], [ %.2140274, %76 ]
  %.1130 = getelementptr inbounds i8, ptr %.1130275, i64 8
  %86 = load ptr, ptr %.1130, align 8, !tbaa !14
  %.not191 = icmp eq ptr %86, null
  br i1 %.not191, label %._crit_edge, label %.lr.ph276, !llvm.loop !23

._crit_edge:                                      ; preds = %85
  %87 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !5
  %88 = fmul double %.1139299, %87
  %89 = fmul double %88, 1.000000e-02
  %90 = fcmp ogt double %.3141, 0.000000e+00
  br i1 %90, label %91, label %97

91:                                               ; preds = %._crit_edge
  %92 = fdiv double %.3141, %88
  %93 = fcmp olt double %92, 1.000000e-03
  br i1 %93, label %.thread212, label %97

.thread212:                                       ; preds = %91
  %94 = icmp eq ptr %.1166, null
  %95 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  br i1 %94, label %108, label %115

97:                                               ; preds = %91, %._crit_edge
  %.0128 = phi double [ %92, %91 ], [ 1.000000e+00, %._crit_edge ]
  %98 = icmp eq ptr %.1166, null
  %99 = icmp ne i32 %.2149, 0
  %or.cond = select i1 %98, i1 true, i1 %99
  br i1 %or.cond, label %100, label %.thread233

100:                                              ; preds = %97
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  br i1 %98, label %108, label %.thread329

.sink.split:                                      ; preds = %71, %.preheader
  %103 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !5
  %104 = fmul double %.1139299, %103
  %105 = fmul double %104, 1.000000e-02
  %106 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1688), align 8, !tbaa !21
  br label %108

108:                                              ; preds = %.sink.split, %.thread212, %100
  %109 = phi double [ %89, %.thread212 ], [ %89, %100 ], [ %105, %.sink.split ]
  %110 = phi double [ %88, %.thread212 ], [ %88, %100 ], [ %104, %.sink.split ]
  %.4142209219232 = phi double [ %.3141, %.thread212 ], [ %.3141, %100 ], [ -1.000000e+00, %.sink.split ]
  %.3150208220229 = phi i32 [ %.2149, %.thread212 ], [ %.2149, %100 ], [ %.0147295, %.sink.split ]
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !24
  %.not193 = icmp eq i32 %111, 0
  br i1 %.not193, label %136, label %112

112:                                              ; preds = %108
  %113 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %114 = add nsw i32 %.0145296, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %113, i32 noundef 7, ptr noundef nonnull @.str.47, i32 noundef %114, double noundef %109, double noundef %110) #4
  br label %136

115:                                              ; preds = %.thread212
  %116 = load i32, ptr @qh_qh, align 8, !tbaa !25
  %.not194 = icmp eq i32 %116, 0
  br i1 %.not194, label %124, label %118

.thread329:                                       ; preds = %100
  %117 = load i32, ptr @qh_qh, align 8, !tbaa !25
  %.not194334 = icmp eq i32 %117, 0
  br i1 %.not194334, label %130, label %118

118:                                              ; preds = %.thread329, %115
  %.0128222223341 = phi double [ %.0128, %.thread329 ], [ %92, %115 ]
  %119 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !24
  %.not197 = icmp eq i32 %119, 0
  br i1 %.not197, label %136, label %120

120:                                              ; preds = %118
  %121 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %122 = add nsw i32 %.0145296, 1
  %123 = call i32 @qh_pointid(ptr noundef nonnull %.1166) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %121, i32 noundef 30, ptr noundef nonnull @.str.48, i32 noundef %122, i32 noundef %123, double noundef %.3141, double noundef %88, double noundef %.0128222223341) #4
  br label %136

124:                                              ; preds = %115
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !24
  %.not196 = icmp eq i32 %125, 0
  br i1 %.not196, label %136, label %126

126:                                              ; preds = %124
  %127 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %128 = add nsw i32 %.0145296, 1
  %129 = call i32 @qh_pointid(ptr noundef nonnull %.1166) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %127, i32 noundef 17, ptr noundef nonnull @.str.49, i32 noundef %128, i32 noundef %129, double noundef %.3141, double noundef %89, double noundef %92) #4
  br label %136

130:                                              ; preds = %.thread329
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !24
  %.not195 = icmp eq i32 %131, 0
  br i1 %.not195, label %136, label %132

132:                                              ; preds = %130
  %133 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %134 = add nsw i32 %.0145296, 1
  %135 = call i32 @qh_pointid(ptr noundef nonnull %.1166) #4
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %133, i32 noundef 8, ptr noundef nonnull @.str.50, i32 noundef %134, i32 noundef %135, double noundef %.3141, double noundef %89, double noundef %88) #4
  br label %136

136:                                              ; preds = %120, %118, %130, %132, %124, %126, %108, %112
  %137 = phi double [ %89, %120 ], [ %89, %118 ], [ %89, %130 ], [ %89, %132 ], [ %89, %124 ], [ %89, %126 ], [ %109, %108 ], [ %109, %112 ]
  %.4142209219231 = phi double [ %.3141, %120 ], [ %.3141, %118 ], [ %.3141, %130 ], [ %.3141, %132 ], [ %.3141, %124 ], [ %.3141, %126 ], [ %.4142209219232, %108 ], [ %.4142209219232, %112 ]
  %.3150208220227 = phi i32 [ %.2149, %120 ], [ %.2149, %118 ], [ %.2149, %130 ], [ %.2149, %132 ], [ %.2149, %124 ], [ %.2149, %126 ], [ %.3150208220229, %108 ], [ %.3150208220229, %112 ]
  %.2167207221224 = phi ptr [ %.1166, %120 ], [ %.1166, %118 ], [ %.1166, %130 ], [ %.1166, %132 ], [ %.1166, %124 ], [ %.1166, %126 ], [ null, %108 ], [ null, %112 ]
  %138 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %139 = mul nsw i32 %138, %3
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %2, i64 %140
  %142 = icmp sgt i32 %139, 0
  br i1 %142, label %.lr.ph285, label %._crit_edge286

.lr.ph285:                                        ; preds = %136, %164
  %.1283 = phi ptr [ %167, %164 ], [ %2, %136 ]
  %.5143282 = phi double [ %.6, %164 ], [ %.4142209219231, %136 ]
  %.4151281 = phi i32 [ %.5152, %164 ], [ %.3150208220227, %136 ]
  %.3168280 = phi ptr [ %.4169, %164 ], [ %.2167207221224, %136 ]
  %143 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !19
  %144 = icmp eq ptr %.1283, %143
  br i1 %144, label %164, label %145

145:                                              ; preds = %.lr.ph285
  %146 = call i32 @qh_setin(ptr noundef %1, ptr noundef %.1283) #4
  %.not198 = icmp eq i32 %146, 0
  br i1 %.not198, label %147, label %164

147:                                              ; preds = %145
  %148 = load ptr, ptr %4, align 8, !tbaa !14
  %149 = call i32 @qh_setin(ptr noundef %148, ptr noundef %.1283) #4
  %.not199 = icmp eq i32 %149, 0
  br i1 %.not199, label %150, label %164

150:                                              ; preds = %147
  %151 = load ptr, ptr %4, align 8, !tbaa !14
  %152 = call double @qh_detsimplex(ptr noundef %.1283, ptr noundef %151, i32 noundef %.0145296, ptr noundef nonnull %6)
  %153 = fcmp olt double %152, 0.000000e+00
  %154 = fneg double %152
  %155 = select i1 %153, double %154, double %152
  %156 = fcmp ogt double %155, %.5143282
  br i1 %156, label %157, label %164

157:                                              ; preds = %150
  %158 = load i32, ptr %6, align 4, !tbaa !22
  %159 = icmp ne i32 %158, 0
  %160 = load i32, ptr @qh_qh, align 8
  %161 = icmp ne i32 %160, 0
  %or.cond5 = select i1 %159, i1 true, i1 %161
  br i1 %or.cond5, label %164, label %162

162:                                              ; preds = %157
  %163 = fcmp ogt double %155, %137
  br i1 %163, label %._crit_edge286, label %164

164:                                              ; preds = %145, %147, %157, %162, %150, %.lr.ph285
  %.4169 = phi ptr [ %.3168280, %.lr.ph285 ], [ %.3168280, %145 ], [ %.3168280, %147 ], [ %.1283, %157 ], [ %.1283, %162 ], [ %.3168280, %150 ]
  %.5152 = phi i32 [ %.4151281, %.lr.ph285 ], [ %.4151281, %145 ], [ %.4151281, %147 ], [ %158, %157 ], [ 0, %162 ], [ %.4151281, %150 ]
  %.6 = phi double [ %.5143282, %.lr.ph285 ], [ %.5143282, %145 ], [ %.5143282, %147 ], [ %155, %157 ], [ %155, %162 ], [ %.5143282, %150 ]
  %165 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !18
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %.1283, i64 %166
  %168 = icmp ult ptr %167, %141
  br i1 %168, label %.lr.ph285, label %._crit_edge286, !llvm.loop !26

._crit_edge286:                                   ; preds = %162, %164, %136
  %.5170 = phi ptr [ %.2167207221224, %136 ], [ %.4169, %164 ], [ %.1283, %162 ]
  %.6153 = phi i32 [ %.3150208220227, %136 ], [ %.5152, %164 ], [ 0, %162 ]
  %.7 = phi double [ %.4142209219231, %136 ], [ %.6, %164 ], [ %155, %162 ]
  %.not200 = icmp eq ptr %.5170, null
  br i1 %.not200, label %169, label %.thread233

169:                                              ; preds = %._crit_edge286
  %170 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %170, i32 noundef 6014, ptr noundef nonnull @.str.51) #4
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %.thread233

.thread233:                                       ; preds = %97, %169, %._crit_edge286
  %.7240 = phi double [ %.7, %169 ], [ %.7, %._crit_edge286 ], [ %.3141, %97 ]
  %.6153239 = phi i32 [ %.6153, %169 ], [ %.6153, %._crit_edge286 ], [ 0, %97 ]
  %.5170238 = phi ptr [ null, %169 ], [ %.5170, %._crit_edge286 ], [ %.1166, %97 ]
  %171 = phi double [ %137, %169 ], [ %137, %._crit_edge286 ], [ %89, %97 ]
  call void @qh_setappend(ptr noundef nonnull %4, ptr noundef %.5170238) #4
  %172 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !24
  %173 = icmp sgt i32 %172, 0
  br i1 %173, label %174, label %.thread233._crit_edge

.thread233._crit_edge:                            ; preds = %.thread233
  %.pre = add i32 %.0145296, 1
  br label %180

174:                                              ; preds = %.thread233
  %175 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %176 = call i32 @qh_pointid(ptr noundef %.5170238) #4
  %177 = add i32 %.0145296, 1
  %178 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !5
  %179 = fmul double %.1139299, %178
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %175, i32 noundef 1002, ptr noundef nonnull @.str.52, i32 noundef %176, i32 noundef %177, double noundef %.7240, double noundef %179, double noundef %171) #4
  br label %180

180:                                              ; preds = %.thread233._crit_edge, %174
  %.pre-phi = phi i32 [ %.pre, %.thread233._crit_edge ], [ %177, %174 ]
  %exitcond.not = icmp eq i32 %.pre-phi, %70
  br i1 %exitcond.not, label %._crit_edge304, label %71, !llvm.loop !27

._crit_edge304:                                   ; preds = %180, %69
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #4
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @pow(double noundef, double noundef) local_unnamed_addr #3

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

declare void @qh_joggle_restart(ptr noundef) local_unnamed_addr #1

declare i32 @qh_setin(ptr noundef, ptr 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 = { mustprogress nofree nounwind willreturn memory(write) "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 = { 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, !10, i64 1824}
!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 = !{!11, !11, i64 0}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 632}
!19 = !{!6, !11, i64 104}
!20 = distinct !{!20, !17}
!21 = !{!8, !8, i64 0}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !17}
!24 = !{!6, !7, i64 136}
!25 = !{!6, !7, i64 0}
!26 = distinct !{!26, !17}
!27 = distinct !{!27, !17}


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