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

; 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, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%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.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }

@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 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 i32 @qh_setsize(ptr noundef, ptr noundef) #1

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

declare void @qh_errexit(ptr noundef, 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
define dso_local ptr @qh_detvnorm(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  store ptr null, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 162
  %41 = load i32, ptr %40, align 8, !tbaa !9
  %42 = call ptr @qh_settemp(ptr noundef %38, i32 noundef %41)
  store ptr %42, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  store i32 0, ptr %30, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  store i32 0, ptr %31, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  store i32 0, ptr %32, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.qhT, ptr %43, i32 0, i32 110
  %45 = load i32, ptr %44, align 8, !tbaa !17
  %46 = sub nsw i32 %45, 1
  store i32 %46, ptr %33, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  store double 0.000000e+00, ptr %37, align 8, !tbaa !18
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 227
  %49 = load ptr, ptr %48, align 8, !tbaa !19
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.qhT, ptr %50, i32 0, i32 110
  %52 = load i32, ptr %51, align 8, !tbaa !17
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.qhT, ptr %53, i32 0, i32 110
  %55 = load i32, ptr %54, align 8, !tbaa !17
  %56 = mul nsw i32 %52, %55
  %57 = sext i32 %56 to i64
  %58 = getelementptr inbounds double, ptr %49, i64 %57
  store ptr %58, ptr %23, align 8, !tbaa !5
  store i32 0, ptr %14, align 4, !tbaa !16
  br label %59

59:                                               ; preds = %84, %5
  %60 = load i32, ptr %14, align 4, !tbaa !16
  %61 = load i32, ptr %33, align 4, !tbaa !16
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %87

63:                                               ; preds = %59
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.vertexT, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !20
  %67 = load i32, ptr %14, align 4, !tbaa !16
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds double, ptr %66, i64 %68
  %70 = load double, ptr %69, align 8, !tbaa !18
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.vertexT, ptr %71, i32 0, i32 2
  %73 = load ptr, ptr %72, align 8, !tbaa !20
  %74 = load i32, ptr %14, align 4, !tbaa !16
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds double, ptr %73, i64 %75
  %77 = load double, ptr %76, align 8, !tbaa !18
  %78 = fadd double %70, %77
  %79 = fdiv double %78, 2.000000e+00
  %80 = load ptr, ptr %23, align 8, !tbaa !5
  %81 = load i32, ptr %14, align 4, !tbaa !16
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds double, ptr %80, i64 %82
  store double %79, ptr %83, align 8, !tbaa !18
  br label %84

84:                                               ; preds = %63
  %85 = load i32, ptr %14, align 4, !tbaa !16
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %14, align 4, !tbaa !16
  br label %59, !llvm.loop !22

87:                                               ; preds = %59
  store ptr null, ptr %11, align 8, !tbaa !5
  %88 = load ptr, ptr %9, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %127

90:                                               ; preds = %87
  %91 = load ptr, ptr %9, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.setT, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds [1 x %union.setelemT], ptr %92, i64 0, i64 0
  store ptr %93, ptr %12, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %125, %90
  %95 = load ptr, ptr %12, align 8, !tbaa !5
  %96 = getelementptr inbounds ptr, ptr %95, i32 1
  store ptr %96, ptr %12, align 8, !tbaa !5
  %97 = load ptr, ptr %95, align 8, !tbaa !5
  store ptr %97, ptr %11, align 8, !tbaa !5
  %98 = icmp ne ptr %97, null
  br i1 %98, label %99, label %126

99:                                               ; preds = %94
  %100 = load i32, ptr %32, align 4, !tbaa !16
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %32, align 4, !tbaa !16
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.facetT, ptr %102, i32 0, i32 13
  %104 = load i32, ptr %103, align 8, !tbaa !24
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %107, label %106

106:                                              ; preds = %99
  store i32 1, ptr %31, align 4, !tbaa !16
  br label %125

107:                                              ; preds = %99
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.facetT, ptr %108, i32 0, i32 5
  %110 = load ptr, ptr %109, align 8, !tbaa !26
  %111 = icmp ne ptr %110, null
  br i1 %111, label %120, label %112

112:                                              ; preds = %107
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.facetT, ptr %114, i32 0, i32 8
  %116 = load ptr, ptr %115, align 8, !tbaa !27
  %117 = call ptr @qh_facetcenter(ptr noundef %113, ptr noundef %116)
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.facetT, ptr %118, i32 0, i32 5
  store ptr %117, ptr %119, align 8, !tbaa !26
  br label %120

120:                                              ; preds = %112, %107
  %121 = load ptr, ptr %6, align 8, !tbaa !5
  %122 = load ptr, ptr %11, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 5
  %124 = load ptr, ptr %123, align 8, !tbaa !26
  call void @qh_setappend(ptr noundef %121, ptr noundef %29, ptr noundef %124)
  br label %125

125:                                              ; preds = %120, %106
  br label %94, !llvm.loop !28

126:                                              ; preds = %94
  br label %127

127:                                              ; preds = %126, %87
  %128 = load i32, ptr %32, align 4, !tbaa !16
  %129 = load i32, ptr %33, align 4, !tbaa !16
  %130 = icmp sgt i32 %128, %129
  br i1 %130, label %131, label %153

131:                                              ; preds = %127
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.qhT, ptr %133, i32 0, i32 162
  %135 = load i32, ptr %134, align 8, !tbaa !9
  %136 = call ptr @qh_settemp(ptr noundef %132, i32 noundef %135)
  store ptr %136, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %6, align 8, !tbaa !5
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.vertexT, ptr %138, i32 0, i32 2
  %140 = load ptr, ptr %139, align 8, !tbaa !20
  call void @qh_setappend(ptr noundef %137, ptr noundef %19, ptr noundef %140)
  %141 = load i32, ptr %31, align 4, !tbaa !16
  %142 = icmp ne i32 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %131
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = load ptr, ptr %23, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %144, ptr noundef %19, ptr noundef %145)
  br label %146

146:                                              ; preds = %143, %131
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = load i32, ptr %33, align 4, !tbaa !16
  %149 = load ptr, ptr %29, align 8, !tbaa !5
  call void @qh_maxsimplex(ptr noundef %147, i32 noundef %148, ptr noundef %149, ptr noundef null, i32 noundef 0, ptr noundef %19)
  %150 = load ptr, ptr %6, align 8, !tbaa !5
  %151 = load ptr, ptr %19, align 8, !tbaa !5
  %152 = call ptr @qh_setdelnth(ptr noundef %150, ptr noundef %151, i32 noundef 0)
  br label %173

153:                                              ; preds = %127
  %154 = load i32, ptr %32, align 4, !tbaa !16
  %155 = load i32, ptr %33, align 4, !tbaa !16
  %156 = icmp eq i32 %154, %155
  br i1 %156, label %157, label %165

157:                                              ; preds = %153
  %158 = load i32, ptr %31, align 4, !tbaa !16
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %163

160:                                              ; preds = %157
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = load ptr, ptr %23, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %161, ptr noundef %29, ptr noundef %162)
  br label %163

163:                                              ; preds = %160, %157
  %164 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %164, ptr %19, align 8, !tbaa !5
  br label %172

165:                                              ; preds = %153
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load ptr, ptr %6, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.qhT, ptr %167, i32 0, i32 158
  %169 = load ptr, ptr %168, align 8, !tbaa !29
  %170 = load i32, ptr %32, align 4, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %166, ptr noundef %169, i32 noundef 6216, ptr noundef @.str.5, i32 noundef %170)
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %171, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %172

172:                                              ; preds = %165, %163
  br label %173

173:                                              ; preds = %172, %146
  store i32 0, ptr %13, align 4, !tbaa !16
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.qhT, ptr %174, i32 0, i32 227
  %176 = load ptr, ptr %175, align 8, !tbaa !19
  store ptr %176, ptr %27, align 8, !tbaa !5
  %177 = load ptr, ptr %19, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.setT, ptr %177, i32 0, i32 1
  %179 = getelementptr inbounds [1 x %union.setelemT], ptr %178, i64 0, i64 0
  %180 = load ptr, ptr %179, align 8, !tbaa !30
  store ptr %180, ptr %22, align 8, !tbaa !5
  store ptr null, ptr %20, align 8, !tbaa !5
  %181 = load ptr, ptr %19, align 8, !tbaa !5
  %182 = icmp ne ptr %181, null
  br i1 %182, label %183, label %235

183:                                              ; preds = %173
  %184 = load ptr, ptr %19, align 8, !tbaa !5
  %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 %21, align 8, !tbaa !5
  br label %187

187:                                              ; preds = %233, %183
  %188 = load ptr, ptr %21, align 8, !tbaa !5
  %189 = getelementptr inbounds ptr, ptr %188, i32 1
  store ptr %189, ptr %21, align 8, !tbaa !5
  %190 = load ptr, ptr %188, align 8, !tbaa !5
  store ptr %190, ptr %20, align 8, !tbaa !5
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %234

192:                                              ; preds = %187
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qhT, ptr %193, i32 0, i32 29
  %195 = load i32, ptr %194, align 8, !tbaa !31
  %196 = icmp sge i32 %195, 4
  br i1 %196, label %197, label %203

197:                                              ; preds = %192
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.qhT, ptr %199, i32 0, i32 158
  %201 = load ptr, ptr %200, align 8, !tbaa !29
  %202 = load i32, ptr %33, align 4, !tbaa !16
  call void @qh_printmatrix(ptr noundef %198, ptr noundef %201, ptr noundef @.str.6, ptr noundef %20, i32 noundef 1, i32 noundef %202)
  br label %203

203:                                              ; preds = %197, %192
  %204 = load ptr, ptr %20, align 8, !tbaa !5
  %205 = load ptr, ptr %22, align 8, !tbaa !5
  %206 = icmp ne ptr %204, %205
  br i1 %206, label %207, label %233

207:                                              ; preds = %203
  %208 = load ptr, ptr %27, align 8, !tbaa !5
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.qhT, ptr %209, i32 0, i32 228
  %211 = load ptr, ptr %210, align 8, !tbaa !32
  %212 = load i32, ptr %13, align 4, !tbaa !16
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %13, align 4, !tbaa !16
  %214 = sext i32 %212 to i64
  %215 = getelementptr inbounds ptr, ptr %211, i64 %214
  store ptr %208, ptr %215, align 8, !tbaa !5
  %216 = load ptr, ptr %22, align 8, !tbaa !5
  store ptr %216, ptr %26, align 8, !tbaa !5
  %217 = load i32, ptr %33, align 4, !tbaa !16
  store i32 %217, ptr %14, align 4, !tbaa !16
  br label %218

218:                                              ; preds = %222, %207
  %219 = load i32, ptr %14, align 4, !tbaa !16
  %220 = add nsw i32 %219, -1
  store i32 %220, ptr %14, align 4, !tbaa !16
  %221 = icmp ne i32 %219, 0
  br i1 %221, label %222, label %232

