; LLVM IR from Discngine/fpocket :: src/qhull/src/libqhull (poly)

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

@qh_qh = external global %struct.qhT, align 8
@.str.34 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [50 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 ptr @qh_setdel(ptr noundef, ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_updatevertices() #2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #3
  store ptr null, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %7 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !9
  %8 = icmp sge i32 %7, 3
  br i1 %8, label %9, label %11

9:                                                ; preds = %0
  %10 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %10, i32 noundef 3013, ptr noundef @.str.34)
  br label %11

11:                                               ; preds = %9, %0
  %12 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), align 8, !tbaa !15
  %13 = icmp ne i32 %12, 0
  br i1 %13, label %14, label %212

14:                                               ; preds = %11
  %15 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !16
  store ptr %15, ptr %5, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %58, %14
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %24

19:                                               ; preds = %16
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.vertexT, ptr %20, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !17
  %23 = icmp ne ptr %22, null
  br label %24

24:                                               ; preds = %19, %16
  %25 = phi i1 [ false, %16 ], [ %23, %19 ]
  br i1 %25, label %26, label %62

26:                                               ; preds = %24
  store ptr null, ptr %2, align 8, !tbaa !5
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.vertexT, ptr %27, i32 0, i32 3
  %29 = load ptr, ptr %28, align 8, !tbaa !19
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %54

31:                                               ; preds = %26
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.vertexT, ptr %32, i32 0, i32 3
  %34 = load ptr, ptr %33, align 8, !tbaa !19
  %35 = getelementptr inbounds %struct.setT, ptr %34, i32 0, i32 1
  %36 = getelementptr inbounds [1 x %union.setelemT], ptr %35, i64 0, i64 0
  store ptr %36, ptr %3, align 8, !tbaa !5
  br label %37

37:                                               ; preds = %52, %31
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds ptr, ptr %38, i32 1
  store ptr %39, ptr %3, align 8, !tbaa !5
  %40 = load ptr, ptr %38, align 8, !tbaa !5
  store ptr %40, ptr %2, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %53

42:                                               ; preds = %37
  %43 = load ptr, ptr %2, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.facetT, ptr %43, i32 0, i32 15
  %45 = load i32, ptr %44, align 8
  %46 = lshr i32 %45, 11
  %47 = and i32 %46, 1
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %52

49:                                               ; preds = %42
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds ptr, ptr %50, i64 -1
  store ptr null, ptr %51, align 8, !tbaa !5
  br label %52

52:                                               ; preds = %49, %42
  br label %37, !llvm.loop !20

53:                                               ; preds = %37
  br label %54

54:                                               ; preds = %53, %26
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.vertexT, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !19
  call void @qh_setcompact(ptr noundef %57)
  br label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.vertexT, ptr %59, i32 0, i32 0
  %61 = load ptr, ptr %60, align 8, !tbaa !17
  store ptr %61, ptr %5, align 8, !tbaa !5
  br label %16, !llvm.loop !22

62:                                               ; preds = %24
  %63 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !23
  store ptr %63, ptr %1, align 8, !tbaa !5
  br label %64

64:                                               ; preds = %96, %62
  %65 = load ptr, ptr %1, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %72

67:                                               ; preds = %64
  %68 = load ptr, ptr %1, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.facetT, ptr %68, i32 0, i32 7
  %70 = load ptr, ptr %69, align 8, !tbaa !24
  %71 = icmp ne ptr %70, null
  br label %72

72:                                               ; preds = %67, %64
  %73 = phi i1 [ false, %64 ], [ %71, %67 ]
  br i1 %73, label %74, label %100

74:                                               ; preds = %72
  store ptr null, ptr %5, align 8, !tbaa !5
  %75 = load ptr, ptr %1, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 8
  %77 = load ptr, ptr %76, align 8, !tbaa !26
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %95

79:                                               ; preds = %74
  %80 = load ptr, ptr %1, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.facetT, ptr %80, i32 0, i32 8
  %82 = load ptr, ptr %81, align 8, !tbaa !26
  %83 = getelementptr inbounds %struct.setT, ptr %82, i32 0, i32 1
  %84 = getelementptr inbounds [1 x %union.setelemT], ptr %83, i64 0, i64 0
  store ptr %84, ptr %6, align 8, !tbaa !5
  br label %85

85:                                               ; preds = %90, %79
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds ptr, ptr %86, i32 1
  store ptr %87, ptr %6, align 8, !tbaa !5
  %88 = load ptr, ptr %86, align 8, !tbaa !5
  store ptr %88, ptr %5, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %94

