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

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

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

@qh_qh = external global %struct.qhT, align 8
@.str.186 = external hidden unnamed_addr constant [87 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 void @qh_fprintf(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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_neighbor_vertices_facet(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  %17 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !9
  %18 = sub nsw i32 %17, 2
  store i32 %18, ptr %14, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store i32 0, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.facetT, ptr %19, i32 0, i32 15
  %21 = load i32, ptr %20, align 8
  %22 = lshr i32 %21, 13
  %23 = and i32 %22, 1
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %58

25:                                               ; preds = %3
  store ptr null, ptr %12, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.facetT, ptr %26, i32 0, i32 8
  %28 = load ptr, ptr %27, align 8, !tbaa !15
  %29 = icmp ne ptr %28, null
  br i1 %29, label %30, label %57

30:                                               ; preds = %25
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.facetT, ptr %31, i32 0, i32 8
  %33 = load ptr, ptr %32, align 8, !tbaa !15
  %34 = getelementptr inbounds %struct.setT, ptr %33, i32 0, i32 1
  %35 = getelementptr inbounds [1 x %union.setelemT], ptr %34, i64 0, i64 0
  store ptr %35, ptr %13, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %55, %30
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = getelementptr inbounds ptr, ptr %37, i32 1
  store ptr %38, ptr %13, align 8, !tbaa !5
  %39 = load ptr, ptr %37, align 8, !tbaa !5
  store ptr %39, ptr %12, align 8, !tbaa !5
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %56

41:                                               ; preds = %36
  %42 = load ptr, ptr %12, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.vertexT, ptr %42, i32 0, i32 5
  %44 = load i32, ptr %43, align 4, !tbaa !17
  %45 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !19
  %46 = icmp ne i32 %44, %45
  br i1 %46, label %47, label %55

47:                                               ; preds = %41
  %48 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !19
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.vertexT, ptr %49, i32 0, i32 5
  store i32 %48, ptr %50, align 4, !tbaa !17
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %51, ptr noundef %52)
  %53 = load i32, ptr %15, align 4, !tbaa !14
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %15, align 4, !tbaa !14
  br label %55

55:                                               ; preds = %47, %41
  br label %36, !llvm.loop !20

56:                                               ; preds = %36
  br label %57

57:                                               ; preds = %56, %25
  br label %226

58:                                               ; preds = %3
  store ptr null, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.facetT, ptr %59, i32 0, i32 9
  %61 = load ptr, ptr %60, align 8, !tbaa !22
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %225

63:                                               ; preds = %58
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 9
  %66 = load ptr, ptr %65, align 8, !tbaa !22
  %67 = getelementptr inbounds %struct.setT, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds [1 x %union.setelemT], ptr %67, i64 0, i64 0
  store ptr %68, ptr %8, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %223, %63
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i32 1
  store ptr %71, ptr %8, align 8, !tbaa !5
  %72 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %72, ptr %7, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %224

74:                                               ; preds = %69
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.ridgeT, ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !23
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = icmp eq ptr %77, %78
  br i1 %79, label %80, label %84

80:                                               ; preds = %74
  %81 = load ptr, ptr %7, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.ridgeT, ptr %81, i32 0, i32 2
  %83 = load ptr, ptr %82, align 8, !tbaa !25
  br label %88

84:                                               ; preds = %74
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.ridgeT, ptr %85, i32 0, i32 1
  %87 = load ptr, ptr %86, align 8, !tbaa !23
  br label %88

88:                                               ; preds = %84, %80
  %89 = phi ptr [ %83, %80 ], [ %87, %84 ]
  store ptr %89, ptr %9, align 8, !tbaa !5
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.facetT, ptr %90, i32 0, i32 13
  %92 = load i32, ptr %91, align 8, !tbaa !26
  %93 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !27
  %94 = icmp eq i32 %92, %93
  br i1 %94, label %95, label %223

95:                                               ; preds = %88
  store i32 0, ptr %16, align 4, !tbaa !14
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.ridgeT, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !28
  %99 = getelementptr inbounds %struct.setT, ptr %98, i32 0, i32 1
  %100 = getelementptr inbounds [1 x %union.setelemT], ptr %99, i64 0, i64 0
  %101 = load ptr, ptr %100, align 8, !tbaa !29
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = icmp eq ptr %101, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %95
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %186

105:                                              ; preds = %95
  %106 = load i32, ptr %14, align 4, !tbaa !14
  %107 = icmp sgt i32 %106, 2
  br i1 %107, label %108, label %158

108:                                              ; preds = %105
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.ridgeT, ptr %109, i32 0, i32 0
  %111 = load ptr, ptr %110, align 8, !tbaa !28
  %112 = getelementptr inbounds %struct.setT, ptr %111, i32 0, i32 1
  %113 = getelementptr inbounds [1 x %union.setelemT], ptr %112, i64 0, i64 1
  %114 = load ptr, ptr %113, align 8, !tbaa !29
  store ptr %114, ptr %10, align 8, !tbaa !5
  %115 = load ptr, ptr %7, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ridgeT, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !28
  %118 = getelementptr inbounds %struct.setT, ptr %117, i32 0, i32 1
  %119 = load i32, ptr %14, align 4, !tbaa !14
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [1 x %union.setelemT], ptr %118, i64 0, i64 %120
  %122 = load ptr, ptr %121, align 8, !tbaa !29
  store ptr %122, ptr %11, align 8, !tbaa !5
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.vertexT, ptr %123, i32 0, i32 4
  %125 = load i32, ptr %124, align 8, !tbaa !30
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.vertexT, ptr %126, i32 0, i32 4
  %128 = load i32, ptr %127, align 8, !tbaa !30
  %129 = icmp uge i32 %125, %128
  br i1 %129, label %130, label %157

130:                                              ; preds = %108
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.vertexT, ptr %131, i32 0, i32 4
  %133 = load i32, ptr %132, align 8, !tbaa !30
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.vertexT, ptr %134, i32 0, i32 4
  %136 = load i32, ptr %135, align 8, !tbaa !30
  %137 = icmp ule i32 %133, %136
  br i1 %137, label %138, label %157

138:                                              ; preds = %130
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = icmp eq ptr %139, %140
  br i1 %141, label %146, label %142

142:                                              ; preds = %138
  %143 = load ptr, ptr %11, align 8, !tbaa !5
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = icmp eq ptr %143, %144
  br i1 %145, label %146, label %147

146:                                              ; preds = %142, %138
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %156

147:                                              ; preds = %142
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ridgeT, ptr %148, i32 0, i32 0
  %150 = load ptr, ptr %149, align 8, !tbaa !28
  %151 = load ptr, ptr %4, align 8, !tbaa !5
  %152 = call i32 @qh_setin(ptr noundef %150, ptr noundef %151)
  %153 = icmp ne i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %147
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %155

155:                                              ; preds = %154, %147
  br label %156

156:                                              ; preds = %155, %146
  br label %157

157:                                              ; preds = %156, %130, %108
  br label %185

158:                                              ; preds = %105
  %159 = load ptr, ptr %7, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.ridgeT, ptr %159, i32 0, i32 0
  %161 = load ptr, ptr %160, align 8, !tbaa !28
  %162 = getelementptr inbounds %struct.setT, ptr %161, i32 0, i32 1
  %163 = load i32, ptr %14, align 4, !tbaa !14
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds [1 x %union.setelemT], ptr %162, i64 0, i64 %164
  %166 = load ptr, ptr %165, align 8, !tbaa !29
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = icmp eq ptr %166, %167
  br i1 %168, label %169, label %170

169:                                              ; preds = %158
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %184

170:                                              ; preds = %158
  %171 = load i32, ptr %14, align 4, !tbaa !14
  %172 = icmp sgt i32 %171, 1
  br i1 %172, label %173, label %183

173:                                              ; preds = %170
  %174 = load ptr, ptr %7, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ridgeT, ptr %174, i32 0, i32 0
  %176 = load ptr, ptr %175, align 8, !tbaa !28
  %177 = getelementptr inbounds %struct.setT, ptr %176, i32 0, i32 1
  %178 = getelementptr inbounds [1 x %union.setelemT], ptr %177, i64 0, i64 1
  %179 = load ptr, ptr %178, align 8, !tbaa !29
  %180 = load ptr, ptr %4, align 8, !tbaa !5
  %181 = icmp eq ptr %179, %180
  br i1 %181, label %182, label %183

182:                                              ; preds = %173
  store i32 1, ptr %16, align 4, !tbaa !14
  br label %183

183:                                              ; preds = %182, %173, %170
  br label %184

184:                                              ; preds = %183, %169
  br label %185

185:                                              ; preds = %184, %157
  br label %186

186:                                              ; preds = %185, %104
  %187 = load i32, ptr %16, align 4, !tbaa !14
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %222

189:                                              ; preds = %186
  store ptr null, ptr %12, align 8, !tbaa !5
  %190 = load ptr, ptr %7, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ridgeT, ptr %190, i32 0, i32 0
  %192 = load ptr, ptr %191, align 8, !tbaa !28
  %193 = icmp ne ptr %192, null
  br i1 %193, label %194, label %221

194:                                              ; preds = %189
  %195 = load ptr, ptr %7, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ridgeT, ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !28
  %198 = getelementptr inbounds %struct.setT, ptr %197, i32 0, i32 1
  %199 = getelementptr inbounds [1 x %union.setelemT], ptr %198, i64 0, i64 0
  store ptr %199, ptr %13, align 8, !tbaa !5
  br label %200

200:                                              ; preds = %219, %194
  %201 = load ptr, ptr %13, align 8, !tbaa !5
  %202 = getelementptr inbounds ptr, ptr %201, i32 1
  store ptr %202, ptr %13, align 8, !tbaa !5
  %203 = load ptr, ptr %201, align 8, !tbaa !5
  store ptr %203, ptr %12, align 8, !tbaa !5
  %204 = icmp ne ptr %203, null
  br i1 %204, label %205, label %220

205:                                              ; preds = %200
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.vertexT, ptr %206, i32 0, i32 5
  %208 = load i32, ptr %207, align 4, !tbaa !17
  %209 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !19
  %210 = icmp ne i32 %208, %209
  br i1 %210, label %211, label %219

211:                                              ; preds = %205
  %212 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 218), align 4, !tbaa !19
  %213 = load ptr, ptr %12, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.vertexT, ptr %213, i32 0, i32 5
  store i32 %212, ptr %214, align 4, !tbaa !17
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %215, ptr noundef %216)
  %217 = load i32, ptr %15, align 4, !tbaa !14
  %218 = add nsw i32 %217, 1
  store i32 %218, ptr %15, align 4, !tbaa !14
  br label %219

219:                                              ; preds = %211, %205
  br label %200, !llvm.loop !31

220:                                              ; preds = %200
  br label %221

221:                                              ; preds = %220, %189
  br label %222

222:                                              ; preds = %221, %186
  br label %223

223:                                              ; preds = %222, %88
  br label %69, !llvm.loop !32

224:                                              ; preds = %69
  br label %225

225:                                              ; preds = %224, %58
  br label %226

226:                                              ; preds = %225, %57
  %227 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !27
  %228 = sub i32 %227, 1
  %229 = load ptr, ptr %5, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.facetT, ptr %229, i32 0, i32 13
  store i32 %228, ptr %230, align 8, !tbaa !26
  %231 = load i32, ptr %15, align 4, !tbaa !14
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %251

233:                                              ; preds = %226
  %234 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !33
  %235 = icmp sge i32 %234, 4
  br i1 %235, label %236, label %250

236:                                              ; preds = %233
  %237 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !34
  %238 = load i32, ptr %15, align 4, !tbaa !14
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.vertexT, ptr %239, i32 0, i32 4
  %241 = load i32, ptr %240, align 8, !tbaa !30
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.facetT, ptr %242, i32 0, i32 14
  %244 = load i32, ptr %243, align 4, !tbaa !35
  %245 = load ptr, ptr %5, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.facetT, ptr %245, i32 0, i32 15
  %247 = load i32, ptr %246, align 8
  %248 = lshr i32 %247, 13
  %249 = and i32 %248, 1
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %237, i32 noundef 4079, ptr noundef @.str.186, i32 noundef %238, i32 noundef %241, i32 noundef %244, i32 noundef %249)
  br label %250

250:                                              ; preds = %236, %233
  br label %251

251:                                              ; preds = %250, %226
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  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, !11, i64 632}
!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, !6, i64 2984, !11, i64 2992}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!16, !6, i64 64}
!16 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!17 = !{!18, !11, i64 36}
!18 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40, !11, i64 40}
!19 = !{!10, !11, i64 2788}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!16, !6, i64 72}
!23 = !{!24, !6, i64 8}
!24 = !{!"ridgeT", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28, !11, i64 28}
!25 = !{!24, !6, i64 16}
!26 = !{!16, !11, i64 104}
!27 = !{!10, !11, i64 2784}
!28 = !{!24, !6, i64 0}
!29 = !{!7, !7, i64 0}
!30 = !{!18, !11, i64 32}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !21}
!33 = !{!10, !11, i64 136}
!34 = !{!10, !6, i64 2424}
!35 = !{!16, !11, i64 108}


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.186 = external hidden unnamed_addr constant [87 x i8], align 1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_neighbor_vertices_facet(ptr noundef %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !5
  %.fr136 = freeze i32 %4
  %5 = add nsw i32 %.fr136, -2
  %6 = getelementptr inbounds i8, ptr %1, i64 112
  %7 = load i32, ptr %6, align 8
  %8 = and i32 %7, 8192
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %22, label %9

9:                                                ; preds = %3
  %10 = getelementptr inbounds i8, ptr %1, i64 64
  %11 = load ptr, ptr %10, align 8, !tbaa !13
  %.not81 = icmp eq ptr %11, null
  br i1 %.not81, label %.loopexit, label %.preheader91

.preheader91:                                     ; preds = %9
  %.05593 = getelementptr inbounds i8, ptr %11, i64 8
  %12 = load ptr, ptr %.05593, align 8, !tbaa !15
  %.not8394 = icmp eq ptr %12, null
  br i1 %.not8394, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader91
  %.pre140 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %19
  %13 = phi i32 [ %20, %19 ], [ %.pre140, %.lr.ph.preheader ]
  %14 = phi ptr [ %21, %19 ], [ %12, %.lr.ph.preheader ]
  %.05596 = phi ptr [ %.055, %19 ], [ %.05593, %.lr.ph.preheader ]
  %.05495 = phi i32 [ %.1, %19 ], [ 0, %.lr.ph.preheader ]
  %15 = getelementptr inbounds i8, ptr %14, i64 36
  %16 = load i32, ptr %15, align 4, !tbaa !17
  %.not84 = icmp eq i32 %16, %13
  br i1 %.not84, label %19, label %17

17:                                               ; preds = %.lr.ph
  store i32 %13, ptr %15, align 4, !tbaa !17
  tail call void @qh_setappend(ptr noundef %2, ptr noundef nonnull %14) #2
  %18 = add nsw i32 %.05495, 1
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %19

19:                                               ; preds = %17, %.lr.ph
  %20 = phi i32 [ %.pre, %17 ], [ %13, %.lr.ph ]
  %.1 = phi i32 [ %18, %17 ], [ %.05495, %.lr.ph ]
  %.055 = getelementptr inbounds i8, ptr %.05596, i64 8
  %21 = load ptr, ptr %.055, align 8, !tbaa !15
  %.not83 = icmp eq ptr %21, null
  br i1 %.not83, label %.loopexit, label %.lr.ph, !llvm.loop !19

22:                                               ; preds = %3
  %23 = getelementptr inbounds i8, ptr %1, i64 72
  %24 = load ptr, ptr %23, align 8, !tbaa !21
  %.not71 = icmp eq ptr %24, null
  br i1 %.not71, label %.loopexit, label %.preheader90

.preheader90:                                     ; preds = %22
  %.057103 = getelementptr inbounds i8, ptr %24, i64 8
  %25 = load ptr, ptr %.057103, align 8, !tbaa !15
  %.not72104 = icmp eq ptr %25, null
  br i1 %.not72104, label %.loopexit, label %.lr.ph107

.lr.ph107:                                        ; preds = %.preheader90
  %26 = icmp sgt i32 %.fr136, 4
  %27 = sext i32 %5 to i64
  %28 = zext nneg i32 %5 to i64
  %29 = getelementptr inbounds i8, ptr %0, i64 32
  br i1 %26, label %.lr.ph107.split.us, label %.lr.ph107.split

.lr.ph107.split.us:                               ; preds = %.lr.ph107, %.critedge.us
  %30 = phi ptr [ %73, %.critedge.us ], [ %25, %.lr.ph107 ]
  %.057106.us = phi ptr [ %.057.us, %.critedge.us ], [ %.057103, %.lr.ph107 ]
  %.2105.us = phi i32 [ %.5.us, %.critedge.us ], [ 0, %.lr.ph107 ]
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8, !tbaa !22
  %33 = icmp eq ptr %32, %1
  br i1 %33, label %34, label %37

34:                                               ; preds = %.lr.ph107.split.us
  %35 = getelementptr inbounds i8, ptr %30, i64 16
  %36 = load ptr, ptr %35, align 8, !tbaa !24
  br label %37

37:                                               ; preds = %34, %.lr.ph107.split.us
  %38 = phi ptr [ %36, %34 ], [ %32, %.lr.ph107.split.us ]
  %39 = getelementptr inbounds i8, ptr %38, i64 104
  %40 = load i32, ptr %39, align 8, !tbaa !25
  %41 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !26
  %42 = icmp eq i32 %40, %41
  br i1 %42, label %43, label %.critedge.us

43:                                               ; preds = %37
  %44 = load ptr, ptr %30, align 8, !tbaa !27
  %45 = getelementptr inbounds i8, ptr %44, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !28
  %47 = icmp eq ptr %46, %0
  br i1 %47, label %.preheader.us, label %48

48:                                               ; preds = %43
  %49 = getelementptr inbounds i8, ptr %44, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !28
  %51 = getelementptr inbounds [1 x %union.setelemT], ptr %45, i64 0, i64 %28
  %52 = load ptr, ptr %51, align 8, !tbaa !28
  %53 = getelementptr inbounds i8, ptr %50, i64 32
  %54 = load i32, ptr %53, align 8, !tbaa !29
  %55 = load i32, ptr %29, align 8, !tbaa !29
  %.not73.us = icmp ult i32 %54, %55
  br i1 %.not73.us, label %.critedge.us, label %56

56:                                               ; preds = %48
  %57 = getelementptr inbounds i8, ptr %52, i64 32
  %58 = load i32, ptr %57, align 8, !tbaa !29
  %.not74.us = icmp ugt i32 %58, %55
  br i1 %.not74.us, label %.critedge.us, label %59

59:                                               ; preds = %56
  %60 = icmp eq ptr %50, %0
  %61 = icmp eq ptr %52, %0
  %or.cond85.us = select i1 %60, i1 true, i1 %61
  br i1 %or.cond85.us, label %.preheader.us, label %62

62:                                               ; preds = %59
  %63 = tail call i32 @qh_setin(ptr noundef nonnull %44, ptr noundef nonnull %0) #2
  %.not75.us = icmp eq i32 %63, 0
  br i1 %.not75.us, label %.critedge.us, label %.critedge88.us

.critedge88.us:                                   ; preds = %62
  %.pr.us.pre = load ptr, ptr %30, align 8, !tbaa !27
  %.not77.us = icmp eq ptr %.pr.us.pre, null
  br i1 %.not77.us, label %.critedge.us, label %.preheader.us

.lr.ph101.us:                                     ; preds = %.lr.ph101.us.preheader, %70
  %64 = phi i32 [ %71, %70 ], [ %.pre147, %.lr.ph101.us.preheader ]
  %65 = phi ptr [ %72, %70 ], [ %75, %.lr.ph101.us.preheader ]
  %.156100.us = phi ptr [ %.156.us, %70 ], [ %.15697.us, %.lr.ph101.us.preheader ]
  %.399.us = phi i32 [ %.4.us, %70 ], [ %.2105.us, %.lr.ph101.us.preheader ]
  %66 = getelementptr inbounds i8, ptr %65, i64 36
  %67 = load i32, ptr %66, align 4, !tbaa !17
  %.not80.us = icmp eq i32 %67, %64
  br i1 %.not80.us, label %70, label %68

68:                                               ; preds = %.lr.ph101.us
  store i32 %64, ptr %66, align 4, !tbaa !17
  tail call void @qh_setappend(ptr noundef %2, ptr noundef nonnull %65) #2
  %69 = add nsw i32 %.399.us, 1
  %.pre146 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %70

70:                                               ; preds = %68, %.lr.ph101.us
  %71 = phi i32 [ %.pre146, %68 ], [ %64, %.lr.ph101.us ]
  %.4.us = phi i32 [ %69, %68 ], [ %.399.us, %.lr.ph101.us ]
  %.156.us = getelementptr inbounds i8, ptr %.156100.us, i64 8
  %72 = load ptr, ptr %.156.us, align 8, !tbaa !15
  %.not79.us = icmp eq ptr %72, null
  br i1 %.not79.us, label %.critedge.us, label %.lr.ph101.us, !llvm.loop !30

.critedge.us:                                     ; preds = %70, %.preheader.us, %.critedge88.us, %62, %56, %48, %37
  %.5.us = phi i32 [ %.2105.us, %.critedge88.us ], [ %.2105.us, %37 ], [ %.2105.us, %48 ], [ %.2105.us, %56 ], [ %.2105.us, %62 ], [ %.2105.us, %.preheader.us ], [ %.4.us, %70 ]
  %.057.us = getelementptr inbounds i8, ptr %.057106.us, i64 8
  %73 = load ptr, ptr %.057.us, align 8, !tbaa !15
  %.not72.us = icmp eq ptr %73, null
  br i1 %.not72.us, label %.loopexit, label %.lr.ph107.split.us, !llvm.loop !31

.preheader.us:                                    ; preds = %59, %43, %.critedge88.us
  %74 = phi ptr [ %.pr.us.pre, %.critedge88.us ], [ %44, %43 ], [ %44, %59 ]
  %.15697.us = getelementptr inbounds i8, ptr %74, i64 8
  %75 = load ptr, ptr %.15697.us, align 8, !tbaa !15
  %.not7998.us = icmp eq ptr %75, null
  br i1 %.not7998.us, label %.critedge.us, label %.lr.ph101.us.preheader

.lr.ph101.us.preheader:                           ; preds = %.preheader.us
  %.pre147 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %.lr.ph101.us

.lr.ph107.split:                                  ; preds = %.lr.ph107
  %76 = icmp eq i32 %.fr136, 4
  br i1 %76, label %.lr.ph107.split.split.us, label %.lr.ph107.split.split

.lr.ph107.split.split.us:                         ; preds = %.lr.ph107.split, %.critedge.us121
  %77 = phi ptr [ %111, %.critedge.us121 ], [ %25, %.lr.ph107.split ]
  %.057106.us109 = phi ptr [ %.057.us123, %.critedge.us121 ], [ %.057103, %.lr.ph107.split ]
  %.2105.us110 = phi i32 [ %.5.us122, %.critedge.us121 ], [ 0, %.lr.ph107.split ]
  %78 = getelementptr inbounds i8, ptr %77, i64 8
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = icmp eq ptr %79, %1
  br i1 %80, label %81, label %84

81:                                               ; preds = %.lr.ph107.split.split.us
  %82 = getelementptr inbounds i8, ptr %77, i64 16
  %83 = load ptr, ptr %82, align 8, !tbaa !24
  br label %84

84:                                               ; preds = %81, %.lr.ph107.split.split.us
  %85 = phi ptr [ %83, %81 ], [ %79, %.lr.ph107.split.split.us ]
  %86 = getelementptr inbounds i8, ptr %85, i64 104
  %87 = load i32, ptr %86, align 8, !tbaa !25
  %88 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !26
  %89 = icmp eq i32 %87, %88
  br i1 %89, label %90, label %.critedge.us121

90:                                               ; preds = %84
  %91 = load ptr, ptr %77, align 8, !tbaa !27
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load ptr, ptr %92, align 8, !tbaa !28
  %94 = icmp eq ptr %93, %0
  br i1 %94, label %.preheader.us125, label %95

95:                                               ; preds = %90
  %96 = getelementptr inbounds [1 x %union.setelemT], ptr %92, i64 0, i64 %27
  %97 = load ptr, ptr %96, align 8, !tbaa !28
  %98 = icmp eq ptr %97, %0
  br i1 %98, label %.preheader.us125, label %99

99:                                               ; preds = %95
  %100 = getelementptr inbounds i8, ptr %91, i64 16
  %101 = load ptr, ptr %100, align 8, !tbaa !28
  %.not89.us = icmp ne ptr %101, %0
  %.not7998.us127 = icmp eq ptr %93, null
  %or.cond152 = or i1 %.not89.us, %.not7998.us127
  br i1 %or.cond152, label %.critedge.us121, label %.lr.ph101.us130.preheader

.lr.ph101.us130:                                  ; preds = %.lr.ph101.us130.preheader, %108
  %102 = phi i32 [ %109, %108 ], [ %.pre144, %.lr.ph101.us130.preheader ]
  %103 = phi ptr [ %110, %108 ], [ %93, %.lr.ph101.us130.preheader ]
  %.156100.us115 = phi ptr [ %.156.us119, %108 ], [ %92, %.lr.ph101.us130.preheader ]
  %.399.us116 = phi i32 [ %.4.us118, %108 ], [ %.2105.us110, %.lr.ph101.us130.preheader ]
  %104 = getelementptr inbounds i8, ptr %103, i64 36
  %105 = load i32, ptr %104, align 4, !tbaa !17
  %.not80.us117 = icmp eq i32 %105, %102
  br i1 %.not80.us117, label %108, label %106

106:                                              ; preds = %.lr.ph101.us130
  store i32 %102, ptr %104, align 4, !tbaa !17
  tail call void @qh_setappend(ptr noundef %2, ptr noundef nonnull %103) #2
  %107 = add nsw i32 %.399.us116, 1
  %.pre143 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %108

108:                                              ; preds = %106, %.lr.ph101.us130
  %109 = phi i32 [ %.pre143, %106 ], [ %102, %.lr.ph101.us130 ]
  %.4.us118 = phi i32 [ %107, %106 ], [ %.399.us116, %.lr.ph101.us130 ]
  %.156.us119 = getelementptr inbounds i8, ptr %.156100.us115, i64 8
  %110 = load ptr, ptr %.156.us119, align 8, !tbaa !15
  %.not79.us120 = icmp eq ptr %110, null
  br i1 %.not79.us120, label %.critedge.us121, label %.lr.ph101.us130, !llvm.loop !30

.critedge.us121:                                  ; preds = %108, %.preheader.us125, %99, %84
  %.5.us122 = phi i32 [ %.2105.us110, %99 ], [ %.2105.us110, %84 ], [ %.2105.us110, %.preheader.us125 ], [ %.4.us118, %108 ]
  %.057.us123 = getelementptr inbounds i8, ptr %.057106.us109, i64 8
  %111 = load ptr, ptr %.057.us123, align 8, !tbaa !15
  %.not72.us124 = icmp eq ptr %111, null
  br i1 %.not72.us124, label %.loopexit, label %.lr.ph107.split.split.us, !llvm.loop !31

.preheader.us125:                                 ; preds = %90, %95
  %.not7998.us127.old = icmp eq ptr %93, null
  br i1 %.not7998.us127.old, label %.critedge.us121, label %.lr.ph101.us130.preheader

.lr.ph101.us130.preheader:                        ; preds = %99, %.preheader.us125
  %.pre144 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %.lr.ph101.us130

.lr.ph107.split.split:                            ; preds = %.lr.ph107.split, %.critedge
  %112 = phi ptr [ %143, %.critedge ], [ %25, %.lr.ph107.split ]
  %.057106 = phi ptr [ %.057, %.critedge ], [ %.057103, %.lr.ph107.split ]
  %.2105 = phi i32 [ %.5, %.critedge ], [ 0, %.lr.ph107.split ]
  %113 = getelementptr inbounds i8, ptr %112, i64 8
  %114 = load ptr, ptr %113, align 8, !tbaa !22
  %115 = icmp eq ptr %114, %1
  br i1 %115, label %116, label %119

116:                                              ; preds = %.lr.ph107.split.split
  %117 = getelementptr inbounds i8, ptr %112, i64 16
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  br label %119

119:                                              ; preds = %.lr.ph107.split.split, %116
  %120 = phi ptr [ %118, %116 ], [ %114, %.lr.ph107.split.split ]
  %121 = getelementptr inbounds i8, ptr %120, i64 104
  %122 = load i32, ptr %121, align 8, !tbaa !25
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !26
  %124 = icmp eq i32 %122, %123
  br i1 %124, label %125, label %.critedge

125:                                              ; preds = %119
  %126 = load ptr, ptr %112, align 8, !tbaa !27
  %127 = getelementptr inbounds i8, ptr %126, i64 8
  %128 = load ptr, ptr %127, align 8, !tbaa !28
  %129 = icmp eq ptr %128, %0
  br i1 %129, label %.preheader, label %130

130:                                              ; preds = %125
  %131 = getelementptr inbounds [1 x %union.setelemT], ptr %127, i64 0, i64 %27
  %132 = load ptr, ptr %131, align 8, !tbaa !28
  %133 = icmp ne ptr %132, %0
  %.not7998 = icmp eq ptr %128, null
  %or.cond153 = or i1 %133, %.not7998
  br i1 %or.cond153, label %.critedge, label %.lr.ph101.preheader

.preheader:                                       ; preds = %125
  %.not7998.old = icmp eq ptr %128, null
  br i1 %.not7998.old, label %.critedge, label %.lr.ph101.preheader

.lr.ph101.preheader:                              ; preds = %130, %.preheader
  %.pre142 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %.lr.ph101

.lr.ph101:                                        ; preds = %.lr.ph101.preheader, %140
  %134 = phi i32 [ %141, %140 ], [ %.pre142, %.lr.ph101.preheader ]
  %135 = phi ptr [ %142, %140 ], [ %128, %.lr.ph101.preheader ]
  %.156100 = phi ptr [ %.156, %140 ], [ %127, %.lr.ph101.preheader ]
  %.399 = phi i32 [ %.4, %140 ], [ %.2105, %.lr.ph101.preheader ]
  %136 = getelementptr inbounds i8, ptr %135, i64 36
  %137 = load i32, ptr %136, align 4, !tbaa !17
  %.not80 = icmp eq i32 %137, %134
  br i1 %.not80, label %140, label %138

138:                                              ; preds = %.lr.ph101
  store i32 %134, ptr %136, align 4, !tbaa !17
  tail call void @qh_setappend(ptr noundef %2, ptr noundef nonnull %135) #2
  %139 = add nsw i32 %.399, 1
  %.pre141 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2788), align 4, !tbaa !16
  br label %140

140:                                              ; preds = %138, %.lr.ph101
  %141 = phi i32 [ %.pre141, %138 ], [ %134, %.lr.ph101 ]
  %.4 = phi i32 [ %139, %138 ], [ %.399, %.lr.ph101 ]
  %.156 = getelementptr inbounds i8, ptr %.156100, i64 8
  %142 = load ptr, ptr %.156, align 8, !tbaa !15
  %.not79 = icmp eq ptr %142, null
  br i1 %.not79, label %.critedge, label %.lr.ph101, !llvm.loop !30

.critedge:                                        ; preds = %140, %.preheader, %130, %119
  %.5 = phi i32 [ %.2105, %119 ], [ %.2105, %130 ], [ %.2105, %.preheader ], [ %.4, %140 ]
  %.057 = getelementptr inbounds i8, ptr %.057106, i64 8
  %143 = load ptr, ptr %.057, align 8, !tbaa !15
  %.not72 = icmp eq ptr %143, null
  br i1 %.not72, label %.loopexit, label %.lr.ph107.split.split, !llvm.loop !31

.loopexit:                                        ; preds = %19, %.critedge, %.critedge.us121, %.critedge.us, %.preheader91, %.preheader90, %22, %9
  %.6 = phi i32 [ 0, %9 ], [ 0, %22 ], [ 0, %.preheader90 ], [ 0, %.preheader91 ], [ %.5.us, %.critedge.us ], [ %.5.us122, %.critedge.us121 ], [ %.5, %.critedge ], [ %.1, %19 ]
  %144 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !26
  %145 = add i32 %144, -1
  %146 = getelementptr inbounds i8, ptr %1, i64 104
  store i32 %145, ptr %146, align 8, !tbaa !25
  %147 = icmp ne i32 %.6, 0
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %149 = icmp sgt i32 %148, 3
  %or.cond = select i1 %147, i1 %149, i1 false
  br i1 %or.cond, label %150, label %159

150:                                              ; preds = %.loopexit
  %151 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !32
  %152 = getelementptr inbounds i8, ptr %0, i64 32
  %153 = load i32, ptr %152, align 8, !tbaa !29
  %154 = getelementptr inbounds i8, ptr %1, i64 108
  %155 = load i32, ptr %154, align 4, !tbaa !33
  %156 = load i32, ptr %6, align 8
  %157 = lshr i32 %156, 13
  %158 = and i32 %157, 1
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %151, i32 noundef 4079, ptr noundef nonnull @.str.186, i32 noundef %.6, i32 noundef %153, i32 noundef %155, i32 noundef %158) #2
  br label %159

159:                                              ; preds = %150, %.loopexit
  ret void
}

attributes #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 = { 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 #2 = { 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 632}
!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, !11, i64 2984, !7, i64 2992}
!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 = !{!14, !11, i64 64}
!14 = !{!"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}
!15 = !{!11, !11, i64 0}
!16 = !{!6, !7, i64 2788}
!17 = !{!18, !7, i64 36}
!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 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!14, !11, i64 72}
!22 = !{!23, !11, i64 8}
!23 = !{!"ridgeT", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28, !7, i64 28}
!24 = !{!23, !11, i64 16}
!25 = !{!14, !7, i64 104}
!26 = !{!6, !7, i64 2784}
!27 = !{!23, !11, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!18, !7, i64 32}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = !{!6, !11, i64 2424}
!33 = !{!14, !7, i64 108}


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