222:                                              ; preds = %218
  %223 = load ptr, ptr %20, align 8, !tbaa !5
  %224 = getelementptr inbounds double, ptr %223, i32 1
  store ptr %224, ptr %20, align 8, !tbaa !5
  %225 = load double, ptr %223, align 8, !tbaa !18
  %226 = load ptr, ptr %26, align 8, !tbaa !5
  %227 = getelementptr inbounds double, ptr %226, i32 1
  store ptr %227, ptr %26, align 8, !tbaa !5
  %228 = load double, ptr %226, align 8, !tbaa !18
  %229 = fsub double %225, %228
  %230 = load ptr, ptr %27, align 8, !tbaa !5
  %231 = getelementptr inbounds double, ptr %230, i32 1
  store ptr %231, ptr %27, align 8, !tbaa !5
  store double %229, ptr %230, align 8, !tbaa !18
  br label %218, !llvm.loop !33

232:                                              ; preds = %218
  br label %233

233:                                              ; preds = %232, %203
  br label %187, !llvm.loop !34

234:                                              ; preds = %187
  br label %235

235:                                              ; preds = %234, %173
  %236 = load ptr, ptr %27, align 8, !tbaa !5
  %237 = load ptr, ptr %6, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.qhT, ptr %237, i32 0, i32 228
  %239 = load ptr, ptr %238, align 8, !tbaa !32
  %240 = load i32, ptr %13, align 4, !tbaa !16
  %241 = sext i32 %240 to i64
  %242 = getelementptr inbounds ptr, ptr %239, i64 %241
  store ptr %236, ptr %242, align 8, !tbaa !5
  %243 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %243, ptr %24, align 8, !tbaa !5
  %244 = load ptr, ptr %6, align 8, !tbaa !5
  %245 = load i32, ptr %33, align 4, !tbaa !16
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.qhT, ptr %246, i32 0, i32 228
  %248 = load ptr, ptr %247, align 8, !tbaa !32
  %249 = load ptr, ptr %22, align 8, !tbaa !5
  %250 = load ptr, ptr %24, align 8, !tbaa !5
  call void @qh_sethyperplane_gauss(ptr noundef %244, i32 noundef %245, ptr noundef %248, ptr noundef %249, i32 noundef 1, ptr noundef %250, ptr noundef %35, ptr noundef %30)
  %251 = load ptr, ptr %6, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.qhT, ptr %251, i32 0, i32 26
  %253 = load ptr, ptr %252, align 8, !tbaa !35
  %254 = load ptr, ptr %8, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.vertexT, ptr %254, i32 0, i32 2
  %256 = load ptr, ptr %255, align 8, !tbaa !20
  %257 = icmp eq ptr %253, %256
  br i1 %257, label %258, label %262

258:                                              ; preds = %235
  %259 = load ptr, ptr %8, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.vertexT, ptr %259, i32 0, i32 2
  %261 = load ptr, ptr %260, align 8, !tbaa !20
  store ptr %261, ptr %25, align 8, !tbaa !5
  br label %266

262:                                              ; preds = %235
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.vertexT, ptr %263, i32 0, i32 2
  %265 = load ptr, ptr %264, align 8, !tbaa !20
  store ptr %265, ptr %25, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %262, %258
  %267 = load ptr, ptr %6, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.qhT, ptr %267, i32 0, i32 258
  %269 = getelementptr inbounds %struct.qhstatT, ptr %268, i32 0, i32 0
  %270 = getelementptr inbounds [249 x %union.intrealT], ptr %269, i64 0, i64 60
  %271 = load i32, ptr %270, align 8, !tbaa !30
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %270, align 8, !tbaa !30
  %273 = load i32, ptr %33, align 4, !tbaa !16
  %274 = load ptr, ptr %25, align 8, !tbaa !5
  %275 = load ptr, ptr %24, align 8, !tbaa !5
  %276 = call double @qh_distnorm(i32 noundef %273, ptr noundef %274, ptr noundef %275, ptr noundef %35)
  store double %276, ptr %34, align 8, !tbaa !18
  %277 = load double, ptr %34, align 8, !tbaa !18
  %278 = fcmp ogt double %277, 0.000000e+00
  br i1 %278, label %279, label %296

279:                                              ; preds = %266
  %280 = load double, ptr %35, align 8, !tbaa !18
  %281 = fneg double %280
  store double %281, ptr %35, align 8, !tbaa !18
  %282 = load ptr, ptr %24, align 8, !tbaa !5
  store ptr %282, ptr %28, align 8, !tbaa !5
  %283 = load i32, ptr %33, align 4, !tbaa !16
  store i32 %283, ptr %14, align 4, !tbaa !16
  br label %284

284:                                              ; preds = %288, %279
  %285 = load i32, ptr %14, align 4, !tbaa !16
  %286 = add nsw i32 %285, -1
  store i32 %286, ptr %14, align 4, !tbaa !16
  %287 = icmp ne i32 %285, 0
  br i1 %287, label %288, label %295

288:                                              ; preds = %284
  %289 = load ptr, ptr %28, align 8, !tbaa !5
  %290 = load double, ptr %289, align 8, !tbaa !18
  %291 = fneg double %290
  %292 = load ptr, ptr %28, align 8, !tbaa !5
  store double %291, ptr %292, align 8, !tbaa !18
  %293 = load ptr, ptr %28, align 8, !tbaa !5
  %294 = getelementptr inbounds double, ptr %293, i32 1
  store ptr %294, ptr %28, align 8, !tbaa !5
  br label %284, !llvm.loop !36

295:                                              ; preds = %284
  br label %296

296:                                              ; preds = %295, %266
  %297 = load ptr, ptr %6, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.qhT, ptr %297, i32 0, i32 101
  %299 = load i32, ptr %298, align 4, !tbaa !37
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %306, label %301

301:                                              ; preds = %296
  %302 = load ptr, ptr %6, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.qhT, ptr %302, i32 0, i32 67
  %304 = load i32, ptr %303, align 8, !tbaa !38
  %305 = icmp ne i32 %304, 0
  br i1 %305, label %306, label %601

306:                                              ; preds = %301, %296
  %307 = load ptr, ptr %6, align 8, !tbaa !5
  %308 = load ptr, ptr %7, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.vertexT, ptr %308, i32 0, i32 2
  %310 = load ptr, ptr %309, align 8, !tbaa !20
  %311 = call i32 @qh_pointid(ptr noundef %307, ptr noundef %310)
  store i32 %311, ptr %15, align 4, !tbaa !16
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  %313 = load ptr, ptr %8, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.vertexT, ptr %313, i32 0, i32 2
  %315 = load ptr, ptr %314, align 8, !tbaa !20
  %316 = call i32 @qh_pointid(ptr noundef %312, ptr noundef %315)
  store i32 %316, ptr %16, align 4, !tbaa !16
  %317 = load i32, ptr %31, align 4, !tbaa !16
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %499, label %319

319:                                              ; preds = %306
  %320 = load ptr, ptr %6, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.qhT, ptr %320, i32 0, i32 258
  %322 = getelementptr inbounds %struct.qhstatT, ptr %321, i32 0, i32 0
  %323 = getelementptr inbounds [249 x %union.intrealT], ptr %322, i64 0, i64 62
  %324 = load i32, ptr %323, align 8, !tbaa !30
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %323, align 8, !tbaa !30
  %326 = load i32, ptr %33, align 4, !tbaa !16
  %327 = load ptr, ptr %23, align 8, !tbaa !5
  %328 = load ptr, ptr %24, align 8, !tbaa !5
  %329 = call double @qh_distnorm(i32 noundef %326, ptr noundef %327, ptr noundef %328, ptr noundef %35)
  store double %329, ptr %34, align 8, !tbaa !18
  %330 = load double, ptr %34, align 8, !tbaa !18
  %331 = fcmp olt double %330, 0.000000e+00
  br i1 %331, label %332, label %335

332:                                              ; preds = %319
  %333 = load double, ptr %34, align 8, !tbaa !18
  %334 = fneg double %333
  store double %334, ptr %34, align 8, !tbaa !18
  br label %335

335:                                              ; preds = %332, %319
  %336 = load ptr, ptr %6, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.qhT, ptr %336, i32 0, i32 258
  %338 = getelementptr inbounds %struct.qhstatT, ptr %337, i32 0, i32 0
  %339 = getelementptr inbounds [249 x %union.intrealT], ptr %338, i64 0, i64 205
  %340 = load i32, ptr %339, align 8, !tbaa !30
  %341 = add nsw i32 %340, 1
  store i32 %341, ptr %339, align 8, !tbaa !30
  %342 = load ptr, ptr %6, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.qhT, ptr %342, i32 0, i32 258
  %344 = getelementptr inbounds %struct.qhstatT, ptr %343, i32 0, i32 0
  %345 = getelementptr inbounds [249 x %union.intrealT], ptr %344, i64 0, i64 207
  %346 = load double, ptr %345, align 8, !tbaa !30
  %347 = load double, ptr %34, align 8, !tbaa !18
  %348 = fcmp olt double %346, %347
  br i1 %348, label %349, label %355

349:                                              ; preds = %335
  %350 = load double, ptr %34, align 8, !tbaa !18
  %351 = load ptr, ptr %6, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.qhT, ptr %351, i32 0, i32 258
  %353 = getelementptr inbounds %struct.qhstatT, ptr %352, i32 0, i32 0
  %354 = getelementptr inbounds [249 x %union.intrealT], ptr %353, i64 0, i64 207
  store double %350, ptr %354, align 8, !tbaa !30
  br label %355

355:                                              ; preds = %349, %335
  %356 = load double, ptr %34, align 8, !tbaa !18
  %357 = load ptr, ptr %6, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.qhT, ptr %357, i32 0, i32 258
  %359 = getelementptr inbounds %struct.qhstatT, ptr %358, i32 0, i32 0
  %360 = getelementptr inbounds [249 x %union.intrealT], ptr %359, i64 0, i64 206
  %361 = load double, ptr %360, align 8, !tbaa !30
  %362 = fadd double %361, %356
  store double %362, ptr %360, align 8, !tbaa !30
  %363 = load ptr, ptr %6, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.qhT, ptr %363, i32 0, i32 29
  %365 = load i32, ptr %364, align 8, !tbaa !31
  %366 = icmp sge i32 %365, 4
  br i1 %366, label %367, label %375

367:                                              ; preds = %355
  %368 = load ptr, ptr %6, align 8, !tbaa !5
  %369 = load ptr, ptr %6, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.qhT, ptr %369, i32 0, i32 158
  %371 = load ptr, ptr %370, align 8, !tbaa !29
  %372 = load i32, ptr %15, align 4, !tbaa !16
  %373 = load i32, ptr %16, align 4, !tbaa !16
  %374 = load double, ptr %34, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %368, ptr noundef %371, i32 noundef 4014, ptr noundef @.str.7, i32 noundef %372, i32 noundef %373, double noundef %374)
  br label %375

375:                                              ; preds = %367, %355
  store i32 0, ptr %14, align 4, !tbaa !16
  br label %376

