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

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

@qh_qh = external global %struct.qhT, align 8
@.str.67 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [132 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) #1

declare i32 @qh_pointid(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkpolygon(ptr noundef %0) #2 {
  %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
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  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
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #3
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  store i32 0, ptr %14, align 4, !tbaa !9
  %15 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 24), align 8, !tbaa !11
  %16 = icmp sge i32 %15, 1
  br i1 %16, label %17, label %22

17:                                               ; preds = %1
  %18 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.facetT, ptr %19, i32 0, i32 14
  %21 = load i32, ptr %20, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %18, i32 noundef 1027, ptr noundef @.str.67, i32 noundef %21)
  br label %22

22:                                               ; preds = %17, %1
  %23 = load ptr, ptr %2, align 8, !tbaa !5
  %24 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !18
  %25 = icmp ne ptr %23, %24
  br i1 %25, label %29, label %26

26:                                               ; preds = %22
  %27 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 42), align 8, !tbaa !19
  %28 = icmp ne i32 %27, 0
  br i1 %28, label %29, label %30

29:                                               ; preds = %26, %22
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %30

30:                                               ; preds = %29, %26
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %99

33:                                               ; preds = %30
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %34, ptr %3, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %94, %33
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %43

38:                                               ; preds = %35
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = icmp ne ptr %41, null
  br label %43

43:                                               ; preds = %38, %35
  %44 = phi i1 [ false, %35 ], [ %42, %38 ]
  br i1 %44, label %45, label %98

45:                                               ; preds = %43
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !21
  %48 = icmp eq ptr %46, %47
  br i1 %48, label %49, label %50

49:                                               ; preds = %45
  store i32 1, ptr %14, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %49, %45
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.facetT, ptr %51, i32 0, i32 15
  %53 = load i32, ptr %52, align 8
  %54 = lshr i32 %53, 11
  %55 = and i32 %54, 1
  %56 = icmp ne i32 %55, 0
  br i1 %56, label %93, label %57

57:                                               ; preds = %50
  %58 = load i32, ptr %13, align 4, !tbaa !9
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %89, label %60

60:                                               ; preds = %57
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !22
  %63 = icmp eq ptr %61, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  store i32 1, ptr %13, align 4, !tbaa !9
  br label %88

65:                                               ; preds = %60
  %66 = load ptr, ptr %3, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 11
  %68 = load ptr, ptr %67, align 8, !tbaa !23
  %69 = call i32 @qh_setsize(ptr noundef %68)
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %87

71:                                               ; preds = %65
  %72 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 138), align 8, !tbaa !24
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %80

74:                                               ; preds = %71
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 0
  %77 = load double, ptr %76, align 8, !tbaa !25
  %78 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 3), align 8, !tbaa !26
  %79 = fcmp oge double %77, %78
  br i1 %79, label %80, label %86

80:                                               ; preds = %74, %71
  %81 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %82 = load ptr, ptr %3, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 14
  %84 = load i32, ptr %83, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %81, i32 noundef 6137, ptr noundef @.str.68, i32 noundef %84)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_errexit(i32 noundef 5, ptr noundef %85, ptr noundef null)
  br label %86

86:                                               ; preds = %80, %74
  br label %87

87:                                               ; preds = %86, %65
  br label %88

88:                                               ; preds = %87, %64
  br label %89

89:                                               ; preds = %88, %57
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %7, align 4, !tbaa !9
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  call void @qh_checkfacet(ptr noundef %92, i32 noundef 0, ptr noundef %12)
  br label %93

93:                                               ; preds = %89, %50
  br label %94

94:                                               ; preds = %93
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.facetT, ptr %95, i32 0, i32 7
  %97 = load ptr, ptr %96, align 8, !tbaa !20
  store ptr %97, ptr %3, align 8, !tbaa !5
  br label %35, !llvm.loop !27

98:                                               ; preds = %43
  br label %99

99:                                               ; preds = %98, %30
  %100 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !21
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %115

102:                                              ; preds = %99
  %103 = load i32, ptr %14, align 4, !tbaa !9
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %115, label %105

105:                                              ; preds = %102
  %106 = load ptr, ptr %2, align 8, !tbaa !5
  %107 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !18
  %108 = icmp eq ptr %106, %107
  br i1 %108, label %109, label %115

109:                                              ; preds = %105
  %110 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %111 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !21
  %112 = getelementptr inbounds %struct.facetT, ptr %111, i32 0, i32 14
  %113 = load i32, ptr %112, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %110, i32 noundef 6138, ptr noundef @.str.69, i32 noundef %113)
  call void @qh_printlists()
  %114 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 160), align 8, !tbaa !21
  call void @qh_errexit(i32 noundef 5, ptr noundef %114, ptr noundef null)
  br label %115

115:                                              ; preds = %109, %105, %102, %99
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !18
  %118 = icmp eq ptr %116, %117
  br i1 %118, label %119, label %121

119:                                              ; preds = %115
  %120 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !29
  store ptr %120, ptr %6, align 8, !tbaa !5
  br label %129

121:                                              ; preds = %115
  %122 = load ptr, ptr %2, align 8, !tbaa !5
  %123 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 159), align 8, !tbaa !30
  %124 = icmp eq ptr %122, %123
  br i1 %124, label %125, label %127

125:                                              ; preds = %121
  %126 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 168), align 8, !tbaa !31
  store ptr %126, ptr %6, align 8, !tbaa !5
  br label %128

127:                                              ; preds = %121
  store ptr null, ptr %6, align 8, !tbaa !5
  br label %128

128:                                              ; preds = %127, %125
  br label %129

129:                                              ; preds = %128, %119
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %130, ptr %4, align 8, !tbaa !5
  br label %131

131:                                              ; preds = %149, %129
  %132 = load ptr, ptr %4, align 8, !tbaa !5
  %133 = icmp ne ptr %132, null
  br i1 %133, label %134, label %139

134:                                              ; preds = %131
  %135 = load ptr, ptr %4, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.vertexT, ptr %135, i32 0, i32 0
  %137 = load ptr, ptr %136, align 8, !tbaa !32
  %138 = icmp ne ptr %137, null
  br label %139

139:                                              ; preds = %134, %131
  %140 = phi i1 [ false, %131 ], [ %138, %134 ]
  br i1 %140, label %141, label %153

141:                                              ; preds = %139
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.vertexT, ptr %142, i32 0, i32 6
  %144 = load i8, ptr %143, align 8
  %145 = and i8 %144, -2
  %146 = or i8 %145, 0
  store i8 %146, ptr %143, align 8
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.vertexT, ptr %147, i32 0, i32 5
  store i32 0, ptr %148, align 4, !tbaa !34
  br label %149

149:                                              ; preds = %141
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.vertexT, ptr %150, i32 0, i32 0
  %152 = load ptr, ptr %151, align 8, !tbaa !32
  store ptr %152, ptr %4, align 8, !tbaa !5
  br label %131, !llvm.loop !35

153:                                              ; preds = %139
  %154 = load ptr, ptr %2, align 8, !tbaa !5
  %155 = icmp ne ptr %154, null
  br i1 %155, label %156, label %252

156:                                              ; preds = %153
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %157, ptr %3, align 8, !tbaa !5
  br label %158

158:                                              ; preds = %247, %156
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = icmp ne ptr %159, null
  br i1 %160, label %161, label %166

161:                                              ; preds = %158
  %162 = load ptr, ptr %3, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.facetT, ptr %162, i32 0, i32 7
  %164 = load ptr, ptr %163, align 8, !tbaa !20
  %165 = icmp ne ptr %164, null
  br label %166

166:                                              ; preds = %161, %158
  %167 = phi i1 [ false, %158 ], [ %165, %161 ]
  br i1 %167, label %168, label %251

168:                                              ; preds = %166
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 15
  %171 = load i32, ptr %170, align 8
  %172 = lshr i32 %171, 11
  %173 = and i32 %172, 1
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %176

175:                                              ; preds = %168
  br label %247

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

183:                                              ; preds = %176
  %184 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !36
  %185 = load i32, ptr %9, align 4, !tbaa !9
  %186 = add nsw i32 %185, %184
  store i32 %186, ptr %9, align 4, !tbaa !9
  br label %194

187:                                              ; preds = %176
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.facetT, ptr %188, i32 0, i32 9
  %190 = load ptr, ptr %189, align 8, !tbaa !37
  %191 = call i32 @qh_setsize(ptr noundef %190)
  %192 = load i32, ptr %9, align 4, !tbaa !9
  %193 = add nsw i32 %192, %191
  store i32 %193, ptr %9, align 4, !tbaa !9
  br label %194

194:                                              ; preds = %187, %183
  store ptr null, ptr %4, align 8, !tbaa !5
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.facetT, ptr %195, i32 0, i32 8
  %197 = load ptr, ptr %196, align 8, !tbaa !38
  %198 = icmp ne ptr %197, null
  br i1 %198, label %199, label %246

199:                                              ; preds = %194
  %200 = load ptr, ptr %3, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.facetT, ptr %200, i32 0, i32 8
  %202 = load ptr, ptr %201, align 8, !tbaa !38
  %203 = getelementptr inbounds %struct.setT, ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds [1 x %union.setelemT], ptr %203, i64 0, i64 0
  store ptr %204, ptr %5, align 8, !tbaa !5
  br label %205

205:                                              ; preds = %244, %199
  %206 = load ptr, ptr %5, align 8, !tbaa !5
  %207 = getelementptr inbounds ptr, ptr %206, i32 1
  store ptr %207, ptr %5, align 8, !tbaa !5
  %208 = load ptr, ptr %206, align 8, !tbaa !5
  store ptr %208, ptr %4, align 8, !tbaa !5
  %209 = icmp ne ptr %208, null
  br i1 %209, label %210, label %245

210:                                              ; preds = %205
  %211 = load ptr, ptr %4, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.vertexT, ptr %211, i32 0, i32 5
  %213 = load i32, ptr %212, align 4, !tbaa !34
  %214 = add i32 %213, 1
  store i32 %214, ptr %212, align 4, !tbaa !34
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.vertexT, ptr %215, i32 0, i32 6
  %217 = load i8, ptr %216, align 8
  %218 = and i8 %217, 1
  %219 = zext i8 %218 to i32
  %220 = icmp ne i32 %219, 0
  br i1 %220, label %244, label %221

221:                                              ; preds = %210
  %222 = load ptr, ptr %4, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.vertexT, ptr %222, i32 0, i32 6
  %224 = load i8, ptr %223, align 8
  %225 = and i8 %224, -2
  %226 = or i8 %225, 1
  store i8 %226, ptr %223, align 8
  %227 = load i32, ptr %8, align 4, !tbaa !9
  %228 = add nsw i32 %227, 1
  store i32 %228, ptr %8, align 4, !tbaa !9
  %229 = load ptr, ptr %4, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.vertexT, ptr %229, i32 0, i32 2
  %231 = load ptr, ptr %230, align 8, !tbaa !39
  %232 = call i32 @qh_pointid(ptr noundef %231)
  %233 = icmp eq i32 %232, -1
  br i1 %233, label %234, label %243

234:                                              ; preds = %221
  %235 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %236 = load ptr, ptr %4, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.vertexT, ptr %236, i32 0, i32 2
  %238 = load ptr, ptr %237, align 8, !tbaa !39
  %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 !40
  %242 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 107), align 8, !tbaa !41
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %235, i32 noundef 6139, ptr noundef @.str.70, ptr noundef %238, i32 noundef %241, ptr noundef %242)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %243

243:                                              ; preds = %234, %221
  br label %244

244:                                              ; preds = %243, %210
  br label %205, !llvm.loop !42

245:                                              ; preds = %205
  br label %246

246:                                              ; preds = %245, %194
  br label %247

247:                                              ; preds = %246, %175
  %248 = load ptr, ptr %3, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.facetT, ptr %248, i32 0, i32 7
  %250 = load ptr, ptr %249, align 8, !tbaa !20
  store ptr %250, ptr %3, align 8, !tbaa !5
  br label %158, !llvm.loop !43

251:                                              ; preds = %166
  br label %252

252:                                              ; preds = %251, %153
  %253 = load i32, ptr %7, align 4, !tbaa !9
  %254 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !44
  %255 = add i32 %254, %253
  store i32 %255, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !44
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 156), align 8, !tbaa !18
  %258 = icmp eq ptr %256, %257
  br i1 %258, label %259, label %392

259:                                              ; preds = %252
  %260 = load i32, ptr %7, align 4, !tbaa !9
  %261 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !45
  %262 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !46
  %263 = sub nsw i32 %261, %262
  %264 = icmp ne i32 %260, %263
  br i1 %264, label %265, label %270

265:                                              ; preds = %259
  %266 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %267 = load i32, ptr %7, align 4, !tbaa !9
  %268 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 169), align 8, !tbaa !45
  %269 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 161), align 8, !tbaa !46
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %266, i32 noundef 6140, ptr noundef @.str.71, i32 noundef %267, i32 noundef %268, i32 noundef %269)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %270

270:                                              ; preds = %265, %259
  %271 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !44
  %272 = add i32 %271, 1
  store i32 %272, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 202), align 4, !tbaa !44
  %273 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 119), align 8, !tbaa !47
  %274 = icmp ne i32 %273, 0
  br i1 %274, label %275, label %349

275:                                              ; preds = %270
  %276 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !29
  store ptr %276, ptr %4, align 8, !tbaa !5
  br label %277

277:                                              ; preds = %309, %275
  %278 = load ptr, ptr %4, align 8, !tbaa !5
  %279 = icmp ne ptr %278, null
  br i1 %279, label %280, label %285

280:                                              ; preds = %277
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.vertexT, ptr %281, i32 0, i32 0
  %283 = load ptr, ptr %282, align 8, !tbaa !32
  %284 = icmp ne ptr %283, null
  br label %285

285:                                              ; preds = %280, %277
  %286 = phi i1 [ false, %277 ], [ %284, %280 ]
  br i1 %286, label %287, label %313

287:                                              ; preds = %285
  %288 = load ptr, ptr %4, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.vertexT, ptr %288, i32 0, i32 3
  %290 = load ptr, ptr %289, align 8, !tbaa !48
  %291 = load ptr, ptr %4, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.vertexT, ptr %291, i32 0, i32 4
  %293 = load i32, ptr %292, align 8, !tbaa !40
  call void @qh_setcheck(ptr noundef %290, ptr noundef @.str.72, i32 noundef %293)
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.vertexT, ptr %294, i32 0, i32 6
  %296 = load i8, ptr %295, align 8
  %297 = lshr i8 %296, 3
  %298 = and i8 %297, 1
  %299 = zext i8 %298 to i32
  %300 = icmp ne i32 %299, 0
  br i1 %300, label %301, label %302

301:                                              ; preds = %287
  br label %309

302:                                              ; preds = %287
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.vertexT, ptr %303, i32 0, i32 3
  %305 = load ptr, ptr %304, align 8, !tbaa !48
  %306 = call i32 @qh_setsize(ptr noundef %305)
  %307 = load i32, ptr %10, align 4, !tbaa !9
  %308 = add nsw i32 %307, %306
  store i32 %308, ptr %10, align 4, !tbaa !9
  br label %309

309:                                              ; preds = %302, %301
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.vertexT, ptr %310, i32 0, i32 0
  %312 = load ptr, ptr %311, align 8, !tbaa !32
  store ptr %312, ptr %4, align 8, !tbaa !5
  br label %277, !llvm.loop !49

313:                                              ; preds = %285
  %314 = load ptr, ptr %2, align 8, !tbaa !5
  %315 = icmp ne ptr %314, null
  br i1 %315, label %316, label %340

316:                                              ; preds = %313
  %317 = load ptr, ptr %2, align 8, !tbaa !5
  store ptr %317, ptr %3, align 8, !tbaa !5
  br label %318

318:                                              ; preds = %335, %316
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = icmp ne ptr %319, null
  br i1 %320, label %321, label %326

321:                                              ; preds = %318
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.facetT, ptr %322, i32 0, i32 7
  %324 = load ptr, ptr %323, align 8, !tbaa !20
  %325 = icmp ne ptr %324, null
  br label %326

326:                                              ; preds = %321, %318
  %327 = phi i1 [ false, %318 ], [ %325, %321 ]
  br i1 %327, label %328, label %339

328:                                              ; preds = %326
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.facetT, ptr %329, i32 0, i32 8
  %331 = load ptr, ptr %330, align 8, !tbaa !38
  %332 = call i32 @qh_setsize(ptr noundef %331)
  %333 = load i32, ptr %11, align 4, !tbaa !9
  %334 = add nsw i32 %333, %332
  store i32 %334, ptr %11, align 4, !tbaa !9
  br label %335

335:                                              ; preds = %328
  %336 = load ptr, ptr %3, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.facetT, ptr %336, i32 0, i32 7
  %338 = load ptr, ptr %337, align 8, !tbaa !20
  store ptr %338, ptr %3, align 8, !tbaa !5
  br label %318, !llvm.loop !50

339:                                              ; preds = %326
  br label %340

340:                                              ; preds = %339, %313
  %341 = load i32, ptr %10, align 4, !tbaa !9
  %342 = load i32, ptr %11, align 4, !tbaa !9
  %343 = icmp ne i32 %341, %342
  br i1 %343, label %344, label %348

344:                                              ; preds = %340
  %345 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %346 = load i32, ptr %10, align 4, !tbaa !9
  %347 = load i32, ptr %11, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %345, i32 noundef 6141, ptr noundef @.str.73, i32 noundef %346, i32 noundef %347)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %348

348:                                              ; preds = %344, %340
  br label %349

349:                                              ; preds = %348, %270
  %350 = load i32, ptr %8, align 4, !tbaa !9
  %351 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 4, !tbaa !51
  %352 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !52
  %353 = call i32 @qh_setsize(ptr noundef %352)
  %354 = sub nsw i32 %351, %353
  %355 = icmp ne i32 %350, %354
  br i1 %355, label %356, label %363

356:                                              ; preds = %349
  %357 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %358 = load i32, ptr %8, align 4, !tbaa !9
  %359 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 170), align 4, !tbaa !51
  %360 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 209), align 8, !tbaa !52
  %361 = call i32 @qh_setsize(ptr noundef %360)
  %362 = sub nsw i32 %359, %361
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %357, i32 noundef 6142, ptr noundef @.str.74, i32 noundef %358, i32 noundef %362)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %363

363:                                              ; preds = %356, %349
  %364 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !36
  %365 = icmp eq i32 %364, 2
  br i1 %365, label %366, label %374

366:                                              ; preds = %363
  %367 = load i32, ptr %8, align 4, !tbaa !9
  %368 = load i32, ptr %7, align 4, !tbaa !9
  %369 = icmp ne i32 %367, %368
  br i1 %369, label %370, label %374

370:                                              ; preds = %366
  %371 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %372 = load i32, ptr %8, align 4, !tbaa !9
  %373 = load i32, ptr %7, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %371, i32 noundef 6143, ptr noundef @.str.75, i32 noundef %372, i32 noundef %373)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %374

374:                                              ; preds = %370, %366, %363
  %375 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 104), align 8, !tbaa !36
  %376 = icmp eq i32 %375, 3
  br i1 %376, label %377, label %391

377:                                              ; preds = %374
  %378 = load i32, ptr %8, align 4, !tbaa !9
  %379 = load i32, ptr %7, align 4, !tbaa !9
  %380 = add nsw i32 %378, %379
  %381 = load i32, ptr %9, align 4, !tbaa !9
  %382 = sdiv i32 %381, 2
  %383 = sub nsw i32 %380, %382
  %384 = icmp ne i32 %383, 2
  br i1 %384, label %385, label %391

385:                                              ; preds = %377
  %386 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 151), align 8, !tbaa !15
  %387 = load i32, ptr %8, align 4, !tbaa !9
  %388 = load i32, ptr %7, align 4, !tbaa !9
  %389 = load i32, ptr %9, align 4, !tbaa !9
  %390 = sdiv i32 %389, 2
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %386, i32 noundef 7063, ptr noundef @.str.76, i32 noundef %387, i32 noundef %388, i32 noundef %390)
  br label %391

391:                                              ; preds = %385, %377, %374
  br label %392

392:                                              ; preds = %391, %252
  %393 = load i32, ptr %12, align 4, !tbaa !9
  %394 = icmp ne i32 %393, 0
  br i1 %394, label %395, label %396

395:                                              ; preds = %392
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %396

396:                                              ; preds = %395, %392
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printlists() #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 128}
!12 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !13, i64 56, !13, i64 64, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !6, i64 112, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !13, i64 152, !13, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !13, i64 184, !13, i64 192, !10, i64 200, !13, i64 208, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !7, i64 296, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !13, i64 448, !13, i64 456, !13, i64 464, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !10, i64 512, !10, i64 516, !10, i64 520, !10, i64 524, !10, i64 528, !10, i64 532, !10, i64 536, !10, i64 540, !13, i64 544, !10, i64 552, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !13, i64 584, !10, i64 592, !6, i64 600, !6, i64 608, !10, i64 616, !10, i64 620, !10, i64 624, !10, i64 628, !10, i64 632, !6, i64 640, !10, i64 648, !6, i64 656, !10, i64 664, !7, i64 668, !10, i64 924, !7, i64 928, !7, i64 1184, !10, i64 1696, !10, i64 1700, !10, i64 1704, !10, i64 1708, !10, i64 1712, !10, i64 1716, !6, i64 1720, !6, i64 1728, !6, i64 1736, !6, i64 1744, !13, i64 1752, !13, i64 1760, !13, i64 1768, !13, i64 1776, !13, i64 1784, !13, i64 1792, !13, i64 1800, !13, i64 1808, !13, i64 1816, !13, i64 1824, !13, i64 1832, !13, i64 1840, !13, i64 1848, !10, i64 1856, !6, i64 1864, !13, i64 1872, !13, i64 1880, !13, i64 1888, !13, 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, !10, i64 2424, !10, i64 2428, !10, i64 2432, !6, i64 2440, !6, i64 2448, !6, i64 2456, !6, i64 2464, !6, i64 2472, !10, i64 2480, !10, i64 2484, !6, i64 2488, !10, i64 2496, !6, i64 2504, !6, i64 2512, !6, i64 2520, !6, i64 2528, !10, i64 2536, !10, i64 2540, !10, i64 2544, !10, i64 2548, !10, i64 2552, !10, i64 2556, !10, i64 2560, !14, i64 2568, !10, i64 2576, !10, i64 2580, !10, i64 2584, !10, i64 2588, !6, i64 2592, !10, i64 2600, !10, i64 2604, !13, i64 2608, !10, i64 2616, !13, i64 2624, !13, i64 2632, !13, i64 2640, !10, i64 2648, !10, i64 2652, !10, i64 2656, !10, i64 2660, !13, i64 2664, !13, i64 2672, !10, i64 2680, !10, i64 2684, !10, i64 2688, !10, i64 2692, !13, i64 2696, !13, i64 2704, !10, i64 2712, !10, i64 2716, !10, i64 2720, !10, 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, !10, i64 2792, !6, i64 2800, !6, i64 2808, !10, i64 2816, !10, i64 2820, !10, i64 2824, !6, i64 2832, !13, i64 2840, !13, i64 2848, !13, i64 2856, !10, i64 2864, !10, i64 2868, !6, i64 2872, !6, i64 2880, !10, i64 2888}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2408}
!16 = !{!17, !10, i64 108}
!17 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!18 = !{!12, !6, i64 2440}
!19 = !{!12, !10, i64 232}
!20 = !{!17, !6, i64 56}
!21 = !{!12, !6, i64 2472}
!22 = !{!12, !6, i64 2456}
!23 = !{!17, !6, i64 88}
!24 = !{!12, !10, i64 1856}
!25 = !{!17, !13, i64 0}
!26 = !{!12, !13, i64 16}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !6, i64 2512}
!30 = !{!12, !6, i64 2464}
!31 = !{!12, !6, i64 2528}
!32 = !{!33, !6, i64 0}
!33 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!34 = !{!33, !10, i64 36}
!35 = distinct !{!35, !28}
!36 = !{!12, !10, i64 624}
!37 = !{!17, !6, i64 72}
!38 = !{!17, !6, i64 64}
!39 = !{!33, !6, i64 16}
!40 = !{!33, !10, i64 32}
!41 = !{!12, !6, i64 640}
!42 = distinct !{!42, !28}
!43 = distinct !{!43, !28}
!44 = !{!12, !10, i64 2716}
!45 = !{!12, !10, i64 2536}
!46 = !{!12, !10, i64 2480}
!47 = !{!12, !10, i64 1712}
!48 = !{!33, !6, i64 24}
!49 = distinct !{!49, !28}
!50 = distinct !{!50, !28}
!51 = !{!12, !10, i64 2540}
!52 = !{!12, !6, i64 2760}


; 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 local_unnamed_addr global %struct.qhT, align 8
@.str.67 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.68 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.69 = external hidden unnamed_addr constant [82 x i8], align 1
@.str.70 = external hidden unnamed_addr constant [88 x i8], align 1
@.str.71 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.72 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.73 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.74 = external hidden unnamed_addr constant [104 x i8], align 1
@.str.75 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.76 = external hidden unnamed_addr constant [132 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @qh_checkpolygon(ptr noundef %0) local_unnamed_addr #2 {
  %2 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #3
  store i32 0, ptr %2, align 4, !tbaa !5
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 128), align 8, !tbaa !9
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %.thread, label %9

.thread:                                          ; preds = %1
  %5 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %6 = getelementptr inbounds i8, ptr %0, i64 108
  %7 = load i32, ptr %6, align 4, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %5, i32 noundef 1027, ptr noundef nonnull @.str.67, i32 noundef %7) #3
  %8 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8
  %.not194 = icmp eq ptr %0, null
  br label %.preheader165.preheader

9:                                                ; preds = %1
  %10 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8
  %.not = icmp eq ptr %0, null
  br i1 %.not, label %.critedge, label %.preheader165.preheader

.preheader165.preheader:                          ; preds = %.thread, %9
  %.not195 = phi i1 [ %.not194, %.thread ], [ false, %9 ]
  %11 = phi ptr [ %8, %.thread ], [ %10, %9 ]
  %12 = icmp ne ptr %11, %0
  %13 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 232), align 8
  %14 = icmp ne i32 %13, 0
  %or.cond = select i1 %12, i1 true, i1 %14
  %spec.select = zext i1 %or.cond to i32
  br label %.preheader165

.preheader165:                                    ; preds = %.preheader165.preheader, %42
  %.0169 = phi i32 [ %spec.select152, %42 ], [ 0, %.preheader165.preheader ]
  %.193168 = phi i32 [ %.3, %42 ], [ %spec.select, %.preheader165.preheader ]
  %.0107167 = phi i32 [ %.1108, %42 ], [ 0, %.preheader165.preheader ]
  %.0114166 = phi ptr [ %43, %42 ], [ %0, %.preheader165.preheader ]
  %15 = getelementptr inbounds i8, ptr %.0114166, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !17
  %.not125 = icmp eq ptr %16, null
  br i1 %.not125, label %.critedge.loopexit, label %17

17:                                               ; preds = %.preheader165
  %18 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !18
  %19 = icmp eq ptr %.0114166, %18
  %spec.select152 = select i1 %19, i32 1, i32 %.0169
  %20 = getelementptr inbounds i8, ptr %.0114166, i64 112
  %21 = load i32, ptr %20, align 8
  %22 = and i32 %21, 2048
  %.not148 = icmp eq i32 %22, 0
  br i1 %.not148, label %23, label %42

23:                                               ; preds = %17
  %.not149 = icmp ne i32 %.193168, 0
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8
  %25 = icmp eq ptr %.0114166, %24
  %or.cond157 = select i1 %.not149, i1 true, i1 %25
  br i1 %or.cond157, label %40, label %26

26:                                               ; preds = %23
  %27 = getelementptr inbounds i8, ptr %.0114166, i64 88
  %28 = load ptr, ptr %27, align 8, !tbaa !19
  %29 = call i32 @qh_setsize(ptr noundef %28) #3
  %.not150 = icmp eq i32 %29, 0
  br i1 %.not150, label %40, label %30

30:                                               ; preds = %26
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1856), align 8, !tbaa !20
  %.not151 = icmp eq i32 %31, 0
  br i1 %.not151, label %36, label %32

32:                                               ; preds = %30
  %33 = load double, ptr %.0114166, align 8, !tbaa !21
  %34 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 16), align 8, !tbaa !22
  %35 = fcmp ult double %33, %34
  br i1 %35, label %40, label %36

36:                                               ; preds = %32, %30
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %38 = getelementptr inbounds i8, ptr %.0114166, i64 108
  %39 = load i32, ptr %38, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %37, i32 noundef 6137, ptr noundef nonnull @.str.68, i32 noundef %39) #3
  call void @qh_errexit(i32 noundef 5, ptr noundef nonnull %.0114166, ptr noundef null) #3
  br label %40

40:                                               ; preds = %32, %36, %26, %23
  %.294 = phi i32 [ 1, %23 ], [ 0, %36 ], [ 0, %32 ], [ 0, %26 ]
  %41 = add nsw i32 %.0107167, 1
  call void @qh_checkfacet(ptr noundef nonnull %.0114166, i32 noundef 0, ptr noundef nonnull %2)
  %.pre = load ptr, ptr %15, align 8, !tbaa !17
  br label %42

42:                                               ; preds = %17, %40
  %43 = phi ptr [ %16, %17 ], [ %.pre, %40 ]
  %.1108 = phi i32 [ %.0107167, %17 ], [ %41, %40 ]
  %.3 = phi i32 [ %.193168, %17 ], [ %.294, %40 ]
  %.not124 = icmp eq ptr %43, null
  br i1 %.not124, label %.critedge.loopexit, label %.preheader165, !llvm.loop !23

.critedge.loopexit:                               ; preds = %42, %.preheader165
  %.2109.ph = phi i32 [ %.0107167, %.preheader165 ], [ %.1108, %42 ]
  %.2.ph = phi i32 [ %.0169, %.preheader165 ], [ %spec.select152, %42 ]
  %.pre191 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8
  %44 = icmp eq i32 %.2.ph, 0
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %9
  %.not196 = phi i1 [ true, %9 ], [ %.not195, %.critedge.loopexit ]
  %45 = phi ptr [ %10, %9 ], [ %.pre191, %.critedge.loopexit ]
  %.2109 = phi i32 [ 0, %9 ], [ %.2109.ph, %.critedge.loopexit ]
  %.2 = phi i1 [ true, %9 ], [ %44, %.critedge.loopexit ]
  %46 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !18
  %47 = icmp ne ptr %46, null
  %or.cond3.not161 = select i1 %47, i1 %.2, i1 false
  %48 = icmp eq ptr %45, %0
  %or.cond154 = select i1 %or.cond3.not161, i1 %48, i1 false
  br i1 %or.cond154, label %49, label %54

49:                                               ; preds = %.critedge
  %50 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %51 = getelementptr inbounds i8, ptr %46, i64 108
  %52 = load i32, ptr %51, align 4, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %50, i32 noundef 6138, ptr noundef nonnull @.str.69, i32 noundef %52) #3
  call void @qh_printlists()
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2472), align 8, !tbaa !18
  call void @qh_errexit(i32 noundef 5, ptr noundef %53, ptr noundef null) #3
  %.pre192 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !25
  br label %54

54:                                               ; preds = %49, %.critedge
  %55 = phi ptr [ %.pre192, %49 ], [ %45, %.critedge ]
  %56 = icmp eq ptr %55, %0
  br i1 %56, label %select.unfold, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2464), align 8, !tbaa !26
  %59 = icmp eq ptr %58, %0
  br i1 %59, label %select.unfold, label %.critedge5

select.unfold:                                    ; preds = %54, %57
  %.0110.in = phi ptr [ getelementptr inbounds (i8, ptr @qh_qh, i64 2528), %57 ], [ getelementptr inbounds (i8, ptr @qh_qh, i64 2512), %54 ]
  %.0110 = load ptr, ptr %.0110.in, align 8
  %.not126170 = icmp eq ptr %.0110, null
  br i1 %.not126170, label %.critedge5, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %select.unfold
  %60 = load ptr, ptr %.0110, align 8, !tbaa !27
  %.not127200 = icmp eq ptr %60, null
  br i1 %.not127200, label %.critedge5, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %61 = phi ptr [ %66, %.lr.ph ], [ %60, %.lr.ph.preheader ]
  %.0112171201 = phi ptr [ %61, %.lr.ph ], [ %.0110, %.lr.ph.preheader ]
  %62 = getelementptr inbounds i8, ptr %.0112171201, i64 40
  %63 = load i8, ptr %62, align 8
  %64 = and i8 %63, -2
  store i8 %64, ptr %62, align 8
  %65 = getelementptr inbounds i8, ptr %.0112171201, i64 36
  store i32 0, ptr %65, align 4, !tbaa !29
  %66 = load ptr, ptr %61, align 8, !tbaa !27
  %.not127 = icmp eq ptr %66, null
  br i1 %.not127, label %.critedge5, label %.lr.ph

.critedge5:                                       ; preds = %.lr.ph, %.lr.ph.preheader, %57, %select.unfold
  br i1 %.not196, label %.critedge7, label %.preheader164

.preheader164:                                    ; preds = %.critedge5, %.loopexit
  %.099180 = phi i32 [ %.2101, %.loopexit ], [ 0, %.critedge5 ]
  %.0103179 = phi i32 [ %.3106, %.loopexit ], [ 0, %.critedge5 ]
  %.1115178 = phi ptr [ %107, %.loopexit ], [ %0, %.critedge5 ]
  %67 = getelementptr inbounds i8, ptr %.1115178, i64 56
  %68 = load ptr, ptr %67, align 8, !tbaa !17
  %.not129 = icmp eq ptr %68, null
  br i1 %.not129, label %.critedge7.loopexit, label %69

69:                                               ; preds = %.preheader164
  %70 = getelementptr inbounds i8, ptr %.1115178, i64 112
  %71 = load i32, ptr %70, align 8
  %72 = and i32 %71, 2048
  %.not142 = icmp eq i32 %72, 0
  br i1 %.not142, label %73, label %.loopexit

73:                                               ; preds = %69
  %74 = and i32 %71, 8192
  %.not143 = icmp eq i32 %74, 0
  br i1 %.not143, label %77, label %75

75:                                               ; preds = %73
  %76 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  br label %81

77:                                               ; preds = %73
  %78 = getelementptr inbounds i8, ptr %.1115178, i64 72
  %79 = load ptr, ptr %78, align 8, !tbaa !31
  %80 = call i32 @qh_setsize(ptr noundef %79) #3
  br label %81

81:                                               ; preds = %77, %75
  %.pn = phi i32 [ %76, %75 ], [ %80, %77 ]
  %.1100 = add nsw i32 %.pn, %.099180
  %82 = getelementptr inbounds i8, ptr %.1115178, i64 64
  %83 = load ptr, ptr %82, align 8, !tbaa !32
  %.not144 = icmp eq ptr %83, null
  br i1 %.not144, label %.loopexit, label %.preheader163

.preheader163:                                    ; preds = %81
  %.0111173 = getelementptr inbounds i8, ptr %83, i64 8
  %84 = load ptr, ptr %.0111173, align 8, !tbaa !33
  %.not146174 = icmp eq ptr %84, null
  br i1 %.not146174, label %.loopexit, label %.lr.ph177

.lr.ph177:                                        ; preds = %.preheader163, %105
  %85 = phi ptr [ %106, %105 ], [ %84, %.preheader163 ]
  %.0111176 = phi ptr [ %.0111, %105 ], [ %.0111173, %.preheader163 ]
  %.1104175 = phi i32 [ %.2105, %105 ], [ %.0103179, %.preheader163 ]
  %86 = getelementptr inbounds i8, ptr %85, i64 36
  %87 = load i32, ptr %86, align 4, !tbaa !29
  %88 = add i32 %87, 1
  store i32 %88, ptr %86, align 4, !tbaa !29
  %89 = getelementptr inbounds i8, ptr %85, i64 40
  %90 = load i8, ptr %89, align 8
  %91 = and i8 %90, 1
  %.not147 = icmp eq i8 %91, 0
  br i1 %.not147, label %92, label %105

92:                                               ; preds = %.lr.ph177
  %93 = or disjoint i8 %90, 1
  store i8 %93, ptr %89, align 8
  %94 = add nsw i32 %.1104175, 1
  %95 = getelementptr inbounds i8, ptr %85, i64 16
  %96 = load ptr, ptr %95, align 8, !tbaa !34
  %97 = call i32 @qh_pointid(ptr noundef %96) #3
  %98 = icmp eq i32 %97, -1
  br i1 %98, label %99, label %105

99:                                               ; preds = %92
  %100 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %101 = load ptr, ptr %95, align 8, !tbaa !34
  %102 = getelementptr inbounds i8, ptr %85, i64 32
  %103 = load i32, ptr %102, align 8, !tbaa !35
  %104 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !36
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %100, i32 noundef 6139, ptr noundef nonnull @.str.70, ptr noundef %101, i32 noundef %103, ptr noundef %104) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %105

105:                                              ; preds = %92, %99, %.lr.ph177
  %.2105 = phi i32 [ %.1104175, %.lr.ph177 ], [ %94, %99 ], [ %94, %92 ]
  %.0111 = getelementptr inbounds i8, ptr %.0111176, i64 8
  %106 = load ptr, ptr %.0111, align 8, !tbaa !33
  %.not146 = icmp eq ptr %106, null
  br i1 %.not146, label %.loopexit, label %.lr.ph177, !llvm.loop !37

.loopexit:                                        ; preds = %105, %.preheader163, %81, %69
  %.3106 = phi i32 [ %.0103179, %69 ], [ %.0103179, %81 ], [ %.0103179, %.preheader163 ], [ %.2105, %105 ]
  %.2101 = phi i32 [ %.099180, %69 ], [ %.1100, %81 ], [ %.1100, %.preheader163 ], [ %.1100, %105 ]
  %107 = load ptr, ptr %67, align 8, !tbaa !17
  %.not128 = icmp eq ptr %107, null
  br i1 %.not128, label %.critedge7.loopexit, label %.preheader164, !llvm.loop !38

.critedge7.loopexit:                              ; preds = %.loopexit, %.preheader164
  %.4.ph = phi i32 [ %.0103179, %.preheader164 ], [ %.3106, %.loopexit ]
  %.3102.ph = phi i32 [ %.099180, %.preheader164 ], [ %.2101, %.loopexit ]
  %108 = sdiv i32 %.3102.ph, 2
  br label %.critedge7

.critedge7:                                       ; preds = %.critedge7.loopexit, %.critedge5
  %.4 = phi i32 [ 0, %.critedge5 ], [ %.4.ph, %.critedge7.loopexit ]
  %.3102 = phi i32 [ 0, %.critedge5 ], [ %108, %.critedge7.loopexit ]
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !39
  %110 = add i32 %109, %.2109
  store i32 %110, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !39
  %111 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2440), align 8, !tbaa !25
  %112 = icmp eq ptr %111, %0
  br i1 %112, label %113, label %171

113:                                              ; preds = %.critedge7
  %114 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2536), align 8, !tbaa !40
  %115 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !41
  %116 = sub nsw i32 %114, %115
  %.not130 = icmp eq i32 %.2109, %116
  br i1 %.not130, label %119, label %117

117:                                              ; preds = %113
  %118 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %118, i32 noundef 6140, ptr noundef nonnull @.str.71, i32 noundef %.2109, i32 noundef %114, i32 noundef %115) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  %.pre193 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !39
  br label %119

119:                                              ; preds = %117, %113
  %120 = phi i32 [ %.pre193, %117 ], [ %110, %113 ]
  %121 = add i32 %120, 1
  store i32 %121, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2716), align 4, !tbaa !39
  %122 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1712), align 8, !tbaa !42
  %.not131 = icmp eq i32 %122, 0
  br i1 %.not131, label %147, label %.preheader162

.preheader162:                                    ; preds = %119
  %.1113181 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8, !tbaa !33
  %.not132182 = icmp eq ptr %.1113181, null
  br i1 %.not132182, label %.critedge9, label %.lr.ph185

.lr.ph185:                                        ; preds = %.preheader162, %136
  %.1113184 = phi ptr [ %.1113, %136 ], [ %.1113181, %.preheader162 ]
  %.097183 = phi i32 [ %.198, %136 ], [ 0, %.preheader162 ]
  %123 = load ptr, ptr %.1113184, align 8, !tbaa !27
  %.not133 = icmp eq ptr %123, null
  br i1 %.not133, label %.critedge9, label %124

124:                                              ; preds = %.lr.ph185
  %125 = getelementptr inbounds i8, ptr %.1113184, i64 24
  %126 = load ptr, ptr %125, align 8, !tbaa !43
  %127 = getelementptr inbounds i8, ptr %.1113184, i64 32
  %128 = load i32, ptr %127, align 8, !tbaa !35
  call void @qh_setcheck(ptr noundef %126, ptr noundef nonnull @.str.72, i32 noundef %128) #3
  %129 = getelementptr inbounds i8, ptr %.1113184, i64 40
  %130 = load i8, ptr %129, align 8
  %131 = and i8 %130, 8
  %.not141 = icmp eq i8 %131, 0
  br i1 %.not141, label %132, label %136

132:                                              ; preds = %124
  %133 = load ptr, ptr %125, align 8, !tbaa !43
  %134 = call i32 @qh_setsize(ptr noundef %133) #3
  %135 = add nsw i32 %134, %.097183
  br label %136

136:                                              ; preds = %124, %132
  %.198 = phi i32 [ %.097183, %124 ], [ %135, %132 ]
  %.1113 = load ptr, ptr %.1113184, align 8, !tbaa !33
  %.not132 = icmp eq ptr %.1113, null
  br i1 %.not132, label %.critedge9, label %.lr.ph185, !llvm.loop !44

.critedge9:                                       ; preds = %.lr.ph185, %136, %.preheader162
  %.097.lcssa = phi i32 [ 0, %.preheader162 ], [ %.198, %136 ], [ %.097183, %.lr.ph185 ]
  br i1 %.not196, label %.critedge11, label %.preheader

.preheader:                                       ; preds = %.critedge9, %139
  %.095190 = phi i32 [ %143, %139 ], [ 0, %.critedge9 ]
  %.2116189 = phi ptr [ %144, %139 ], [ %0, %.critedge9 ]
  %137 = getelementptr inbounds i8, ptr %.2116189, i64 56
  %138 = load ptr, ptr %137, align 8, !tbaa !17
  %.not135 = icmp eq ptr %138, null
  br i1 %.not135, label %.critedge11, label %139

139:                                              ; preds = %.preheader
  %140 = getelementptr inbounds i8, ptr %.2116189, i64 64
  %141 = load ptr, ptr %140, align 8, !tbaa !32
  %142 = call i32 @qh_setsize(ptr noundef %141) #3
  %143 = add nsw i32 %142, %.095190
  %144 = load ptr, ptr %137, align 8, !tbaa !17
  %.not134 = icmp eq ptr %144, null
  br i1 %.not134, label %.critedge11, label %.preheader, !llvm.loop !45

.critedge11:                                      ; preds = %.preheader, %139, %.critedge9
  %.196 = phi i32 [ 0, %.critedge9 ], [ %143, %139 ], [ %.095190, %.preheader ]
  %.not136 = icmp eq i32 %.097.lcssa, %.196
  br i1 %.not136, label %147, label %145

145:                                              ; preds = %.critedge11
  %146 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %146, i32 noundef 6141, ptr noundef nonnull @.str.73, i32 noundef %.097.lcssa, i32 noundef %.196) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %147

147:                                              ; preds = %.critedge11, %145, %119
  %148 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2540), align 4, !tbaa !46
  %149 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !47
  %150 = call i32 @qh_setsize(ptr noundef %149) #3
  %151 = sub nsw i32 %148, %150
  %.not137 = icmp eq i32 %.4, %151
  br i1 %.not137, label %158, label %152

152:                                              ; preds = %147
  %153 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2540), align 4, !tbaa !46
  %155 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2760), align 8, !tbaa !47
  %156 = call i32 @qh_setsize(ptr noundef %155) #3
  %157 = sub nsw i32 %154, %156
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %153, i32 noundef 6142, ptr noundef nonnull @.str.74, i32 noundef %.4, i32 noundef %157) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  br label %158

158:                                              ; preds = %152, %147
  %159 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  %160 = icmp ne i32 %159, 2
  %.not138 = icmp eq i32 %.4, %.2109
  %or.cond155 = select i1 %160, i1 true, i1 %.not138
  br i1 %or.cond155, label %163, label %161

161:                                              ; preds = %158
  %162 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %162, i32 noundef 6143, ptr noundef nonnull @.str.75, i32 noundef %.4, i32 noundef %.2109) #3
  store i32 1, ptr %2, align 4, !tbaa !5
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 624), align 8, !tbaa !30
  br label %163

163:                                              ; preds = %161, %158
  %164 = phi i32 [ %.pr, %161 ], [ %159, %158 ]
  %165 = icmp eq i32 %164, 3
  br i1 %165, label %166, label %171

166:                                              ; preds = %163
  %167 = add nsw i32 %.4, %.2109
  %168 = sub i32 %167, %.3102
  %.not139 = icmp eq i32 %168, 2
  br i1 %.not139, label %171, label %169

169:                                              ; preds = %166
  %170 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2408), align 8, !tbaa !14
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %170, i32 noundef 7063, ptr noundef nonnull @.str.76, i32 noundef %.4, i32 noundef %.2109, i32 noundef %.3102) #3
  br label %171

171:                                              ; preds = %163, %166, %169, %.critedge7
  %172 = load i32, ptr %2, align 4, !tbaa !5
  %.not140 = icmp eq i32 %172, 0
  br i1 %.not140, label %174, label %173

173:                                              ; preds = %171
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %174

174:                                              ; preds = %173, %171
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #3
  ret void
}

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printlists() local_unnamed_addr #2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 128}
!10 = !{!"qhT", !6, i64 0, !6, i64 4, !6, i64 8, !11, i64 16, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !11, i64 56, !11, i64 64, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !12, i64 112, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !11, i64 152, !11, i64 160, !6, i64 168, !6, i64 172, !6, i64 176, !11, i64 184, !11, i64 192, !6, i64 200, !11, i64 208, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !6, i64 288, !6, i64 292, !7, i64 296, !6, i64 412, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !11, i64 448, !11, i64 456, !11, i64 464, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !6, i64 512, !6, i64 516, !6, i64 520, !6, i64 524, !6, i64 528, !6, i64 532, !6, i64 536, !6, i64 540, !11, i64 544, !6, i64 552, !6, i64 556, !6, i64 560, !6, i64 564, !6, i64 568, !6, i64 572, !6, i64 576, !6, i64 580, !11, i64 584, !6, i64 592, !12, i64 600, !12, i64 608, !6, i64 616, !6, i64 620, !6, i64 624, !6, i64 628, !6, i64 632, !12, i64 640, !6, i64 648, !12, i64 656, !6, i64 664, !7, i64 668, !6, i64 924, !7, i64 928, !7, i64 1184, !6, i64 1696, !6, i64 1700, !6, i64 1704, !6, i64 1708, !6, i64 1712, !6, i64 1716, !12, i64 1720, !12, i64 1728, !12, i64 1736, !12, i64 1744, !11, i64 1752, !11, i64 1760, !11, i64 1768, !11, i64 1776, !11, i64 1784, !11, i64 1792, !11, i64 1800, !11, i64 1808, !11, i64 1816, !11, i64 1824, !11, i64 1832, !11, i64 1840, !11, i64 1848, !6, i64 1856, !12, i64 1864, !11, i64 1872, !11, i64 1880, !11, i64 1888, !11, i64 1896, !7, i64 1904, !7, i64 1912, !7, i64 2112, !7, i64 2152, !7, i64 2352, !12, i64 2392, !12, i64 2400, !12, i64 2408, !12, i64 2416, !6, i64 2424, !6, i64 2428, !6, i64 2432, !12, i64 2440, !12, i64 2448, !12, i64 2456, !12, i64 2464, !12, i64 2472, !6, i64 2480, !6, i64 2484, !12, i64 2488, !6, i64 2496, !12, i64 2504, !12, i64 2512, !12, i64 2520, !12, i64 2528, !6, i64 2536, !6, i64 2540, !6, i64 2544, !6, i64 2548, !6, i64 2552, !6, i64 2556, !6, i64 2560, !13, i64 2568, !6, i64 2576, !6, i64 2580, !6, i64 2584, !6, i64 2588, !12, i64 2592, !6, i64 2600, !6, i64 2604, !11, i64 2608, !6, i64 2616, !11, i64 2624, !11, i64 2632, !11, i64 2640, !6, i64 2648, !6, i64 2652, !6, i64 2656, !6, i64 2660, !11, i64 2664, !11, i64 2672, !6, i64 2680, !6, i64 2684, !6, i64 2688, !6, i64 2692, !11, i64 2696, !11, i64 2704, !6, i64 2712, !6, i64 2716, !6, i64 2720, !6, i64 2724, !12, i64 2728, !12, i64 2736, !12, i64 2744, !12, i64 2752, !12, i64 2760, !12, i64 2768, !12, i64 2776, !12, i64 2784, !6, i64 2792, !12, i64 2800, !12, i64 2808, !6, i64 2816, !6, i64 2820, !6, i64 2824, !12, i64 2832, !11, i64 2840, !11, i64 2848, !11, i64 2856, !6, i64 2864, !6, i64 2868, !12, i64 2872, !12, i64 2880, !6, i64 2888}
!11 = !{!"double", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!10, !12, i64 2408}
!15 = !{!16, !6, i64 108}
!16 = !{!"facetT", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 113, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 114, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115, !6, i64 115}
!17 = !{!16, !12, i64 56}
!18 = !{!10, !12, i64 2472}
!19 = !{!16, !12, i64 88}
!20 = !{!10, !6, i64 1856}
!21 = !{!16, !11, i64 0}
!22 = !{!10, !11, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !12, i64 2440}
!26 = !{!10, !12, i64 2464}
!27 = !{!28, !12, i64 0}
!28 = !{!"vertexT", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40, !6, i64 40}
!29 = !{!28, !6, i64 36}
!30 = !{!10, !6, i64 624}
!31 = !{!16, !12, i64 72}
!32 = !{!16, !12, i64 64}
!33 = !{!12, !12, i64 0}
!34 = !{!28, !12, i64 16}
!35 = !{!28, !6, i64 32}
!36 = !{!10, !12, i64 640}
!37 = distinct !{!37, !24}
!38 = distinct !{!38, !24}
!39 = !{!10, !6, i64 2716}
!40 = !{!10, !6, i64 2536}
!41 = !{!10, !6, i64 2480}
!42 = !{!10, !6, i64 1712}
!43 = !{!28, !12, i64 24}
!44 = distinct !{!44, !24}
!45 = distinct !{!45, !24}
!46 = !{!10, !6, i64 2540}
!47 = !{!10, !12, i64 2760}


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