; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/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, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.facetT = type { double, double, double, ptr, %union.anon, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32 }
%union.anon = type { double }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@qh_qh = external global %struct.qhT, align 8
@.str.15 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [77 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_delridge(ptr noundef) #1

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

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

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

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

declare void @qh_setfree(ptr noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_makenew_nonsimplicial(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  store ptr null, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.facetT, ptr %16, i32 0, i32 9
  %18 = load ptr, ptr %17, align 8, !tbaa !9
  %19 = icmp ne ptr %18, null
  br i1 %19, label %20, label %247

20:                                               ; preds = %3
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.facetT, ptr %21, i32 0, i32 9
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  %24 = getelementptr inbounds %struct.setT, ptr %23, i32 0, i32 1
  %25 = getelementptr inbounds [1 x %union.setelemT], ptr %24, i64 0, i64 0
  store ptr %25, ptr %9, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %240, %20
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds ptr, ptr %27, i32 1
  store ptr %28, ptr %9, align 8, !tbaa !5
  %29 = load ptr, ptr %27, align 8, !tbaa !5
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %246

31:                                               ; preds = %26
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.ridgeT, ptr %32, i32 0, i32 3
  %34 = load i32, ptr %33, align 8, !tbaa !13
  store i32 %34, ptr %15, align 4, !tbaa !15
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ridgeT, ptr %35, i32 0, i32 1
  %37 = load ptr, ptr %36, align 8, !tbaa !16
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = icmp eq ptr %37, %38
  br i1 %39, label %40, label %44

40:                                               ; preds = %31
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.ridgeT, ptr %41, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !17
  br label %48

44:                                               ; preds = %31
  %45 = load ptr, ptr %8, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ridgeT, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !16
  br label %48

48:                                               ; preds = %44, %40
  %49 = phi ptr [ %43, %40 ], [ %47, %44 ]
  store ptr %49, ptr %10, align 8, !tbaa !5
  %50 = load ptr, ptr %10, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.facetT, ptr %50, i32 0, i32 15
  %52 = load i32, ptr %51, align 8
  %53 = lshr i32 %52, 11
  %54 = and i32 %53, 1
  %55 = icmp ne i32 %54, 0
  br i1 %55, label %56, label %77

56:                                               ; preds = %48
  %57 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 4, !tbaa !18
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %76, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 13
  %62 = load i32, ptr %61, align 8, !tbaa !21
  %63 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 217), align 8, !tbaa !22
  %64 = icmp eq i32 %62, %63
  br i1 %64, label %65, label %75

65:                                               ; preds = %59
  %66 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 172), align 8, !tbaa !23
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = icmp eq ptr %66, %67
  br i1 %68, label %69, label %70

69:                                               ; preds = %65
  store ptr null, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 172), align 8, !tbaa !23
  br label %70

70:                                               ; preds = %69, %65
  %71 = load ptr, ptr %8, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.ridgeT, ptr %71, i32 0, i32 0
  call void @qh_setfree(ptr noundef %72)
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %74, i32 noundef 32)
  br label %75

75:                                               ; preds = %70, %59
  br label %76

76:                                               ; preds = %75, %56
  br label %240

77:                                               ; preds = %48
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.ridgeT, ptr %78, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = icmp eq ptr %80, %81
  %83 = zext i1 %82 to i32
  store i32 %83, ptr %14, align 4, !tbaa !15
  %84 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !24
  %85 = call ptr @qh_setnew(i32 noundef %84)
  store ptr %85, ptr %13, align 8, !tbaa !5
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %13, ptr noundef %86)
  %87 = load ptr, ptr %8, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ridgeT, ptr %87, i32 0, i32 0
  %89 = load ptr, ptr %88, align 8, !tbaa !25
  call void @qh_setappend_set(ptr noundef %13, ptr noundef %89)
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %14, align 4, !tbaa !15
  %92 = load ptr, ptr %10, align 8, !tbaa !5
  %93 = call ptr @qh_makenewfacet(ptr noundef %90, i32 noundef %91, ptr noundef %92)
  store ptr %93, ptr %11, align 8, !tbaa !5
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %94, align 4, !tbaa !15
  %96 = add nsw i32 %95, 1
  store i32 %96, ptr %94, align 4, !tbaa !15
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.facetT, ptr %97, i32 0, i32 15
  %99 = load i32, ptr %98, align 8
  %100 = lshr i32 %99, 24
  %101 = and i32 %100, 1
  %102 = icmp ne i32 %101, 0
  br i1 %102, label %103, label %135

103:                                              ; preds = %77
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.facetT, ptr %104, i32 0, i32 15
  %106 = load i32, ptr %105, align 8
  %107 = and i32 %106, -33554433
  %108 = or i32 %107, 33554432
  store i32 %108, ptr %105, align 8
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 15
  %111 = load i32, ptr %110, align 8
  %112 = lshr i32 %111, 14
  %113 = and i32 %112, 1
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %122, label %115

115:                                              ; preds = %103
  %116 = load ptr, ptr %11, align 8, !tbaa !5
  %117 = load ptr, ptr %11, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 4
  store ptr %116, ptr %118, align 8, !tbaa !26
  %119 = load ptr, ptr %11, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.facetT, ptr %120, i32 0, i32 4
  store ptr %119, ptr %121, align 8, !tbaa !26
  br label %134

122:                                              ; preds = %103
  %123 = load ptr, ptr %10, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.facetT, ptr %123, i32 0, i32 4
  %125 = load ptr, ptr %124, align 8, !tbaa !26
  store ptr %125, ptr %12, align 8, !tbaa !5
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 4
  %128 = load ptr, ptr %127, align 8, !tbaa !26
  %129 = load ptr, ptr %11, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.facetT, ptr %129, i32 0, i32 4
  store ptr %128, ptr %130, align 8, !tbaa !26
  %131 = load ptr, ptr %11, align 8, !tbaa !5
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.facetT, ptr %132, i32 0, i32 4
  store ptr %131, ptr %133, align 8, !tbaa !26
  br label %134

134:                                              ; preds = %122, %115
  br label %135

135:                                              ; preds = %134, %77
  %136 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 203), align 4, !tbaa !18
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %138, label %150

138:                                              ; preds = %135
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.facetT, ptr %139, i32 0, i32 15
  %141 = load i32, ptr %140, align 8
  %142 = lshr i32 %141, 13
  %143 = and i32 %142, 1
  %144 = icmp ne i32 %143, 0
  br i1 %144, label %149, label %145

145:                                              ; preds = %138
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.facetT, ptr %146, i32 0, i32 9
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %147, ptr noundef %148)
  br label %149

149:                                              ; preds = %145, %138
  br label %224

150:                                              ; preds = %135
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.facetT, ptr %151, i32 0, i32 15
  %153 = load i32, ptr %152, align 8
  %154 = lshr i32 %153, 14
  %155 = and i32 %154, 1
  %156 = icmp ne i32 %155, 0
  br i1 %156, label %157, label %178

157:                                              ; preds = %150
  %158 = load ptr, ptr %10, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.facetT, ptr %158, i32 0, i32 15
  %160 = load i32, ptr %159, align 8
  %161 = lshr i32 %160, 13
  %162 = and i32 %161, 1
  %163 = icmp ne i32 %162, 0
  br i1 %163, label %164, label %174

164:                                              ; preds = %157
  %165 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !27
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.facetT, ptr %166, i32 0, i32 14
  %168 = load i32, ptr %167, align 4, !tbaa !28
  %169 = load ptr, ptr %4, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.facetT, ptr %169, i32 0, i32 14
  %171 = load i32, ptr %170, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %165, i32 noundef 6105, ptr noundef @.str.15, i32 noundef %168, i32 noundef %171)
  %172 = load ptr, ptr %10, align 8, !tbaa !5
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %172, ptr noundef %173)
  br label %174

174:                                              ; preds = %164, %157
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 10
  %177 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %176, ptr noundef %177)
  br label %184

178:                                              ; preds = %150
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 10
  %181 = load ptr, ptr %180, align 8, !tbaa !29
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %181, ptr noundef %182, ptr noundef %183)
  br label %184

184:                                              ; preds = %178, %174
  %185 = load ptr, ptr %10, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.facetT, ptr %185, i32 0, i32 15
  %187 = load i32, ptr %186, align 8
  %188 = lshr i32 %187, 13
  %189 = and i32 %188, 1
  %190 = icmp ne i32 %189, 0
  br i1 %190, label %191, label %198

191:                                              ; preds = %184
  %192 = load ptr, ptr %10, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.facetT, ptr %192, i32 0, i32 9
  %194 = load ptr, ptr %193, align 8, !tbaa !9
  %195 = load ptr, ptr %8, align 8, !tbaa !5
  %196 = call ptr @qh_setdel(ptr noundef %194, ptr noundef %195)
  %197 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_delridge(ptr noundef %197)
  br label %223

198:                                              ; preds = %184
  %199 = load ptr, ptr %11, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.facetT, ptr %199, i32 0, i32 9
  %201 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %200, ptr noundef %201)
  %202 = load i32, ptr %14, align 4, !tbaa !15
  %203 = icmp ne i32 %202, 0
  br i1 %203, label %204, label %213

204:                                              ; preds = %198
  %205 = load ptr, ptr %11, align 8, !tbaa !5
  %206 = load ptr, ptr %8, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.ridgeT, ptr %206, i32 0, i32 1
  store ptr %205, ptr %207, align 8, !tbaa !16
  %208 = load ptr, ptr %8, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.ridgeT, ptr %208, i32 0, i32 4
  %210 = load i8, ptr %209, align 4
  %211 = and i8 %210, -33
  %212 = or i8 %211, 32
  store i8 %212, ptr %209, align 4
  br label %222

213:                                              ; preds = %198
  %214 = load ptr, ptr %11, align 8, !tbaa !5
  %215 = load ptr, ptr %8, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.ridgeT, ptr %215, i32 0, i32 2
  store ptr %214, ptr %216, align 8, !tbaa !17
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.ridgeT, ptr %217, i32 0, i32 4
  %219 = load i8, ptr %218, align 4
  %220 = and i8 %219, -65
  %221 = or i8 %220, 64
  store i8 %221, ptr %218, align 4
  br label %222

222:                                              ; preds = %213, %204
  br label %223

223:                                              ; preds = %222, %191
  br label %224

224:                                              ; preds = %223, %149
  %225 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !30
  %226 = icmp sge i32 %225, 4
  br i1 %226, label %227, label %239

227:                                              ; preds = %224
  %228 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !27
  %229 = load ptr, ptr %11, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.facetT, ptr %229, i32 0, i32 14
  %231 = load i32, ptr %230, align 4, !tbaa !28
  %232 = load ptr, ptr %5, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.vertexT, ptr %232, i32 0, i32 4
  %234 = load i32, ptr %233, align 8, !tbaa !31
  %235 = load i32, ptr %15, align 4, !tbaa !15
  %236 = load ptr, ptr %10, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.facetT, ptr %236, i32 0, i32 14
  %238 = load i32, ptr %237, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %228, i32 noundef 4048, ptr noundef @.str.16, i32 noundef %231, i32 noundef %234, i32 noundef %235, i32 noundef %238)
  br label %239

239:                                              ; preds = %227, %224
  br label %240

240:                                              ; preds = %239, %76
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.facetT, ptr %241, i32 0, i32 15
  %243 = load i32, ptr %242, align 8
  %244 = and i32 %243, -16385
  %245 = or i32 %244, 16384
  store i32 %245, ptr %242, align 8
  br label %26, !llvm.loop !33

246:                                              ; preds = %26
  br label %247

247:                                              ; preds = %246, %3
  %248 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret ptr %248
}

declare ptr @qh_setnew(i32 noundef) #1

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


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.str.15 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [77 x i8], align 1

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

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

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

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

declare void @qh_delridge(ptr noundef) local_unnamed_addr #1

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

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

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

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

declare void @qh_setfree(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_makenew_nonsimplicial(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2) local_unnamed_addr #2 {
  %4 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  %5 = getelementptr inbounds i8, ptr %0, i64 72
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %3
  %.079 = getelementptr inbounds i8, ptr %6, i64 8
  %7 = load ptr, ptr %.079, align 8, !tbaa !12
  %.not6980 = icmp eq ptr %7, null
  br i1 %.not6980, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %8 = getelementptr inbounds i8, ptr %0, i64 108
  %9 = getelementptr inbounds i8, ptr %1, i64 32
  br label %10

10:                                               ; preds = %.lr.ph, %112
  %11 = phi ptr [ %7, %.lr.ph ], [ %115, %112 ]
  %.082 = phi ptr [ %.079, %.lr.ph ], [ %.0, %112 ]
  %.06581 = phi ptr [ null, %.lr.ph ], [ %.1, %112 ]
  %12 = getelementptr inbounds i8, ptr %11, i64 24
  %13 = load i32, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %11, i64 8
  %15 = load ptr, ptr %14, align 8, !tbaa !15
  %16 = icmp eq ptr %15, %0
  br i1 %16, label %17, label %20

17:                                               ; preds = %10
  %18 = getelementptr inbounds i8, ptr %11, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !16
  br label %20

20:                                               ; preds = %10, %17
  %21 = phi ptr [ %19, %17 ], [ %15, %10 ]
  %22 = getelementptr inbounds i8, ptr %21, i64 112
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, 2048
  %.not70 = icmp eq i32 %24, 0
  br i1 %.not70, label %37, label %25

25:                                               ; preds = %20
  %26 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2708), align 4, !tbaa !17
  %.not78 = icmp eq i32 %26, 0
  br i1 %.not78, label %27, label %112

27:                                               ; preds = %25
  %28 = getelementptr inbounds i8, ptr %21, i64 104
  %29 = load i32, ptr %28, align 8, !tbaa !20
  %30 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2784), align 8, !tbaa !21
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %32, label %112

32:                                               ; preds = %27
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2520), align 8, !tbaa !22
  %34 = icmp eq ptr %33, %11
  br i1 %34, label %35, label %36

35:                                               ; preds = %32
  store ptr null, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2520), align 8, !tbaa !22
  br label %36

36:                                               ; preds = %35, %32
  call void @qh_setfree(ptr noundef nonnull %11) #3
  call void @qh_memfree(ptr noundef nonnull %11, i32 noundef 32) #3
  br label %112

37:                                               ; preds = %20
  %38 = zext i1 %16 to i32
  %39 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !23
  %40 = call ptr @qh_setnew(i32 noundef %39) #3
  store ptr %40, ptr %4, align 8, !tbaa !12
  call void @qh_setappend(ptr noundef nonnull %4, ptr noundef %1) #3
  %41 = load ptr, ptr %11, align 8, !tbaa !24
  call void @qh_setappend_set(ptr noundef nonnull %4, ptr noundef %41) #3
  %42 = load ptr, ptr %4, align 8, !tbaa !12
  %43 = call ptr @qh_makenewfacet(ptr noundef %42, i32 noundef %38, ptr noundef nonnull %21)
  %44 = load i32, ptr %2, align 4, !tbaa !25
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %2, align 4, !tbaa !25
  %46 = load i32, ptr %22, align 8
  %47 = and i32 %46, 16777216
  %.not71 = icmp eq i32 %47, 0
  br i1 %.not71, label %63, label %48

48:                                               ; preds = %37
  %49 = getelementptr inbounds i8, ptr %43, i64 112
  %50 = load i32, ptr %49, align 8
  %51 = or i32 %50, 33554432
  store i32 %51, ptr %49, align 8
  %52 = load i32, ptr %22, align 8
  %53 = and i32 %52, 16384
  %.not72 = icmp eq i32 %53, 0
  br i1 %.not72, label %54, label %57

54:                                               ; preds = %48
  %55 = getelementptr inbounds i8, ptr %43, i64 32
  store ptr %43, ptr %55, align 8, !tbaa !26
  %56 = getelementptr inbounds i8, ptr %21, i64 32
  br label %.sink.split

57:                                               ; preds = %48
  %58 = getelementptr inbounds i8, ptr %21, i64 32
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = getelementptr inbounds i8, ptr %59, i64 32
  %61 = load ptr, ptr %60, align 8, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %43, i64 32
  store ptr %61, ptr %62, align 8, !tbaa !26
  br label %.sink.split

.sink.split:                                      ; preds = %57, %54
  %.sink = phi ptr [ %56, %54 ], [ %60, %57 ]
  store ptr %43, ptr %.sink, align 8, !tbaa !26
  br label %63

63:                                               ; preds = %.sink.split, %37
  %64 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2708), align 4, !tbaa !17
  %.not73 = icmp eq i32 %64, 0
  %65 = load i32, ptr %22, align 8
  br i1 %.not73, label %70, label %66

66:                                               ; preds = %63
  %67 = and i32 %65, 8192
  %.not77 = icmp eq i32 %67, 0
  br i1 %.not77, label %68, label %102

68:                                               ; preds = %66
  %69 = getelementptr inbounds i8, ptr %43, i64 72
  call void @qh_setappend(ptr noundef nonnull %69, ptr noundef nonnull %11) #3
  br label %102

70:                                               ; preds = %63
  %71 = and i32 %65, 16384
  %.not74 = icmp eq i32 %71, 0
  br i1 %.not74, label %81, label %72

72:                                               ; preds = %70
  %73 = and i32 %65, 8192
  %.not75 = icmp eq i32 %73, 0
  br i1 %.not75, label %79, label %74

74:                                               ; preds = %72
  %75 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !27
  %76 = getelementptr inbounds i8, ptr %21, i64 108
  %77 = load i32, ptr %76, align 4, !tbaa !28
  %78 = load i32, ptr %8, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %75, i32 noundef 6105, ptr noundef nonnull @.str.15, i32 noundef %77, i32 noundef %78) #3
  call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %21, ptr noundef %0) #3
  br label %79

79:                                               ; preds = %74, %72
  %80 = getelementptr inbounds i8, ptr %21, i64 80
  call void @qh_setappend(ptr noundef nonnull %80, ptr noundef %43) #3
  br label %84

81:                                               ; preds = %70
  %82 = getelementptr inbounds i8, ptr %21, i64 80
  %83 = load ptr, ptr %82, align 8, !tbaa !29
  call void @qh_setreplace(ptr noundef %83, ptr noundef %0, ptr noundef %43) #3
  br label %84

84:                                               ; preds = %81, %79
  %85 = load i32, ptr %22, align 8
  %86 = and i32 %85, 8192
  %.not76 = icmp eq i32 %86, 0
  br i1 %.not76, label %91, label %87

87:                                               ; preds = %84
  %88 = getelementptr inbounds i8, ptr %21, i64 72
  %89 = load ptr, ptr %88, align 8, !tbaa !5
  %90 = call ptr @qh_setdel(ptr noundef %89, ptr noundef nonnull %11) #3
  call void @qh_delridge(ptr noundef nonnull %11) #3
  br label %102

91:                                               ; preds = %84
  %92 = getelementptr inbounds i8, ptr %43, i64 72
  call void @qh_setappend(ptr noundef nonnull %92, ptr noundef nonnull %11) #3
  br i1 %16, label %93, label %97

93:                                               ; preds = %91
  store ptr %43, ptr %14, align 8, !tbaa !15
  %94 = getelementptr inbounds i8, ptr %11, i64 28
  %95 = load i8, ptr %94, align 4
  %96 = or i8 %95, 32
  store i8 %96, ptr %94, align 4
  br label %102

97:                                               ; preds = %91
  %98 = getelementptr inbounds i8, ptr %11, i64 16
  store ptr %43, ptr %98, align 8, !tbaa !16
  %99 = getelementptr inbounds i8, ptr %11, i64 28
  %100 = load i8, ptr %99, align 4
  %101 = or i8 %100, 64
  store i8 %101, ptr %99, align 4
  br label %102

102:                                              ; preds = %87, %97, %93, %66, %68
  %103 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !30
  %104 = icmp sgt i32 %103, 3
  br i1 %104, label %105, label %112

105:                                              ; preds = %102
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !27
  %107 = getelementptr inbounds i8, ptr %43, i64 108
  %108 = load i32, ptr %107, align 4, !tbaa !28
  %109 = load i32, ptr %9, align 8, !tbaa !31
  %110 = getelementptr inbounds i8, ptr %21, i64 108
  %111 = load i32, ptr %110, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 4048, ptr noundef nonnull @.str.16, i32 noundef %108, i32 noundef %109, i32 noundef %13, i32 noundef %111) #3
  br label %112

112:                                              ; preds = %102, %105, %25, %36, %27
  %.1 = phi ptr [ %.06581, %25 ], [ %.06581, %36 ], [ %.06581, %27 ], [ %43, %105 ], [ %43, %102 ]
  %113 = load i32, ptr %22, align 8
  %114 = or i32 %113, 16384
  store i32 %114, ptr %22, align 8
  %.0 = getelementptr inbounds i8, ptr %.082, i64 8
  %115 = load ptr, ptr %.0, align 8, !tbaa !12
  %.not69 = icmp eq ptr %115, null
  br i1 %.not69, label %.loopexit, label %10, !llvm.loop !33

.loopexit:                                        ; preds = %112, %.preheader, %3
  %.2 = phi ptr [ null, %3 ], [ null, %.preheader ], [ %.1, %112 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret ptr %.2
}

declare ptr @qh_setnew(i32 noundef) local_unnamed_addr #1

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

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


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