376:                                              ; preds = %400, %375
  %377 = load i32, ptr %14, align 4, !tbaa !16
  %378 = load i32, ptr %33, align 4, !tbaa !16
  %379 = icmp slt i32 %377, %378
  br i1 %379, label %380, label %403

380:                                              ; preds = %376
  %381 = load ptr, ptr %8, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.vertexT, ptr %381, i32 0, i32 2
  %383 = load ptr, ptr %382, align 8, !tbaa !20
  %384 = load i32, ptr %14, align 4, !tbaa !16
  %385 = sext i32 %384 to i64
  %386 = getelementptr inbounds double, ptr %383, i64 %385
  %387 = load double, ptr %386, align 8, !tbaa !18
  %388 = load ptr, ptr %7, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.vertexT, ptr %388, i32 0, i32 2
  %390 = load ptr, ptr %389, align 8, !tbaa !20
  %391 = load i32, ptr %14, align 4, !tbaa !16
  %392 = sext i32 %391 to i64
  %393 = getelementptr inbounds double, ptr %390, i64 %392
  %394 = load double, ptr %393, align 8, !tbaa !18
  %395 = fsub double %387, %394
  %396 = load ptr, ptr %23, align 8, !tbaa !5
  %397 = load i32, ptr %14, align 4, !tbaa !16
  %398 = sext i32 %397 to i64
  %399 = getelementptr inbounds double, ptr %396, i64 %398
  store double %395, ptr %399, align 8, !tbaa !18
  br label %400

400:                                              ; preds = %380
  %401 = load i32, ptr %14, align 4, !tbaa !16
  %402 = add nsw i32 %401, 1
  store i32 %402, ptr %14, align 4, !tbaa !16
  br label %376, !llvm.loop !39

403:                                              ; preds = %376
  %404 = load ptr, ptr %6, align 8, !tbaa !5
  %405 = load ptr, ptr %23, align 8, !tbaa !5
  %406 = load i32, ptr %33, align 4, !tbaa !16
  call void @qh_normalize(ptr noundef %404, ptr noundef %405, i32 noundef %406, i32 noundef 0)
  %407 = load i32, ptr %33, align 4, !tbaa !16
  %408 = load ptr, ptr %23, align 8, !tbaa !5
  %409 = load ptr, ptr %24, align 8, !tbaa !5
  %410 = call double @qh_distnorm(i32 noundef %407, ptr noundef %408, ptr noundef %409, ptr noundef %37)
  store double %410, ptr %36, align 8, !tbaa !18
  %411 = load double, ptr %36, align 8, !tbaa !18
  %412 = fcmp olt double %411, 0.000000e+00
  br i1 %412, label %413, label %416

413:                                              ; preds = %403
  %414 = load double, ptr %36, align 8, !tbaa !18
  %415 = fadd double %414, 1.000000e+00
  store double %415, ptr %36, align 8, !tbaa !18
  br label %419

416:                                              ; preds = %403
  %417 = load double, ptr %36, align 8, !tbaa !18
  %418 = fsub double %417, 1.000000e+00
  store double %418, ptr %36, align 8, !tbaa !18
  br label %419

419:                                              ; preds = %416, %413
  %420 = load double, ptr %36, align 8, !tbaa !18
  %421 = fcmp olt double %420, 0.000000e+00
  br i1 %421, label %422, label %425

422:                                              ; preds = %419
  %423 = load double, ptr %36, align 8, !tbaa !18
  %424 = fneg double %423
  store double %424, ptr %36, align 8, !tbaa !18
  br label %425

425:                                              ; preds = %422, %419
  %426 = load ptr, ptr %6, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.qhT, ptr %426, i32 0, i32 29
  %428 = load i32, ptr %427, align 8, !tbaa !31
  %429 = icmp sge i32 %428, 4
  br i1 %429, label %430, label %439

430:                                              ; preds = %425
  %431 = load ptr, ptr %6, align 8, !tbaa !5
  %432 = load ptr, ptr %6, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.qhT, ptr %432, i32 0, i32 158
  %434 = load ptr, ptr %433, align 8, !tbaa !29
  %435 = load i32, ptr %15, align 4, !tbaa !16
  %436 = load i32, ptr %16, align 4, !tbaa !16
  %437 = load double, ptr %36, align 8, !tbaa !18
  %438 = load i32, ptr %30, align 4, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %431, ptr noundef %434, i32 noundef 4015, ptr noundef @.str.8, i32 noundef %435, i32 noundef %436, double noundef %437, i32 noundef %438)
  br label %439

439:                                              ; preds = %430, %425
  %440 = load i32, ptr %30, align 4, !tbaa !16
  %441 = icmp ne i32 %440, 0
  br i1 %441, label %442, label %470

442:                                              ; preds = %439
  %443 = load ptr, ptr %6, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.qhT, ptr %443, i32 0, i32 258
  %445 = getelementptr inbounds %struct.qhstatT, ptr %444, i32 0, i32 0
  %446 = getelementptr inbounds [249 x %union.intrealT], ptr %445, i64 0, i64 202
  %447 = load i32, ptr %446, align 8, !tbaa !30
  %448 = add nsw i32 %447, 1
  store i32 %448, ptr %446, align 8, !tbaa !30
  %449 = load ptr, ptr %6, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.qhT, ptr %449, i32 0, i32 258
  %451 = getelementptr inbounds %struct.qhstatT, ptr %450, i32 0, i32 0
  %452 = getelementptr inbounds [249 x %union.intrealT], ptr %451, i64 0, i64 204
  %453 = load double, ptr %452, align 8, !tbaa !30
  %454 = load double, ptr %36, align 8, !tbaa !18
  %455 = fcmp olt double %453, %454
  br i1 %455, label %456, label %462

456:                                              ; preds = %442
  %457 = load double, ptr %36, align 8, !tbaa !18
  %458 = load ptr, ptr %6, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.qhT, ptr %458, i32 0, i32 258
  %460 = getelementptr inbounds %struct.qhstatT, ptr %459, i32 0, i32 0
  %461 = getelementptr inbounds [249 x %union.intrealT], ptr %460, i64 0, i64 204
  store double %457, ptr %461, align 8, !tbaa !30
  br label %462

462:                                              ; preds = %456, %442
  %463 = load double, ptr %36, align 8, !tbaa !18
  %464 = load ptr, ptr %6, align 8, !tbaa !5
  %465 = getelementptr inbounds %struct.qhT, ptr %464, i32 0, i32 258
  %466 = getelementptr inbounds %struct.qhstatT, ptr %465, i32 0, i32 0
  %467 = getelementptr inbounds [249 x %union.intrealT], ptr %466, i64 0, i64 203
  %468 = load double, ptr %467, align 8, !tbaa !30
  %469 = fadd double %468, %463
  store double %469, ptr %467, align 8, !tbaa !30
  br label %498

470:                                              ; preds = %439
  %471 = load ptr, ptr %6, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.qhT, ptr %471, i32 0, i32 258
  %473 = getelementptr inbounds %struct.qhstatT, ptr %472, i32 0, i32 0
  %474 = getelementptr inbounds [249 x %union.intrealT], ptr %473, i64 0, i64 208
  %475 = load i32, ptr %474, align 8, !tbaa !30
  %476 = add nsw i32 %475, 1
  store i32 %476, ptr %474, align 8, !tbaa !30
  %477 = load ptr, ptr %6, align 8, !tbaa !5
  %478 = getelementptr inbounds %struct.qhT, ptr %477, i32 0, i32 258
  %479 = getelementptr inbounds %struct.qhstatT, ptr %478, i32 0, i32 0
  %480 = getelementptr inbounds [249 x %union.intrealT], ptr %479, i64 0, i64 210
  %481 = load double, ptr %480, align 8, !tbaa !30
  %482 = load double, ptr %36, align 8, !tbaa !18
  %483 = fcmp olt double %481, %482
  br i1 %483, label %484, label %490

484:                                              ; preds = %470
  %485 = load double, ptr %36, align 8, !tbaa !18
  %486 = load ptr, ptr %6, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.qhT, ptr %486, i32 0, i32 258
  %488 = getelementptr inbounds %struct.qhstatT, ptr %487, i32 0, i32 0
  %489 = getelementptr inbounds [249 x %union.intrealT], ptr %488, i64 0, i64 210
  store double %485, ptr %489, align 8, !tbaa !30
  br label %490

490:                                              ; preds = %484, %470
  %491 = load double, ptr %36, align 8, !tbaa !18
  %492 = load ptr, ptr %6, align 8, !tbaa !5
  %493 = getelementptr inbounds %struct.qhT, ptr %492, i32 0, i32 258
  %494 = getelementptr inbounds %struct.qhstatT, ptr %493, i32 0, i32 0
  %495 = getelementptr inbounds [249 x %union.intrealT], ptr %494, i64 0, i64 209
  %496 = load double, ptr %495, align 8, !tbaa !30
  %497 = fadd double %496, %491
  store double %497, ptr %495, align 8, !tbaa !30
  br label %498

498:                                              ; preds = %490, %462
  br label %499

499:                                              ; preds = %498, %306
  %500 = load ptr, ptr %19, align 8, !tbaa !5
  %501 = load ptr, ptr %29, align 8, !tbaa !5
  %502 = icmp ne ptr %500, %501
  br i1 %502, label %503, label %600

503:                                              ; preds = %499
  store ptr null, ptr %20, align 8, !tbaa !5
  %504 = load ptr, ptr %29, align 8, !tbaa !5
  %505 = icmp ne ptr %504, null
  br i1 %505, label %506, label %599

506:                                              ; preds = %503
  store i32 0, ptr %17, align 4, !tbaa !16
  %507 = load ptr, ptr %29, align 8, !tbaa !5
  %508 = getelementptr inbounds %struct.setT, ptr %507, i32 0, i32 1
  %509 = getelementptr inbounds [1 x %union.setelemT], ptr %508, i64 0, i64 0
  %510 = load ptr, ptr %509, align 8, !tbaa !30
  store ptr %510, ptr %20, align 8, !tbaa !5
  %511 = load ptr, ptr %6, align 8, !tbaa !5
  %512 = load ptr, ptr %29, align 8, !tbaa !5
  %513 = call i32 @qh_setsize(ptr noundef %511, ptr noundef %512)
  store i32 %513, ptr %18, align 4, !tbaa !16
  br label %514

514:                                              ; preds = %590, %506
  %515 = load i32, ptr %17, align 4, !tbaa !16
  %516 = load i32, ptr %18, align 4, !tbaa !16
  %517 = icmp slt i32 %515, %516
  br i1 %517, label %518, label %598

518:                                              ; preds = %514
  %519 = load ptr, ptr %19, align 8, !tbaa !5
  %520 = load ptr, ptr %20, align 8, !tbaa !5
  %521 = call i32 @qh_setin(ptr noundef %519, ptr noundef %520)
  %522 = icmp ne i32 %521, 0
  br i1 %522, label %589, label %523

