; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (libqhull_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 }

@.str = external hidden unnamed_addr constant [111 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qh_qhull(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  %4 = call i64 @clock() #4
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct.qhT, ptr %5, i32 0, i32 186
  store i64 %4, ptr %6, align 8, !tbaa !9
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.qhT, ptr %7, i32 0, i32 79
  %9 = load i32, ptr %8, align 4, !tbaa !16
  %10 = icmp ne i32 %9, 0
  br i1 %10, label %16, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.qhT, ptr %12, i32 0, i32 197
  %14 = load double, ptr %13, align 8, !tbaa !17
  %15 = fcmp olt double %14, 0x7FDFFFFFFFFFFFFF
  br i1 %15, label %16, label %18

16:                                               ; preds = %11, %1
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_build_withrestart(ptr noundef %17)
  br label %21

18:                                               ; preds = %11
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_initbuild(ptr noundef %19)
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_buildhull(ptr noundef %20)
  br label %21

21:                                               ; preds = %18, %16
  %22 = load ptr, ptr %2, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 87
  %24 = load i32, ptr %23, align 4, !tbaa !18
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %225, label %26

26:                                               ; preds = %21
  %27 = load ptr, ptr %2, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 88
  %29 = load i32, ptr %28, align 8, !tbaa !19
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %225, label %31

31:                                               ; preds = %26
  %32 = load ptr, ptr %2, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.qhT, ptr %32, i32 0, i32 89
  %34 = load i32, ptr %33, align 4, !tbaa !20
  %35 = icmp ne i32 %34, 0
  br i1 %35, label %225, label %36

36:                                               ; preds = %31
  %37 = load ptr, ptr %2, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.qhT, ptr %37, i32 0, i32 220
  %39 = load i32, ptr %38, align 4, !tbaa !21
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %54

41:                                               ; preds = %36
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.qhT, ptr %42, i32 0, i32 91
  %44 = load i32, ptr %43, align 4, !tbaa !22
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %54, label %46

46:                                               ; preds = %41
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 37
  %49 = load i32, ptr %48, align 4, !tbaa !23
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %54

51:                                               ; preds = %46
  %52 = load ptr, ptr %2, align 8, !tbaa !5
  %53 = call i32 @qh_checkzero(ptr noundef %52, i32 noundef 1)
  br label %54

54:                                               ; preds = %51, %46, %41, %36
  %55 = load ptr, ptr %2, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.qhT, ptr %55, i32 0, i32 220
  %57 = load i32, ptr %56, align 4, !tbaa !21
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %82

59:                                               ; preds = %54
  %60 = load ptr, ptr %2, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.qhT, ptr %60, i32 0, i32 91
  %62 = load i32, ptr %61, align 4, !tbaa !22
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %82, label %64

64:                                               ; preds = %59
  %65 = load ptr, ptr %2, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.qhT, ptr %65, i32 0, i32 219
  %67 = load i32, ptr %66, align 8, !tbaa !24
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %82, label %69

69:                                               ; preds = %64
  %70 = load ptr, ptr %2, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.qhT, ptr %70, i32 0, i32 29
  %72 = load i32, ptr %71, align 8, !tbaa !25
  %73 = icmp sge i32 %72, 2
  br i1 %73, label %74, label %79

74:                                               ; preds = %69
  %75 = load ptr, ptr %2, align 8, !tbaa !5
  %76 = load ptr, ptr %2, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.qhT, ptr %76, i32 0, i32 158
  %78 = load ptr, ptr %77, align 8, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %75, ptr noundef %78, i32 noundef 2055, ptr noundef @.str)
  br label %79

79:                                               ; preds = %74, %69
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 105
  store i32 0, ptr %81, align 8, !tbaa !27
  br label %171

82:                                               ; preds = %64, %59, %54
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_initmergesets(ptr noundef %83)
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.qhT, ptr %84, i32 0, i32 37
  %86 = load i32, ptr %85, align 4, !tbaa !23
  %87 = icmp ne i32 %86, 0
  br i1 %87, label %98, label %88

88:                                               ; preds = %82
  %89 = load ptr, ptr %2, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.qhT, ptr %89, i32 0, i32 110
  %91 = load i32, ptr %90, align 8, !tbaa !28
  %92 = icmp sgt i32 %91, 5
  br i1 %92, label %93, label %117

93:                                               ; preds = %88
  %94 = load ptr, ptr %2, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.qhT, ptr %94, i32 0, i32 52
  %96 = load i32, ptr %95, align 4, !tbaa !29
  %97 = icmp ne i32 %96, 0
  br i1 %97, label %98, label %117

98:                                               ; preds = %93, %82
  %99 = load ptr, ptr %2, align 8, !tbaa !5
  %100 = load ptr, ptr %2, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.qhT, ptr %100, i32 0, i32 40
  %102 = load double, ptr %101, align 8, !tbaa !30
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.qhT, ptr %103, i32 0, i32 15
  %105 = load double, ptr %104, align 8, !tbaa !31
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.qhT, ptr %106, i32 0, i32 51
  %108 = load i32, ptr %107, align 8, !tbaa !32
  %109 = icmp ne i32 %108, 0
  br i1 %109, label %110, label %111

110:                                              ; preds = %98
  br label %115

111:                                              ; preds = %98
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.qhT, ptr %112, i32 0, i32 91
  %114 = load i32, ptr %113, align 4, !tbaa !22
  br label %115

115:                                              ; preds = %111, %110
  %116 = phi i32 [ 0, %110 ], [ %114, %111 ]
  call void @qh_postmerge(ptr noundef %99, ptr noundef @.str.1, double noundef %102, double noundef %105, i32 noundef %116)
  br label %136

117:                                              ; preds = %93, %88
  %118 = load ptr, ptr %2, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.qhT, ptr %118, i32 0, i32 51
  %120 = load i32, ptr %119, align 8, !tbaa !32
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %135, label %122

122:                                              ; preds = %117
  %123 = load ptr, ptr %2, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.qhT, ptr %123, i32 0, i32 91
  %125 = load i32, ptr %124, align 4, !tbaa !22
  %126 = icmp ne i32 %125, 0
  br i1 %126, label %127, label %135

127:                                              ; preds = %122
  %128 = load ptr, ptr %2, align 8, !tbaa !5
  %129 = load ptr, ptr %2, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.qhT, ptr %129, i32 0, i32 40
  %131 = load double, ptr %130, align 8, !tbaa !30
  %132 = load ptr, ptr %2, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.qhT, ptr %132, i32 0, i32 15
  %134 = load double, ptr %133, align 8, !tbaa !31
  call void @qh_postmerge(ptr noundef %128, ptr noundef @.str.2, double noundef %131, double noundef %134, i32 noundef 1)
  br label %135

135:                                              ; preds = %127, %122, %117
  br label %136

136:                                              ; preds = %135, %115
  %137 = load ptr, ptr %2, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qhT, ptr %137, i32 0, i32 51
  %139 = load i32, ptr %138, align 8, !tbaa !32
  %140 = icmp ne i32 %139, 0
  br i1 %140, label %141, label %152

141:                                              ; preds = %136
  %142 = load ptr, ptr %2, align 8, !tbaa !5
  %143 = load ptr, ptr %2, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qhT, ptr %143, i32 0, i32 41
  %145 = load double, ptr %144, align 8, !tbaa !33
  %146 = load ptr, ptr %2, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.qhT, ptr %146, i32 0, i32 16
  %148 = load double, ptr %147, align 8, !tbaa !34
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.qhT, ptr %149, i32 0, i32 91
  %151 = load i32, ptr %150, align 4, !tbaa !22
  call void @qh_postmerge(ptr noundef %142, ptr noundef @.str.3, double noundef %145, double noundef %148, i32 noundef %151)
  br label %152

152:                                              ; preds = %141, %136
  %153 = load ptr, ptr %2, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.qhT, ptr %153, i32 0, i32 167
  %155 = load ptr, ptr %154, align 8, !tbaa !35
  %156 = load ptr, ptr %2, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.qhT, ptr %156, i32 0, i32 163
  %158 = load ptr, ptr %157, align 8, !tbaa !36
  %159 = icmp eq ptr %155, %158
  br i1 %159, label %160, label %168

160:                                              ; preds = %152
  %161 = load ptr, ptr %2, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.qhT, ptr %161, i32 0, i32 204
  store i32 1, ptr %162, align 8, !tbaa !37
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_partitionvisible(ptr noundef %163, i32 noundef 0, ptr noundef %3)
  %164 = load ptr, ptr %2, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.qhT, ptr %164, i32 0, i32 204
  store i32 0, ptr %165, align 8, !tbaa !37
  %166 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_deletevisible(ptr noundef %166)
  %167 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_resetlists(ptr noundef %167, i32 noundef 0, i32 noundef 1)
  br label %168

168:                                              ; preds = %160, %152
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_all_vertexmerges(ptr noundef %169, i32 noundef -1, ptr noundef null, ptr noundef null)
  %170 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_freemergesets(ptr noundef %170)
  br label %171

171:                                              ; preds = %168, %79
  %172 = load ptr, ptr %2, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.qhT, ptr %172, i32 0, i32 94
  %174 = load i32, ptr %173, align 8, !tbaa !38
  %175 = icmp eq i32 %174, -1
  br i1 %175, label %176, label %194

176:                                              ; preds = %171
  %177 = load ptr, ptr %2, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.qhT, ptr %177, i32 0, i32 92
  %179 = load i32, ptr %178, align 8, !tbaa !39
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.qhT, ptr %180, i32 0, i32 29
  %182 = load i32, ptr %181, align 8, !tbaa !25
  %183 = icmp sgt i32 %179, %182
  br i1 %183, label %184, label %194

184:                                              ; preds = %176
  %185 = load ptr, ptr %2, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.qhT, ptr %185, i32 0, i32 92
  %187 = load i32, ptr %186, align 8, !tbaa !39
  %188 = load ptr, ptr %2, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.qhT, ptr %188, i32 0, i32 29
  store i32 %187, ptr %189, align 8, !tbaa !25
  %190 = load ptr, ptr %2, align 8, !tbaa !5
  %191 = load ptr, ptr %2, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.qhT, ptr %191, i32 0, i32 158
  %193 = load ptr, ptr %192, align 8, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %190, ptr noundef %193, i32 noundef 2112, ptr noundef @.str.4)
  br label %194

194:                                              ; preds = %184, %176, %171
  %195 = load ptr, ptr %2, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.qhT, ptr %195, i32 0, i32 105
  %197 = load i32, ptr %196, align 8, !tbaa !27
  %198 = icmp ne i32 %197, 0
  br i1 %198, label %199, label %212

199:                                              ; preds = %194
  %200 = load ptr, ptr %2, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qhT, ptr %200, i32 0, i32 77
  %202 = load i32, ptr %201, align 4, !tbaa !40
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %210

204:                                              ; preds = %199
  %205 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_buildtracing(ptr noundef %205, ptr noundef null, ptr noundef null)
  %206 = load ptr, ptr %2, align 8, !tbaa !5
  %207 = load ptr, ptr %2, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.qhT, ptr %207, i32 0, i32 158
  %209 = load ptr, ptr %208, align 8, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %206, ptr noundef %209, i32 noundef 8115, ptr noundef @.str.5)
  br label %210

210:                                              ; preds = %204, %199
  %211 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_check_maxout(ptr noundef %211)
  br label %212

212:                                              ; preds = %210, %194
  %213 = load ptr, ptr %2, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.qhT, ptr %213, i32 0, i32 109
  %215 = load i32, ptr %214, align 4, !tbaa !41
  %216 = icmp ne i32 %215, 0
  br i1 %216, label %217, label %224

217:                                              ; preds = %212
  %218 = load ptr, ptr %2, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.qhT, ptr %218, i32 0, i32 198
  %220 = load i32, ptr %219, align 8, !tbaa !42
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %224, label %222

222:                                              ; preds = %217
  %223 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_nearcoplanar(ptr noundef %223)
  br label %224

224:                                              ; preds = %222, %217, %212
  br label %225

225:                                              ; preds = %224, %31, %26, %21
  %226 = load ptr, ptr %2, align 8, !tbaa !5
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.qhT, ptr %227, i32 0, i32 257
  %229 = getelementptr inbounds %struct.qhmemT, ptr %228, i32 0, i32 12
  %230 = load ptr, ptr %229, align 8, !tbaa !43
  %231 = call i32 @qh_setsize(ptr noundef %226, ptr noundef %230)
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %245

233:                                              ; preds = %225
  %234 = load ptr, ptr %2, align 8, !tbaa !5
  %235 = load ptr, ptr %2, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.qhT, ptr %235, i32 0, i32 158
  %237 = load ptr, ptr %236, align 8, !tbaa !26
  %238 = load ptr, ptr %2, align 8, !tbaa !5
  %239 = load ptr, ptr %2, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.qhT, ptr %239, i32 0, i32 257
  %241 = getelementptr inbounds %struct.qhmemT, ptr %240, i32 0, i32 12
  %242 = load ptr, ptr %241, align 8, !tbaa !43
  %243 = call i32 @qh_setsize(ptr noundef %238, ptr noundef %242)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %234, ptr noundef %237, i32 noundef 6164, ptr noundef @.str.6, i32 noundef %243)
  %244 = load ptr, ptr %2, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %244, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %245

245:                                              ; preds = %233, %225
  %246 = call i64 @clock() #4
  %247 = load ptr, ptr %2, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.qhT, ptr %247, i32 0, i32 186
  %249 = load i64, ptr %248, align 8, !tbaa !9
  %250 = sub i64 %246, %249
  %251 = load ptr, ptr %2, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.qhT, ptr %251, i32 0, i32 186
  store i64 %250, ptr %252, align 8, !tbaa !9
  %253 = load ptr, ptr %2, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.qhT, ptr %253, i32 0, i32 214
  store i32 1, ptr %254, align 4, !tbaa !44
  %255 = load ptr, ptr %2, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.qhT, ptr %255, i32 0, i32 29
  %257 = load i32, ptr %256, align 8, !tbaa !25
  %258 = icmp sge i32 %257, 1
  br i1 %258, label %259, label %264

259:                                              ; preds = %245
  %260 = load ptr, ptr %2, align 8, !tbaa !5
  %261 = load ptr, ptr %2, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.qhT, ptr %261, i32 0, i32 158
  %263 = load ptr, ptr %262, align 8, !tbaa !26
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %260, ptr noundef %263, i32 noundef 1036, ptr noundef @.str.7)
  br label %264

264:                                              ; preds = %259, %245
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

; Function Attrs: nounwind
declare i64 @clock() #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_build_withrestart(ptr noundef) #0

declare void @qh_initbuild(ptr noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_buildhull(ptr noundef) #0

declare i32 @qh_checkzero(ptr noundef, i32 noundef) #3

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

declare void @qh_initmergesets(ptr noundef) #3

declare void @qh_postmerge(ptr noundef, ptr noundef, double noundef, double noundef, i32 noundef) #3

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

declare void @qh_deletevisible(ptr noundef) #3

declare void @qh_resetlists(ptr noundef, i32 noundef, i32 noundef) #3

declare void @qh_all_vertexmerges(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare void @qh_freemergesets(ptr noundef) #3

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

declare void @qh_check_maxout(ptr noundef) #3

declare void @qh_nearcoplanar(ptr noundef) #3

declare i32 @qh_setsize(ptr noundef, ptr noundef) #3

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !13, i64 2600}
!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 = !{!10, !11, i64 484}
!17 = !{!10, !12, i64 2664}
!18 = !{!10, !11, i64 516}
!19 = !{!10, !11, i64 520}
!20 = !{!10, !11, i64 524}
!21 = !{!10, !11, i64 2796}
!22 = !{!10, !11, i64 532}
!23 = !{!10, !11, i64 180}
!24 = !{!10, !11, i64 2792}
!25 = !{!10, !11, i64 136}
!26 = !{!10, !6, i64 2424}
!27 = !{!10, !11, i64 600}
!28 = !{!10, !11, i64 632}
!29 = !{!10, !11, i64 252}
!30 = !{!10, !12, i64 192}
!31 = !{!10, !12, i64 64}
!32 = !{!10, !11, i64 248}
!33 = !{!10, !12, i64 200}
!34 = !{!10, !12, i64 72}
!35 = !{!10, !6, i64 2488}
!36 = !{!10, !6, i64 2456}
!37 = !{!10, !11, i64 2712}
!38 = !{!10, !11, i64 544}
!39 = !{!10, !11, i64 536}
!40 = !{!10, !11, i64 476}
!41 = !{!10, !11, i64 628}
!42 = !{!10, !11, i64 2672}
!43 = !{!10, !6, i64 3344}
!44 = !{!10, !11, i64 2764}


; 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 = external hidden unnamed_addr constant [111 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [72 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [28 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @qh_qhull(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #4
  %3 = tail call i64 @clock() #4
  %4 = getelementptr inbounds i8, ptr %0, i64 2600
  store i64 %3, ptr %4, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %0, i64 484
  %6 = load i32, ptr %5, align 4, !tbaa !15
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %7, label %11

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 2664
  %9 = load double, ptr %8, align 8, !tbaa !16
  %10 = fcmp olt double %9, 0x7FDFFFFFFFFFFFFF
  br i1 %10, label %11, label %12

11:                                               ; preds = %7, %1
  tail call void @qh_build_withrestart(ptr noundef nonnull %0)
  br label %13

12:                                               ; preds = %7
  tail call void @qh_initbuild(ptr noundef nonnull %0) #4
  tail call void @qh_buildhull(ptr noundef nonnull %0)
  br label %13

13:                                               ; preds = %12, %11
  %14 = getelementptr inbounds i8, ptr %0, i64 516
  %15 = load i32, ptr %14, align 4, !tbaa !17
  %.not77 = icmp eq i32 %15, 0
  br i1 %.not77, label %16, label %126

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 520
  %18 = load i32, ptr %17, align 8, !tbaa !18
  %.not78 = icmp eq i32 %18, 0
  br i1 %.not78, label %19, label %126

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %0, i64 524
  %21 = load i32, ptr %20, align 4, !tbaa !19
  %.not79 = icmp eq i32 %21, 0
  br i1 %.not79, label %22, label %126

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 2796
  %24 = load i32, ptr %23, align 4, !tbaa !20
  %.not80 = icmp eq i32 %24, 0
  br i1 %.not80, label %.thread, label %25

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %0, i64 532
  %27 = load i32, ptr %26, align 4, !tbaa !21
  %.not81 = icmp eq i32 %27, 0
  br i1 %.not81, label %28, label %.thread

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %0, i64 180
  %30 = load i32, ptr %29, align 4, !tbaa !22
  %.not82 = icmp eq i32 %30, 0
  br i1 %.not82, label %.thread99, label %31

31:                                               ; preds = %28
  %32 = tail call i32 @qh_checkzero(ptr noundef nonnull %0, i32 noundef 1) #4
  %.pr.pre = load i32, ptr %23, align 4, !tbaa !20
  %.not83 = icmp eq i32 %.pr.pre, 0
  br i1 %.not83, label %.thread, label %.thread99

.thread99:                                        ; preds = %28, %31
  %.pr = load i32, ptr %26, align 4, !tbaa !21
  %.not84 = icmp eq i32 %.pr, 0
  br i1 %.not84, label %33, label %.thread

33:                                               ; preds = %.thread99
  %34 = getelementptr inbounds i8, ptr %0, i64 2792
  %35 = load i32, ptr %34, align 8, !tbaa !23
  %.not85 = icmp eq i32 %35, 0
  br i1 %.not85, label %36, label %.thread

36:                                               ; preds = %33
  %37 = getelementptr inbounds i8, ptr %0, i64 136
  %38 = load i32, ptr %37, align 8, !tbaa !24
  %39 = icmp sgt i32 %38, 1
  br i1 %39, label %40, label %43

40:                                               ; preds = %36
  %41 = getelementptr inbounds i8, ptr %0, i64 2424
  %42 = load ptr, ptr %41, align 8, !tbaa !25
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %42, i32 noundef 2055, ptr noundef nonnull @.str) #4
  br label %43

43:                                               ; preds = %40, %36
  %44 = getelementptr inbounds i8, ptr %0, i64 600
  store i32 0, ptr %44, align 8, !tbaa !26
  br label %96

.thread:                                          ; preds = %25, %22, %33, %.thread99, %31
  tail call void @qh_initmergesets(ptr noundef nonnull %0) #4
  %45 = getelementptr inbounds i8, ptr %0, i64 180
  %46 = load i32, ptr %45, align 4, !tbaa !22
  %.not86 = icmp eq i32 %46, 0
  br i1 %.not86, label %47, label %54

47:                                               ; preds = %.thread
  %48 = getelementptr inbounds i8, ptr %0, i64 632
  %49 = load i32, ptr %48, align 8, !tbaa !27
  %50 = icmp sgt i32 %49, 5
  br i1 %50, label %51, label %66

51:                                               ; preds = %47
  %52 = getelementptr inbounds i8, ptr %0, i64 252
  %53 = load i32, ptr %52, align 4, !tbaa !28
  %.not87 = icmp eq i32 %53, 0
  br i1 %.not87, label %66, label %54

54:                                               ; preds = %51, %.thread
  %55 = getelementptr inbounds i8, ptr %0, i64 192
  %56 = load double, ptr %55, align 8, !tbaa !29
  %57 = getelementptr inbounds i8, ptr %0, i64 64
  %58 = load double, ptr %57, align 8, !tbaa !30
  %59 = getelementptr inbounds i8, ptr %0, i64 248
  %60 = load i32, ptr %59, align 8, !tbaa !31
  %.not90 = icmp eq i32 %60, 0
  br i1 %.not90, label %61, label %64

61:                                               ; preds = %54
  %62 = getelementptr inbounds i8, ptr %0, i64 532
  %63 = load i32, ptr %62, align 4, !tbaa !21
  br label %64

64:                                               ; preds = %54, %61
  %65 = phi i32 [ %63, %61 ], [ 0, %54 ]
  tail call void @qh_postmerge(ptr noundef nonnull %0, ptr noundef nonnull @.str.1, double noundef %56, double noundef %58, i32 noundef %65) #4
  br label %77

66:                                               ; preds = %51, %47
  %67 = getelementptr inbounds i8, ptr %0, i64 248
  %68 = load i32, ptr %67, align 8, !tbaa !31
  %.not88 = icmp eq i32 %68, 0
  br i1 %.not88, label %69, label %77

69:                                               ; preds = %66
  %70 = getelementptr inbounds i8, ptr %0, i64 532
  %71 = load i32, ptr %70, align 4, !tbaa !21
  %.not89 = icmp eq i32 %71, 0
  br i1 %.not89, label %77, label %72

72:                                               ; preds = %69
  %73 = getelementptr inbounds i8, ptr %0, i64 192
  %74 = load double, ptr %73, align 8, !tbaa !29
  %75 = getelementptr inbounds i8, ptr %0, i64 64
  %76 = load double, ptr %75, align 8, !tbaa !30
  tail call void @qh_postmerge(ptr noundef nonnull %0, ptr noundef nonnull @.str.2, double noundef %74, double noundef %76, i32 noundef 1) #4
  br label %77

77:                                               ; preds = %66, %69, %72, %64
  %78 = getelementptr inbounds i8, ptr %0, i64 248
  %79 = load i32, ptr %78, align 8, !tbaa !31
  %.not91 = icmp eq i32 %79, 0
  br i1 %.not91, label %87, label %80

80:                                               ; preds = %77
  %81 = getelementptr inbounds i8, ptr %0, i64 200
  %82 = load double, ptr %81, align 8, !tbaa !32
  %83 = getelementptr inbounds i8, ptr %0, i64 72
  %84 = load double, ptr %83, align 8, !tbaa !33
  %85 = getelementptr inbounds i8, ptr %0, i64 532
  %86 = load i32, ptr %85, align 4, !tbaa !21
  tail call void @qh_postmerge(ptr noundef nonnull %0, ptr noundef nonnull @.str.3, double noundef %82, double noundef %84, i32 noundef %86) #4
  br label %87

87:                                               ; preds = %80, %77
  %88 = getelementptr inbounds i8, ptr %0, i64 2488
  %89 = load ptr, ptr %88, align 8, !tbaa !34
  %90 = getelementptr inbounds i8, ptr %0, i64 2456
  %91 = load ptr, ptr %90, align 8, !tbaa !35
  %92 = icmp eq ptr %89, %91
  br i1 %92, label %93, label %95

93:                                               ; preds = %87
  %94 = getelementptr inbounds i8, ptr %0, i64 2712
  store i32 1, ptr %94, align 8, !tbaa !36
  call void @qh_partitionvisible(ptr noundef nonnull %0, i32 noundef 0, ptr noundef nonnull %2)
  store i32 0, ptr %94, align 8, !tbaa !36
  call void @qh_deletevisible(ptr noundef nonnull %0) #4
  call void @qh_resetlists(ptr noundef nonnull %0, i32 noundef 0, i32 noundef 1) #4
  br label %95

95:                                               ; preds = %93, %87
  call void @qh_all_vertexmerges(ptr noundef nonnull %0, i32 noundef -1, ptr noundef null, ptr noundef null) #4
  call void @qh_freemergesets(ptr noundef nonnull %0) #4
  br label %96

96:                                               ; preds = %95, %43
  %97 = getelementptr inbounds i8, ptr %0, i64 544
  %98 = load i32, ptr %97, align 8, !tbaa !37
  %99 = icmp eq i32 %98, -1
  br i1 %99, label %100, label %109

100:                                              ; preds = %96
  %101 = getelementptr inbounds i8, ptr %0, i64 536
  %102 = load i32, ptr %101, align 8, !tbaa !38
  %103 = getelementptr inbounds i8, ptr %0, i64 136
  %104 = load i32, ptr %103, align 8, !tbaa !24
  %105 = icmp sgt i32 %102, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %100
  store i32 %102, ptr %103, align 8, !tbaa !24
  %107 = getelementptr inbounds i8, ptr %0, i64 2424
  %108 = load ptr, ptr %107, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %108, i32 noundef 2112, ptr noundef nonnull @.str.4) #4
  br label %109

109:                                              ; preds = %106, %100, %96
  %110 = getelementptr inbounds i8, ptr %0, i64 600
  %111 = load i32, ptr %110, align 8, !tbaa !26
  %.not92 = icmp eq i32 %111, 0
  br i1 %.not92, label %119, label %112

112:                                              ; preds = %109
  %113 = getelementptr inbounds i8, ptr %0, i64 476
  %114 = load i32, ptr %113, align 4, !tbaa !39
  %.not93 = icmp eq i32 %114, 0
  br i1 %.not93, label %118, label %115

115:                                              ; preds = %112
  call void @qh_buildtracing(ptr noundef nonnull %0, ptr noundef null, ptr noundef null)
  %116 = getelementptr inbounds i8, ptr %0, i64 2424
  %117 = load ptr, ptr %116, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %117, i32 noundef 8115, ptr noundef nonnull @.str.5) #4
  br label %118

118:                                              ; preds = %115, %112
  call void @qh_check_maxout(ptr noundef nonnull %0) #4
  br label %119

119:                                              ; preds = %118, %109
  %120 = getelementptr inbounds i8, ptr %0, i64 628
  %121 = load i32, ptr %120, align 4, !tbaa !40
  %.not94 = icmp eq i32 %121, 0
  br i1 %.not94, label %126, label %122

122:                                              ; preds = %119
  %123 = getelementptr inbounds i8, ptr %0, i64 2672
  %124 = load i32, ptr %123, align 8, !tbaa !41
  %.not95 = icmp eq i32 %124, 0
  br i1 %.not95, label %125, label %126

125:                                              ; preds = %122
  call void @qh_nearcoplanar(ptr noundef nonnull %0) #4
  br label %126

126:                                              ; preds = %119, %122, %125, %19, %16, %13
  %127 = getelementptr inbounds i8, ptr %0, i64 3344
  %128 = load ptr, ptr %127, align 8, !tbaa !42
  %129 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %128) #4
  %.not96 = icmp eq i32 %129, 0
  br i1 %.not96, label %135, label %130

130:                                              ; preds = %126
  %131 = getelementptr inbounds i8, ptr %0, i64 2424
  %132 = load ptr, ptr %131, align 8, !tbaa !25
  %133 = load ptr, ptr %127, align 8, !tbaa !42
  %134 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %133) #4
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %132, i32 noundef 6164, ptr noundef nonnull @.str.6, i32 noundef %134) #4
  call void @qh_errexit(ptr noundef nonnull %0, i32 noundef 5, ptr noundef null, ptr noundef null) #4
  br label %135

135:                                              ; preds = %130, %126
  %136 = call i64 @clock() #4
  %137 = load i64, ptr %4, align 8, !tbaa !5
  %138 = sub i64 %136, %137
  store i64 %138, ptr %4, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %0, i64 2764
  store i32 1, ptr %139, align 4, !tbaa !43
  %140 = getelementptr inbounds i8, ptr %0, i64 136
  %141 = load i32, ptr %140, align 8, !tbaa !24
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %143, label %146

143:                                              ; preds = %135
  %144 = getelementptr inbounds i8, ptr %0, i64 2424
  %145 = load ptr, ptr %144, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %145, i32 noundef 1036, ptr noundef nonnull @.str.7) #4
  br label %146

146:                                              ; preds = %143, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #4
  ret void
}

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

; Function Attrs: nounwind
declare i64 @clock() local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @qh_build_withrestart(ptr noundef) local_unnamed_addr #0

declare void @qh_initbuild(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare dso_local void @qh_buildhull(ptr noundef) local_unnamed_addr #0

declare i32 @qh_checkzero(ptr noundef, i32 noundef) local_unnamed_addr #3

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

declare void @qh_initmergesets(ptr noundef) local_unnamed_addr #3

declare void @qh_postmerge(ptr noundef, ptr noundef, double noundef, double noundef, i32 noundef) local_unnamed_addr #3

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

declare void @qh_deletevisible(ptr noundef) local_unnamed_addr #3

declare void @qh_resetlists(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare void @qh_all_vertexmerges(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @qh_freemergesets(ptr noundef) local_unnamed_addr #3

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

declare void @qh_check_maxout(ptr noundef) local_unnamed_addr #3

declare void @qh_nearcoplanar(ptr noundef) local_unnamed_addr #3

declare i32 @qh_setsize(ptr noundef, ptr noundef) local_unnamed_addr #3

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !12, i64 2600}
!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, !7, i64 484}
!16 = !{!6, !10, i64 2664}
!17 = !{!6, !7, i64 516}
!18 = !{!6, !7, i64 520}
!19 = !{!6, !7, i64 524}
!20 = !{!6, !7, i64 2796}
!21 = !{!6, !7, i64 532}
!22 = !{!6, !7, i64 180}
!23 = !{!6, !7, i64 2792}
!24 = !{!6, !7, i64 136}
!25 = !{!6, !11, i64 2424}
!26 = !{!6, !7, i64 600}
!27 = !{!6, !7, i64 632}
!28 = !{!6, !7, i64 252}
!29 = !{!6, !10, i64 192}
!30 = !{!6, !10, i64 64}
!31 = !{!6, !7, i64 248}
!32 = !{!6, !10, i64 200}
!33 = !{!6, !10, i64 72}
!34 = !{!6, !11, i64 2488}
!35 = !{!6, !11, i64 2456}
!36 = !{!6, !7, i64 2712}
!37 = !{!6, !7, i64 544}
!38 = !{!6, !7, i64 536}
!39 = !{!6, !7, i64 476}
!40 = !{!6, !7, i64 628}
!41 = !{!6, !7, i64 2672}
!42 = !{!6, !11, i64 3344}
!43 = !{!6, !7, i64 2764}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass