; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (poly2_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.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }

@.str.160 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [273 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [331 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_initialhull(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  store double 0x7FEFFFFFFFFFFFFF, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_createsimplex(ptr noundef %13, ptr noundef %14)
  %15 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_resetlists(ptr noundef %15, i32 noundef 0, i32 noundef 1)
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.qhT, ptr %16, i32 0, i32 163
  %18 = load ptr, ptr %17, align 8, !tbaa !11
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qhT, ptr %19, i32 0, i32 165
  store ptr %18, ptr %20, align 8, !tbaa !17
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = call ptr @qh_getcenter(ptr noundef %21, ptr noundef %22)
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.qhT, ptr %24, i32 0, i32 159
  store ptr %23, ptr %25, align 8, !tbaa !18
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.qhT, ptr %26, i32 0, i32 29
  %28 = load i32, ptr %27, align 8, !tbaa !19
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %42

30:                                               ; preds = %2
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = load ptr, ptr %3, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qhT, ptr %32, i32 0, i32 158
  %34 = load ptr, ptr %33, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, ptr noundef %34, i32 noundef 8105, ptr noundef @.str.160)
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.qhT, ptr %36, i32 0, i32 158
  %38 = load ptr, ptr %37, align 8, !tbaa !20
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.qhT, ptr %39, i32 0, i32 159
  %41 = load ptr, ptr %40, align 8, !tbaa !18
  call void @qh_printpoint(ptr noundef %35, ptr noundef %38, ptr noundef @.str.161, ptr noundef %41)
  br label %42

42:                                               ; preds = %30, %2
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.qhT, ptr %43, i32 0, i32 163
  %45 = load ptr, ptr %44, align 8, !tbaa !11
  store ptr %45, ptr %6, align 8, !tbaa !5
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_setfacetplane(ptr noundef %46, ptr noundef %47)
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.facetT, ptr %48, i32 0, i32 15
  %50 = load i32, ptr %49, align 8
  %51 = lshr i32 %50, 16
  %52 = and i32 %51, 1
  %53 = icmp ne i32 %52, 0
  br i1 %53, label %54, label %73

54:                                               ; preds = %42
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 29
  %57 = load i32, ptr %56, align 8, !tbaa !19
  %58 = icmp sge i32 %57, 1
  br i1 %58, label %59, label %67

59:                                               ; preds = %54
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.qhT, ptr %61, i32 0, i32 158
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 14
  %66 = load i32, ptr %65, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %60, ptr noundef %63, i32 noundef 1065, ptr noundef @.str.162, i32 noundef %66)
  br label %67

67:                                               ; preds = %59, %54
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.facetT, ptr %68, i32 0, i32 15
  %70 = load i32, ptr %69, align 8
  %71 = and i32 %70, -65537
  %72 = or i32 %71, 0
  store i32 %72, ptr %69, align 8
  br label %73

73:                                               ; preds = %67, %42
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.qhT, ptr %74, i32 0, i32 258
  %76 = getelementptr inbounds %struct.qhstatT, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds [249 x %union.intrealT], ptr %76, i64 0, i64 57
  %78 = load i32, ptr %77, align 8, !tbaa !23
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 8, !tbaa !23
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.qhT, ptr %81, i32 0, i32 159
  %83 = load ptr, ptr %82, align 8, !tbaa !18
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %80, ptr noundef %83, ptr noundef %84, ptr noundef %11)
  %85 = load double, ptr %11, align 8, !tbaa !9
  %86 = load ptr, ptr %3, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.qhT, ptr %86, i32 0, i32 134
  %88 = load double, ptr %87, align 8, !tbaa !24
  %89 = fcmp ogt double %85, %88
  br i1 %89, label %90, label %137

90:                                               ; preds = %73
  %91 = load ptr, ptr %3, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.qhT, ptr %91, i32 0, i32 29
  %93 = load i32, ptr %92, align 8, !tbaa !19
  %94 = icmp sge i32 %93, 1
  br i1 %94, label %95, label %104

95:                                               ; preds = %90
  %96 = load ptr, ptr %3, align 8, !tbaa !5
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.qhT, ptr %97, i32 0, i32 158
  %99 = load ptr, ptr %98, align 8, !tbaa !20
  %100 = load double, ptr %11, align 8, !tbaa !9
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.facetT, ptr %101, i32 0, i32 14
  %103 = load i32, ptr %102, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %96, ptr noundef %99, i32 noundef 1060, ptr noundef @.str.163, double noundef %100, i32 noundef %103)
  br label %104

104:                                              ; preds = %95, %90
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.qhT, ptr %105, i32 0, i32 163
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  store ptr %107, ptr %5, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %130, %104
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %116

111:                                              ; preds = %108
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.facetT, ptr %112, i32 0, i32 7
  %114 = load ptr, ptr %113, align 8, !tbaa !25
  %115 = icmp ne ptr %114, null
  br label %116

116:                                              ; preds = %111, %108
  %117 = phi i1 [ false, %108 ], [ %115, %111 ]
  br i1 %117, label %118, label %134

118:                                              ; preds = %116
  %119 = load ptr, ptr %5, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 15
  %121 = load i32, ptr %120, align 8
  %122 = lshr i32 %121, 12
  %123 = and i32 %122, 1
  %124 = xor i32 %123, 1
  %125 = load i32, ptr %120, align 8
  %126 = and i32 %124, 1
  %127 = shl i32 %126, 12
  %128 = and i32 %125, -4097
  %129 = or i32 %128, %127
  store i32 %129, ptr %120, align 8
  br label %130

130:                                              ; preds = %118
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 7
  %133 = load ptr, ptr %132, align 8, !tbaa !25
  store ptr %133, ptr %5, align 8, !tbaa !5
  br label %108, !llvm.loop !26

134:                                              ; preds = %116
  %135 = load ptr, ptr %3, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_setfacetplane(ptr noundef %135, ptr noundef %136)
  br label %137

137:                                              ; preds = %134, %73
  %138 = load ptr, ptr %3, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.qhT, ptr %138, i32 0, i32 163
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  store ptr %140, ptr %5, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %159, %137
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = icmp ne ptr %142, null
  br i1 %143, label %144, label %149

144:                                              ; preds = %141
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.facetT, ptr %145, i32 0, i32 7
  %147 = load ptr, ptr %146, align 8, !tbaa !25
  %148 = icmp ne ptr %147, null
  br label %149

149:                                              ; preds = %144, %141
  %150 = phi i1 [ false, %141 ], [ %148, %144 ]
  br i1 %150, label %151, label %163

151:                                              ; preds = %149
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = load ptr, ptr %6, align 8, !tbaa !5
  %154 = icmp ne ptr %152, %153
  br i1 %154, label %155, label %158

155:                                              ; preds = %151
  %156 = load ptr, ptr %3, align 8, !tbaa !5
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setfacetplane(ptr noundef %156, ptr noundef %157)
  br label %158

158:                                              ; preds = %155, %151
  br label %159

159:                                              ; preds = %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.facetT, ptr %160, i32 0, i32 7
  %162 = load ptr, ptr %161, align 8, !tbaa !25
  store ptr %162, ptr %5, align 8, !tbaa !5
  br label %141, !llvm.loop !28

163:                                              ; preds = %149
  %164 = load ptr, ptr %3, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 163
  %166 = load ptr, ptr %165, align 8, !tbaa !11
  store ptr %166, ptr %5, align 8, !tbaa !5
  br label %167

167:                                              ; preds = %270, %163
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = icmp ne ptr %168, null
  br i1 %169, label %170, label %175

170:                                              ; preds = %167
  %171 = load ptr, ptr %5, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.facetT, ptr %171, i32 0, i32 7
  %173 = load ptr, ptr %172, align 8, !tbaa !25
  %174 = icmp ne ptr %173, null
  br label %175

175:                                              ; preds = %170, %167
  %176 = phi i1 [ false, %167 ], [ %174, %170 ]
  br i1 %176, label %177, label %274

177:                                              ; preds = %175
  %178 = load ptr, ptr %5, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.facetT, ptr %178, i32 0, i32 15
  %180 = load i32, ptr %179, align 8
  %181 = lshr i32 %180, 16
  %182 = and i32 %181, 1
  %183 = icmp ne i32 %182, 0
  br i1 %183, label %184, label %203

184:                                              ; preds = %177
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.qhT, ptr %185, i32 0, i32 29
  %187 = load i32, ptr %186, align 8, !tbaa !19
  %188 = icmp sge i32 %187, 1
  br i1 %188, label %189, label %197

189:                                              ; preds = %184
  %190 = load ptr, ptr %3, align 8, !tbaa !5
  %191 = load ptr, ptr %3, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.qhT, ptr %191, i32 0, i32 158
  %193 = load ptr, ptr %192, align 8, !tbaa !20
  %194 = load ptr, ptr %5, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.facetT, ptr %194, i32 0, i32 14
  %196 = load i32, ptr %195, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %190, ptr noundef %193, i32 noundef 1066, ptr noundef @.str.162, i32 noundef %196)
  br label %197

197:                                              ; preds = %189, %184
  %198 = load ptr, ptr %5, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.facetT, ptr %198, i32 0, i32 15
  %200 = load i32, ptr %199, align 8
  %201 = and i32 %200, -65537
  %202 = or i32 %201, 0
  store i32 %202, ptr %199, align 8
  br label %203

203:                                              ; preds = %197, %177
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.qhT, ptr %204, i32 0, i32 258
  %206 = getelementptr inbounds %struct.qhstatT, ptr %205, i32 0, i32 0
  %207 = getelementptr inbounds [249 x %union.intrealT], ptr %206, i64 0, i64 57
  %208 = load i32, ptr %207, align 8, !tbaa !23
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %207, align 8, !tbaa !23
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = load ptr, ptr %3, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.qhT, ptr %211, i32 0, i32 159
  %213 = load ptr, ptr %212, align 8, !tbaa !18
  %214 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %210, ptr noundef %213, ptr noundef %214, ptr noundef %11)
  %215 = load double, ptr %11, align 8, !tbaa !9
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.qhT, ptr %216, i32 0, i32 134
  %218 = load double, ptr %217, align 8, !tbaa !24
  %219 = fcmp ogt double %215, %218
  br i1 %219, label %220, label %269

220:                                              ; preds = %203
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.qhT, ptr %221, i32 0, i32 29
  %223 = load i32, ptr %222, align 8, !tbaa !19
  %224 = icmp sge i32 %223, 1
  br i1 %224, label %225, label %230

225:                                              ; preds = %220
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = load ptr, ptr %3, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.qhT, ptr %227, i32 0, i32 158
  %229 = load ptr, ptr %228, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %226, ptr noundef %229, i32 noundef 1031, ptr noundef @.str.164)
  br label %230

230:                                              ; preds = %225, %220
  %231 = load ptr, ptr %3, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.qhT, ptr %231, i32 0, i32 163
  %233 = load ptr, ptr %232, align 8, !tbaa !11
  store ptr %233, ptr %5, align 8, !tbaa !5
  br label %234

234:                                              ; preds = %264, %230
  %235 = load ptr, ptr %5, align 8, !tbaa !5
  %236 = icmp ne ptr %235, null
  br i1 %236, label %237, label %242

237:                                              ; preds = %234
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.facetT, ptr %238, i32 0, i32 7
  %240 = load ptr, ptr %239, align 8, !tbaa !25
  %241 = icmp ne ptr %240, null
  br label %242

242:                                              ; preds = %237, %234
  %243 = phi i1 [ false, %234 ], [ %241, %237 ]
  br i1 %243, label %244, label %268

244:                                              ; preds = %242
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.facetT, ptr %245, i32 0, i32 15
  %247 = load i32, ptr %246, align 8
  %248 = and i32 %247, -65537
  %249 = or i32 %248, 0
  store i32 %249, ptr %246, align 8
  %250 = load ptr, ptr %5, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.facetT, ptr %250, i32 0, i32 15
  %252 = load i32, ptr %251, align 8
  %253 = lshr i32 %252, 12
  %254 = and i32 %253, 1
  %255 = xor i32 %254, 1
  %256 = load i32, ptr %251, align 8
  %257 = and i32 %255, 1
  %258 = shl i32 %257, 12
  %259 = and i32 %256, -4097
  %260 = or i32 %259, %258
  store i32 %260, ptr %251, align 8
  %261 = load ptr, ptr %3, align 8, !tbaa !5
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = call i32 @qh_orientoutside(ptr noundef %261, ptr noundef %262)
  br label %264

264:                                              ; preds = %244
  %265 = load ptr, ptr %5, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.facetT, ptr %265, i32 0, i32 7
  %267 = load ptr, ptr %266, align 8, !tbaa !25
  store ptr %267, ptr %5, align 8, !tbaa !5
  br label %234, !llvm.loop !29

268:                                              ; preds = %242
  br label %274

269:                                              ; preds = %203
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %5, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 7
  %273 = load ptr, ptr %272, align 8, !tbaa !25
  store ptr %273, ptr %5, align 8, !tbaa !5
  br label %167, !llvm.loop !30

274:                                              ; preds = %268, %175
  %275 = load ptr, ptr %3, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.qhT, ptr %275, i32 0, i32 163
  %277 = load ptr, ptr %276, align 8, !tbaa !11
  store ptr %277, ptr %5, align 8, !tbaa !5
  br label %278

278:                                              ; preds = %372, %274
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = icmp ne ptr %279, null
  br i1 %280, label %281, label %286

281:                                              ; preds = %278
  %282 = load ptr, ptr %5, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.facetT, ptr %282, i32 0, i32 7
  %284 = load ptr, ptr %283, align 8, !tbaa !25
  %285 = icmp ne ptr %284, null
  br label %286

286:                                              ; preds = %281, %278
  %287 = phi i1 [ false, %278 ], [ %285, %281 ]
  br i1 %287, label %288, label %376

288:                                              ; preds = %286
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = load ptr, ptr %5, align 8, !tbaa !5
  %291 = call i32 @qh_checkflipped(ptr noundef %289, ptr noundef %290, ptr noundef null, i32 noundef 1)
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %339, label %293

293:                                              ; preds = %288
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.qhT, ptr %294, i32 0, i32 17
  %296 = load i32, ptr %295, align 8, !tbaa !31
  %297 = icmp ne i32 %296, 0
  br i1 %297, label %298, label %328

298:                                              ; preds = %293
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.qhT, ptr %299, i32 0, i32 8
  %301 = load i32, ptr %300, align 4, !tbaa !32
  %302 = icmp ne i32 %301, 0
  br i1 %302, label %328, label %303

303:                                              ; preds = %298
  %304 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_joggle_restart(ptr noundef %304, ptr noundef @.str.165)
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.qhT, ptr %305, i32 0, i32 99
  %307 = load i32, ptr %306, align 4, !tbaa !33
  %308 = icmp ne i32 %307, 0
  br i1 %308, label %309, label %314

309:                                              ; preds = %303
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = load ptr, ptr %3, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.qhT, ptr %311, i32 0, i32 158
  %313 = load ptr, ptr %312, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %310, ptr noundef %313, i32 noundef 6240, ptr noundef @.str.166)
  br label %319

314:                                              ; preds = %303
  %315 = load ptr, ptr %3, align 8, !tbaa !5
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.qhT, ptr %316, i32 0, i32 158
  %318 = load ptr, ptr %317, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %315, ptr noundef %318, i32 noundef 6239, ptr noundef @.str.167)
  br label %319

319:                                              ; preds = %314, %309
  %320 = load ptr, ptr %3, align 8, !tbaa !5
  %321 = load ptr, ptr %3, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.qhT, ptr %321, i32 0, i32 158
  %323 = load ptr, ptr %322, align 8, !tbaa !20
  %324 = load ptr, ptr %3, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.qhT, ptr %324, i32 0, i32 163
  %326 = load ptr, ptr %325, align 8, !tbaa !11
  call void @qh_printvertexlist(ptr noundef %320, ptr noundef %323, ptr noundef @.str.168, ptr noundef %326, ptr noundef null, i32 noundef 1)
  %327 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %327, i32 noundef 1, ptr noundef null, ptr noundef null)
  br label %338

328:                                              ; preds = %298, %293
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_joggle_restart(ptr noundef %329, ptr noundef @.str.169)
  %330 = load ptr, ptr %3, align 8, !tbaa !5
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.qhT, ptr %331, i32 0, i32 158
  %333 = load ptr, ptr %332, align 8, !tbaa !20
  %334 = load ptr, ptr %5, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.facetT, ptr %334, i32 0, i32 14
  %336 = load i32, ptr %335, align 4, !tbaa !21
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %330, ptr noundef %333, i32 noundef 6154, ptr noundef @.str.170, i32 noundef %336)
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %337, i32 noundef 2, ptr noundef null, ptr noundef null)
  br label %338

338:                                              ; preds = %328, %319
  br label %339

339:                                              ; preds = %338, %288
  store ptr null, ptr %7, align 8, !tbaa !5
  %340 = load ptr, ptr %5, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.facetT, ptr %340, i32 0, i32 10
  %342 = load ptr, ptr %341, align 8, !tbaa !34
  %343 = icmp ne ptr %342, null
  br i1 %343, label %344, label %371

344:                                              ; preds = %339
  %345 = load ptr, ptr %5, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.facetT, ptr %345, i32 0, i32 10
  %347 = load ptr, ptr %346, align 8, !tbaa !34
  %348 = getelementptr inbounds %struct.setT, ptr %347, i32 0, i32 1
  %349 = getelementptr inbounds [1 x %union.setelemT], ptr %348, i64 0, i64 0
  store ptr %349, ptr %8, align 8, !tbaa !5
  br label %350

350:                                              ; preds = %369, %344
  %351 = load ptr, ptr %8, align 8, !tbaa !5
  %352 = getelementptr inbounds ptr, ptr %351, i32 1
  store ptr %352, ptr %8, align 8, !tbaa !5
  %353 = load ptr, ptr %351, align 8, !tbaa !5
  store ptr %353, ptr %7, align 8, !tbaa !5
  %354 = icmp ne ptr %353, null
  br i1 %354, label %355, label %370

355:                                              ; preds = %350
  %356 = load ptr, ptr %3, align 8, !tbaa !5
  %357 = load ptr, ptr %5, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.facetT, ptr %357, i32 0, i32 3
  %359 = load ptr, ptr %358, align 8, !tbaa !35
  %360 = load ptr, ptr %7, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.facetT, ptr %360, i32 0, i32 3
  %362 = load ptr, ptr %361, align 8, !tbaa !35
  %363 = call double @qh_getangle(ptr noundef %356, ptr noundef %359, ptr noundef %362)
  store double %363, ptr %9, align 8, !tbaa !9
  %364 = load double, ptr %10, align 8, !tbaa !9
  %365 = load double, ptr %9, align 8, !tbaa !9
  %366 = fcmp ogt double %364, %365
  br i1 %366, label %367, label %369

367:                                              ; preds = %355
  %368 = load double, ptr %9, align 8, !tbaa !9
  store double %368, ptr %10, align 8, !tbaa !9
  br label %369

369:                                              ; preds = %367, %355
  br label %350, !llvm.loop !36

370:                                              ; preds = %350
  br label %371

371:                                              ; preds = %370, %339
  br label %372

372:                                              ; preds = %371
  %373 = load ptr, ptr %5, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.facetT, ptr %373, i32 0, i32 7
  %375 = load ptr, ptr %374, align 8, !tbaa !25
  store ptr %375, ptr %5, align 8, !tbaa !5
  br label %278, !llvm.loop !37

376:                                              ; preds = %286
  %377 = load double, ptr %10, align 8, !tbaa !9
  %378 = fcmp olt double %377, 0xBFEFFFFFFAA19C47
  br i1 %378, label %379, label %409

379:                                              ; preds = %376
  %380 = load ptr, ptr %3, align 8, !tbaa !5
  %381 = getelementptr inbounds %struct.qhT, ptr %380, i32 0, i32 45
  %382 = load i32, ptr %381, align 8, !tbaa !38
  %383 = icmp ne i32 %382, 0
  br i1 %383, label %409, label %384

384:                                              ; preds = %379
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %385 = load double, ptr %10, align 8, !tbaa !9
  %386 = fadd double 1.000000e+00, %385
  store double %386, ptr %12, align 8, !tbaa !9
  %387 = load ptr, ptr %3, align 8, !tbaa !5
  %388 = getelementptr inbounds %struct.qhT, ptr %387, i32 0, i32 150
  store i32 1, ptr %388, align 8, !tbaa !39
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_option(ptr noundef %389, ptr noundef @.str.171, ptr noundef null, ptr noundef %12)
  %390 = load double, ptr %10, align 8, !tbaa !9
  %391 = fcmp olt double %390, 0xBFEFFFFFFFFFFFF7
  br i1 %391, label %392, label %408

392:                                              ; preds = %384
  %393 = load ptr, ptr %3, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.qhT, ptr %393, i32 0, i32 79
  %395 = load i32, ptr %394, align 4, !tbaa !40
  %396 = icmp ne i32 %395, 0
  br i1 %396, label %408, label %397

397:                                              ; preds = %392
  %398 = load ptr, ptr %3, align 8, !tbaa !5
  %399 = getelementptr inbounds %struct.qhT, ptr %398, i32 0, i32 63
  %400 = load i32, ptr %399, align 8, !tbaa !41
  %401 = icmp ne i32 %400, 0
  br i1 %401, label %402, label %408

402:                                              ; preds = %397
  %403 = load ptr, ptr %3, align 8, !tbaa !5
  %404 = load ptr, ptr %3, align 8, !tbaa !5
  %405 = getelementptr inbounds %struct.qhT, ptr %404, i32 0, i32 158
  %406 = load ptr, ptr %405, align 8, !tbaa !20
  %407 = load double, ptr %10, align 8, !tbaa !9
  call void @qh_printhelp_narrowhull(ptr noundef %403, ptr noundef %406, double noundef %407)
  br label %408

408:                                              ; preds = %402, %397, %392, %384
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  br label %409

409:                                              ; preds = %408, %379, %376
  %410 = load ptr, ptr %3, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.qhT, ptr %410, i32 0, i32 110
  %412 = load i32, ptr %411, align 8, !tbaa !42
  %413 = add nsw i32 %412, 1
  %414 = load ptr, ptr %3, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.qhT, ptr %414, i32 0, i32 258
  %416 = getelementptr inbounds %struct.qhstatT, ptr %415, i32 0, i32 0
  %417 = getelementptr inbounds [249 x %union.intrealT], ptr %416, i64 0, i64 187
  store i32 %413, ptr %417, align 8, !tbaa !23
  %418 = load ptr, ptr %3, align 8, !tbaa !5
  %419 = load ptr, ptr %3, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.qhT, ptr %419, i32 0, i32 163
  %421 = load ptr, ptr %420, align 8, !tbaa !11
  call void @qh_checkpolygon(ptr noundef %418, ptr noundef %421)
  %422 = load ptr, ptr %3, align 8, !tbaa !5
  %423 = load ptr, ptr %3, align 8, !tbaa !5
  %424 = getelementptr inbounds %struct.qhT, ptr %423, i32 0, i32 163
  %425 = load ptr, ptr %424, align 8, !tbaa !11
  call void @qh_checkconvex(ptr noundef %422, ptr noundef %425, i32 noundef 1)
  %426 = load ptr, ptr %3, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.qhT, ptr %426, i32 0, i32 29
  %428 = load i32, ptr %427, align 8, !tbaa !19
  %429 = icmp sge i32 %428, 1
  br i1 %429, label %430, label %435

430:                                              ; preds = %409
  %431 = load ptr, ptr %3, align 8, !tbaa !5
  %432 = load ptr, ptr %3, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.qhT, ptr %432, i32 0, i32 158
  %434 = load ptr, ptr %433, align 8, !tbaa !20
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %431, ptr noundef %434, i32 noundef 8105, ptr noundef @.str.172)
  br label %435

435:                                              ; preds = %430, %409
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

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

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

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

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

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

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) #1

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

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


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

@.str.160 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.161 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.162 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.163 = external hidden unnamed_addr constant [122 x i8], align 1
@.str.164 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.165 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.166 = external hidden unnamed_addr constant [273 x i8], align 1
@.str.167 = external hidden unnamed_addr constant [331 x i8], align 1
@.str.168 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.169 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.170 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.171 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.172 = external hidden unnamed_addr constant [37 x i8], align 1

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

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

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

declare void @qh_distplane(ptr noundef, ptr noundef, ptr 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: nounwind uwtable
declare dso_local void @qh_checkpolygon(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_initialhull(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  tail call void @qh_createsimplex(ptr noundef %0, ptr noundef %1)
  tail call void @qh_resetlists(ptr noundef %0, i32 noundef 0, i32 noundef 1)
  %5 = getelementptr inbounds i8, ptr %0, i64 2456
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 2472
  store ptr %6, ptr %7, align 8, !tbaa !15
  %8 = tail call ptr @qh_getcenter(ptr noundef %0, ptr noundef %1) #3
  %9 = getelementptr inbounds i8, ptr %0, i64 2432
  store ptr %8, ptr %9, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %0, i64 136
  %11 = load i32, ptr %10, align 8, !tbaa !17
  %.not = icmp eq i32 %11, 0
  br i1 %.not, label %17, label %12

12:                                               ; preds = %2
  %13 = getelementptr inbounds i8, ptr %0, i64 2424
  %14 = load ptr, ptr %13, align 8, !tbaa !18
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %14, i32 noundef 8105, ptr noundef nonnull @.str.160) #3
  %15 = load ptr, ptr %13, align 8, !tbaa !18
  %16 = load ptr, ptr %9, align 8, !tbaa !16
  tail call void @qh_printpoint(ptr noundef nonnull %0, ptr noundef %15, ptr noundef nonnull @.str.161, ptr noundef %16) #3
  br label %17

17:                                               ; preds = %12, %2
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  tail call void @qh_setfacetplane(ptr noundef nonnull %0, ptr noundef %18) #3
  %19 = getelementptr inbounds i8, ptr %18, i64 112
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, 65536
  %.not142 = icmp eq i32 %21, 0
  br i1 %.not142, label %33, label %22

22:                                               ; preds = %17
  %23 = load i32, ptr %10, align 8, !tbaa !17
  %24 = icmp sgt i32 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 2424
  %27 = load ptr, ptr %26, align 8, !tbaa !18
  %28 = getelementptr inbounds i8, ptr %18, i64 108
  %29 = load i32, ptr %28, align 4, !tbaa !19
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %27, i32 noundef 1065, ptr noundef nonnull @.str.162, i32 noundef %29) #3
  %.pre = load i32, ptr %19, align 8
  br label %30

30:                                               ; preds = %25, %22
  %31 = phi i32 [ %.pre, %25 ], [ %20, %22 ]
  %32 = and i32 %31, -65537
  store i32 %32, ptr %19, align 8
  br label %33

33:                                               ; preds = %30, %17
  %34 = getelementptr inbounds i8, ptr %0, i64 3880
  %35 = load i32, ptr %34, align 8, !tbaa !21
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %34, align 8, !tbaa !21
  %37 = load ptr, ptr %9, align 8, !tbaa !16
  call void @qh_distplane(ptr noundef nonnull %0, ptr noundef %37, ptr noundef nonnull %18, ptr noundef nonnull %3) #3
  %38 = load double, ptr %3, align 8, !tbaa !22
  %39 = getelementptr inbounds i8, ptr %0, i64 1784
  %40 = load double, ptr %39, align 8, !tbaa !23
  %41 = fcmp ogt double %38, %40
  br i1 %41, label %42, label %59

42:                                               ; preds = %33
  %43 = load i32, ptr %10, align 8, !tbaa !17
  %44 = icmp sgt i32 %43, 0
  br i1 %44, label %45, label %50

45:                                               ; preds = %42
  %46 = getelementptr inbounds i8, ptr %0, i64 2424
  %47 = load ptr, ptr %46, align 8, !tbaa !18
  %48 = getelementptr inbounds i8, ptr %18, i64 108
  %49 = load i32, ptr %48, align 4, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %47, i32 noundef 1060, ptr noundef nonnull @.str.163, double noundef %38, i32 noundef %49) #3
  br label %50

50:                                               ; preds = %45, %42
  %.0133165 = load ptr, ptr %5, align 8, !tbaa !24
  %.not143166 = icmp eq ptr %.0133165, null
  br i1 %.not143166, label %.critedge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %50
  %51 = getelementptr inbounds i8, ptr %.0133165, i64 56
  %52 = load ptr, ptr %51, align 8, !tbaa !24
  %.not144200 = icmp eq ptr %52, null
  br i1 %.not144200, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %53 = phi ptr [ %58, %.lr.ph ], [ %52, %.lr.ph.preheader ]
  %.0133167201 = phi ptr [ %53, %.lr.ph ], [ %.0133165, %.lr.ph.preheader ]
  %54 = getelementptr inbounds i8, ptr %.0133167201, i64 112
  %55 = load i32, ptr %54, align 8
  %56 = xor i32 %55, 4096
  store i32 %56, ptr %54, align 8
  %57 = getelementptr inbounds i8, ptr %53, i64 56
  %58 = load ptr, ptr %57, align 8, !tbaa !24
  %.not144 = icmp eq ptr %58, null
  br i1 %.not144, label %.critedge, label %.lr.ph

.critedge:                                        ; preds = %.lr.ph, %.lr.ph.preheader, %50
  call void @qh_setfacetplane(ptr noundef %0, ptr noundef %18) #3
  br label %59

59:                                               ; preds = %.critedge, %33
  %.1134169 = load ptr, ptr %5, align 8, !tbaa !24
  %.not145170 = icmp eq ptr %.1134169, null
  br i1 %.not145170, label %.critedge2, label %.lr.ph172

.lr.ph172:                                        ; preds = %59, %64
  %.1134171 = phi ptr [ %.1134, %64 ], [ %.1134169, %59 ]
  %60 = getelementptr inbounds i8, ptr %.1134171, i64 56
  %61 = load ptr, ptr %60, align 8, !tbaa !24
  %.not146 = icmp eq ptr %61, null
  br i1 %.not146, label %.critedge2, label %62

62:                                               ; preds = %.lr.ph172
  %.not163 = icmp eq ptr %.1134171, %18
  br i1 %.not163, label %64, label %63

63:                                               ; preds = %62
  call void @qh_setfacetplane(ptr noundef %0, ptr noundef nonnull %.1134171) #3
  %.1134.pre = load ptr, ptr %60, align 8, !tbaa !24
  br label %64

64:                                               ; preds = %62, %63
  %.1134 = phi ptr [ %61, %62 ], [ %.1134.pre, %63 ]
  %.not145 = icmp eq ptr %.1134, null
  br i1 %.not145, label %.critedge2, label %.lr.ph172, !llvm.loop !25

.critedge2:                                       ; preds = %.lr.ph172, %64, %59
  %65 = getelementptr inbounds i8, ptr %0, i64 2424
  br label %66

66:                                               ; preds = %84, %.critedge2
  %.2135.in = phi ptr [ %5, %.critedge2 ], [ %68, %84 ]
  %.2135 = load ptr, ptr %.2135.in, align 8, !tbaa !24
  %.not147 = icmp eq ptr %.2135, null
  br i1 %.not147, label %.critedge6, label %67

67:                                               ; preds = %66
  %68 = getelementptr inbounds i8, ptr %.2135, i64 56
  %69 = load ptr, ptr %68, align 8, !tbaa !27
  %.not148 = icmp eq ptr %69, null
  br i1 %.not148, label %.critedge6, label %70

70:                                               ; preds = %67
  %71 = getelementptr inbounds i8, ptr %.2135, i64 112
  %72 = load i32, ptr %71, align 8
  %73 = and i32 %72, 65536
  %.not149 = icmp eq i32 %73, 0
  br i1 %.not149, label %84, label %74

74:                                               ; preds = %70
  %75 = load i32, ptr %10, align 8, !tbaa !17
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %81

77:                                               ; preds = %74
  %78 = load ptr, ptr %65, align 8, !tbaa !18
  %79 = getelementptr inbounds i8, ptr %.2135, i64 108
  %80 = load i32, ptr %79, align 4, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %78, i32 noundef 1066, ptr noundef nonnull @.str.162, i32 noundef %80) #3
  %.pre194 = load i32, ptr %71, align 8
  br label %81

81:                                               ; preds = %77, %74
  %82 = phi i32 [ %.pre194, %77 ], [ %72, %74 ]
  %83 = and i32 %82, -65537
  store i32 %83, ptr %71, align 8
  br label %84

84:                                               ; preds = %81, %70
  %85 = load i32, ptr %34, align 8, !tbaa !21
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %34, align 8, !tbaa !21
  %87 = load ptr, ptr %9, align 8, !tbaa !16
  call void @qh_distplane(ptr noundef %0, ptr noundef %87, ptr noundef nonnull %.2135, ptr noundef nonnull %3) #3
  %88 = load double, ptr %3, align 8, !tbaa !22
  %89 = load double, ptr %39, align 8, !tbaa !23
  %90 = fcmp ogt double %88, %89
  br i1 %90, label %91, label %66, !llvm.loop !28

91:                                               ; preds = %84
  %92 = load i32, ptr %10, align 8, !tbaa !17
  %93 = icmp sgt i32 %92, 0
  br i1 %93, label %94, label %96

94:                                               ; preds = %91
  %95 = load ptr, ptr %65, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %95, i32 noundef 1031, ptr noundef nonnull @.str.164) #3
  br label %96

96:                                               ; preds = %94, %91
  %.3136174 = load ptr, ptr %5, align 8, !tbaa !24
  %.not150175 = icmp eq ptr %.3136174, null
  br i1 %.not150175, label %.critedge8.thread, label %.lr.ph177

.lr.ph177:                                        ; preds = %96, %99
  %.3136176 = phi ptr [ %.3136, %99 ], [ %.3136174, %96 ]
  %97 = getelementptr inbounds i8, ptr %.3136176, i64 56
  %98 = load ptr, ptr %97, align 8, !tbaa !27
  %.not151 = icmp eq ptr %98, null
  br i1 %.not151, label %.critedge6, label %99

99:                                               ; preds = %.lr.ph177
  %100 = getelementptr inbounds i8, ptr %.3136176, i64 112
  %101 = load i32, ptr %100, align 8
  %102 = and i32 %101, -65537
  %103 = xor i32 %102, 4096
  store i32 %103, ptr %100, align 8
  %104 = call i32 @qh_orientoutside(ptr noundef %0, ptr noundef nonnull %.3136176) #3
  %.3136 = load ptr, ptr %97, align 8, !tbaa !24
  %.not150 = icmp eq ptr %.3136, null
  br i1 %.not150, label %.critedge6, label %.lr.ph177, !llvm.loop !29

.critedge6:                                       ; preds = %66, %67, %99, %.lr.ph177
  %.4184.pr = load ptr, ptr %5, align 8, !tbaa !24
  %.not152185 = icmp eq ptr %.4184.pr, null
  br i1 %.not152185, label %.critedge8.thread, label %.lr.ph188

.lr.ph188:                                        ; preds = %.critedge6
  %105 = getelementptr inbounds i8, ptr %0, i64 80
  %106 = getelementptr inbounds i8, ptr %0, i64 36
  %107 = getelementptr inbounds i8, ptr %0, i64 572
  br label %108

108:                                              ; preds = %.lr.ph188, %.loopexit
  %.4187 = phi ptr [ %.4184.pr, %.lr.ph188 ], [ %.4, %.loopexit ]
  %.0186 = phi double [ 0x7FEFFFFFFFFFFFFF, %.lr.ph188 ], [ %.3, %.loopexit ]
  %109 = getelementptr inbounds i8, ptr %.4187, i64 56
  %110 = load ptr, ptr %109, align 8, !tbaa !27
  %.not153 = icmp eq ptr %110, null
  br i1 %.not153, label %.critedge8, label %111

111:                                              ; preds = %108
  %112 = call i32 @qh_checkflipped(ptr noundef %0, ptr noundef nonnull %.4187, ptr noundef null, i32 noundef 1) #3
  %.not157 = icmp eq i32 %112, 0
  br i1 %.not157, label %113, label %129

113:                                              ; preds = %111
  %114 = load i32, ptr %105, align 8, !tbaa !30
  %.not158 = icmp eq i32 %114, 0
  br i1 %.not158, label %125, label %115

115:                                              ; preds = %113
  %116 = load i32, ptr %106, align 4, !tbaa !31
  %.not159 = icmp eq i32 %116, 0
  br i1 %.not159, label %117, label %125

117:                                              ; preds = %115
  call void @qh_joggle_restart(ptr noundef nonnull %0, ptr noundef nonnull @.str.165) #3
  %118 = load i32, ptr %107, align 4, !tbaa !32
  %.not160 = icmp eq i32 %118, 0
  %119 = load ptr, ptr %65, align 8, !tbaa !18
  br i1 %.not160, label %121, label %120

120:                                              ; preds = %117
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %119, i32 noundef 6240, ptr noundef nonnull @.str.166) #3
  br label %122

121:                                              ; preds = %117
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %119, i32 noundef 6239, ptr noundef nonnull @.str.167) #3
  br label %122

122:                                              ; preds = %121, %120
  %123 = load ptr, ptr %65, align 8, !tbaa !18
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_printvertexlist(ptr noundef nonnull %0, ptr noundef %123, ptr noundef nonnull @.str.168, ptr noundef %124, ptr noundef null, i32 noundef 1) #3
  br label %.sink.split

125:                                              ; preds = %115, %113
  call void @qh_joggle_restart(ptr noundef nonnull %0, ptr noundef nonnull @.str.169) #3
  %126 = load ptr, ptr %65, align 8, !tbaa !18
  %127 = getelementptr inbounds i8, ptr %.4187, i64 108
  %128 = load i32, ptr %127, align 4, !tbaa !19
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %126, i32 noundef 6154, ptr noundef nonnull @.str.170, i32 noundef %128) #3
  br label %.sink.split

.sink.split:                                      ; preds = %125, %122
  %.sink = phi i32 [ 1, %122 ], [ 2, %125 ]
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef %.sink, ptr noundef null, ptr noundef null) #3
  br label %129

129:                                              ; preds = %.sink.split, %111
  %130 = getelementptr inbounds i8, ptr %.4187, i64 80
  %131 = load ptr, ptr %130, align 8, !tbaa !33
  %.not161 = icmp eq ptr %131, null
  br i1 %.not161, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %129
  %.0137179 = getelementptr inbounds i8, ptr %131, i64 8
  %132 = load ptr, ptr %.0137179, align 8, !tbaa !24
  %.not162180 = icmp eq ptr %132, null
  br i1 %.not162180, label %.loopexit, label %.lr.ph183

.lr.ph183:                                        ; preds = %.preheader
  %133 = getelementptr inbounds i8, ptr %.4187, i64 24
  br label %134

134:                                              ; preds = %.lr.ph183, %134
  %135 = phi ptr [ %132, %.lr.ph183 ], [ %141, %134 ]
  %.0137182 = phi ptr [ %.0137179, %.lr.ph183 ], [ %.0137, %134 ]
  %.1181 = phi double [ %.0186, %.lr.ph183 ], [ %.2, %134 ]
  %136 = load ptr, ptr %133, align 8, !tbaa !34
  %137 = getelementptr inbounds i8, ptr %135, i64 24
  %138 = load ptr, ptr %137, align 8, !tbaa !34
  %139 = call double @qh_getangle(ptr noundef %0, ptr noundef %136, ptr noundef %138) #3
  %140 = fcmp ogt double %.1181, %139
  %.2 = select i1 %140, double %139, double %.1181
  %.0137 = getelementptr inbounds i8, ptr %.0137182, i64 8
  %141 = load ptr, ptr %.0137, align 8, !tbaa !24
  %.not162 = icmp eq ptr %141, null
  br i1 %.not162, label %.loopexit, label %134, !llvm.loop !35

.loopexit:                                        ; preds = %134, %.preheader, %129
  %.3 = phi double [ %.0186, %129 ], [ %.0186, %.preheader ], [ %.2, %134 ]
  %.4 = load ptr, ptr %109, align 8, !tbaa !24
  %.not152 = icmp eq ptr %.4, null
  br i1 %.not152, label %.critedge8, label %108, !llvm.loop !36

.critedge8:                                       ; preds = %108, %.loopexit
  %.0.lcssa = phi double [ %.0186, %108 ], [ %.3, %.loopexit ]
  %142 = fcmp olt double %.0.lcssa, 0xBFEFFFFFFAA19C47
  br i1 %142, label %143, label %.critedge8.thread

143:                                              ; preds = %.critedge8
  %144 = getelementptr inbounds i8, ptr %0, i64 224
  %145 = load i32, ptr %144, align 8, !tbaa !37
  %.not154 = icmp eq i32 %145, 0
  br i1 %.not154, label %146, label %.critedge8.thread

146:                                              ; preds = %143
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %147 = fadd double %.0.lcssa, 1.000000e+00
  store double %147, ptr %4, align 8, !tbaa !22
  %148 = getelementptr inbounds i8, ptr %0, i64 1912
  store i32 1, ptr %148, align 8, !tbaa !38
  call void @qh_option(ptr noundef nonnull %0, ptr noundef nonnull @.str.171, ptr noundef null, ptr noundef nonnull %4) #3
  %149 = fcmp olt double %.0.lcssa, 0xBFEFFFFFFFFFFFF7
  br i1 %149, label %150, label %158

150:                                              ; preds = %146
  %151 = getelementptr inbounds i8, ptr %0, i64 484
  %152 = load i32, ptr %151, align 4, !tbaa !39
  %.not155 = icmp eq i32 %152, 0
  br i1 %.not155, label %153, label %158

153:                                              ; preds = %150
  %154 = getelementptr inbounds i8, ptr %0, i64 296
  %155 = load i32, ptr %154, align 8, !tbaa !40
  %.not156 = icmp eq i32 %155, 0
  br i1 %.not156, label %158, label %156

156:                                              ; preds = %153
  %157 = load ptr, ptr %65, align 8, !tbaa !18
  call void @qh_printhelp_narrowhull(ptr noundef nonnull %0, ptr noundef %157, double noundef %.0.lcssa) #3
  br label %158

158:                                              ; preds = %156, %153, %150, %146
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  br label %.critedge8.thread

.critedge8.thread:                                ; preds = %96, %.critedge6, %158, %143, %.critedge8
  %159 = getelementptr inbounds i8, ptr %0, i64 632
  %160 = load i32, ptr %159, align 8, !tbaa !41
  %161 = add nsw i32 %160, 1
  %162 = getelementptr inbounds i8, ptr %0, i64 4920
  store i32 %161, ptr %162, align 8, !tbaa !21
  %163 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_checkpolygon(ptr noundef %0, ptr noundef %163)
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_checkconvex(ptr noundef %0, ptr noundef %164, i32 noundef 1)
  %165 = load i32, ptr %10, align 8, !tbaa !17
  %166 = icmp sgt i32 %165, 0
  br i1 %166, label %167, label %169

167:                                              ; preds = %.critedge8.thread
  %168 = load ptr, ptr %65, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %168, i32 noundef 8105, ptr noundef nonnull @.str.172) #3
  br label %169

169:                                              ; preds = %167, %.critedge8.thread
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void
}

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

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

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

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

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

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

declare double @qh_getangle(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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


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