523:                                              ; preds = %518
  %524 = load ptr, ptr %9, align 8, !tbaa !5
  %525 = getelementptr inbounds %struct.setT, ptr %524, i32 0, i32 1
  %526 = load i32, ptr %17, align 4, !tbaa !16
  %527 = sext i32 %526 to i64
  %528 = getelementptr inbounds [1 x %union.setelemT], ptr %525, i64 0, i64 %527
  %529 = load ptr, ptr %528, align 8, !tbaa !30
  store ptr %529, ptr %11, align 8, !tbaa !5
  %530 = load ptr, ptr %6, align 8, !tbaa !5
  %531 = getelementptr inbounds %struct.qhT, ptr %530, i32 0, i32 258
  %532 = getelementptr inbounds %struct.qhstatT, ptr %531, i32 0, i32 0
  %533 = getelementptr inbounds [249 x %union.intrealT], ptr %532, i64 0, i64 62
  %534 = load i32, ptr %533, align 8, !tbaa !30
  %535 = add nsw i32 %534, 1
  store i32 %535, ptr %533, align 8, !tbaa !30
  %536 = load i32, ptr %33, align 4, !tbaa !16
  %537 = load ptr, ptr %20, align 8, !tbaa !5
  %538 = load ptr, ptr %24, align 8, !tbaa !5
  %539 = call double @qh_distnorm(i32 noundef %536, ptr noundef %537, ptr noundef %538, ptr noundef %35)
  store double %539, ptr %34, align 8, !tbaa !18
  %540 = load double, ptr %34, align 8, !tbaa !18
  %541 = fcmp olt double %540, 0.000000e+00
  br i1 %541, label %542, label %545

542:                                              ; preds = %523
  %543 = load double, ptr %34, align 8, !tbaa !18
  %544 = fneg double %543
  store double %544, ptr %34, align 8, !tbaa !18
  br label %545

545:                                              ; preds = %542, %523
  %546 = load ptr, ptr %6, align 8, !tbaa !5
  %547 = getelementptr inbounds %struct.qhT, ptr %546, i32 0, i32 258
  %548 = getelementptr inbounds %struct.qhstatT, ptr %547, i32 0, i32 0
  %549 = getelementptr inbounds [249 x %union.intrealT], ptr %548, i64 0, i64 199
  %550 = load i32, ptr %549, align 8, !tbaa !30
  %551 = add nsw i32 %550, 1
  store i32 %551, ptr %549, align 8, !tbaa !30
  %552 = load ptr, ptr %6, align 8, !tbaa !5
  %553 = getelementptr inbounds %struct.qhT, ptr %552, i32 0, i32 258
  %554 = getelementptr inbounds %struct.qhstatT, ptr %553, i32 0, i32 0
  %555 = getelementptr inbounds [249 x %union.intrealT], ptr %554, i64 0, i64 201
  %556 = load double, ptr %555, align 8, !tbaa !30
  %557 = load double, ptr %34, align 8, !tbaa !18
  %558 = fcmp olt double %556, %557
  br i1 %558, label %559, label %565

559:                                              ; preds = %545
  %560 = load double, ptr %34, align 8, !tbaa !18
  %561 = load ptr, ptr %6, align 8, !tbaa !5
  %562 = getelementptr inbounds %struct.qhT, ptr %561, i32 0, i32 258
  %563 = getelementptr inbounds %struct.qhstatT, ptr %562, i32 0, i32 0
  %564 = getelementptr inbounds [249 x %union.intrealT], ptr %563, i64 0, i64 201
  store double %560, ptr %564, align 8, !tbaa !30
  br label %565

565:                                              ; preds = %559, %545
  %566 = load double, ptr %34, align 8, !tbaa !18
  %567 = load ptr, ptr %6, align 8, !tbaa !5
  %568 = getelementptr inbounds %struct.qhT, ptr %567, i32 0, i32 258
  %569 = getelementptr inbounds %struct.qhstatT, ptr %568, i32 0, i32 0
  %570 = getelementptr inbounds [249 x %union.intrealT], ptr %569, i64 0, i64 200
  %571 = load double, ptr %570, align 8, !tbaa !30
  %572 = fadd double %571, %566
  store double %572, ptr %570, align 8, !tbaa !30
  %573 = load ptr, ptr %6, align 8, !tbaa !5
  %574 = getelementptr inbounds %struct.qhT, ptr %573, i32 0, i32 29
  %575 = load i32, ptr %574, align 8, !tbaa !31
  %576 = icmp sge i32 %575, 4
  br i1 %576, label %577, label %588

577:                                              ; preds = %565
  %578 = load ptr, ptr %6, align 8, !tbaa !5
  %579 = load ptr, ptr %6, align 8, !tbaa !5
  %580 = getelementptr inbounds %struct.qhT, ptr %579, i32 0, i32 158
  %581 = load ptr, ptr %580, align 8, !tbaa !29
  %582 = load i32, ptr %15, align 4, !tbaa !16
  %583 = load i32, ptr %16, align 4, !tbaa !16
  %584 = load ptr, ptr %11, align 8, !tbaa !5
  %585 = getelementptr inbounds %struct.facetT, ptr %584, i32 0, i32 13
  %586 = load i32, ptr %585, align 8, !tbaa !24
  %587 = load double, ptr %34, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %578, ptr noundef %581, i32 noundef 4016, ptr noundef @.str.9, i32 noundef %582, i32 noundef %583, i32 noundef %586, double noundef %587)
  br label %588

588:                                              ; preds = %577, %565
  br label %589

589:                                              ; preds = %588, %518
  br label %590

590:                                              ; preds = %589
  %591 = load ptr, ptr %29, align 8, !tbaa !5
  %592 = getelementptr inbounds %struct.setT, ptr %591, i32 0, i32 1
  %593 = load i32, ptr %17, align 4, !tbaa !16
  %594 = add nsw i32 %593, 1
  store i32 %594, ptr %17, align 4, !tbaa !16
  %595 = sext i32 %594 to i64
  %596 = getelementptr inbounds [1 x %union.setelemT], ptr %592, i64 0, i64 %595
  %597 = load ptr, ptr %596, align 8, !tbaa !30
  store ptr %597, ptr %20, align 8, !tbaa !5
  br label %514, !llvm.loop !40

598:                                              ; preds = %514
  br label %599

599:                                              ; preds = %598, %503
  br label %600

600:                                              ; preds = %599, %499
  br label %601

601:                                              ; preds = %600, %301
  %602 = load double, ptr %35, align 8, !tbaa !18
  %603 = load ptr, ptr %10, align 8, !tbaa !5
  store double %602, ptr %603, align 8, !tbaa !18
  %604 = load ptr, ptr %19, align 8, !tbaa !5
  %605 = load ptr, ptr %29, align 8, !tbaa !5
  %606 = icmp ne ptr %604, %605
  br i1 %606, label %607, label %609

607:                                              ; preds = %601
  %608 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %608, ptr noundef %19)
  br label %609

609:                                              ; preds = %607, %601
  %610 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %610, ptr noundef %29)
  %611 = load ptr, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  ret ptr %611
}

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

declare ptr @qh_facetcenter(ptr noundef, ptr noundef) #1

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

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

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

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

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

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

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

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

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

declare void @qh_settempfree(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 }

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

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


; 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"

%union.setelemT = type { ptr }

