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

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

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

@qh_qh = external global %struct.qhT, align 8

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

declare i32 @qh_setsize(ptr noundef) #1

declare void @qh_setaddnth(ptr noundef, i32 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 ptr @qh_point(i32 noundef) #2

declare void @qh_settempfree(ptr noundef) #1

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

declare ptr @qh_settemp(i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_initialvertices(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #2 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  store i32 %0, ptr %5, align 4, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  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 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  store i32 0, ptr %19, align 4, !tbaa !5
  %20 = load i32, ptr %5, align 4, !tbaa !5
  %21 = add nsw i32 %20, 1
  %22 = call ptr @qh_settemp(i32 noundef %21)
  store ptr %22, ptr %11, align 8, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !5
  %24 = add nsw i32 %23, 1
  %25 = call ptr @qh_settemp(i32 noundef %24)
  store ptr %25, ptr %12, align 8, !tbaa !9
  %26 = load i32, ptr @qh_qh, align 8, !tbaa !11
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %32

28:                                               ; preds = %4
  %29 = load i32, ptr %5, align 4, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !9
  %31 = load i32, ptr %8, align 4, !tbaa !5
  call void @qh_maxsimplex(i32 noundef %29, ptr noundef null, ptr noundef %30, i32 noundef %31, ptr noundef %12)
  br label %305

32:                                               ; preds = %4
  %33 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 76), align 8, !tbaa !15
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %75

35:                                               ; preds = %32
  br label %36

36:                                               ; preds = %71, %35
  %37 = load ptr, ptr %12, align 8, !tbaa !9
  %38 = call i32 @qh_setsize(ptr noundef %37)
  %39 = load i32, ptr %5, align 4, !tbaa !5
  %40 = add nsw i32 %39, 1
  %41 = icmp ne i32 %38, %40
  br i1 %41, label %42, label %74

42:                                               ; preds = %36
  %43 = call i32 @qh_rand()
  %44 = sitofp i32 %43 to double
  store double %44, ptr %14, align 8, !tbaa !16
  %45 = load double, ptr %14, align 8, !tbaa !16
  %46 = fdiv double %45, 0x41DFFFFFFFC00000
  store double %46, ptr %14, align 8, !tbaa !16
  %47 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !17
  %48 = sitofp i32 %47 to double
  %49 = load double, ptr %14, align 8, !tbaa !16
  %50 = fmul double %48, %49
  %51 = call double @llvm.floor.f64(double %50)
  store double %51, ptr %14, align 8, !tbaa !16
  %52 = load double, ptr %14, align 8, !tbaa !16
  %53 = fptosi double %52 to i32
  store i32 %53, ptr %15, align 4, !tbaa !5
  br label %54

54:                                               ; preds = %69, %42
  %55 = load ptr, ptr %12, align 8, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !5
  %57 = call ptr @qh_point(i32 noundef %56)
  %58 = call i32 @qh_setin(ptr noundef %55, ptr noundef %57)
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %71

60:                                               ; preds = %54
  %61 = load i32, ptr %15, align 4, !tbaa !5
  %62 = add nsw i32 %61, 1
  store i32 %62, ptr %15, align 4, !tbaa !5
  %63 = load i32, ptr %15, align 4, !tbaa !5
  %64 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !17
  %65 = icmp slt i32 %63, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %60
  %67 = load i32, ptr %15, align 4, !tbaa !5
  br label %69

68:                                               ; preds = %60
  br label %69

69:                                               ; preds = %68, %66
  %70 = phi i32 [ %67, %66 ], [ 0, %68 ]
  store i32 %70, ptr %15, align 4, !tbaa !5
  br label %54, !llvm.loop !18

71:                                               ; preds = %54
  %72 = load i32, ptr %15, align 4, !tbaa !5
  %73 = call ptr @qh_point(i32 noundef %72)
  call void @qh_setappend(ptr noundef %12, ptr noundef %73)
  br label %36, !llvm.loop !20

74:                                               ; preds = %36
  br label %304

75:                                               ; preds = %32
  %76 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !21
  %77 = icmp sge i32 %76, 8
  br i1 %77, label %78, label %298

78:                                               ; preds = %75
  %79 = load i32, ptr %5, align 4, !tbaa !5
  %80 = add nsw i32 %79, 1
  %81 = call ptr @qh_settemp(i32 noundef %80)
  store ptr %81, ptr %13, align 8, !tbaa !9
  %82 = load ptr, ptr %6, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.setT, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [1 x %union.setelemT], ptr %83, i64 0, i64 0
  %85 = load ptr, ptr %84, align 8, !tbaa !22
  call void @qh_setappend(ptr noundef %12, ptr noundef %85)
  %86 = load ptr, ptr %6, align 8, !tbaa !9
  %87 = getelementptr inbounds %struct.setT, ptr %86, i32 0, i32 1
  %88 = getelementptr inbounds [1 x %union.setelemT], ptr %87, i64 0, i64 1
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  call void @qh_setappend(ptr noundef %12, ptr noundef %89)
  %90 = load i32, ptr %5, align 4, !tbaa !5
  %91 = icmp sgt i32 6, %90
  br i1 %91, label %92, label %94

92:                                               ; preds = %78
  %93 = load i32, ptr %5, align 4, !tbaa !5
  br label %95

94:                                               ; preds = %78
  br label %95

95:                                               ; preds = %94, %92
  %96 = phi i32 [ %93, %92 ], [ 6, %94 ]
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = load ptr, ptr %7, align 8, !tbaa !9
  %99 = load i32, ptr %8, align 4, !tbaa !5
  call void @qh_maxsimplex(i32 noundef %96, ptr noundef %97, ptr noundef %98, i32 noundef %99, ptr noundef %12)
  %100 = load ptr, ptr %12, align 8, !tbaa !9
  %101 = call i32 @qh_setsize(ptr noundef %100)
  store i32 %101, ptr %18, align 4, !tbaa !5
  store ptr null, ptr %9, align 8, !tbaa !9
  %102 = load ptr, ptr %6, align 8, !tbaa !9
  %103 = icmp ne ptr %102, null
  br i1 %103, label %104, label %159

104:                                              ; preds = %95
  store i32 0, ptr %16, align 4, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !9
  %106 = getelementptr inbounds %struct.setT, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds [1 x %union.setelemT], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %107, align 8, !tbaa !22
  store ptr %108, ptr %9, align 8, !tbaa !9
  %109 = load ptr, ptr %6, align 8, !tbaa !9
  %110 = call i32 @qh_setsize(ptr noundef %109)
  store i32 %110, ptr %17, align 4, !tbaa !5
  br label %111

111:                                              ; preds = %150, %104
  %112 = load i32, ptr %16, align 4, !tbaa !5
  %113 = load i32, ptr %17, align 4, !tbaa !5
  %114 = icmp slt i32 %112, %113
  br i1 %114, label %115, label %158

115:                                              ; preds = %111
  %116 = load i32, ptr %18, align 4, !tbaa !5
  %117 = load i32, ptr %5, align 4, !tbaa !5
  %118 = icmp sge i32 %116, %117
  br i1 %118, label %119, label %120

119:                                              ; preds = %115
  br label %158

120:                                              ; preds = %115
  %121 = load i32, ptr %16, align 4, !tbaa !5
  %122 = and i32 %121, 1
  %123 = icmp ne i32 %122, 0
  br i1 %123, label %124, label %149

124:                                              ; preds = %120
  %125 = load ptr, ptr %12, align 8, !tbaa !9
  %126 = load ptr, ptr %9, align 8, !tbaa !9
  %127 = call i32 @qh_setin(ptr noundef %125, ptr noundef %126)
  %128 = icmp ne i32 %127, 0
  br i1 %128, label %148, label %129

129:                                              ; preds = %124
  %130 = load ptr, ptr %13, align 8, !tbaa !9
  %131 = load ptr, ptr %9, align 8, !tbaa !9
  %132 = call i32 @qh_setin(ptr noundef %130, ptr noundef %131)
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %148, label %134

134:                                              ; preds = %129
  %135 = load ptr, ptr %9, align 8, !tbaa !9
  %136 = load ptr, ptr %12, align 8, !tbaa !9
  %137 = load i32, ptr %18, align 4, !tbaa !5
  %138 = call double @qh_detsimplex(ptr noundef %135, ptr noundef %136, i32 noundef %137, ptr noundef %19)
  %139 = load i32, ptr %19, align 4, !tbaa !5
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %143

141:                                              ; preds = %134
  %142 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %13, ptr noundef %142)
  br label %147

143:                                              ; preds = %134
  %144 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %12, ptr noundef %144)
  %145 = load i32, ptr %18, align 4, !tbaa !5
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %18, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %143, %141
  br label %148

