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

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

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

@.str.26 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printpoints_out(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i32 %4, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.qhT, ptr %24, i32 0, i32 112
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qhT, ptr %28, i32 0, i32 225
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = call i32 @qh_setsize(ptr noundef %27, ptr noundef %30)
  %32 = add nsw i32 %26, %31
  store i32 %32, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = load i32, ptr %11, align 4, !tbaa !9
  %35 = call ptr @qh_settemp(ptr noundef %33, i32 noundef %34)
  store ptr %35, ptr %16, align 8, !tbaa !5
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = load ptr, ptr %16, align 8, !tbaa !5
  %38 = load i32, ptr %11, align 4, !tbaa !9
  call void @qh_setzero(ptr noundef %36, ptr noundef %37, i32 noundef 0, i32 noundef %38)
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = load i32, ptr %10, align 4, !tbaa !9
  %43 = call ptr @qh_facetvertices(ptr noundef %39, ptr noundef %40, ptr noundef %41, i32 noundef %42)
  store ptr %43, ptr %15, align 8, !tbaa !5
  store ptr null, ptr %21, align 8, !tbaa !5
  %44 = load ptr, ptr %15, align 8, !tbaa !5
  %45 = icmp ne ptr %44, null
  br i1 %45, label %46, label %74

46:                                               ; preds = %5
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.setT, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds [1 x %union.setelemT], ptr %48, i64 0, i64 0
  store ptr %49, ptr %22, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %72, %46
  %51 = load ptr, ptr %22, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i32 1
  store ptr %52, ptr %22, align 8, !tbaa !5
  %53 = load ptr, ptr %51, align 8, !tbaa !5
  store ptr %53, ptr %21, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %73

55:                                               ; preds = %50
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load ptr, ptr %21, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.vertexT, ptr %57, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !18
  %60 = call i32 @qh_pointid(ptr noundef %56, ptr noundef %59)
  store i32 %60, ptr %23, align 4, !tbaa !9
  %61 = load i32, ptr %23, align 4, !tbaa !9
  %62 = icmp sge i32 %61, 0
  br i1 %62, label %63, label %72

63:                                               ; preds = %55
  %64 = load ptr, ptr %21, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.vertexT, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !18
  %67 = load ptr, ptr %16, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.setT, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %23, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [1 x %union.setelemT], ptr %68, i64 0, i64 %70
  store ptr %66, ptr %71, align 8, !tbaa !20
  br label %72

72:                                               ; preds = %63, %55
  br label %50, !llvm.loop !21

73:                                               ; preds = %50
  br label %74

74:                                               ; preds = %73, %5
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.qhT, ptr %75, i32 0, i32 32
  %77 = load i32, ptr %76, align 4, !tbaa !23
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %89, label %79

79:                                               ; preds = %74
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.qhT, ptr %80, i32 0, i32 31
  %82 = load i32, ptr %81, align 8, !tbaa !24
  %83 = icmp ne i32 %82, 0
  br i1 %83, label %89, label %84

84:                                               ; preds = %79
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.qhT, ptr %85, i32 0, i32 109
  %87 = load i32, ptr %86, align 4, !tbaa !25
  %88 = icmp ne i32 %87, 0
  br i1 %88, label %89, label %205

89:                                               ; preds = %84, %79, %74
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %150

92:                                               ; preds = %89
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %93, ptr %17, align 8, !tbaa !5
  br label %94

94:                                               ; preds = %145, %92
  %95 = load ptr, ptr %17, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %102

97:                                               ; preds = %94
  %98 = load ptr, ptr %17, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 7
  %100 = load ptr, ptr %99, align 8, !tbaa !26
  %101 = icmp ne ptr %100, null
  br label %102

102:                                              ; preds = %97, %94
  %103 = phi i1 [ false, %94 ], [ %101, %97 ]
  br i1 %103, label %104, label %149

104:                                              ; preds = %102
  %105 = load i32, ptr %10, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 0
  br i1 %106, label %113, label %107

107:                                              ; preds = %104
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = load ptr, ptr %17, align 8, !tbaa !5
  %110 = call i32 @qh_skipfacet(ptr noundef %108, ptr noundef %109)
  %111 = icmp ne i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  br label %145

113:                                              ; preds = %107, %104
  store ptr null, ptr %19, align 8, !tbaa !5
  %114 = load ptr, ptr %17, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.facetT, ptr %114, i32 0, i32 12
  %116 = load ptr, ptr %115, align 8, !tbaa !28
  %117 = icmp ne ptr %116, null
  br i1 %117, label %118, label %144

118:                                              ; preds = %113
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.facetT, ptr %119, i32 0, i32 12
  %121 = load ptr, ptr %120, align 8, !tbaa !28
  %122 = getelementptr inbounds %struct.setT, ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds [1 x %union.setelemT], ptr %122, i64 0, i64 0
  store ptr %123, ptr %20, align 8, !tbaa !5
  br label %124

124:                                              ; preds = %142, %118
  %125 = load ptr, ptr %20, align 8, !tbaa !5
  %126 = getelementptr inbounds ptr, ptr %125, i32 1
  store ptr %126, ptr %20, align 8, !tbaa !5
  %127 = load ptr, ptr %125, align 8, !tbaa !5
  store ptr %127, ptr %19, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %143

129:                                              ; preds = %124
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = load ptr, ptr %19, align 8, !tbaa !5
  %132 = call i32 @qh_pointid(ptr noundef %130, ptr noundef %131)
  store i32 %132, ptr %23, align 4, !tbaa !9
  %133 = load i32, ptr %23, align 4, !tbaa !9
  %134 = icmp sge i32 %133, 0
  br i1 %134, label %135, label %142

135:                                              ; preds = %129
  %136 = load ptr, ptr %19, align 8, !tbaa !5
  %137 = load ptr, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.setT, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %23, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [1 x %union.setelemT], ptr %138, i64 0, i64 %140
  store ptr %136, ptr %141, align 8, !tbaa !20
  br label %142

142:                                              ; preds = %135, %129
  br label %124, !llvm.loop !29

143:                                              ; preds = %124
  br label %144

144:                                              ; preds = %143, %113
  br label %145

145:                                              ; preds = %144, %112
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.facetT, ptr %146, i32 0, i32 7
  %148 = load ptr, ptr %147, align 8, !tbaa !26
  store ptr %148, ptr %17, align 8, !tbaa !5
  br label %94, !llvm.loop !30

149:                                              ; preds = %102
  br label %150

150:                                              ; preds = %149, %89
  store ptr null, ptr %17, align 8, !tbaa !5
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = icmp ne ptr %151, null
  br i1 %152, label %153, label %204

153:                                              ; preds = %150
  %154 = load ptr, ptr %9, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.setT, ptr %154, i32 0, i32 1
  %156 = getelementptr inbounds [1 x %union.setelemT], ptr %155, i64 0, i64 0
  store ptr %156, ptr %18, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %202, %170, %153
  %158 = load ptr, ptr %18, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i32 1
  store ptr %159, ptr %18, align 8, !tbaa !5
  %160 = load ptr, ptr %158, align 8, !tbaa !5
  store ptr %160, ptr %17, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %203

162:                                              ; preds = %157
  %163 = load i32, ptr %10, align 4, !tbaa !9
  %164 = icmp ne i32 %163, 0
  br i1 %164, label %171, label %165

165:                                              ; preds = %162
  %166 = load ptr, ptr %6, align 8, !tbaa !5
  %167 = load ptr, ptr %17, align 8, !tbaa !5
  %168 = call i32 @qh_skipfacet(ptr noundef %166, ptr noundef %167)
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %170, label %171

170:                                              ; preds = %165
  br label %157, !llvm.loop !31

171:                                              ; preds = %165, %162
  store ptr null, ptr %19, align 8, !tbaa !5
  %172 = load ptr, ptr %17, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 12
  %174 = load ptr, ptr %173, align 8, !tbaa !28
  %175 = icmp ne ptr %174, null
  br i1 %175, label %176, label %202

176:                                              ; preds = %171
  %177 = load ptr, ptr %17, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.facetT, ptr %177, i32 0, i32 12
  %179 = load ptr, ptr %178, align 8, !tbaa !28
  %180 = getelementptr inbounds %struct.setT, ptr %179, i32 0, i32 1
  %181 = getelementptr inbounds [1 x %union.setelemT], ptr %180, i64 0, i64 0
  store ptr %181, ptr %20, align 8, !tbaa !5
  br label %182

182:                                              ; preds = %200, %176
  %183 = load ptr, ptr %20, align 8, !tbaa !5
  %184 = getelementptr inbounds ptr, ptr %183, i32 1
  store ptr %184, ptr %20, align 8, !tbaa !5
  %185 = load ptr, ptr %183, align 8, !tbaa !5
  store ptr %185, ptr %19, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %201

187:                                              ; preds = %182
  %188 = load ptr, ptr %6, align 8, !tbaa !5
  %189 = load ptr, ptr %19, align 8, !tbaa !5
  %190 = call i32 @qh_pointid(ptr noundef %188, ptr noundef %189)
  store i32 %190, ptr %23, align 4, !tbaa !9
  %191 = load i32, ptr %23, align 4, !tbaa !9
  %192 = icmp sge i32 %191, 0
  br i1 %192, label %193, label %200

193:                                              ; preds = %187
  %194 = load ptr, ptr %19, align 8, !tbaa !5
  %195 = load ptr, ptr %16, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.setT, ptr %195, i32 0, i32 1
  %197 = load i32, ptr %23, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [1 x %union.setelemT], ptr %196, i64 0, i64 %198
  store ptr %194, ptr %199, align 8, !tbaa !20
  br label %200

200:                                              ; preds = %193, %187
  br label %182, !llvm.loop !32

201:                                              ; preds = %182
  br label %202

202:                                              ; preds = %201, %171
  br label %157, !llvm.loop !31

203:                                              ; preds = %157
  br label %204

204:                                              ; preds = %203, %150
  br label %205

205:                                              ; preds = %204, %84
  %206 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %206, ptr noundef %15)
  store ptr null, ptr %19, align 8, !tbaa !5
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  %208 = icmp ne ptr %207, null
  br i1 %208, label %209, label %237

209:                                              ; preds = %205
  store i32 0, ptr %13, align 4, !tbaa !9
  %210 = load ptr, ptr %16, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.setT, ptr %210, i32 0, i32 1
  %212 = getelementptr inbounds [1 x %union.setelemT], ptr %211, i64 0, i64 0
  %213 = load ptr, ptr %212, align 8, !tbaa !20
  store ptr %213, ptr %19, align 8, !tbaa !5
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  %215 = load ptr, ptr %16, align 8, !tbaa !5
  %216 = call i32 @qh_setsize(ptr noundef %214, ptr noundef %215)
  store i32 %216, ptr %14, align 4, !tbaa !9
  br label %217

217:                                              ; preds = %228, %209
  %218 = load i32, ptr %13, align 4, !tbaa !9
  %219 = load i32, ptr %14, align 4, !tbaa !9
  %220 = icmp slt i32 %218, %219
  br i1 %220, label %221, label %236

221:                                              ; preds = %217
  %222 = load ptr, ptr %19, align 8, !tbaa !5
  %223 = icmp ne ptr %222, null
  br i1 %223, label %224, label %227

224:                                              ; preds = %221
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %12, align 4, !tbaa !9
  br label %227

227:                                              ; preds = %224, %221
  br label %228

228:                                              ; preds = %227
  %229 = load ptr, ptr %16, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.setT, ptr %229, i32 0, i32 1
  %231 = load i32, ptr %13, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %13, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds [1 x %union.setelemT], ptr %230, i64 0, i64 %233
  %235 = load ptr, ptr %234, align 8, !tbaa !20
  store ptr %235, ptr %19, align 8, !tbaa !5
  br label %217, !llvm.loop !33

236:                                              ; preds = %217
  br label %237

237:                                              ; preds = %236, %205
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds %struct.qhT, ptr %238, i32 0, i32 12
  %240 = load i32, ptr %239, align 4, !tbaa !34
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %256

242:                                              ; preds = %237
  %243 = load ptr, ptr %6, align 8, !tbaa !5
  %244 = load ptr, ptr %7, align 8, !tbaa !5
  %245 = load ptr, ptr %6, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.qhT, ptr %245, i32 0, i32 119
  %247 = getelementptr inbounds [256 x i8], ptr %246, i64 0, i64 0
  %248 = load ptr, ptr %6, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.qhT, ptr %248, i32 0, i32 117
  %250 = getelementptr inbounds [256 x i8], ptr %249, i64 0, i64 0
  %251 = load i32, ptr %12, align 4, !tbaa !9
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.qhT, ptr %252, i32 0, i32 110
  %254 = load i32, ptr %253, align 8, !tbaa !35
  %255 = add nsw i32 %254, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %243, ptr noundef %244, i32 noundef 9218, ptr noundef @.str.50, ptr noundef %247, ptr noundef %250, i32 noundef %251, i32 noundef %255)
  br label %263

256:                                              ; preds = %237
  %257 = load ptr, ptr %6, align 8, !tbaa !5
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = load ptr, ptr %6, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.qhT, ptr %259, i32 0, i32 110
  %261 = load i32, ptr %260, align 8, !tbaa !35
  %262 = load i32, ptr %12, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %257, ptr noundef %258, i32 noundef 9219, ptr noundef @.str.27, i32 noundef %261, i32 noundef %262)
  br label %263

263:                                              ; preds = %256, %242
  store ptr null, ptr %19, align 8, !tbaa !5
  %264 = load ptr, ptr %16, align 8, !tbaa !5
  %265 = icmp ne ptr %264, null
  br i1 %265, label %266, label %303

266:                                              ; preds = %263
  store i32 0, ptr %13, align 4, !tbaa !9
  %267 = load ptr, ptr %16, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.setT, ptr %267, i32 0, i32 1
  %269 = getelementptr inbounds [1 x %union.setelemT], ptr %268, i64 0, i64 0
  %270 = load ptr, ptr %269, align 8, !tbaa !20
  store ptr %270, ptr %19, align 8, !tbaa !5
  %271 = load ptr, ptr %6, align 8, !tbaa !5
  %272 = load ptr, ptr %16, align 8, !tbaa !5
  %273 = call i32 @qh_setsize(ptr noundef %271, ptr noundef %272)
  store i32 %273, ptr %14, align 4, !tbaa !9
  br label %274

274:                                              ; preds = %294, %266
  %275 = load i32, ptr %13, align 4, !tbaa !9
  %276 = load i32, ptr %14, align 4, !tbaa !9
  %277 = icmp slt i32 %275, %276
  br i1 %277, label %278, label %302

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

281:                                              ; preds = %278
  %282 = load ptr, ptr %6, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.qhT, ptr %282, i32 0, i32 12
  %284 = load i32, ptr %283, align 4, !tbaa !34
  %285 = icmp ne i32 %284, 0
  br i1 %285, label %286, label %289

286:                                              ; preds = %281
  %287 = load ptr, ptr %6, align 8, !tbaa !5
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %287, ptr noundef %288, i32 noundef 9220, ptr noundef @.str.26)
  br label %289

289:                                              ; preds = %286, %281
  %290 = load ptr, ptr %6, align 8, !tbaa !5
  %291 = load ptr, ptr %7, align 8, !tbaa !5
  %292 = load ptr, ptr %19, align 8, !tbaa !5
  call void @qh_printpoint(ptr noundef %290, ptr noundef %291, ptr noundef null, ptr noundef %292)
  br label %293

293:                                              ; preds = %289, %278
  br label %294

294:                                              ; preds = %293
  %295 = load ptr, ptr %16, align 8, !tbaa !5
  %296 = getelementptr inbounds %struct.setT, ptr %295, i32 0, i32 1
  %297 = load i32, ptr %13, align 4, !tbaa !9
  %298 = add nsw i32 %297, 1
  store i32 %298, ptr %13, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds [1 x %union.setelemT], ptr %296, i64 0, i64 %299
  %301 = load ptr, ptr %300, align 8, !tbaa !20
  store ptr %301, ptr %19, align 8, !tbaa !5
  br label %274, !llvm.loop !36

302:                                              ; preds = %274
  br label %303

303:                                              ; preds = %302, %263
  %304 = load ptr, ptr %6, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.qhT, ptr %304, i32 0, i32 12
  %306 = load i32, ptr %305, align 4, !tbaa !34
  %307 = icmp ne i32 %306, 0
  br i1 %307, label %308, label %311

308:                                              ; preds = %303
  %309 = load ptr, ptr %6, align 8, !tbaa !5
  %310 = load ptr, ptr %7, align 8, !tbaa !5
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %309, ptr noundef %310, i32 noundef 9221, ptr noundef @.str.61)
  br label %311

311:                                              ; preds = %308, %303
  %312 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_settempfree(ptr noundef %312, ptr noundef %16)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  ret void
}

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


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

%union.setelemT = type { ptr }

@.str.26 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.50 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.61 = external hidden unnamed_addr constant [5 x i8], align 1

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

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

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_printpoints_out(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4) local_unnamed_addr #2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = getelementptr inbounds i8, ptr %0, i64 640
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 2832
  %11 = load ptr, ptr %10, align 8, !tbaa !15
  %12 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %11) #4
  %13 = add nsw i32 %12, %9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %14 = tail call ptr @qh_settemp(ptr noundef %0, i32 noundef %13) #4
  store ptr %14, ptr %7, align 8, !tbaa !16
  tail call void @qh_setzero(ptr noundef %0, ptr noundef %14, i32 noundef 0, i32 noundef %13) #4
  %15 = tail call ptr @qh_facetvertices(ptr noundef %0, ptr noundef %2, ptr noundef %3, i32 noundef %4)
  store ptr %15, ptr %6, align 8, !tbaa !16
  %.not = icmp eq ptr %15, null
  br i1 %.not, label %.loopexit138, label %.preheader137

.preheader137:                                    ; preds = %5
  %.0139 = getelementptr inbounds i8, ptr %15, i64 8
  %16 = load ptr, ptr %.0139, align 8, !tbaa !16
  %.not105140 = icmp eq ptr %16, null
  br i1 %.not105140, label %.loopexit138, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader137
  %17 = getelementptr inbounds i8, ptr %14, i64 8
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %27
  %18 = phi ptr [ %28, %27 ], [ %16, %.lr.ph.preheader ]
  %.0141 = phi ptr [ %.0, %27 ], [ %.0139, %.lr.ph.preheader ]
  %19 = getelementptr inbounds i8, ptr %18, i64 16
  %20 = load ptr, ptr %19, align 8, !tbaa !17
  %21 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef %20) #4
  %22 = icmp sgt i32 %21, -1
  br i1 %22, label %23, label %27

23:                                               ; preds = %.lr.ph
  %24 = load ptr, ptr %19, align 8, !tbaa !17
  %25 = zext nneg i32 %21 to i64
  %26 = getelementptr inbounds [1 x %union.setelemT], ptr %17, i64 0, i64 %25
  store ptr %24, ptr %26, align 8, !tbaa !19
  br label %27

27:                                               ; preds = %23, %.lr.ph
  %.0 = getelementptr inbounds i8, ptr %.0141, i64 8
  %28 = load ptr, ptr %.0, align 8, !tbaa !16
  %.not105 = icmp eq ptr %28, null
  br i1 %.not105, label %.loopexit138, label %.lr.ph, !llvm.loop !20

.loopexit138:                                     ; preds = %27, %.preheader137, %5
  %29 = getelementptr inbounds i8, ptr %0, i64 148
  %30 = load i32, ptr %29, align 4, !tbaa !22
  %.not106 = icmp eq i32 %30, 0
  br i1 %.not106, label %31, label %37

31:                                               ; preds = %.loopexit138
  %32 = getelementptr inbounds i8, ptr %0, i64 144
  %33 = load i32, ptr %32, align 8, !tbaa !23
  %.not107 = icmp eq i32 %33, 0
  br i1 %.not107, label %34, label %37

34:                                               ; preds = %31
  %35 = getelementptr inbounds i8, ptr %0, i64 628
  %36 = load i32, ptr %35, align 4, !tbaa !24
  %.not108 = icmp eq i32 %36, 0
  br i1 %.not108, label %.loopexit133, label %37

37:                                               ; preds = %34, %31, %.loopexit138
  %.not109 = icmp eq ptr %2, null
  br i1 %.not109, label %.critedge, label %.preheader136

.preheader136:                                    ; preds = %37
  %.not126 = icmp eq i32 %4, 0
  %38 = getelementptr inbounds i8, ptr %14, i64 8
  br label %39

39:                                               ; preds = %.preheader136, %.loopexit135
  %.086146 = phi ptr [ %2, %.preheader136 ], [ %57, %.loopexit135 ]
  %40 = getelementptr inbounds i8, ptr %.086146, i64 56
  %41 = load ptr, ptr %40, align 8, !tbaa !25
  %.not111 = icmp eq ptr %41, null
  br i1 %.not111, label %.critedge, label %42

42:                                               ; preds = %39
  br i1 %.not126, label %43, label %45

43:                                               ; preds = %42
  %44 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %.086146)
  %.not127 = icmp eq i32 %44, 0
  br i1 %.not127, label %45, label %.loopexit135

45:                                               ; preds = %43, %42
  %46 = getelementptr inbounds i8, ptr %.086146, i64 96
  %47 = load ptr, ptr %46, align 8, !tbaa !27
  %.not128 = icmp eq ptr %47, null
  br i1 %.not128, label %.loopexit135, label %.preheader134

.preheader134:                                    ; preds = %45
  %.082142 = getelementptr inbounds i8, ptr %47, i64 8
  %48 = load ptr, ptr %.082142, align 8, !tbaa !16
  %.not130143 = icmp eq ptr %48, null
  br i1 %.not130143, label %.loopexit135, label %.lr.ph145

.lr.ph145:                                        ; preds = %.preheader134, %55
  %49 = phi ptr [ %56, %55 ], [ %48, %.preheader134 ]
  %.082144 = phi ptr [ %.082, %55 ], [ %.082142, %.preheader134 ]
  %50 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef nonnull %49) #4
  %51 = icmp sgt i32 %50, -1
  br i1 %51, label %52, label %55

52:                                               ; preds = %.lr.ph145
  %53 = zext nneg i32 %50 to i64
  %54 = getelementptr inbounds [1 x %union.setelemT], ptr %38, i64 0, i64 %53
  store ptr %49, ptr %54, align 8, !tbaa !19
  br label %55

55:                                               ; preds = %52, %.lr.ph145
  %.082 = getelementptr inbounds i8, ptr %.082144, i64 8
  %56 = load ptr, ptr %.082, align 8, !tbaa !16
  %.not130 = icmp eq ptr %56, null
  br i1 %.not130, label %.loopexit135, label %.lr.ph145, !llvm.loop !28

.loopexit135:                                     ; preds = %55, %.preheader134, %45, %43
  %57 = load ptr, ptr %40, align 8, !tbaa !25
  %.not110 = icmp eq ptr %57, null
  br i1 %.not110, label %.critedge, label %39, !llvm.loop !29

.critedge:                                        ; preds = %39, %.loopexit135, %37
  %.not112 = icmp eq ptr %3, null
  br i1 %.not112, label %.loopexit133, label %58

58:                                               ; preds = %.critedge
  %59 = getelementptr inbounds i8, ptr %3, i64 8
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %.not113151 = icmp eq ptr %60, null
  br i1 %.not113151, label %.loopexit133, label %.lr.ph152

.lr.ph152:                                        ; preds = %58
  %61 = getelementptr inbounds i8, ptr %3, i64 16
  %.not121 = icmp eq i32 %4, 0
  %62 = getelementptr inbounds i8, ptr %14, i64 8
  br label %63

63:                                               ; preds = %.lr.ph152, %.backedge
  %64 = phi ptr [ %60, %.lr.ph152 ], [ %81, %.backedge ]
  %65 = phi ptr [ %61, %.lr.ph152 ], [ %80, %.backedge ]
  br i1 %.not121, label %66, label %68

66:                                               ; preds = %63
  %67 = tail call i32 @qh_skipfacet(ptr noundef %0, ptr noundef nonnull %64)
  %.not122 = icmp eq i32 %67, 0
  br i1 %.not122, label %68, label %.backedge

68:                                               ; preds = %66, %63
  %69 = getelementptr inbounds i8, ptr %64, i64 96
  %70 = load ptr, ptr %69, align 8, !tbaa !27
  %.not123 = icmp eq ptr %70, null
  br i1 %.not123, label %.backedge, label %.preheader

.preheader:                                       ; preds = %68
  %.1147 = getelementptr inbounds i8, ptr %70, i64 8
  %71 = load ptr, ptr %.1147, align 8, !tbaa !16
  %.not125148 = icmp eq ptr %71, null
  br i1 %.not125148, label %.backedge, label %.lr.ph150

.lr.ph150:                                        ; preds = %.preheader, %78
  %72 = phi ptr [ %79, %78 ], [ %71, %.preheader ]
  %.1149 = phi ptr [ %.1, %78 ], [ %.1147, %.preheader ]
  %73 = tail call i32 @qh_pointid(ptr noundef %0, ptr noundef nonnull %72) #4
  %74 = icmp sgt i32 %73, -1
  br i1 %74, label %75, label %78

75:                                               ; preds = %.lr.ph150
  %76 = zext nneg i32 %73 to i64
  %77 = getelementptr inbounds [1 x %union.setelemT], ptr %62, i64 0, i64 %76
  store ptr %72, ptr %77, align 8, !tbaa !19
  br label %78

78:                                               ; preds = %75, %.lr.ph150
  %.1 = getelementptr inbounds i8, ptr %.1149, i64 8
  %79 = load ptr, ptr %.1, align 8, !tbaa !16
  %.not125 = icmp eq ptr %79, null
  br i1 %.not125, label %.backedge, label %.lr.ph150, !llvm.loop !30

.backedge:                                        ; preds = %78, %68, %.preheader, %66
  %80 = getelementptr inbounds i8, ptr %65, i64 8
  %81 = load ptr, ptr %65, align 8, !tbaa !16
  %.not113 = icmp eq ptr %81, null
  br i1 %.not113, label %.loopexit133, label %63, !llvm.loop !31

.loopexit133:                                     ; preds = %.backedge, %58, %.critedge, %34
  call void @qh_settempfree(ptr noundef %0, ptr noundef nonnull %6) #4
  %.not114 = icmp eq ptr %14, null
  br i1 %.not114, label %.loopexit131, label %82

82:                                               ; preds = %.loopexit133
  %83 = getelementptr inbounds i8, ptr %14, i64 8
  %84 = load ptr, ptr %83, align 8, !tbaa !19
  %85 = call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %14) #4
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %.lr.ph156, label %.loopexit131

.lr.ph156:                                        ; preds = %82
  %wide.trip.count = zext nneg i32 %85 to i64
  %min.iters.check = icmp ult i32 %85, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph156
  %n.vec = and i64 %wide.trip.count, 2147483644
  %vector.recur.init = insertelement <2 x ptr> poison, ptr %84, i64 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x ptr> [ %vector.recur.init, %vector.ph ], [ %wide.load167, %vector.body ]
  %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %96, %vector.body ]
  %vec.phi166 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %97, %vector.body ]
  %87 = or disjoint i64 %index, 1
  %88 = getelementptr inbounds [1 x %union.setelemT], ptr %83, i64 0, i64 %87
  %89 = getelementptr inbounds i8, ptr %88, i64 16
  %wide.load = load <2 x ptr>, ptr %88, align 8, !tbaa !19
  %wide.load167 = load <2 x ptr>, ptr %89, align 8, !tbaa !19
  %90 = shufflevector <2 x ptr> %vector.recur, <2 x ptr> %wide.load, <2 x i32> <i32 1, i32 2>
  %91 = shufflevector <2 x ptr> %wide.load, <2 x ptr> %wide.load167, <2 x i32> <i32 1, i32 2>
  %92 = icmp ne <2 x ptr> %90, zeroinitializer
  %93 = icmp ne <2 x ptr> %91, zeroinitializer
  %94 = zext <2 x i1> %92 to <2 x i32>
  %95 = zext <2 x i1> %93 to <2 x i32>
  %96 = add <2 x i32> %vec.phi, %94
  %97 = add <2 x i32> %vec.phi166, %95
  %index.next = add nuw i64 %index, 4
  %98 = icmp eq i64 %index.next, %n.vec
  br i1 %98, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i32> %97, %96
  %99 = call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %vector.recur.extract = extractelement <2 x ptr> %wide.load167, i64 1
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %.loopexit131, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph156
  %indvars.iv.ph = phi i64 [ 0, %.lr.ph156 ], [ %n.vec, %middle.block ]
  %.083155.ph = phi ptr [ %84, %.lr.ph156 ], [ %vector.recur.extract, %middle.block ]
  %.089153.ph = phi i32 [ 0, %.lr.ph156 ], [ %99, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %.083155 = phi ptr [ %102, %scalar.ph ], [ %.083155.ph, %scalar.ph.preheader ]
  %.089153 = phi i32 [ %spec.select, %scalar.ph ], [ %.089153.ph, %scalar.ph.preheader ]
  %.not120 = icmp ne ptr %.083155, null
  %100 = zext i1 %.not120 to i32
  %spec.select = add nuw nsw i32 %.089153, %100
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %101 = getelementptr inbounds [1 x %union.setelemT], ptr %83, i64 0, i64 %indvars.iv.next
  %102 = load ptr, ptr %101, align 8, !tbaa !19
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit131, label %scalar.ph, !llvm.loop !35

.loopexit131:                                     ; preds = %scalar.ph, %middle.block, %82, %.loopexit133
  %.2 = phi i32 [ 0, %.loopexit133 ], [ 0, %82 ], [ %99, %middle.block ], [ %spec.select, %scalar.ph ]
  %103 = getelementptr inbounds i8, ptr %0, i64 52
  %104 = load i32, ptr %103, align 4, !tbaa !36
  %.not115 = icmp eq i32 %104, 0
  br i1 %.not115, label %111, label %105

105:                                              ; preds = %.loopexit131
  %106 = getelementptr inbounds i8, ptr %0, i64 936
  %107 = getelementptr inbounds i8, ptr %0, i64 676
  %108 = getelementptr inbounds i8, ptr %0, i64 632
  %109 = load i32, ptr %108, align 8, !tbaa !37
  %110 = add nsw i32 %109, 1
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9218, ptr noundef nonnull @.str.50, ptr noundef nonnull %106, ptr noundef nonnull %107, i32 noundef %.2, i32 noundef %110) #4
  br label %114

111:                                              ; preds = %.loopexit131
  %112 = getelementptr inbounds i8, ptr %0, i64 632
  %113 = load i32, ptr %112, align 8, !tbaa !37
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9219, ptr noundef nonnull @.str.27, i32 noundef %113, i32 noundef %.2) #4
  br label %114

114:                                              ; preds = %111, %105
  br i1 %.not114, label %.loopexit, label %115

115:                                              ; preds = %114
  %116 = getelementptr inbounds i8, ptr %14, i64 8
  %117 = load ptr, ptr %116, align 8, !tbaa !19
  %118 = call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef nonnull %14) #4
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph159.preheader, label %.loopexit

.lr.ph159.preheader:                              ; preds = %115
  %wide.trip.count164 = zext nneg i32 %118 to i64
  br label %.lr.ph159

.lr.ph159:                                        ; preds = %.lr.ph159.preheader, %124
  %indvars.iv161 = phi i64 [ 0, %.lr.ph159.preheader ], [ %indvars.iv.next162, %124 ]
  %.184158 = phi ptr [ %117, %.lr.ph159.preheader ], [ %126, %124 ]
  %.not118 = icmp eq ptr %.184158, null
  br i1 %.not118, label %124, label %120

120:                                              ; preds = %.lr.ph159
  %121 = load i32, ptr %103, align 4, !tbaa !36
  %.not119 = icmp eq i32 %121, 0
  br i1 %.not119, label %123, label %122

122:                                              ; preds = %120
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9220, ptr noundef nonnull @.str.26) #4
  br label %123

123:                                              ; preds = %122, %120
  call void @qh_printpoint(ptr noundef nonnull %0, ptr noundef %1, ptr noundef null, ptr noundef nonnull %.184158)
  br label %124

124:                                              ; preds = %.lr.ph159, %123
  %indvars.iv.next162 = add nuw nsw i64 %indvars.iv161, 1
  %125 = getelementptr inbounds [1 x %union.setelemT], ptr %116, i64 0, i64 %indvars.iv.next162
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %exitcond165.not = icmp eq i64 %indvars.iv.next162, %wide.trip.count164
  br i1 %exitcond165.not, label %.loopexit, label %.lr.ph159, !llvm.loop !38

.loopexit:                                        ; preds = %124, %115, %114
  %127 = load i32, ptr %103, align 4, !tbaa !36
  %.not117 = icmp eq i32 %127, 0
  br i1 %.not117, label %129, label %128

128:                                              ; preds = %.loopexit
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %1, i32 noundef 9221, ptr noundef nonnull @.str.61) #4
  br label %129

129:                                              ; preds = %128, %.loopexit
  call void @qh_settempfree(ptr noundef nonnull %0, ptr noundef nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #3

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 640}
!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 2832}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!19 = !{!8, !8, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !7, i64 148}
!23 = !{!6, !7, i64 144}
!24 = !{!6, !7, i64 628}
!25 = !{!26, !11, i64 56}
!26 = !{!"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}
!27 = !{!26, !11, i64 96}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21, !33, !34}
!33 = !{!"llvm.loop.isvectorized", i32 1}
!34 = !{!"llvm.loop.unroll.runtime.disable"}
!35 = distinct !{!35, !21, !34, !33}
!36 = !{!6, !7, i64 52}
!37 = !{!6, !7, i64 632}
!38 = distinct !{!38, !21}


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