@.str.5 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [56 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 i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #1

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

declare void @qh_errexit(ptr noundef, 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
define dso_local noundef ptr @qh_detvnorm(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef readonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #3
  %12 = getelementptr inbounds i8, ptr %0, i64 2448
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = tail call ptr @qh_settemp(ptr noundef %0, i32 noundef %13) #3
  store ptr %14, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #3
  store i32 0, ptr %9, align 4, !tbaa !16
  %15 = getelementptr inbounds i8, ptr %0, i64 632
  %16 = load i32, ptr %15, align 8, !tbaa !17
  %17 = add i32 %16, -1
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #3
  store double 0.000000e+00, ptr %11, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %0, i64 2848
  %19 = load ptr, ptr %18, align 8, !tbaa !19
  %20 = ptrtoint ptr %19 to i64
  %21 = mul i32 %16, %16
  %22 = zext i32 %21 to i64
  %23 = getelementptr inbounds double, ptr %19, i64 %22
  %24 = icmp sgt i32 %16, 1
  br i1 %24, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !20
  %27 = getelementptr inbounds i8, ptr %2, i64 16
  %28 = load ptr, ptr %27, align 8, !tbaa !20
  %wide.trip.count = zext i32 %17 to i64
  %min.iters.check = icmp ult i32 %16, 9
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %29 = ptrtoint ptr %28 to i64
  %30 = ptrtoint ptr %26 to i64
  %31 = shl nuw nsw i64 %22, 3
  %32 = add i64 %31, %20
  %33 = sub i64 %32, %30
  %diff.check = icmp ult i64 %33, 32
  %34 = sub i64 %32, %29
  %diff.check294 = icmp ult i64 %34, 32
  %conflict.rdx = or i1 %diff.check, %diff.check294
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %35 = getelementptr inbounds double, ptr %26, i64 %index
  %36 = getelementptr inbounds i8, ptr %35, i64 16
  %wide.load = load <2 x double>, ptr %35, align 8, !tbaa !18
  %wide.load295 = load <2 x double>, ptr %36, align 8, !tbaa !18
  %37 = getelementptr inbounds double, ptr %28, i64 %index
  %38 = getelementptr inbounds i8, ptr %37, i64 16
  %wide.load296 = load <2 x double>, ptr %37, align 8, !tbaa !18
  %wide.load297 = load <2 x double>, ptr %38, align 8, !tbaa !18
  %39 = fadd <2 x double> %wide.load, %wide.load296
  %40 = fadd <2 x double> %wide.load295, %wide.load297
  %41 = fmul <2 x double> %39, <double 5.000000e-01, double 5.000000e-01>
  %42 = fmul <2 x double> %40, <double 5.000000e-01, double 5.000000e-01>
  %43 = getelementptr inbounds double, ptr %23, i64 %index
  %44 = getelementptr inbounds i8, ptr %43, i64 16
  store <2 x double> %41, ptr %43, align 8, !tbaa !18
  store <2 x double> %42, ptr %44, align 8, !tbaa !18
  %index.next = add nuw i64 %index, 4
  %45 = icmp eq i64 %index.next, %n.vec
  br i1 %45, label %middle.block, label %vector.body, !llvm.loop !22

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 1
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader
  %46 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.ph
  %47 = load double, ptr %46, align 8, !tbaa !18
  %48 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.ph
  %49 = load double, ptr %48, align 8, !tbaa !18
  %50 = fadd double %47, %49
  %51 = fmul double %50, 5.000000e-01
  %52 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.ph
  store double %51, ptr %52, align 8, !tbaa !18
  %indvars.iv.next.prol = or disjoint i64 %indvars.iv.ph, 1
  br label %scalar.ph.prol.loopexit

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %53 = add nsw i64 %wide.trip.count, -1
  %54 = icmp eq i64 %indvars.iv.ph, %53
  br i1 %54, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.1, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %55 = getelementptr inbounds double, ptr %26, i64 %indvars.iv
  %56 = load double, ptr %55, align 8, !tbaa !18
  %57 = getelementptr inbounds double, ptr %28, i64 %indvars.iv
  %58 = load double, ptr %57, align 8, !tbaa !18
  %59 = fadd double %56, %58
  %60 = fmul double %59, 5.000000e-01
  %61 = getelementptr inbounds double, ptr %23, i64 %indvars.iv
  store double %60, ptr %61, align 8, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %62 = getelementptr inbounds double, ptr %26, i64 %indvars.iv.next
  %63 = load double, ptr %62, align 8, !tbaa !18
  %64 = getelementptr inbounds double, ptr %28, i64 %indvars.iv.next
  %65 = load double, ptr %64, align 8, !tbaa !18
  %66 = fadd double %63, %65
  %67 = fmul double %66, 5.000000e-01
  %68 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next
  store double %67, ptr %68, align 8, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, %wide.trip.count
  br i1 %exitcond.not.1, label %._crit_edge, label %scalar.ph, !llvm.loop !26

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.loopexit237, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %.0192239 = getelementptr inbounds i8, ptr %3, i64 8
  %69 = load ptr, ptr %.0192239, align 8, !tbaa !5
  %.not215240 = icmp eq ptr %69, null
  br i1 %.not215240, label %.loopexit237, label %.lr.ph244

.lr.ph244:                                        ; preds = %.preheader, %83
  %70 = phi ptr [ %84, %83 ], [ %69, %.preheader ]
  %.0192243 = phi ptr [ %.0192, %83 ], [ %.0192239, %.preheader ]
  %.0182242 = phi i32 [ %71, %83 ], [ 0, %.preheader ]
  %.0184241 = phi i32 [ %.1185, %83 ], [ 0, %.preheader ]
  %71 = add nuw nsw i32 %.0182242, 1
  %72 = getelementptr inbounds i8, ptr %70, i64 104
  %73 = load i32, ptr %72, align 8, !tbaa !27
  %.not233 = icmp eq i32 %73, 0
  br i1 %.not233, label %83, label %74

74:                                               ; preds = %.lr.ph244
  %75 = getelementptr inbounds i8, ptr %70, i64 40
  %76 = load ptr, ptr %75, align 8, !tbaa !29
  %.not234 = icmp eq ptr %76, null
  br i1 %.not234, label %77, label %81

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %70, i64 64
  %79 = load ptr, ptr %78, align 8, !tbaa !30
  %80 = call ptr @qh_facetcenter(ptr noundef %0, ptr noundef %79) #3
  store ptr %80, ptr %75, align 8, !tbaa !29
  br label %81

81:                                               ; preds = %77, %74
  %82 = phi ptr [ %80, %77 ], [ %76, %74 ]
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %82) #3
  br label %83

83:                                               ; preds = %.lr.ph244, %81
  %.1185 = phi i32 [ %.0184241, %81 ], [ 1, %.lr.ph244 ]
  %.0192 = getelementptr inbounds i8, ptr %.0192243, i64 8
  %84 = load ptr, ptr %.0192, align 8, !tbaa !5
  %.not215 = icmp eq ptr %84, null
  br i1 %.not215, label %.loopexit237, label %.lr.ph244, !llvm.loop !31

.loopexit237:                                     ; preds = %83, %.preheader, %._crit_edge
  %.2 = phi i32 [ 0, %._crit_edge ], [ 0, %.preheader ], [ %.1185, %83 ]
  %.1183 = phi i32 [ 0, %._crit_edge ], [ 0, %.preheader ], [ %71, %83 ]
  %.not216 = icmp slt i32 %.1183, %16
  br i1 %.not216, label %95, label %85

85:                                               ; preds = %.loopexit237
  %86 = load i32, ptr %12, align 8, !tbaa !9
  %87 = call ptr @qh_settemp(ptr noundef %0, i32 noundef %86) #3
  store ptr %87, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds i8, ptr %1, i64 16
  %89 = load ptr, ptr %88, align 8, !tbaa !20
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %6, ptr noundef %89) #3
  %.not218 = icmp eq i32 %.2, 0
  br i1 %.not218, label %91, label %90

90:                                               ; preds = %85
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %6, ptr noundef %23) #3
  br label %91

91:                                               ; preds = %90, %85
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_maxsimplex(ptr noundef nonnull %0, i32 noundef %17, ptr noundef %92, ptr noundef null, i32 noundef 0, ptr noundef nonnull %6) #3
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = call ptr @qh_setdelnth(ptr noundef nonnull %0, ptr noundef %93, i32 noundef 0) #3
  br label %104

95:                                               ; preds = %.loopexit237
  %96 = icmp eq i32 %.1183, %17
  br i1 %96, label %97, label %101

97:                                               ; preds = %95
  %.not217 = icmp eq i32 %.2, 0
  br i1 %.not217, label %99, label %98

98:                                               ; preds = %97
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %8, ptr noundef %23) #3
  br label %99

99:                                               ; preds = %98, %97
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %100, ptr %6, align 8, !tbaa !5
  br label %104

101:                                              ; preds = %95
  %102 = getelementptr inbounds i8, ptr %0, i64 2424
  %103 = load ptr, ptr %102, align 8, !tbaa !32
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %103, i32 noundef 6216, ptr noundef nonnull @.str.5, i32 noundef %.1183) #3
  call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %104

104:                                              ; preds = %99, %101, %91
  %105 = load ptr, ptr %18, align 8, !tbaa !19
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = load ptr, ptr %107, align 8, !tbaa !33
  store ptr %108, ptr %7, align 8, !tbaa !5
  %.not221254 = icmp eq ptr %108, null
  br i1 %.not221254, label %._crit_edge260, label %.lr.ph259

.lr.ph259:                                        ; preds = %104
  %109 = ptrtoint ptr %108 to i64
  %110 = getelementptr inbounds i8, ptr %0, i64 136
  %111 = getelementptr inbounds i8, ptr %0, i64 2424
  %112 = getelementptr inbounds i8, ptr %0, i64 2856
  %.not232246 = icmp eq i32 %17, 0
  %113 = zext i32 %17 to i64
  %min.iters.check306 = icmp ult i32 %17, 4
  %n.vec309 = and i64 %113, 4294967292
  %114 = shl nuw nsw i64 %n.vec309, 3
  %115 = shl nuw nsw i64 %n.vec309, 3
  %ind.end311 = getelementptr i8, ptr %108, i64 %115
  %.cast = trunc nuw i64 %n.vec309 to i32
  %ind.end313 = sub i32 %17, %.cast
  %116 = shl nuw nsw i64 %n.vec309, 3
  %cmp.n331 = icmp eq i64 %n.vec309, %113
  br label %117

117:                                              ; preds = %.lr.ph259, %.loopexit236
  %118 = phi ptr [ %108, %.lr.ph259 ], [ %174, %.loopexit236 ]
  %.0200257 = phi ptr [ %107, %.lr.ph259 ], [ %.0200, %.loopexit236 ]
  %.0187256 = phi ptr [ %105, %.lr.ph259 ], [ %.2189, %.loopexit236 ]
  %.0193255 = phi i32 [ 0, %.lr.ph259 ], [ %.1194, %.loopexit236 ]
  %.0187256299 = ptrtoint ptr %.0187256 to i64
  %119 = load i32, ptr %110, align 8, !tbaa !34
  %120 = icmp sgt i32 %119, 3
  br i1 %120, label %121, label %123

121:                                              ; preds = %117
  %122 = load ptr, ptr %111, align 8, !tbaa !32
  call void @qh_printmatrix(ptr noundef nonnull %0, ptr noundef %122, ptr noundef nonnull @.str.6, ptr noundef nonnull %7, i32 noundef 1, i32 noundef %17) #3
  %.pre = load ptr, ptr %7, align 8, !tbaa !5
  br label %123

123:                                              ; preds = %121, %117
  %124 = phi ptr [ %.pre, %121 ], [ %118, %117 ]
  %.not231 = icmp eq ptr %124, %108
  br i1 %.not231, label %.loopexit236, label %125

125:                                              ; preds = %123
  %126 = load ptr, ptr %112, align 8, !tbaa !35
  %127 = add nsw i32 %.0193255, 1
  %128 = sext i32 %.0193255 to i64
  %129 = getelementptr inbounds ptr, ptr %126, i64 %128
  store ptr %.0187256, ptr %129, align 8, !tbaa !5
  br i1 %.not232246, label %.loopexit236, label %.lr.ph251.preheader

.lr.ph251.preheader:                              ; preds = %125
  %.promoted = load ptr, ptr %7, align 8, !tbaa !5
  br i1 %min.iters.check306, label %.lr.ph251.preheader372, label %vector.memcheck298

vector.memcheck298:                               ; preds = %.lr.ph251.preheader
  %.promoted300 = ptrtoint ptr %.promoted to i64
  %130 = sub i64 %.0187256299, %.promoted300
  %diff.check301 = icmp ult i64 %130, 32
  %131 = sub i64 %.0187256299, %109
  %diff.check302 = icmp ult i64 %131, 32
  %conflict.rdx303 = or i1 %diff.check301, %diff.check302
  br i1 %conflict.rdx303, label %.lr.ph251.preheader372, label %vector.ph307

vector.ph307:                                     ; preds = %vector.memcheck298
  %ind.end = getelementptr i8, ptr %.0187256, i64 %114
  %ind.end315 = getelementptr i8, ptr %.promoted, i64 %116
  br label %vector.body317

vector.body317:                                   ; preds = %vector.body317, %vector.ph307
  %index318 = phi i64 [ 0, %vector.ph307 ], [ %index.next330, %vector.body317 ]
  %offset.idx = shl i64 %index318, 3
  %next.gep = getelementptr i8, ptr %.0187256, i64 %offset.idx
  %offset.idx320 = shl i64 %index318, 3
  %next.gep321 = getelementptr i8, ptr %108, i64 %offset.idx320
  %offset.idx323 = shl i64 %index318, 3
  %next.gep324 = getelementptr i8, ptr %.promoted, i64 %offset.idx323
  %132 = getelementptr i8, ptr %next.gep324, i64 16
  %wide.load326 = load <2 x double>, ptr %next.gep324, align 8, !tbaa !18
  %wide.load327 = load <2 x double>, ptr %132, align 8, !tbaa !18
  %133 = getelementptr i8, ptr %next.gep321, i64 16
  %wide.load328 = load <2 x double>, ptr %next.gep321, align 8, !tbaa !18
  %wide.load329 = load <2 x double>, ptr %133, align 8, !tbaa !18
  %134 = fsub <2 x double> %wide.load326, %wide.load328
  %135 = fsub <2 x double> %wide.load327, %wide.load329
  %136 = getelementptr i8, ptr %next.gep, i64 16
  store <2 x double> %134, ptr %next.gep, align 8, !tbaa !18
  store <2 x double> %135, ptr %136, align 8, !tbaa !18
  %index.next330 = add nuw i64 %index318, 4
  %137 = icmp eq i64 %index.next330, %n.vec309
  br i1 %137, label %middle.block304, label %vector.body317, !llvm.loop !36