90:                                               ; preds = %85
  %91 = load ptr, ptr %5, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.vertexT, ptr %91, i32 0, i32 3
  %93 = load ptr, ptr %1, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %92, ptr noundef %93)
  br label %85, !llvm.loop !27

94:                                               ; preds = %85
  br label %95

95:                                               ; preds = %94, %74
  br label %96

96:                                               ; preds = %95
  %97 = load ptr, ptr %1, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.facetT, ptr %97, i32 0, i32 7
  %99 = load ptr, ptr %98, align 8, !tbaa !24
  store ptr %99, ptr %1, align 8, !tbaa !5
  br label %64, !llvm.loop !28

100:                                              ; preds = %72
  %101 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !29
  store ptr %101, ptr %4, align 8, !tbaa !5
  br label %102

102:                                              ; preds = %207, %100
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = icmp ne ptr %103, null
  br i1 %104, label %105, label %112

105:                                              ; preds = %102
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 15
  %108 = load i32, ptr %107, align 8
  %109 = lshr i32 %108, 11
  %110 = and i32 %109, 1
  %111 = icmp ne i32 %110, 0
  br label %112

112:                                              ; preds = %105, %102
  %113 = phi i1 [ false, %102 ], [ %111, %105 ]
  br i1 %113, label %114, label %211

114:                                              ; preds = %112
  store ptr null, ptr %5, align 8, !tbaa !5
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 8
  %117 = load ptr, ptr %116, align 8, !tbaa !26
  %118 = icmp ne ptr %117, null
  br i1 %118, label %119, label %206

119:                                              ; preds = %114
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !26
  %123 = getelementptr inbounds %struct.setT, ptr %122, i32 0, i32 1
  %124 = getelementptr inbounds [1 x %union.setelemT], ptr %123, i64 0, i64 0
  store ptr %124, ptr %6, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %204, %119
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = getelementptr inbounds ptr, ptr %126, i32 1
  store ptr %127, ptr %6, align 8, !tbaa !5
  %128 = load ptr, ptr %126, align 8, !tbaa !5
  store ptr %128, ptr %5, align 8, !tbaa !5
  %129 = icmp ne ptr %128, null
  br i1 %129, label %130, label %205

130:                                              ; preds = %125
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.vertexT, ptr %131, i32 0, i32 6
  %133 = load i8, ptr %132, align 8
  %134 = lshr i8 %133, 4
  %135 = and i8 %134, 1
  %136 = zext i8 %135 to i32
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %204, label %138

138:                                              ; preds = %130
  %139 = load ptr, ptr %5, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.vertexT, ptr %139, i32 0, i32 6
  %141 = load i8, ptr %140, align 8
  %142 = lshr i8 %141, 3
  %143 = and i8 %142, 1
  %144 = zext i8 %143 to i32
  %145 = icmp ne i32 %144, 0
  br i1 %145, label %204, label %146

146:                                              ; preds = %138
  store ptr null, ptr %2, align 8, !tbaa !5
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.vertexT, ptr %147, i32 0, i32 3
  %149 = load ptr, ptr %148, align 8, !tbaa !19
  %150 = icmp ne ptr %149, null
  br i1 %150, label %151, label %172

151:                                              ; preds = %146
  %152 = load ptr, ptr %5, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.vertexT, ptr %152, i32 0, i32 3
  %154 = load ptr, ptr %153, align 8, !tbaa !19
  %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 %3, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %170, %151
  %158 = load ptr, ptr %3, align 8, !tbaa !5
  %159 = getelementptr inbounds ptr, ptr %158, i32 1
  store ptr %159, ptr %3, align 8, !tbaa !5
  %160 = load ptr, ptr %158, align 8, !tbaa !5
  store ptr %160, ptr %2, align 8, !tbaa !5
  %161 = icmp ne ptr %160, null
  br i1 %161, label %162, label %171

162:                                              ; preds = %157
  %163 = load ptr, ptr %2, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.facetT, ptr %163, i32 0, i32 15
  %165 = load i32, ptr %164, align 8
  %166 = lshr i32 %165, 11
  %167 = and i32 %166, 1
  %168 = icmp ne i32 %167, 0
  br i1 %168, label %170, label %169

169:                                              ; preds = %162
  br label %171

170:                                              ; preds = %162
  br label %157, !llvm.loop !30

171:                                              ; preds = %169, %157
  br label %172

172:                                              ; preds = %171, %146
  %173 = load ptr, ptr %2, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %181

175:                                              ; preds = %172
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.vertexT, ptr %176, i32 0, i32 3
  %178 = load ptr, ptr %177, align 8, !tbaa !19
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = call ptr @qh_setdel(ptr noundef %178, ptr noundef %179)
  br label %203

181:                                              ; preds = %172
  %182 = load ptr, ptr %5, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.vertexT, ptr %182, i32 0, i32 6
  %184 = load i8, ptr %183, align 8
  %185 = and i8 %184, -9
  %186 = or i8 %185, 8
  store i8 %186, ptr %183, align 8
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), ptr noundef %187)
  %188 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !9
  %189 = icmp sge i32 %188, 2
  br i1 %189, label %190, label %202

190:                                              ; preds = %181
  %191 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !14
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.vertexT, ptr %192, i32 0, i32 2
  %194 = load ptr, ptr %193, align 8, !tbaa !31
  %195 = call i32 @qh_pointid(ptr noundef %194)
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.vertexT, ptr %196, i32 0, i32 4
  %198 = load i32, ptr %197, align 8, !tbaa !32
  %199 = load ptr, ptr %4, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.facetT, ptr %199, i32 0, i32 14
  %201 = load i32, ptr %200, align 4, !tbaa !33
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %191, i32 noundef 2041, ptr noundef @.str.35, i32 noundef %195, i32 noundef %198, i32 noundef %201)
  br label %202

202:                                              ; preds = %190, %181
  br label %203

203:                                              ; preds = %202, %175
  br label %204

204:                                              ; preds = %203, %138, %130
  br label %125, !llvm.loop !34

205:                                              ; preds = %125
  br label %206

206:                                              ; preds = %205, %114
  br label %207

207:                                              ; preds = %206
  %208 = load ptr, ptr %4, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.facetT, ptr %208, i32 0, i32 7
  %210 = load ptr, ptr %209, align 8, !tbaa !24
  store ptr %210, ptr %4, align 8, !tbaa !5
  br label %102, !llvm.loop !35

211:                                              ; preds = %112
  br label %288

212:                                              ; preds = %11
  %213 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !29
  store ptr %213, ptr %4, align 8, !tbaa !5
  br label %214

214:                                              ; preds = %283, %212
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = icmp ne ptr %215, null
  br i1 %216, label %217, label %224

217:                                              ; preds = %214
  %218 = load ptr, ptr %4, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.facetT, ptr %218, i32 0, i32 15
  %220 = load i32, ptr %219, align 8
  %221 = lshr i32 %220, 11
  %222 = and i32 %221, 1
  %223 = icmp ne i32 %222, 0
  br label %224

224:                                              ; preds = %217, %214
  %225 = phi i1 [ false, %214 ], [ %223, %217 ]
  br i1 %225, label %226, label %287

226:                                              ; preds = %224
  store ptr null, ptr %5, align 8, !tbaa !5
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.facetT, ptr %227, i32 0, i32 8
  %229 = load ptr, ptr %228, align 8, !tbaa !26
  %230 = icmp ne ptr %229, null
  br i1 %230, label %231, label %282

231:                                              ; preds = %226
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.facetT, ptr %232, i32 0, i32 8
  %234 = load ptr, ptr %233, align 8, !tbaa !26
  %235 = getelementptr inbounds %struct.setT, ptr %234, i32 0, i32 1
  %236 = getelementptr inbounds [1 x %union.setelemT], ptr %235, i64 0, i64 0
  store ptr %236, ptr %6, align 8, !tbaa !5
  br label %237

237:                                              ; preds = %280, %231
  %238 = load ptr, ptr %6, align 8, !tbaa !5
  %239 = getelementptr inbounds ptr, ptr %238, i32 1
  store ptr %239, ptr %6, align 8, !tbaa !5
  %240 = load ptr, ptr %238, align 8, !tbaa !5
  store ptr %240, ptr %5, align 8, !tbaa !5
  %241 = icmp ne ptr %240, null
  br i1 %241, label %242, label %281

242:                                              ; preds = %237
  %243 = load ptr, ptr %5, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.vertexT, ptr %243, i32 0, i32 6
  %245 = load i8, ptr %244, align 8
  %246 = lshr i8 %245, 4
  %247 = and i8 %246, 1
  %248 = zext i8 %247 to i32
  %249 = icmp ne i32 %248, 0
  br i1 %249, label %280, label %250

250:                                              ; preds = %242
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.vertexT, ptr %251, i32 0, i32 6
  %253 = load i8, ptr %252, align 8
  %254 = lshr i8 %253, 3
  %255 = and i8 %254, 1
  %256 = zext i8 %255 to i32
  %257 = icmp ne i32 %256, 0
  br i1 %257, label %280, label %258

258:                                              ; preds = %250
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.vertexT, ptr %259, i32 0, i32 6
  %261 = load i8, ptr %260, align 8
  %262 = and i8 %261, -9
  %263 = or i8 %262, 8
  store i8 %263, ptr %260, align 8
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), ptr noundef %264)
  %265 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !9
  %266 = icmp sge i32 %265, 2
  br i1 %266, label %267, label %279

267:                                              ; preds = %258
  %268 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !14
  %269 = load ptr, ptr %5, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.vertexT, ptr %269, i32 0, i32 2
  %271 = load ptr, ptr %270, align 8, !tbaa !31
  %272 = call i32 @qh_pointid(ptr noundef %271)
  %273 = load ptr, ptr %5, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.vertexT, ptr %273, i32 0, i32 4
  %275 = load i32, ptr %274, align 8, !tbaa !32
  %276 = load ptr, ptr %4, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.facetT, ptr %276, i32 0, i32 14
  %278 = load i32, ptr %277, align 4, !tbaa !33
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %268, i32 noundef 2042, ptr noundef @.str.35, i32 noundef %272, i32 noundef %275, i32 noundef %278)
  br label %279

279:                                              ; preds = %267, %258
  br label %280

280:                                              ; preds = %279, %250, %242
  br label %237, !llvm.loop !36

281:                                              ; preds = %237
  br label %282

282:                                              ; preds = %281, %226
  br label %283

283:                                              ; preds = %282
  %284 = load ptr, ptr %4, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.facetT, ptr %284, i32 0, i32 7
  %286 = load ptr, ptr %285, align 8, !tbaa !24
  store ptr %286, ptr %4, align 8, !tbaa !5
  br label %214, !llvm.loop !37

287:                                              ; preds = %224
  br label %288

288:                                              ; preds = %287, %211
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #3
  ret void
}

declare void @qh_setcompact(ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 128}
!10 = !{!"qhT", !11, i64 0, !11, i64 4, !11, i64 8, !12, i64 16, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !12, i64 56, !12, i64 64, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !6, i64 112, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !12, i64 152, !12, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !12, i64 184, !12, i64 192, !11, i64 200, !12, i64 208, !11, i64 216, !11, i64 220, !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, !7, i64 296, !11, i64 412, !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, !12, i64 544, !11, i64 552, !11, i64 556, !11, i64 560, !11, i64 564, !11, i64 568, !11, i64 572, !11, i64 576, !11, i64 580, !12, i64 584, !11, i64 592, !6, i64 600, !6, i64 608, !11, i64 616, !11, i64 620, !11, i64 624, !11, i64 628, !11, i64 632, !6, i64 640, !11, i64 648, !6, i64 656, !11, i64 664, !7, i64 668, !11, i64 924, !7, i64 928, !7, i64 1184, !11, i64 1696, !11, i64 1700, !11, i64 1704, !11, i64 1708, !11, i64 1712, !11, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !12, 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, !11, i64 1856, !6, i64 1864, !12, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !6, i64 2392, !6, i64 2400, !6, i64 2408, !6, i64 2416, !11, i64 2424, !11, i64 2428, !11, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !11, i64 2480, !11, i64 2484, !6, i64 2488, !11, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !11, i64 2536, !11, i64 2540, !11, i64 2544, !11, i64 2548, !11, i64 2552, !11, i64 2556, !11, i64 2560, !13, i64 2568, !11, i64 2576, !11, i64 2580, !11, i64 2584, !11, i64 2588, !6, i64 2592, !11, i64 2600, !11, i64 2604, !12, i64 2608, !11, i64 2616, !12, i64 2624, !12, i64 2632, !12, i64 2640, !11, i64 2648, !11, i64 2652, !11, i64 2656, !11, i64 2660, !12, i64 2664, !12, i64 2672, !11, i64 2680, !11, i64 2684, !11, i64 2688, !11, i64 2692, !12, i64 2696, !12, i64 2704, !11, i64 2712, !11, i64 2716, !11, i64 2720, !11, i64 2724, !6, i64 2728, !6, i64 2736, !6, i64 2744, !6, i64 2752, !6, i64 2760, !6, i64 2768, !6, i64 2776, !6, i64 2784, !11, i64 2792, !6, i64 2800, !6, i64 2808, !11, i64 2816, !11, i64 2820, !11, i64 2824, !6, i64 2832, !12, i64 2840, !12, i64 2848, !12, i64 2856, !11, i64 2864, !11, i64 2868, !6, i64 2872, !6, i64 2880, !11, i64 2888}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !6, i64 2408}
!15 = !{!10, !11, i64 1712}
!16 = !{!10, !6, i64 2528}
!17 = !{!18, !6, i64 0}
!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}
!19 = !{!18, !6, i64 24}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = !{!10, !6, i64 2464}
!24 = !{!25, !6, i64 56}
!25 = !{!"facetT", !12, i64 0, !12, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 113, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 114, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115, !11, i64 115}
!26 = !{!25, !6, i64 64}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = !{!10, !6, i64 2472}
!30 = distinct !{!30, !21}
!31 = !{!18, !6, i64 16}
!32 = !{!18, !11, i64 32}
!33 = !{!25, !11, i64 108}
!34 = distinct !{!34, !21}
!35 = distinct !{!35, !21}
!36 = distinct !{!36, !21}
!37 = distinct !{!37, !21}


; 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, double, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, double, double, i32, double, i32, 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, i32, double, double, double, 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, i32, ptr, double, double, double, double, [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, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, ptr, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }

@qh_qh = external global %struct.qhT, align 8
@.str.34 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [50 x i8], align 1

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

declare ptr @qh_setdel(ptr noundef, ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_updatevertices() local_unnamed_addr #1 {
  %1 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !5
  %2 = icmp sgt i32 %1, 2
  br i1 %2, label %3, label %5

3:                                                ; preds = %0
  %4 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %4, i32 noundef 3013, ptr noundef nonnull @.str.34) #2
  br label %5

5:                                                ; preds = %3, %0
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1712), align 8, !tbaa !14
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %.preheader106, label %.preheader116

.preheader116:                                    ; preds = %5
  %.056120 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2528), align 8, !tbaa !15
  %.not80121 = icmp eq ptr %.056120, null
  br i1 %.not80121, label %.critedge, label %.lr.ph123

.preheader106:                                    ; preds = %5
  %.158148 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !15
  %.not74149 = icmp eq ptr %.158148, null
  br i1 %.not74149, label %.critedge4, label %.lr.ph152

.lr.ph123:                                        ; preds = %.preheader116, %.loopexit115
  %.056122 = phi ptr [ %.056, %.loopexit115 ], [ %.056120, %.preheader116 ]
  %7 = load ptr, ptr %.056122, align 8, !tbaa !16
  %.not81 = icmp eq ptr %7, null
  br i1 %.not81, label %.critedge, label %8

8:                                                ; preds = %.lr.ph123
  %9 = getelementptr inbounds i8, ptr %.056122, i64 24
  %10 = load ptr, ptr %9, align 8, !tbaa !18
  %.not99 = icmp eq ptr %10, null
  br i1 %.not99, label %.loopexit115, label %.preheader114

.preheader114:                                    ; preds = %8
  %.059117 = getelementptr inbounds i8, ptr %10, i64 8
  %11 = load ptr, ptr %.059117, align 8, !tbaa !15
  %.not100118 = icmp eq ptr %11, null
  br i1 %.not100118, label %.loopexit115, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader114, %17
  %12 = phi ptr [ %18, %17 ], [ %11, %.preheader114 ]
  %.059119 = phi ptr [ %.059, %17 ], [ %.059117, %.preheader114 ]
  %13 = getelementptr inbounds i8, ptr %12, i64 112
  %14 = load i32, ptr %13, align 8
  %15 = and i32 %14, 2048
  %.not101 = icmp eq i32 %15, 0
  br i1 %.not101, label %17, label %16

16:                                               ; preds = %.lr.ph
  store ptr null, ptr %.059119, align 8, !tbaa !15
  br label %17

17:                                               ; preds = %16, %.lr.ph
  %.059 = getelementptr inbounds i8, ptr %.059119, i64 8
  %18 = load ptr, ptr %.059, align 8, !tbaa !15
  %.not100 = icmp eq ptr %18, null
  br i1 %.not100, label %.loopexit115.loopexit, label %.lr.ph, !llvm.loop !19

.loopexit115.loopexit:                            ; preds = %17
  %.pre = load ptr, ptr %9, align 8, !tbaa !18
  br label %.loopexit115

.loopexit115:                                     ; preds = %.loopexit115.loopexit, %.preheader114, %8
  %19 = phi ptr [ %.pre, %.loopexit115.loopexit ], [ %10, %.preheader114 ], [ null, %8 ]
  tail call void @qh_setcompact(ptr noundef %19) #2
  %.056 = load ptr, ptr %.056122, align 8, !tbaa !15
  %.not80 = icmp eq ptr %.056, null
  br i1 %.not80, label %.critedge, label %.lr.ph123, !llvm.loop !21

.critedge:                                        ; preds = %.lr.ph123, %.loopexit115, %.preheader116
  %.062129 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !15
  %.not82130 = icmp eq ptr %.062129, null
  br i1 %.not82130, label %.critedge2, label %.lr.ph132

.lr.ph132:                                        ; preds = %.critedge, %.loopexit113
  %.062131 = phi ptr [ %.062, %.loopexit113 ], [ %.062129, %.critedge ]
  %20 = getelementptr inbounds i8, ptr %.062131, i64 56
  %21 = load ptr, ptr %20, align 8, !tbaa !15
  %.not83 = icmp eq ptr %21, null
  br i1 %.not83, label %.critedge2, label %22

22:                                               ; preds = %.lr.ph132
  %23 = getelementptr inbounds i8, ptr %.062131, i64 64
  %24 = load ptr, ptr %23, align 8, !tbaa !22
  %.not96 = icmp eq ptr %24, null
  br i1 %.not96, label %.loopexit113, label %.preheader112

.preheader112:                                    ; preds = %22
  %.0125 = getelementptr inbounds i8, ptr %24, i64 8
  %25 = load ptr, ptr %.0125, align 8, !tbaa !15
  %.not98126 = icmp eq ptr %25, null
  br i1 %.not98126, label %.loopexit113, label %.lr.ph128

.lr.ph128:                                        ; preds = %.preheader112, %.lr.ph128
  %26 = phi ptr [ %28, %.lr.ph128 ], [ %25, %.preheader112 ]
  %.0127 = phi ptr [ %.0, %.lr.ph128 ], [ %.0125, %.preheader112 ]
  %27 = getelementptr inbounds i8, ptr %26, i64 24
  tail call void @qh_setappend(ptr noundef nonnull %27, ptr noundef nonnull %.062131) #2
  %.0 = getelementptr inbounds i8, ptr %.0127, i64 8
  %28 = load ptr, ptr %.0, align 8, !tbaa !15
  %.not98 = icmp eq ptr %28, null
  br i1 %.not98, label %.loopexit113.loopexit, label %.lr.ph128, !llvm.loop !24

.loopexit113.loopexit:                            ; preds = %.lr.ph128
  %.062.pre = load ptr, ptr %20, align 8, !tbaa !15
  br label %.loopexit113

.loopexit113:                                     ; preds = %.loopexit113.loopexit, %.preheader112, %22
  %.062 = phi ptr [ %.062.pre, %.loopexit113.loopexit ], [ %21, %.preheader112 ], [ %21, %22 ]
  %.not82 = icmp eq ptr %.062, null
  br i1 %.not82, label %.critedge2, label %.lr.ph132, !llvm.loop !25

.critedge2:                                       ; preds = %.lr.ph132, %.loopexit113, %.critedge
  %.057138 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !15
  %.not84139 = icmp eq ptr %.057138, null
  br i1 %.not84139, label %.critedge4, label %.lr.ph142

.lr.ph142:                                        ; preds = %.critedge2, %.loopexit110
  %.057140 = phi ptr [ %.057, %.loopexit110 ], [ %.057138, %.critedge2 ]
  %29 = getelementptr inbounds i8, ptr %.057140, i64 112
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, 2048
  %.not85 = icmp eq i32 %31, 0
  br i1 %.not85, label %.critedge4, label %32

32:                                               ; preds = %.lr.ph142
  %33 = getelementptr inbounds i8, ptr %.057140, i64 64
  %34 = load ptr, ptr %33, align 8, !tbaa !22
  %.not86 = icmp eq ptr %34, null
  br i1 %.not86, label %.loopexit110, label %.preheader109

.preheader109:                                    ; preds = %32
  %.1134 = getelementptr inbounds i8, ptr %34, i64 8
  %35 = load ptr, ptr %.1134, align 8, !tbaa !15
  %.not88135 = icmp eq ptr %35, null
  br i1 %.not88135, label %.loopexit110, label %.lr.ph137

.lr.ph137:                                        ; preds = %.preheader109
  %36 = getelementptr inbounds i8, ptr %.057140, i64 108
  br label %37

37:                                               ; preds = %.lr.ph137, %62
  %38 = phi ptr [ %35, %.lr.ph137 ], [ %63, %62 ]
  %.1136 = phi ptr [ %.1134, %.lr.ph137 ], [ %.1, %62 ]
  %39 = getelementptr inbounds i8, ptr %38, i64 40
  %40 = load i8, ptr %39, align 8
  %41 = and i8 %40, 24
  %or.cond = icmp eq i8 %41, 0
  br i1 %or.cond, label %42, label %62

42:                                               ; preds = %37
  %43 = getelementptr inbounds i8, ptr %38, i64 24
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %.not91 = icmp eq ptr %44, null
  br i1 %.not91, label %.loopexit108, label %.preheader107

.preheader107:                                    ; preds = %42, %46
  %.pn92 = phi ptr [ %.160, %46 ], [ %44, %42 ]
  %.160 = getelementptr inbounds i8, ptr %.pn92, i64 8
  %45 = load ptr, ptr %.160, align 8, !tbaa !15
  %.not93 = icmp eq ptr %45, null
  br i1 %.not93, label %.loopexit108, label %46

46:                                               ; preds = %.preheader107
  %47 = getelementptr inbounds i8, ptr %45, i64 112
  %48 = load i32, ptr %47, align 8
  %49 = and i32 %48, 2048
  %.not94 = icmp eq i32 %49, 0
  br i1 %.not94, label %.critedge104, label %.preheader107, !llvm.loop !26

.critedge104:                                     ; preds = %46
  %50 = tail call ptr @qh_setdel(ptr noundef nonnull %44, ptr noundef nonnull %.057140) #2
  br label %62

.loopexit108:                                     ; preds = %.preheader107, %42
  %51 = or disjoint i8 %40, 8
  store i8 %51, ptr %39, align 8
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2760), ptr noundef nonnull %38) #2
  %52 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !5
  %53 = icmp sgt i32 %52, 1
  br i1 %53, label %54, label %62

54:                                               ; preds = %.loopexit108
  %55 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %38, i64 16
  %57 = load ptr, ptr %56, align 8, !tbaa !27
  %58 = tail call i32 @qh_pointid(ptr noundef %57)
  %59 = getelementptr inbounds i8, ptr %38, i64 32
  %60 = load i32, ptr %59, align 8, !tbaa !28
  %61 = load i32, ptr %36, align 4, !tbaa !29
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %55, i32 noundef 2041, ptr noundef nonnull @.str.35, i32 noundef %58, i32 noundef %60, i32 noundef %61) #2
  br label %62

62:                                               ; preds = %.critedge104, %54, %.loopexit108, %37
  %.1 = getelementptr inbounds i8, ptr %.1136, i64 8
  %63 = load ptr, ptr %.1, align 8, !tbaa !15
  %.not88 = icmp eq ptr %63, null
  br i1 %.not88, label %.loopexit110, label %37, !llvm.loop !30

.loopexit110:                                     ; preds = %62, %.preheader109, %32
  %64 = getelementptr inbounds i8, ptr %.057140, i64 56
  %.057 = load ptr, ptr %64, align 8, !tbaa !15
  %.not84 = icmp eq ptr %.057, null
  br i1 %.not84, label %.critedge4, label %.lr.ph142, !llvm.loop !31

.lr.ph152:                                        ; preds = %.preheader106, %.loopexit
  %.158150 = phi ptr [ %.158, %.loopexit ], [ %.158148, %.preheader106 ]
  %65 = getelementptr inbounds i8, ptr %.158150, i64 112
  %66 = load i32, ptr %65, align 8
  %67 = and i32 %66, 2048
  %.not75 = icmp eq i32 %67, 0
  br i1 %.not75, label %.critedge4, label %68

68:                                               ; preds = %.lr.ph152
  %69 = getelementptr inbounds i8, ptr %.158150, i64 64
  %70 = load ptr, ptr %69, align 8, !tbaa !22
  %.not76 = icmp eq ptr %70, null
  br i1 %.not76, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %68
  %.2144 = getelementptr inbounds i8, ptr %70, i64 8
  %71 = load ptr, ptr %.2144, align 8, !tbaa !15
  %.not77145 = icmp eq ptr %71, null
  br i1 %.not77145, label %.loopexit, label %.lr.ph147

.lr.ph147:                                        ; preds = %.preheader
  %72 = getelementptr inbounds i8, ptr %.158150, i64 108
  br label %73

73:                                               ; preds = %.lr.ph147, %90
  %74 = phi ptr [ %71, %.lr.ph147 ], [ %91, %90 ]
  %.2146 = phi ptr [ %.2144, %.lr.ph147 ], [ %.2, %90 ]
  %75 = getelementptr inbounds i8, ptr %74, i64 40
  %76 = load i8, ptr %75, align 8
  %77 = and i8 %76, 24
  %or.cond105 = icmp eq i8 %77, 0
  br i1 %or.cond105, label %78, label %90

78:                                               ; preds = %73
  %79 = or disjoint i8 %76, 8
  store i8 %79, ptr %75, align 8
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2760), ptr noundef nonnull %74) #2
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !5
  %81 = icmp sgt i32 %80, 1
  br i1 %81, label %82, label %90

82:                                               ; preds = %78
  %83 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %74, i64 16
  %85 = load ptr, ptr %84, align 8, !tbaa !27
  %86 = tail call i32 @qh_pointid(ptr noundef %85)
  %87 = getelementptr inbounds i8, ptr %74, i64 32
  %88 = load i32, ptr %87, align 8, !tbaa !28
  %89 = load i32, ptr %72, align 4, !tbaa !29
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %83, i32 noundef 2042, ptr noundef nonnull @.str.35, i32 noundef %86, i32 noundef %88, i32 noundef %89) #2
  br label %90