148:                                              ; preds = %147, %129, %124
  br label %149

149:                                              ; preds = %148, %120
  br label %150

150:                                              ; preds = %149
  %151 = load ptr, ptr %6, align 8, !tbaa !9
  %152 = getelementptr inbounds %struct.setT, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %16, align 4, !tbaa !5
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %16, align 4, !tbaa !5
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds [1 x %union.setelemT], ptr %152, i64 0, i64 %155
  %157 = load ptr, ptr %156, align 8, !tbaa !22
  store ptr %157, ptr %9, align 8, !tbaa !9
  br label %111, !llvm.loop !23

158:                                              ; preds = %119, %111
  br label %159

159:                                              ; preds = %158, %95
  store ptr null, ptr %9, align 8, !tbaa !9
  %160 = load ptr, ptr %6, align 8, !tbaa !9
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %217

162:                                              ; preds = %159
  store i32 0, ptr %16, align 4, !tbaa !5
  %163 = load ptr, ptr %6, align 8, !tbaa !9
  %164 = getelementptr inbounds %struct.setT, ptr %163, i32 0, i32 1
  %165 = getelementptr inbounds [1 x %union.setelemT], ptr %164, i64 0, i64 0
  %166 = load ptr, ptr %165, align 8, !tbaa !22
  store ptr %166, ptr %9, align 8, !tbaa !9
  %167 = load ptr, ptr %6, align 8, !tbaa !9
  %168 = call i32 @qh_setsize(ptr noundef %167)
  store i32 %168, ptr %17, align 4, !tbaa !5
  br label %169

169:                                              ; preds = %208, %162
  %170 = load i32, ptr %16, align 4, !tbaa !5
  %171 = load i32, ptr %17, align 4, !tbaa !5
  %172 = icmp slt i32 %170, %171
  br i1 %172, label %173, label %216

173:                                              ; preds = %169
  %174 = load i32, ptr %18, align 4, !tbaa !5
  %175 = load i32, ptr %5, align 4, !tbaa !5
  %176 = icmp sge i32 %174, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %173
  br label %216

178:                                              ; preds = %173
  %179 = load i32, ptr %16, align 4, !tbaa !5
  %180 = and i32 %179, 1
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %207

182:                                              ; preds = %178
  %183 = load ptr, ptr %12, align 8, !tbaa !9
  %184 = load ptr, ptr %9, align 8, !tbaa !9
  %185 = call i32 @qh_setin(ptr noundef %183, ptr noundef %184)
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %206, label %187

187:                                              ; preds = %182
  %188 = load ptr, ptr %13, align 8, !tbaa !9
  %189 = load ptr, ptr %9, align 8, !tbaa !9
  %190 = call i32 @qh_setin(ptr noundef %188, ptr noundef %189)
  %191 = icmp ne i32 %190, 0
  br i1 %191, label %206, label %192

192:                                              ; preds = %187
  %193 = load ptr, ptr %9, align 8, !tbaa !9
  %194 = load ptr, ptr %12, align 8, !tbaa !9
  %195 = load i32, ptr %18, align 4, !tbaa !5
  %196 = call double @qh_detsimplex(ptr noundef %193, ptr noundef %194, i32 noundef %195, ptr noundef %19)
  %197 = load i32, ptr %19, align 4, !tbaa !5
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %201

199:                                              ; preds = %192
  %200 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %13, ptr noundef %200)
  br label %205

201:                                              ; preds = %192
  %202 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %12, ptr noundef %202)
  %203 = load i32, ptr %18, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %18, align 4, !tbaa !5
  br label %205

205:                                              ; preds = %201, %199
  br label %206

206:                                              ; preds = %205, %187, %182
  br label %207

207:                                              ; preds = %206, %178
  br label %208

208:                                              ; preds = %207
  %209 = load ptr, ptr %6, align 8, !tbaa !9
  %210 = getelementptr inbounds %struct.setT, ptr %209, i32 0, i32 1
  %211 = load i32, ptr %16, align 4, !tbaa !5
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %16, align 4, !tbaa !5
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds [1 x %union.setelemT], ptr %210, i64 0, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !22
  store ptr %215, ptr %9, align 8, !tbaa !9
  br label %169, !llvm.loop !24

216:                                              ; preds = %177, %169
  br label %217

217:                                              ; preds = %216, %159
  store ptr null, ptr %9, align 8, !tbaa !9
  %218 = load ptr, ptr %6, align 8, !tbaa !9
  %219 = icmp ne ptr %218, null
  br i1 %219, label %220, label %257

220:                                              ; preds = %217
  store i32 0, ptr %16, align 4, !tbaa !5
  %221 = load ptr, ptr %6, align 8, !tbaa !9
  %222 = getelementptr inbounds %struct.setT, ptr %221, i32 0, i32 1
  %223 = getelementptr inbounds [1 x %union.setelemT], ptr %222, i64 0, i64 0
  %224 = load ptr, ptr %223, align 8, !tbaa !22
  store ptr %224, ptr %9, align 8, !tbaa !9
  %225 = load ptr, ptr %6, align 8, !tbaa !9
  %226 = call i32 @qh_setsize(ptr noundef %225)
  store i32 %226, ptr %17, align 4, !tbaa !5
  br label %227

227:                                              ; preds = %248, %220
  %228 = load i32, ptr %16, align 4, !tbaa !5
  %229 = load i32, ptr %17, align 4, !tbaa !5
  %230 = icmp slt i32 %228, %229
  br i1 %230, label %231, label %256

231:                                              ; preds = %227
  %232 = load ptr, ptr %12, align 8, !tbaa !9
  %233 = load ptr, ptr %9, align 8, !tbaa !9
  %234 = call i32 @qh_setin(ptr noundef %232, ptr noundef %233)
  %235 = icmp ne i32 %234, 0
  br i1 %235, label %241, label %236

236:                                              ; preds = %231
  %237 = load ptr, ptr %13, align 8, !tbaa !9
  %238 = load ptr, ptr %9, align 8, !tbaa !9
  %239 = call i32 @qh_setin(ptr noundef %237, ptr noundef %238)
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %241, label %247

241:                                              ; preds = %236, %231
  %242 = load ptr, ptr %6, align 8, !tbaa !9
  %243 = getelementptr inbounds %struct.setT, ptr %242, i32 0, i32 1
  %244 = load i32, ptr %16, align 4, !tbaa !5
  %245 = sext i32 %244 to i64
  %246 = getelementptr inbounds [1 x %union.setelemT], ptr %243, i64 0, i64 %245
  store ptr null, ptr %246, align 8, !tbaa !22
  br label %247

247:                                              ; preds = %241, %236
  br label %248

248:                                              ; preds = %247
  %249 = load ptr, ptr %6, align 8, !tbaa !9
  %250 = getelementptr inbounds %struct.setT, ptr %249, i32 0, i32 1
  %251 = load i32, ptr %16, align 4, !tbaa !5
  %252 = add nsw i32 %251, 1
  store i32 %252, ptr %16, align 4, !tbaa !5
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds [1 x %union.setelemT], ptr %250, i64 0, i64 %253
  %255 = load ptr, ptr %254, align 8, !tbaa !22
  store ptr %255, ptr %9, align 8, !tbaa !9
  br label %227, !llvm.loop !25

256:                                              ; preds = %227
  br label %257

257:                                              ; preds = %256, %217
  %258 = load ptr, ptr %6, align 8, !tbaa !9
  call void @qh_setcompact(ptr noundef %258)
  store i32 0, ptr %15, align 4, !tbaa !5
  br label %259

259:                                              ; preds = %292, %257
  %260 = load i32, ptr %18, align 4, !tbaa !5
  %261 = load i32, ptr %5, align 4, !tbaa !5
  %262 = icmp slt i32 %260, %261
  br i1 %262, label %263, label %268

263:                                              ; preds = %259
  %264 = load i32, ptr %15, align 4, !tbaa !5
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %15, align 4, !tbaa !5
  %266 = call ptr @qh_point(i32 noundef %264)
  store ptr %266, ptr %9, align 8, !tbaa !9
  %267 = icmp ne ptr %266, null
  br label %268

268:                                              ; preds = %263, %259
  %269 = phi i1 [ false, %259 ], [ %267, %263 ]
  br i1 %269, label %270, label %293

270:                                              ; preds = %268
  %271 = load ptr, ptr %12, align 8, !tbaa !9
  %272 = load ptr, ptr %9, align 8, !tbaa !9
  %273 = call i32 @qh_setin(ptr noundef %271, ptr noundef %272)
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %292, label %275

275:                                              ; preds = %270
  %276 = load ptr, ptr %13, align 8, !tbaa !9
  %277 = load ptr, ptr %9, align 8, !tbaa !9
  %278 = call i32 @qh_setin(ptr noundef %276, ptr noundef %277)
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %292, label %280

280:                                              ; preds = %275
  %281 = load ptr, ptr %9, align 8, !tbaa !9
  %282 = load ptr, ptr %12, align 8, !tbaa !9
  %283 = load i32, ptr %18, align 4, !tbaa !5
  %284 = call double @qh_detsimplex(ptr noundef %281, ptr noundef %282, i32 noundef %283, ptr noundef %19)
  %285 = load i32, ptr %19, align 4, !tbaa !5
  %286 = icmp ne i32 %285, 0
  br i1 %286, label %291, label %287

287:                                              ; preds = %280
  %288 = load ptr, ptr %9, align 8, !tbaa !9
  call void @qh_setappend(ptr noundef %12, ptr noundef %288)
  %289 = load i32, ptr %18, align 4, !tbaa !5
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %18, align 4, !tbaa !5
  br label %291

291:                                              ; preds = %287, %280
  br label %292

292:                                              ; preds = %291, %275, %270
  br label %259, !llvm.loop !26

293:                                              ; preds = %268
  call void @qh_settempfree(ptr noundef %13)
  %294 = load i32, ptr %5, align 4, !tbaa !5
  %295 = load ptr, ptr %6, align 8, !tbaa !9
  %296 = load ptr, ptr %7, align 8, !tbaa !9
  %297 = load i32, ptr %8, align 4, !tbaa !5
  call void @qh_maxsimplex(i32 noundef %294, ptr noundef %295, ptr noundef %296, i32 noundef %297, ptr noundef %12)
  br label %303

298:                                              ; preds = %75
  %299 = load i32, ptr %5, align 4, !tbaa !5
  %300 = load ptr, ptr %6, align 8, !tbaa !9
  %301 = load ptr, ptr %7, align 8, !tbaa !9
  %302 = load i32, ptr %8, align 4, !tbaa !5
  call void @qh_maxsimplex(i32 noundef %299, ptr noundef %300, ptr noundef %301, i32 noundef %302, ptr noundef %12)
  br label %303

303:                                              ; preds = %298, %293
  br label %304

304:                                              ; preds = %303, %74
  br label %305

305:                                              ; preds = %304, %28
  store ptr null, ptr %9, align 8, !tbaa !9
  %306 = load ptr, ptr %12, align 8, !tbaa !9
  %307 = icmp ne ptr %306, null
  br i1 %307, label %308, label %321

308:                                              ; preds = %305
  %309 = load ptr, ptr %12, align 8, !tbaa !9
  %310 = getelementptr inbounds %struct.setT, ptr %309, i32 0, i32 1
  %311 = getelementptr inbounds [1 x %union.setelemT], ptr %310, i64 0, i64 0
  store ptr %311, ptr %10, align 8, !tbaa !9
  br label %312

312:                                              ; preds = %317, %308
  %313 = load ptr, ptr %10, align 8, !tbaa !9
  %314 = getelementptr inbounds ptr, ptr %313, i32 1
  store ptr %314, ptr %10, align 8, !tbaa !9
  %315 = load ptr, ptr %313, align 8, !tbaa !9
  store ptr %315, ptr %9, align 8, !tbaa !9
  %316 = icmp ne ptr %315, null
  br i1 %316, label %317, label %320

317:                                              ; preds = %312
  %318 = load ptr, ptr %9, align 8, !tbaa !9
  %319 = call ptr @qh_newvertex(ptr noundef %318)
  call void @qh_setaddnth(ptr noundef %11, i32 noundef 0, ptr noundef %319)
  br label %312, !llvm.loop !27

320:                                              ; preds = %312
  br label %321

321:                                              ; preds = %320, %305
  call void @qh_settempfree(ptr noundef %12)
  %322 = load ptr, ptr %11, align 8, !tbaa !9
  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 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, 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
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret ptr %322
}

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

declare i32 @qh_rand() #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #3

declare double @qh_detsimplex(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #1

declare void @qh_setcompact(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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!12 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, 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, !13, i64 64, !13, 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, !13, i64 160, !13, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !13, i64 192, !13, i64 200, !6, i64 208, !6, i64 212, !13, 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, !13, i64 448, !13, i64 456, !13, 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, !13, 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, !13, 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, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !10, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, 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, !14, 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, !13, i64 2664, !6, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !13, i64 2728, !13, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !13, i64 2768, !13, 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, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, 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}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 472}
!16 = !{!13, !13, i64 0}
!17 = !{!12, !6, i64 640}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = !{!12, !6, i64 632}
!22 = !{!7, !7, i64 0}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}


; 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] }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

declare void @qh_setaddnth(ptr noundef, i32 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 ptr @qh_point(i32 noundef) local_unnamed_addr #2

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

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

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_initialvertices(i32 noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #5
  store i32 0, ptr %8, align 4, !tbaa !5
  %9 = add nsw i32 %0, 1
  %10 = tail call ptr @qh_settemp(i32 noundef %9) #5
  store ptr %10, ptr %5, align 8, !tbaa !9
  %11 = tail call ptr @qh_settemp(i32 noundef %9) #5
  store ptr %11, ptr %6, align 8, !tbaa !9
  %12 = load i32, ptr @qh_qh, align 8, !tbaa !11
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %13, label %.loopexit124.sink.split

13:                                               ; preds = %4
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 472), align 8, !tbaa !15
  %.not101 = icmp eq i32 %14, 0
  br i1 %.not101, label %37, label %.preheader123

.preheader123:                                    ; preds = %13
  %15 = tail call i32 @qh_setsize(ptr noundef %11) #5
  %.not118127 = icmp eq i32 %15, %9
  br i1 %.not118127, label %.loopexit124, label %.lr.ph128

.lr.ph128:                                        ; preds = %.preheader123, %._crit_edge
  %16 = call i32 @qh_rand() #5
  %17 = sitofp i32 %16 to double
  %18 = fdiv double %17, 0x41DFFFFFFFC00000
  %19 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !16
  %20 = sitofp i32 %19 to double
  %21 = fmul double %18, %20
  %22 = call double @llvm.floor.f64(double %21)
  %23 = fptosi double %22 to i32
  %24 = load ptr, ptr %6, align 8, !tbaa !9
  %25 = call ptr @qh_point(i32 noundef %23)
  %26 = call i32 @qh_setin(ptr noundef %24, ptr noundef %25) #5
  %.not119125 = icmp eq i32 %26, 0
  br i1 %.not119125, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph128, %.lr.ph
  %.089126 = phi i32 [ %30, %.lr.ph ], [ %23, %.lr.ph128 ]
  %27 = add nsw i32 %.089126, 1
  %28 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !16
  %29 = icmp slt i32 %27, %28
  %30 = select i1 %29, i32 %27, i32 0
  %31 = load ptr, ptr %6, align 8, !tbaa !9
  %32 = call ptr @qh_point(i32 noundef %30)
  %33 = call i32 @qh_setin(ptr noundef %31, ptr noundef %32) #5
  %.not119 = icmp eq i32 %33, 0
  br i1 %.not119, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %.lr.ph, %.lr.ph128
  %.089.lcssa = phi i32 [ %23, %.lr.ph128 ], [ %30, %.lr.ph ]
  %34 = call ptr @qh_point(i32 noundef %.089.lcssa)
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef %34) #5
  %35 = load ptr, ptr %6, align 8, !tbaa !9
  %36 = call i32 @qh_setsize(ptr noundef %35) #5
  %.not118 = icmp eq i32 %36, %9
  br i1 %.not118, label %.loopexit124, label %.lr.ph128, !llvm.loop !19

37:                                               ; preds = %13
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !20
  %39 = icmp sgt i32 %38, 7
  br i1 %39, label %40, label %.loopexit124.sink.split

40:                                               ; preds = %37
  %41 = tail call ptr @qh_settemp(i32 noundef %9) #5
  store ptr %41, ptr %7, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %1, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !21
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef %43) #5
  %44 = getelementptr inbounds i8, ptr %1, i64 16
  %45 = load ptr, ptr %44, align 8, !tbaa !21
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef %45) #5
  %46 = call i32 @llvm.smin.i32(i32 %0, i32 6)
  call void @qh_maxsimplex(i32 noundef %46, ptr noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef nonnull %6) #5
  %47 = load ptr, ptr %6, align 8, !tbaa !9
  %48 = call i32 @qh_setsize(ptr noundef %47) #5
  %49 = load ptr, ptr %42, align 8, !tbaa !21
  %50 = call i32 @qh_setsize(ptr noundef nonnull %1) #5
  %51 = icmp sgt i32 %50, 0
  %.not103129 = icmp slt i32 %48, %0
  %or.cond130 = select i1 %51, i1 %.not103129, i1 false
  br i1 %or.cond130, label %.lr.ph135.preheader, label %._crit_edge136

.lr.ph135.preheader:                              ; preds = %40
  %52 = zext nneg i32 %50 to i64
  br label %.lr.ph135

.lr.ph135:                                        ; preds = %.lr.ph135.preheader, %67
  %indvars.iv = phi i64 [ 0, %.lr.ph135.preheader ], [ %indvars.iv.next, %67 ]
  %.0133 = phi i32 [ %48, %.lr.ph135.preheader ], [ %.1, %67 ]
  %.091131 = phi ptr [ %49, %.lr.ph135.preheader ], [ %69, %67 ]
  %53 = and i64 %indvars.iv, 1
  %.not104 = icmp eq i64 %53, 0
  br i1 %.not104, label %67, label %54

54:                                               ; preds = %.lr.ph135
  %55 = load ptr, ptr %6, align 8, !tbaa !9
  %56 = call i32 @qh_setin(ptr noundef %55, ptr noundef %.091131) #5
  %.not105 = icmp eq i32 %56, 0
  br i1 %.not105, label %57, label %67

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !9
  %59 = call i32 @qh_setin(ptr noundef %58, ptr noundef %.091131) #5
  %.not106 = icmp eq i32 %59, 0
  br i1 %.not106, label %60, label %67

60:                                               ; preds = %57
  %61 = load ptr, ptr %6, align 8, !tbaa !9
  %62 = call double @qh_detsimplex(ptr noundef %.091131, ptr noundef %61, i32 noundef %.0133, ptr noundef nonnull %8) #5
  %63 = load i32, ptr %8, align 4, !tbaa !5
  %.not107 = icmp eq i32 %63, 0
  br i1 %.not107, label %65, label %64

64:                                               ; preds = %60
  call void @qh_setappend(ptr noundef nonnull %7, ptr noundef %.091131) #5
  br label %67

65:                                               ; preds = %60
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef %.091131) #5
  %66 = add nsw i32 %.0133, 1
  br label %67

67:                                               ; preds = %.lr.ph135, %64, %65, %57, %54
  %.1 = phi i32 [ %.0133, %54 ], [ %.0133, %57 ], [ %.0133, %64 ], [ %66, %65 ], [ %.0133, %.lr.ph135 ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %68 = getelementptr inbounds [1 x %union.setelemT], ptr %42, i64 0, i64 %indvars.iv.next
  %69 = load ptr, ptr %68, align 8, !tbaa !21
  %70 = icmp ult i64 %indvars.iv.next, %52
  %.not103 = icmp slt i32 %.1, %0
  %or.cond = select i1 %70, i1 %.not103, i1 false
  br i1 %or.cond, label %.lr.ph135, label %._crit_edge136, !llvm.loop !22

._crit_edge136:                                   ; preds = %67, %40
  %.0.lcssa = phi i32 [ %48, %40 ], [ %.1, %67 ]
  %71 = load ptr, ptr %42, align 8, !tbaa !21
  %72 = call i32 @qh_setsize(ptr noundef nonnull %1) #5
  %73 = icmp sgt i32 %72, 0
  %.not108138 = icmp slt i32 %.0.lcssa, %0
  %or.cond122139 = select i1 %73, i1 %.not108138, i1 false
  br i1 %or.cond122139, label %.lr.ph144.preheader, label %._crit_edge145

.lr.ph144.preheader:                              ; preds = %._crit_edge136
  %74 = zext nneg i32 %72 to i64
  br label %.lr.ph144

.lr.ph144:                                        ; preds = %.lr.ph144.preheader, %90
  %indvars.iv162 = phi i64 [ 0, %.lr.ph144.preheader ], [ %indvars.iv.next163, %90 ]
  %.3142 = phi i32 [ %.0.lcssa, %.lr.ph144.preheader ], [ %.4, %90 ]
  %.192140 = phi ptr [ %71, %.lr.ph144.preheader ], [ %92, %90 ]
  %75 = and i64 %indvars.iv162, 1
  %76 = icmp eq i64 %75, 0
  br i1 %76, label %77, label %90

77:                                               ; preds = %.lr.ph144
  %78 = load ptr, ptr %6, align 8, !tbaa !9
  %79 = call i32 @qh_setin(ptr noundef %78, ptr noundef %.192140) #5
  %.not109 = icmp eq i32 %79, 0
  br i1 %.not109, label %80, label %90

80:                                               ; preds = %77
  %81 = load ptr, ptr %7, align 8, !tbaa !9
  %82 = call i32 @qh_setin(ptr noundef %81, ptr noundef %.192140) #5
  %.not110 = icmp eq i32 %82, 0
  br i1 %.not110, label %83, label %90

83:                                               ; preds = %80
  %84 = load ptr, ptr %6, align 8, !tbaa !9
  %85 = call double @qh_detsimplex(ptr noundef %.192140, ptr noundef %84, i32 noundef %.3142, ptr noundef nonnull %8) #5
  %86 = load i32, ptr %8, align 4, !tbaa !5
  %.not111 = icmp eq i32 %86, 0
  br i1 %.not111, label %88, label %87

87:                                               ; preds = %83
  call void @qh_setappend(ptr noundef nonnull %7, ptr noundef %.192140) #5
  br label %90

88:                                               ; preds = %83
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef %.192140) #5
  %89 = add nsw i32 %.3142, 1
  br label %90

90:                                               ; preds = %.lr.ph144, %87, %88, %80, %77
  %.4 = phi i32 [ %.3142, %77 ], [ %.3142, %80 ], [ %.3142, %87 ], [ %89, %88 ], [ %.3142, %.lr.ph144 ]
  %indvars.iv.next163 = add nuw nsw i64 %indvars.iv162, 1
  %91 = getelementptr inbounds [1 x %union.setelemT], ptr %42, i64 0, i64 %indvars.iv.next163
  %92 = load ptr, ptr %91, align 8, !tbaa !21
  %93 = icmp ult i64 %indvars.iv.next163, %74
  %.not108 = icmp slt i32 %.4, %0
  %or.cond122 = select i1 %93, i1 %.not108, i1 false
  br i1 %or.cond122, label %.lr.ph144, label %._crit_edge145, !llvm.loop !23

._crit_edge145:                                   ; preds = %90, %._crit_edge136
  %.3.lcssa = phi i32 [ %.0.lcssa, %._crit_edge136 ], [ %.4, %90 ]
  %94 = load ptr, ptr %42, align 8, !tbaa !21
  %95 = call i32 @qh_setsize(ptr noundef nonnull %1) #5
  %96 = icmp sgt i32 %95, 0
  br i1 %96, label %.lr.ph150.preheader, label %._crit_edge151

.lr.ph150.preheader:                              ; preds = %._crit_edge145
  %wide.trip.count = zext nneg i32 %95 to i64
  br label %.lr.ph150

.lr.ph150:                                        ; preds = %.lr.ph150.preheader, %104
  %indvars.iv165 = phi i64 [ 0, %.lr.ph150.preheader ], [ %indvars.iv.next166, %104 ]
  %.293147 = phi ptr [ %94, %.lr.ph150.preheader ], [ %106, %104 ]
  %97 = load ptr, ptr %6, align 8, !tbaa !9
  %98 = call i32 @qh_setin(ptr noundef %97, ptr noundef %.293147) #5
  %.not116 = icmp eq i32 %98, 0
  br i1 %.not116, label %99, label %102

99:                                               ; preds = %.lr.ph150
  %100 = load ptr, ptr %7, align 8, !tbaa !9
  %101 = call i32 @qh_setin(ptr noundef %100, ptr noundef %.293147) #5
  %.not117 = icmp eq i32 %101, 0
  br i1 %.not117, label %104, label %102

102:                                              ; preds = %99, %.lr.ph150
  %103 = getelementptr inbounds [1 x %union.setelemT], ptr %42, i64 0, i64 %indvars.iv165
  store ptr null, ptr %103, align 8, !tbaa !21
  br label %104

104:                                              ; preds = %99, %102
  %indvars.iv.next166 = add nuw nsw i64 %indvars.iv165, 1
  %105 = getelementptr inbounds [1 x %union.setelemT], ptr %42, i64 0, i64 %indvars.iv.next166
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %exitcond.not = icmp eq i64 %indvars.iv.next166, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge151, label %.lr.ph150, !llvm.loop !24

._crit_edge151:                                   ; preds = %104, %._crit_edge145
  call void @qh_setcompact(ptr noundef nonnull %1) #5
  %107 = icmp slt i32 %.3.lcssa, %0
  br i1 %107, label %.lr.ph155, label %.critedge

.lr.ph155:                                        ; preds = %._crit_edge151, %122
  %.6153 = phi i32 [ %.7, %122 ], [ %.3.lcssa, %._crit_edge151 ]
  %.190152 = phi i32 [ %108, %122 ], [ 0, %._crit_edge151 ]
  %108 = add nuw nsw i32 %.190152, 1
  %109 = call ptr @qh_point(i32 noundef %.190152)
  %.not112 = icmp eq ptr %109, null
  br i1 %.not112, label %.critedge, label %110

110:                                              ; preds = %.lr.ph155
  %111 = load ptr, ptr %6, align 8, !tbaa !9
  %112 = call i32 @qh_setin(ptr noundef %111, ptr noundef nonnull %109) #5
  %.not113 = icmp eq i32 %112, 0
  br i1 %.not113, label %113, label %122

113:                                              ; preds = %110
  %114 = load ptr, ptr %7, align 8, !tbaa !9
  %115 = call i32 @qh_setin(ptr noundef %114, ptr noundef nonnull %109) #5
  %.not114 = icmp eq i32 %115, 0
  br i1 %.not114, label %116, label %122

116:                                              ; preds = %113
  %117 = load ptr, ptr %6, align 8, !tbaa !9
  %118 = call double @qh_detsimplex(ptr noundef nonnull %109, ptr noundef %117, i32 noundef %.6153, ptr noundef nonnull %8) #5
  %119 = load i32, ptr %8, align 4, !tbaa !5
  %.not115 = icmp eq i32 %119, 0
  br i1 %.not115, label %120, label %122

120:                                              ; preds = %116
  call void @qh_setappend(ptr noundef nonnull %6, ptr noundef nonnull %109) #5
  %121 = add nsw i32 %.6153, 1
  br label %122

122:                                              ; preds = %116, %120, %113, %110
  %.7 = phi i32 [ %.6153, %110 ], [ %.6153, %113 ], [ %.6153, %116 ], [ %121, %120 ]
  %123 = icmp slt i32 %.7, %0
  br i1 %123, label %.lr.ph155, label %.critedge, !llvm.loop !25

.critedge:                                        ; preds = %.lr.ph155, %122, %._crit_edge151
  call void @qh_settempfree(ptr noundef nonnull %7) #5
  br label %.loopexit124.sink.split

.loopexit124.sink.split:                          ; preds = %37, %4, %.critedge
  %.sink = phi ptr [ %1, %.critedge ], [ null, %4 ], [ %1, %37 ]
  call void @qh_maxsimplex(i32 noundef %0, ptr noundef %.sink, ptr noundef %2, i32 noundef %3, ptr noundef nonnull %6) #5
  br label %.loopexit124

.loopexit124:                                     ; preds = %._crit_edge, %.loopexit124.sink.split, %.preheader123
  %124 = load ptr, ptr %6, align 8, !tbaa !9
  %.not120 = icmp eq ptr %124, null
  br i1 %.not120, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit124
  %.094157 = getelementptr inbounds i8, ptr %124, i64 8
  %125 = load ptr, ptr %.094157, align 8, !tbaa !9
  %.not121158 = icmp eq ptr %125, null
  br i1 %.not121158, label %.loopexit, label %.lr.ph160

.lr.ph160:                                        ; preds = %.preheader, %.lr.ph160
  %126 = phi ptr [ %128, %.lr.ph160 ], [ %125, %.preheader ]
  %.094159 = phi ptr [ %.094, %.lr.ph160 ], [ %.094157, %.preheader ]
  %127 = call ptr @qh_newvertex(ptr noundef nonnull %126)
  call void @qh_setaddnth(ptr noundef nonnull %5, i32 noundef 0, ptr noundef %127) #5
  %.094 = getelementptr inbounds i8, ptr %.094159, i64 8
  %128 = load ptr, ptr %.094, align 8, !tbaa !9
  %.not121 = icmp eq ptr %128, null
  br i1 %.not121, label %.loopexit, label %.lr.ph160, !llvm.loop !26

.loopexit:                                        ; preds = %.lr.ph160, %.preheader, %.loopexit124
  call void @qh_settempfree(ptr noundef nonnull %6) #5
  %129 = load ptr, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  ret ptr %129
}

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

declare i32 @qh_rand() local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.floor.f64(double) #3

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

declare void @qh_setcompact(ptr noundef) local_unnamed_addr #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #4

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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, !6, i64 0}
!12 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !13, 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, !13, i64 64, !13, 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, !13, i64 160, !13, i64 168, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !13, i64 192, !13, i64 200, !6, i64 208, !6, i64 212, !13, 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, !13, i64 448, !13, i64 456, !13, 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, !13, 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, !13, 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, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !13, i64 1856, !13, i64 1864, !10, i64 1872, !13, i64 1880, !13, i64 1888, !13, i64 1896, !13, 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, !14, 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, !13, i64 2664, !6, i64 2672, !13, i64 2680, !13, i64 2688, !13, i64 2696, !6, i64 2704, !6, i64 2708, !6, i64 2712, !6, i64 2716, !6, i64 2720, !13, i64 2728, !13, i64 2736, !6, i64 2744, !6, i64 2748, !6, i64 2752, !6, i64 2756, !6, i64 2760, !6, i64 2764, !13, i64 2768, !13, 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, !13, i64 2920, !13, i64 2928, !13, i64 2936, !13, 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}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 472}
!16 = !{!12, !6, i64 640}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = !{!12, !6, i64 632}
!21 = !{!7, !7, i64 0}
!22 = distinct !{!22, !18}
!23 = distinct !{!23, !18}
!24 = distinct !{!24, !18}
!25 = distinct !{!25, !18}
!26 = distinct !{!26, !18}


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