middle.block304:                                  ; preds = %vector.body317
  br i1 %cmp.n331, label %.loopexit236, label %.lr.ph251.preheader372

.lr.ph251.preheader372:                           ; preds = %middle.block304, %vector.memcheck298, %.lr.ph251.preheader
  %.1188249.ph = phi ptr [ %.0187256, %vector.memcheck298 ], [ %.0187256, %.lr.ph251.preheader ], [ %ind.end, %middle.block304 ]
  %.0190248.ph = phi ptr [ %108, %vector.memcheck298 ], [ %108, %.lr.ph251.preheader ], [ %ind.end311, %middle.block304 ]
  %.1197247.ph = phi i32 [ %17, %vector.memcheck298 ], [ %17, %.lr.ph251.preheader ], [ %ind.end313, %middle.block304 ]
  %.ph = phi ptr [ %.promoted, %vector.memcheck298 ], [ %.promoted, %.lr.ph251.preheader ], [ %ind.end315, %middle.block304 ]
  %138 = add nsw i32 %.1197247.ph, -1
  %xtraiter374 = and i32 %.1197247.ph, 3
  %lcmp.mod375.not = icmp eq i32 %xtraiter374, 0
  br i1 %lcmp.mod375.not, label %.lr.ph251.prol.loopexit, label %.lr.ph251.prol

.lr.ph251.prol:                                   ; preds = %.lr.ph251.preheader372, %.lr.ph251.prol
  %.1188249.prol = phi ptr [ %146, %.lr.ph251.prol ], [ %.1188249.ph, %.lr.ph251.preheader372 ]
  %.0190248.prol = phi ptr [ %143, %.lr.ph251.prol ], [ %.0190248.ph, %.lr.ph251.preheader372 ]
  %.1197247.prol = phi i32 [ %140, %.lr.ph251.prol ], [ %.1197247.ph, %.lr.ph251.preheader372 ]
  %139 = phi ptr [ %141, %.lr.ph251.prol ], [ %.ph, %.lr.ph251.preheader372 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.lr.ph251.prol ], [ 0, %.lr.ph251.preheader372 ]
  %140 = add nsw i32 %.1197247.prol, -1
  %141 = getelementptr inbounds i8, ptr %139, i64 8
  %142 = load double, ptr %139, align 8, !tbaa !18
  %143 = getelementptr inbounds i8, ptr %.0190248.prol, i64 8
  %144 = load double, ptr %.0190248.prol, align 8, !tbaa !18
  %145 = fsub double %142, %144
  %146 = getelementptr inbounds i8, ptr %.1188249.prol, i64 8
  store double %145, ptr %.1188249.prol, align 8, !tbaa !18
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter374
  br i1 %prol.iter.cmp.not, label %.lr.ph251.prol.loopexit, label %.lr.ph251.prol, !llvm.loop !37

.lr.ph251.prol.loopexit:                          ; preds = %.lr.ph251.prol, %.lr.ph251.preheader372
  %.lcssa.unr = phi ptr [ poison, %.lr.ph251.preheader372 ], [ %146, %.lr.ph251.prol ]
  %.1188249.unr = phi ptr [ %.1188249.ph, %.lr.ph251.preheader372 ], [ %146, %.lr.ph251.prol ]
  %.0190248.unr = phi ptr [ %.0190248.ph, %.lr.ph251.preheader372 ], [ %143, %.lr.ph251.prol ]
  %.1197247.unr = phi i32 [ %.1197247.ph, %.lr.ph251.preheader372 ], [ %140, %.lr.ph251.prol ]
  %.unr = phi ptr [ %.ph, %.lr.ph251.preheader372 ], [ %141, %.lr.ph251.prol ]
  %147 = icmp ult i32 %138, 3
  br i1 %147, label %.loopexit236, label %.lr.ph251

.lr.ph251:                                        ; preds = %.lr.ph251.prol.loopexit, %.lr.ph251
  %.1188249 = phi ptr [ %173, %.lr.ph251 ], [ %.1188249.unr, %.lr.ph251.prol.loopexit ]
  %.0190248 = phi ptr [ %170, %.lr.ph251 ], [ %.0190248.unr, %.lr.ph251.prol.loopexit ]
  %.1197247 = phi i32 [ %167, %.lr.ph251 ], [ %.1197247.unr, %.lr.ph251.prol.loopexit ]
  %148 = phi ptr [ %168, %.lr.ph251 ], [ %.unr, %.lr.ph251.prol.loopexit ]
  %149 = getelementptr inbounds i8, ptr %148, i64 8
  %150 = load double, ptr %148, align 8, !tbaa !18
  %151 = getelementptr inbounds i8, ptr %.0190248, i64 8
  %152 = load double, ptr %.0190248, align 8, !tbaa !18
  %153 = fsub double %150, %152
  %154 = getelementptr inbounds i8, ptr %.1188249, i64 8
  store double %153, ptr %.1188249, align 8, !tbaa !18
  %155 = getelementptr inbounds i8, ptr %148, i64 16
  %156 = load double, ptr %149, align 8, !tbaa !18
  %157 = getelementptr inbounds i8, ptr %.0190248, i64 16
  %158 = load double, ptr %151, align 8, !tbaa !18
  %159 = fsub double %156, %158
  %160 = getelementptr inbounds i8, ptr %.1188249, i64 16
  store double %159, ptr %154, align 8, !tbaa !18
  %161 = getelementptr inbounds i8, ptr %148, i64 24
  %162 = load double, ptr %155, align 8, !tbaa !18
  %163 = getelementptr inbounds i8, ptr %.0190248, i64 24
  %164 = load double, ptr %157, align 8, !tbaa !18
  %165 = fsub double %162, %164
  %166 = getelementptr inbounds i8, ptr %.1188249, i64 24
  store double %165, ptr %160, align 8, !tbaa !18
  %167 = add nsw i32 %.1197247, -4
  %168 = getelementptr inbounds i8, ptr %148, i64 32
  %169 = load double, ptr %161, align 8, !tbaa !18
  %170 = getelementptr inbounds i8, ptr %.0190248, i64 32
  %171 = load double, ptr %163, align 8, !tbaa !18
  %172 = fsub double %169, %171
  %173 = getelementptr inbounds i8, ptr %.1188249, i64 32
  store double %172, ptr %166, align 8, !tbaa !18
  %.not232.3 = icmp eq i32 %167, 0
  br i1 %.not232.3, label %.loopexit236, label %.lr.ph251, !llvm.loop !39

.loopexit236:                                     ; preds = %.lr.ph251.prol.loopexit, %.lr.ph251, %middle.block304, %125, %123
  %.1194 = phi i32 [ %.0193255, %123 ], [ %127, %125 ], [ %127, %middle.block304 ], [ %127, %.lr.ph251 ], [ %127, %.lr.ph251.prol.loopexit ]
  %.2189 = phi ptr [ %.0187256, %123 ], [ %.0187256, %125 ], [ %ind.end, %middle.block304 ], [ %.lcssa.unr, %.lr.ph251.prol.loopexit ], [ %173, %.lr.ph251 ]
  %.0200 = getelementptr inbounds i8, ptr %.0200257, i64 8
  %174 = load ptr, ptr %.0200, align 8, !tbaa !5
  store ptr %174, ptr %7, align 8, !tbaa !5
  %.not221 = icmp eq ptr %174, null
  br i1 %.not221, label %._crit_edge260, label %117, !llvm.loop !40

._crit_edge260:                                   ; preds = %.loopexit236, %104
  %.0193.lcssa = phi i32 [ 0, %104 ], [ %.1194, %.loopexit236 ]
  %.0187.lcssa = phi ptr [ %105, %104 ], [ %.2189, %.loopexit236 ]
  %175 = getelementptr inbounds i8, ptr %0, i64 2856
  %176 = load ptr, ptr %175, align 8, !tbaa !35
  %177 = sext i32 %.0193.lcssa to i64
  %178 = getelementptr inbounds ptr, ptr %176, i64 %177
  store ptr %.0187.lcssa, ptr %178, align 8, !tbaa !5
  %179 = load ptr, ptr %175, align 8, !tbaa !35
  call void @qh_sethyperplane_gauss(ptr noundef %0, i32 noundef %17, ptr noundef %179, ptr noundef %108, i32 noundef 1, ptr noundef %.0187.lcssa, ptr noundef nonnull %10, ptr noundef nonnull %9) #3
  %180 = getelementptr inbounds i8, ptr %0, i64 120
  %181 = load ptr, ptr %180, align 8, !tbaa !41
  %182 = getelementptr inbounds i8, ptr %2, i64 16
  %183 = load ptr, ptr %182, align 8, !tbaa !20
  %184 = icmp eq ptr %181, %183
  br i1 %184, label %188, label %185

185:                                              ; preds = %._crit_edge260
  %186 = getelementptr inbounds i8, ptr %1, i64 16
  %187 = load ptr, ptr %186, align 8, !tbaa !20
  br label %188

188:                                              ; preds = %._crit_edge260, %185
  %.0191 = phi ptr [ %187, %185 ], [ %183, %._crit_edge260 ]
  %189 = getelementptr inbounds i8, ptr %0, i64 3904
  %190 = load i32, ptr %189, align 8, !tbaa !33
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %189, align 8, !tbaa !33
  %192 = call double @qh_distnorm(i32 noundef %17, ptr noundef %.0191, ptr noundef %.0187.lcssa, ptr noundef nonnull %10) #3
  %193 = fcmp ogt double %192, 0.000000e+00
  br i1 %193, label %194, label %.loopexit235

194:                                              ; preds = %188
  %195 = load double, ptr %10, align 8, !tbaa !18
  %196 = fneg double %195
  store double %196, ptr %10, align 8, !tbaa !18
  %.not222263 = icmp eq i32 %17, 0
  br i1 %.not222263, label %.loopexit235, label %.lr.ph267.preheader

.lr.ph267.preheader:                              ; preds = %194
  %197 = zext i32 %17 to i64
  %min.iters.check334 = icmp ult i32 %17, 4
  br i1 %min.iters.check334, label %.lr.ph267.preheader371, label %vector.ph335

vector.ph335:                                     ; preds = %.lr.ph267.preheader
  %n.vec337 = and i64 %197, 4294967292
  %198 = shl nuw nsw i64 %n.vec337, 3
  %ind.end338 = getelementptr i8, ptr %.0187.lcssa, i64 %198
  %.cast340 = trunc nuw i64 %n.vec337 to i32
  %ind.end341 = sub i32 %17, %.cast340
  br label %vector.body343