90:                                               ; preds = %78, %82, %73
  %.2 = getelementptr inbounds i8, ptr %.2146, i64 8
  %91 = load ptr, ptr %.2, align 8, !tbaa !15
  %.not77 = icmp eq ptr %91, null
  br i1 %.not77, label %.loopexit, label %73, !llvm.loop !32

.loopexit:                                        ; preds = %90, %.preheader, %68
  %92 = getelementptr inbounds i8, ptr %.158150, i64 56
  %.158 = load ptr, ptr %92, align 8, !tbaa !15
  %.not74 = icmp eq ptr %.158, null
  br i1 %.not74, label %.critedge4, label %.lr.ph152, !llvm.loop !33

.critedge4:                                       ; preds = %.loopexit110, %.lr.ph142, %.loopexit, %.lr.ph152, %.critedge2, %.preheader106
  ret void
}

declare void @qh_setcompact(ptr noundef) local_unnamed_addr #0

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 128}
!6 = !{!"qhT", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !10, i64 56, !10, i64 64, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !11, i64 96, !7, i64 104, !7, i64 108, !11, i64 112, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 172, !7, i64 176, !10, i64 184, !10, i64 192, !7, i64 200, !10, i64 208, !7, i64 216, !7, i64 220, !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, !8, i64 296, !7, i64 412, !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, !10, i64 544, !7, i64 552, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !10, i64 584, !7, i64 592, !11, i64 600, !11, i64 608, !7, i64 616, !7, i64 620, !7, i64 624, !7, i64 628, !7, i64 632, !11, i64 640, !7, i64 648, !11, i64 656, !7, i64 664, !8, i64 668, !7, i64 924, !8, i64 928, !8, i64 1184, !7, i64 1696, !7, i64 1700, !7, i64 1704, !7, i64 1708, !7, i64 1712, !7, i64 1716, !11, i64 1720, !11, i64 1728, !11, i64 1736, !11, i64 1744, !10, 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, !7, i64 1856, !11, i64 1864, !10, i64 1872, !10, i64 1880, !10, i64 1888, !10, i64 1896, !8, i64 1904, !8, i64 1912, !8, i64 2112, !8, i64 2152, !8, i64 2352, !11, i64 2392, !11, i64 2400, !11, i64 2408, !11, i64 2416, !7, i64 2424, !7, i64 2428, !7, i64 2432, !11, i64 2440, !11, i64 2448, !11, i64 2456, !11, i64 2464, !11, i64 2472, !7, i64 2480, !7, i64 2484, !11, i64 2488, !7, i64 2496, !11, i64 2504, !11, i64 2512, !11, i64 2520, !11, i64 2528, !7, i64 2536, !7, i64 2540, !7, i64 2544, !7, i64 2548, !7, i64 2552, !7, i64 2556, !7, i64 2560, !12, i64 2568, !7, i64 2576, !7, i64 2580, !7, i64 2584, !7, i64 2588, !11, i64 2592, !7, i64 2600, !7, i64 2604, !10, i64 2608, !7, i64 2616, !10, i64 2624, !10, i64 2632, !10, i64 2640, !7, i64 2648, !7, i64 2652, !7, i64 2656, !7, i64 2660, !10, i64 2664, !10, i64 2672, !7, i64 2680, !7, i64 2684, !7, i64 2688, !7, i64 2692, !10, i64 2696, !10, i64 2704, !7, i64 2712, !7, i64 2716, !7, i64 2720, !7, i64 2724, !11, i64 2728, !11, i64 2736, !11, i64 2744, !11, i64 2752, !11, i64 2760, !11, i64 2768, !11, i64 2776, !11, i64 2784, !7, i64 2792, !11, i64 2800, !11, i64 2808, !7, i64 2816, !7, i64 2820, !7, i64 2824, !11, i64 2832, !10, i64 2840, !10, i64 2848, !10, i64 2856, !7, i64 2864, !7, i64 2868, !11, i64 2872, !11, i64 2880, !7, i64 2888}
!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 = !{!6, !11, i64 2408}
!14 = !{!6, !7, i64 1712}
!15 = !{!11, !11, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"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}
!18 = !{!17, !11, i64 24}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !11, i64 64}
!23 = !{!"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}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}
!27 = !{!17, !11, i64 16}
!28 = !{!17, !7, i64 32}
!29 = !{!23, !7, i64 108}
!30 = distinct !{!30, !20}
!31 = distinct !{!31, !20}
!32 = distinct !{!32, !20}
!33 = distinct !{!33, !20}


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