vector.body343:                                   ; preds = %vector.body343, %vector.ph335
  %index344 = phi i64 [ 0, %vector.ph335 ], [ %index.next350, %vector.body343 ]
  %offset.idx345 = shl i64 %index344, 3
  %next.gep346 = getelementptr i8, ptr %.0187.lcssa, i64 %offset.idx345
  %199 = getelementptr i8, ptr %next.gep346, i64 16
  %wide.load348 = load <2 x double>, ptr %next.gep346, align 8, !tbaa !18
  %wide.load349 = load <2 x double>, ptr %199, align 8, !tbaa !18
  %200 = fneg <2 x double> %wide.load348
  %201 = fneg <2 x double> %wide.load349
  store <2 x double> %200, ptr %next.gep346, align 8, !tbaa !18
  store <2 x double> %201, ptr %199, align 8, !tbaa !18
  %index.next350 = add nuw i64 %index344, 4
  %202 = icmp eq i64 %index.next350, %n.vec337
  br i1 %202, label %middle.block332, label %vector.body343, !llvm.loop !42

middle.block332:                                  ; preds = %vector.body343
  %cmp.n351 = icmp eq i64 %n.vec337, %197
  br i1 %cmp.n351, label %.loopexit235, label %.lr.ph267.preheader371

.lr.ph267.preheader371:                           ; preds = %middle.block332, %.lr.ph267.preheader
  %.0186265.ph = phi ptr [ %.0187.lcssa, %.lr.ph267.preheader ], [ %ind.end338, %middle.block332 ]
  %.2198264.ph = phi i32 [ %17, %.lr.ph267.preheader ], [ %ind.end341, %middle.block332 ]
  br label %.lr.ph267

.lr.ph267:                                        ; preds = %.lr.ph267.preheader371, %.lr.ph267
  %.0186265 = phi ptr [ %206, %.lr.ph267 ], [ %.0186265.ph, %.lr.ph267.preheader371 ]
  %.2198264 = phi i32 [ %203, %.lr.ph267 ], [ %.2198264.ph, %.lr.ph267.preheader371 ]
  %203 = add nsw i32 %.2198264, -1
  %204 = load double, ptr %.0186265, align 8, !tbaa !18
  %205 = fneg double %204
  store double %205, ptr %.0186265, align 8, !tbaa !18
  %206 = getelementptr inbounds i8, ptr %.0186265, i64 8
  %.not222 = icmp eq i32 %203, 0
  br i1 %.not222, label %.loopexit235, label %.lr.ph267, !llvm.loop !43

.loopexit235:                                     ; preds = %.lr.ph267, %middle.block332, %194, %188
  %207 = getelementptr inbounds i8, ptr %0, i64 580
  %208 = load i32, ptr %207, align 4, !tbaa !44
  %.not223 = icmp eq i32 %208, 0
  br i1 %.not223, label %209, label %212

209:                                              ; preds = %.loopexit235
  %210 = getelementptr inbounds i8, ptr %0, i64 424
  %211 = load i32, ptr %210, align 8, !tbaa !45
  %.not224 = icmp eq i32 %211, 0
  br i1 %.not224, label %.loopexit, label %212

212:                                              ; preds = %209, %.loopexit235
  %213 = getelementptr inbounds i8, ptr %1, i64 16
  %214 = load ptr, ptr %213, align 8, !tbaa !20
  %215 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %214) #3
  %216 = load ptr, ptr %182, align 8, !tbaa !20
  %217 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %216) #3
  %.not225 = icmp eq i32 %.2, 0
  br i1 %.not225, label %218, label %321

218:                                              ; preds = %212
  %219 = getelementptr inbounds i8, ptr %0, i64 3920
  %220 = load i32, ptr %219, align 8, !tbaa !33
  %221 = add nsw i32 %220, 1
  store i32 %221, ptr %219, align 8, !tbaa !33
  %222 = call double @qh_distnorm(i32 noundef %17, ptr noundef %23, ptr noundef %.0187.lcssa, ptr noundef nonnull %10) #3
  %223 = fcmp olt double %222, 0.000000e+00
  %224 = fneg double %222
  %.0180 = select i1 %223, double %224, double %222
  %225 = getelementptr inbounds i8, ptr %0, i64 5064
  %226 = load i32, ptr %225, align 8, !tbaa !33
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %225, align 8, !tbaa !33
  %228 = getelementptr inbounds i8, ptr %0, i64 5080
  %229 = load double, ptr %228, align 8, !tbaa !33
  %230 = fcmp olt double %229, %.0180
  br i1 %230, label %231, label %232

231:                                              ; preds = %218
  store double %.0180, ptr %228, align 8, !tbaa !33
  br label %232

232:                                              ; preds = %231, %218
  %233 = getelementptr inbounds i8, ptr %0, i64 5072
  %234 = load double, ptr %233, align 8, !tbaa !33
  %235 = fadd double %.0180, %234
  store double %235, ptr %233, align 8, !tbaa !33
  %236 = getelementptr inbounds i8, ptr %0, i64 136
  %237 = load i32, ptr %236, align 8, !tbaa !34
  %238 = icmp sgt i32 %237, 3
  br i1 %238, label %239, label %242

239:                                              ; preds = %232
  %240 = getelementptr inbounds i8, ptr %0, i64 2424
  %241 = load ptr, ptr %240, align 8, !tbaa !32
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %241, i32 noundef 4014, ptr noundef nonnull @.str.7, i32 noundef %215, i32 noundef %217, double noundef %.0180) #3
  br label %242

242:                                              ; preds = %239, %232
  br i1 %24, label %.lr.ph270, label %._crit_edge271

.lr.ph270:                                        ; preds = %242
  %243 = load ptr, ptr %182, align 8, !tbaa !20
  %244 = load ptr, ptr %213, align 8, !tbaa !20
  %wide.trip.count281 = zext i32 %17 to i64
  %min.iters.check358 = icmp ult i32 %16, 11
  br i1 %min.iters.check358, label %scalar.ph357.preheader, label %vector.memcheck352

vector.memcheck352:                               ; preds = %.lr.ph270
  %245 = ptrtoint ptr %244 to i64
  %246 = ptrtoint ptr %243 to i64
  %247 = shl nuw nsw i64 %22, 3
  %248 = add i64 %247, %20
  %249 = sub i64 %248, %246
  %diff.check353 = icmp ult i64 %249, 32
  %250 = sub i64 %248, %245
  %diff.check354 = icmp ult i64 %250, 32
  %conflict.rdx355 = or i1 %diff.check353, %diff.check354
  br i1 %conflict.rdx355, label %scalar.ph357.preheader, label %vector.ph359

vector.ph359:                                     ; preds = %vector.memcheck352
  %n.vec361 = and i64 %wide.trip.count281, 2147483644
  br label %vector.body363

vector.body363:                                   ; preds = %vector.body363, %vector.ph359
  %index364 = phi i64 [ 0, %vector.ph359 ], [ %index.next369, %vector.body363 ]
  %251 = getelementptr inbounds double, ptr %243, i64 %index364
  %252 = getelementptr inbounds i8, ptr %251, i64 16
  %wide.load365 = load <2 x double>, ptr %251, align 8, !tbaa !18
  %wide.load366 = load <2 x double>, ptr %252, align 8, !tbaa !18
  %253 = getelementptr inbounds double, ptr %244, i64 %index364
  %254 = getelementptr inbounds i8, ptr %253, i64 16
  %wide.load367 = load <2 x double>, ptr %253, align 8, !tbaa !18
  %wide.load368 = load <2 x double>, ptr %254, align 8, !tbaa !18
  %255 = fsub <2 x double> %wide.load365, %wide.load367
  %256 = fsub <2 x double> %wide.load366, %wide.load368
  %257 = getelementptr inbounds double, ptr %23, i64 %index364
  %258 = getelementptr inbounds i8, ptr %257, i64 16
  store <2 x double> %255, ptr %257, align 8, !tbaa !18
  store <2 x double> %256, ptr %258, align 8, !tbaa !18
  %index.next369 = add nuw i64 %index364, 4
  %259 = icmp eq i64 %index.next369, %n.vec361
  br i1 %259, label %middle.block356, label %vector.body363, !llvm.loop !46

middle.block356:                                  ; preds = %vector.body363
  %cmp.n370 = icmp eq i64 %n.vec361, %wide.trip.count281
  br i1 %cmp.n370, label %._crit_edge271, label %scalar.ph357.preheader

scalar.ph357.preheader:                           ; preds = %middle.block356, %vector.memcheck352, %.lr.ph270
  %indvars.iv278.ph = phi i64 [ 0, %vector.memcheck352 ], [ 0, %.lr.ph270 ], [ %n.vec361, %middle.block356 ]
  %xtraiter376 = and i64 %wide.trip.count281, 3
  %lcmp.mod377.not = icmp eq i64 %xtraiter376, 0
  br i1 %lcmp.mod377.not, label %scalar.ph357.prol.loopexit, label %scalar.ph357.prol

scalar.ph357.prol:                                ; preds = %scalar.ph357.preheader, %scalar.ph357.prol
  %indvars.iv278.prol = phi i64 [ %indvars.iv.next279.prol, %scalar.ph357.prol ], [ %indvars.iv278.ph, %scalar.ph357.preheader ]
  %prol.iter378 = phi i64 [ %prol.iter378.next, %scalar.ph357.prol ], [ 0, %scalar.ph357.preheader ]
  %260 = getelementptr inbounds double, ptr %243, i64 %indvars.iv278.prol
  %261 = load double, ptr %260, align 8, !tbaa !18
  %262 = getelementptr inbounds double, ptr %244, i64 %indvars.iv278.prol
  %263 = load double, ptr %262, align 8, !tbaa !18
  %264 = fsub double %261, %263
  %265 = getelementptr inbounds double, ptr %23, i64 %indvars.iv278.prol
  store double %264, ptr %265, align 8, !tbaa !18
  %indvars.iv.next279.prol = add nuw nsw i64 %indvars.iv278.prol, 1
  %prol.iter378.next = add i64 %prol.iter378, 1
  %prol.iter378.cmp.not = icmp eq i64 %prol.iter378.next, %xtraiter376
  br i1 %prol.iter378.cmp.not, label %scalar.ph357.prol.loopexit, label %scalar.ph357.prol, !llvm.loop !47

scalar.ph357.prol.loopexit:                       ; preds = %scalar.ph357.prol, %scalar.ph357.preheader
  %indvars.iv278.unr = phi i64 [ %indvars.iv278.ph, %scalar.ph357.preheader ], [ %indvars.iv.next279.prol, %scalar.ph357.prol ]
  %266 = sub nsw i64 %indvars.iv278.ph, %wide.trip.count281
  %267 = icmp ugt i64 %266, -4
  br i1 %267, label %._crit_edge271, label %scalar.ph357

scalar.ph357:                                     ; preds = %scalar.ph357.prol.loopexit, %scalar.ph357
  %indvars.iv278 = phi i64 [ %indvars.iv.next279.3, %scalar.ph357 ], [ %indvars.iv278.unr, %scalar.ph357.prol.loopexit ]
  %268 = getelementptr inbounds double, ptr %243, i64 %indvars.iv278
  %269 = load double, ptr %268, align 8, !tbaa !18
  %270 = getelementptr inbounds double, ptr %244, i64 %indvars.iv278
  %271 = load double, ptr %270, align 8, !tbaa !18
  %272 = fsub double %269, %271
  %273 = getelementptr inbounds double, ptr %23, i64 %indvars.iv278
  store double %272, ptr %273, align 8, !tbaa !18
  %indvars.iv.next279 = add nuw nsw i64 %indvars.iv278, 1
  %274 = getelementptr inbounds double, ptr %243, i64 %indvars.iv.next279
  %275 = load double, ptr %274, align 8, !tbaa !18
  %276 = getelementptr inbounds double, ptr %244, i64 %indvars.iv.next279
  %277 = load double, ptr %276, align 8, !tbaa !18
  %278 = fsub double %275, %277
  %279 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next279
  store double %278, ptr %279, align 8, !tbaa !18
  %indvars.iv.next279.1 = add nuw nsw i64 %indvars.iv278, 2
  %280 = getelementptr inbounds double, ptr %243, i64 %indvars.iv.next279.1
  %281 = load double, ptr %280, align 8, !tbaa !18
  %282 = getelementptr inbounds double, ptr %244, i64 %indvars.iv.next279.1
  %283 = load double, ptr %282, align 8, !tbaa !18
  %284 = fsub double %281, %283
  %285 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next279.1
  store double %284, ptr %285, align 8, !tbaa !18
  %indvars.iv.next279.2 = add nuw nsw i64 %indvars.iv278, 3
  %286 = getelementptr inbounds double, ptr %243, i64 %indvars.iv.next279.2
  %287 = load double, ptr %286, align 8, !tbaa !18
  %288 = getelementptr inbounds double, ptr %244, i64 %indvars.iv.next279.2
  %289 = load double, ptr %288, align 8, !tbaa !18
  %290 = fsub double %287, %289
  %291 = getelementptr inbounds double, ptr %23, i64 %indvars.iv.next279.2
  store double %290, ptr %291, align 8, !tbaa !18
  %indvars.iv.next279.3 = add nuw nsw i64 %indvars.iv278, 4
  %exitcond282.not.3 = icmp eq i64 %indvars.iv.next279.3, %wide.trip.count281
  br i1 %exitcond282.not.3, label %._crit_edge271, label %scalar.ph357, !llvm.loop !48

._crit_edge271:                                   ; preds = %scalar.ph357.prol.loopexit, %scalar.ph357, %middle.block356, %242
  call void @qh_normalize(ptr noundef %0, ptr noundef %23, i32 noundef %17, i32 noundef 0) #3
  %292 = call double @qh_distnorm(i32 noundef %17, ptr noundef %23, ptr noundef %.0187.lcssa, ptr noundef nonnull %11) #3
  %293 = fcmp olt double %292, 0.000000e+00
  %.0.v = select i1 %293, double 1.000000e+00, double -1.000000e+00
  %.0 = fadd double %292, %.0.v
  %294 = fcmp olt double %.0, 0.000000e+00
  %295 = fneg double %.0
  %.1 = select i1 %294, double %295, double %.0
  %296 = load i32, ptr %236, align 8, !tbaa !34
  %297 = icmp sgt i32 %296, 3
  br i1 %297, label %298, label %302

298:                                              ; preds = %._crit_edge271
  %299 = getelementptr inbounds i8, ptr %0, i64 2424
  %300 = load ptr, ptr %299, align 8, !tbaa !32
  %301 = load i32, ptr %9, align 4, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %300, i32 noundef 4015, ptr noundef nonnull @.str.8, i32 noundef %215, i32 noundef %217, double noundef %.1, i32 noundef %301) #3
  br label %302

302:                                              ; preds = %298, %._crit_edge271
  %303 = load i32, ptr %9, align 4, !tbaa !16
  %.not226 = icmp eq i32 %303, 0
  br i1 %.not226, label %311, label %304

304:                                              ; preds = %302
  %305 = getelementptr inbounds i8, ptr %0, i64 5040
  %306 = load i32, ptr %305, align 8, !tbaa !33
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %305, align 8, !tbaa !33
  %308 = getelementptr inbounds i8, ptr %0, i64 5056
  %309 = load double, ptr %308, align 8, !tbaa !33
  %310 = fcmp olt double %309, %.1
  br i1 %310, label %.sink.split.sink.split, label %.sink.split

311:                                              ; preds = %302
  %312 = getelementptr inbounds i8, ptr %0, i64 5088
  %313 = load i32, ptr %312, align 8, !tbaa !33
  %314 = add nsw i32 %313, 1
  store i32 %314, ptr %312, align 8, !tbaa !33
  %315 = getelementptr inbounds i8, ptr %0, i64 5104
  %316 = load double, ptr %315, align 8, !tbaa !33
  %317 = fcmp olt double %316, %.1
  br i1 %317, label %.sink.split.sink.split, label %.sink.split

.sink.split.sink.split:                           ; preds = %311, %304
  %.sink = phi ptr [ %308, %304 ], [ %315, %311 ]
  %.sink292.ph = phi i64 [ 5048, %304 ], [ 5096, %311 ]
  store double %.1, ptr %.sink, align 8, !tbaa !33
  br label %.sink.split

.sink.split:                                      ; preds = %.sink.split.sink.split, %311, %304
  %.sink292 = phi i64 [ 5048, %304 ], [ 5096, %311 ], [ %.sink292.ph, %.sink.split.sink.split ]
  %318 = getelementptr inbounds i8, ptr %0, i64 %.sink292
  %319 = load double, ptr %318, align 8, !tbaa !33
  %320 = fadd double %.1, %319
  store double %320, ptr %318, align 8, !tbaa !33
  br label %321

321:                                              ; preds = %.sink.split, %212
  %322 = load ptr, ptr %6, align 8, !tbaa !5
  %323 = load ptr, ptr %8, align 8, !tbaa !5
  %.not227 = icmp eq ptr %322, %323
  br i1 %.not227, label %.loopexit, label %324

324:                                              ; preds = %321
  store ptr null, ptr %7, align 8, !tbaa !5
  %.not228 = icmp eq ptr %323, null
  br i1 %.not228, label %.loopexit, label %325

325:                                              ; preds = %324
  %326 = getelementptr inbounds i8, ptr %323, i64 8
  %327 = load ptr, ptr %326, align 8, !tbaa !33
  store ptr %327, ptr %7, align 8, !tbaa !5
  %328 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %323) #3
  %329 = icmp sgt i32 %328, 0
  br i1 %329, label %.lr.ph274, label %.loopexit

.lr.ph274:                                        ; preds = %325
  %330 = getelementptr inbounds i8, ptr %3, i64 8
  %331 = getelementptr inbounds i8, ptr %0, i64 3920
  %332 = getelementptr inbounds i8, ptr %0, i64 5016
  %333 = getelementptr inbounds i8, ptr %0, i64 5032
  %334 = getelementptr inbounds i8, ptr %0, i64 5024
  %335 = getelementptr inbounds i8, ptr %0, i64 136
  %336 = getelementptr inbounds i8, ptr %0, i64 2424
  %wide.trip.count286 = zext nneg i32 %328 to i64
  %.pre288 = load ptr, ptr %7, align 8, !tbaa !5
  br label %337

337:                                              ; preds = %.lr.ph274, %364
  %338 = phi ptr [ %.pre288, %.lr.ph274 ], [ %368, %364 ]
  %indvars.iv283 = phi i64 [ 0, %.lr.ph274 ], [ %indvars.iv.next284, %364 ]
  %339 = load ptr, ptr %6, align 8, !tbaa !5
  %340 = call i32 @qh_setin(ptr noundef %339, ptr noundef %338) #3
  %.not230 = icmp eq i32 %340, 0
  br i1 %.not230, label %341, label %364

341:                                              ; preds = %337
  %342 = getelementptr inbounds [1 x %union.setelemT], ptr %330, i64 0, i64 %indvars.iv283
  %343 = load ptr, ptr %342, align 8, !tbaa !33
  %344 = load i32, ptr %331, align 8, !tbaa !33
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %331, align 8, !tbaa !33
  %346 = load ptr, ptr %7, align 8, !tbaa !5
  %347 = call double @qh_distnorm(i32 noundef %17, ptr noundef %346, ptr noundef %.0187.lcssa, ptr noundef nonnull %10) #3
  %348 = fcmp olt double %347, 0.000000e+00
  %349 = fneg double %347
  %.1181 = select i1 %348, double %349, double %347
  %350 = load i32, ptr %332, align 8, !tbaa !33
  %351 = add nsw i32 %350, 1
  store i32 %351, ptr %332, align 8, !tbaa !33
  %352 = load double, ptr %333, align 8, !tbaa !33
  %353 = fcmp olt double %352, %.1181
  br i1 %353, label %354, label %355

354:                                              ; preds = %341
  store double %.1181, ptr %333, align 8, !tbaa !33
  br label %355

355:                                              ; preds = %354, %341
  %356 = load double, ptr %334, align 8, !tbaa !33
  %357 = fadd double %.1181, %356
  store double %357, ptr %334, align 8, !tbaa !33
  %358 = load i32, ptr %335, align 8, !tbaa !34
  %359 = icmp sgt i32 %358, 3
  br i1 %359, label %360, label %364

360:                                              ; preds = %355
  %361 = load ptr, ptr %336, align 8, !tbaa !32
  %362 = getelementptr inbounds i8, ptr %343, i64 104
  %363 = load i32, ptr %362, align 8, !tbaa !27
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %361, i32 noundef 4016, ptr noundef nonnull @.str.9, i32 noundef %215, i32 noundef %217, i32 noundef %363, double noundef %.1181) #3
  br label %364

364:                                              ; preds = %337, %360, %355
  %365 = load ptr, ptr %8, align 8, !tbaa !5
  %366 = getelementptr inbounds i8, ptr %365, i64 8
  %indvars.iv.next284 = add nuw nsw i64 %indvars.iv283, 1
  %367 = getelementptr inbounds [1 x %union.setelemT], ptr %366, i64 0, i64 %indvars.iv.next284
  %368 = load ptr, ptr %367, align 8, !tbaa !33
  store ptr %368, ptr %7, align 8, !tbaa !5
  %exitcond287.not = icmp eq i64 %indvars.iv.next284, %wide.trip.count286
  br i1 %exitcond287.not, label %.loopexit, label %337, !llvm.loop !49

.loopexit:                                        ; preds = %364, %325, %321, %324, %209
  %369 = load double, ptr %10, align 8, !tbaa !18
  store double %369, ptr %4, align 8, !tbaa !18
  %370 = load ptr, ptr %6, align 8, !tbaa !5
  %371 = load ptr, ptr %8, align 8, !tbaa !5
  %.not229 = icmp eq ptr %370, %371
  br i1 %.not229, label %373, label %372

372:                                              ; preds = %.loopexit
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %6) #3
  br label %373

373:                                              ; preds = %372, %.loopexit
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  ret ptr %.0187.lcssa
}

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

declare ptr @qh_facetcenter(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

declare void @qh_settempfree(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 = { nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass