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

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

%struct.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.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, [1 x %struct.__jmp_buf_tag], [40 x i8], i32, double, ptr, ptr, ptr, %struct.qhmemT, %struct.qhstatT }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%struct.qhmemT = type { i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.qhstatT = type { [249 x %union.intrealT], [259 x i8], [249 x ptr], [249 x i16], [249 x i8], [249 x i8], [9 x %union.intrealT], i32, i32, i32, i32, double }
%union.intrealT = type { double }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@.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, 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, ptr noundef) #1

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

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

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

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

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

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

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

28:                                               ; preds = %274, %22
  %29 = load ptr, ptr %11, align 8, !tbaa !5
  %30 = getelementptr inbounds ptr, ptr %29, i32 1
  store ptr %30, ptr %11, align 8, !tbaa !5
  %31 = load ptr, ptr %29, align 8, !tbaa !5
  store ptr %31, ptr %10, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %280

33:                                               ; preds = %28
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.ridgeT, ptr %34, i32 0, i32 3
  %36 = load i32, ptr %35, align 8, !tbaa !13
  store i32 %36, ptr %17, align 4, !tbaa !15
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.ridgeT, ptr %37, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  %40 = load ptr, ptr %6, align 8, !tbaa !5
  %41 = icmp eq ptr %39, %40
  br i1 %41, label %42, label %46

42:                                               ; preds = %33
  %43 = load ptr, ptr %10, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ridgeT, ptr %43, i32 0, i32 2
  %45 = load ptr, ptr %44, align 8, !tbaa !17
  br label %50

46:                                               ; preds = %33
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ridgeT, ptr %47, i32 0, i32 1
  %49 = load ptr, ptr %48, align 8, !tbaa !16
  br label %50

50:                                               ; preds = %46, %42
  %51 = phi ptr [ %45, %42 ], [ %49, %46 ]
  store ptr %51, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %12, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 15
  %54 = load i32, ptr %53, align 8
  %55 = lshr i32 %54, 11
  %56 = and i32 %55, 1
  %57 = icmp ne i32 %56, 0
  br i1 %57, label %58, label %89

58:                                               ; preds = %50
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.qhT, ptr %59, i32 0, i32 203
  %61 = load i32, ptr %60, align 4, !tbaa !18
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %88, label %63

63:                                               ; preds = %58
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 13
  %66 = load i32, ptr %65, align 8, !tbaa !23
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.qhT, ptr %67, i32 0, i32 217
  %69 = load i32, ptr %68, align 8, !tbaa !24
  %70 = icmp eq i32 %66, %69
  br i1 %70, label %71, label %87

71:                                               ; preds = %63
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.qhT, ptr %72, i32 0, i32 172
  %74 = load ptr, ptr %73, align 8, !tbaa !25
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = icmp eq ptr %74, %75
  br i1 %76, label %77, label %80

77:                                               ; preds = %71
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.qhT, ptr %78, i32 0, i32 172
  store ptr null, ptr %79, align 8, !tbaa !25
  br label %80

80:                                               ; preds = %77, %71
  %81 = load ptr, ptr %5, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ridgeT, ptr %82, i32 0, i32 0
  call void @qh_setfree(ptr noundef %81, ptr noundef %83)
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %85, ptr noundef %86, i32 noundef 32)
  br label %87

87:                                               ; preds = %80, %63
  br label %88

88:                                               ; preds = %87, %58
  br label %274

89:                                               ; preds = %50
  %90 = load ptr, ptr %10, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ridgeT, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !16
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = icmp eq ptr %92, %93
  %95 = zext i1 %94 to i32
  store i32 %95, ptr %16, align 4, !tbaa !15
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.qhT, ptr %97, i32 0, i32 110
  %99 = load i32, ptr %98, align 8, !tbaa !26
  %100 = call ptr @qh_setnew(ptr noundef %96, i32 noundef %99)
  store ptr %100, ptr %15, align 8, !tbaa !5
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %101, ptr noundef %15, ptr noundef %102)
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  %104 = load ptr, ptr %10, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ridgeT, ptr %104, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !27
  call void @qh_setappend_set(ptr noundef %103, ptr noundef %15, ptr noundef %106)
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = load i32, ptr %16, align 4, !tbaa !15
  %110 = load ptr, ptr %12, align 8, !tbaa !5
  %111 = call ptr @qh_makenewfacet(ptr noundef %107, ptr noundef %108, i32 noundef %109, ptr noundef %110)
  store ptr %111, ptr %13, align 8, !tbaa !5
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = load i32, ptr %112, align 4, !tbaa !15
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 4, !tbaa !15
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.facetT, ptr %115, i32 0, i32 15
  %117 = load i32, ptr %116, align 8
  %118 = lshr i32 %117, 24
  %119 = and i32 %118, 1
  %120 = icmp ne i32 %119, 0
  br i1 %120, label %121, label %153

121:                                              ; preds = %89
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 15
  %124 = load i32, ptr %123, align 8
  %125 = and i32 %124, -33554433
  %126 = or i32 %125, 33554432
  store i32 %126, ptr %123, align 8
  %127 = load ptr, ptr %12, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.facetT, ptr %127, i32 0, i32 15
  %129 = load i32, ptr %128, align 8
  %130 = lshr i32 %129, 14
  %131 = and i32 %130, 1
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %140, label %133

133:                                              ; preds = %121
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %13, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.facetT, ptr %135, i32 0, i32 4
  store ptr %134, ptr %136, align 8, !tbaa !28
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %12, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 4
  store ptr %137, ptr %139, align 8, !tbaa !28
  br label %152

140:                                              ; preds = %121
  %141 = load ptr, ptr %12, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.facetT, ptr %141, i32 0, i32 4
  %143 = load ptr, ptr %142, align 8, !tbaa !28
  store ptr %143, ptr %14, align 8, !tbaa !5
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.facetT, ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !28
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.facetT, ptr %147, i32 0, i32 4
  store ptr %146, ptr %148, align 8, !tbaa !28
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = load ptr, ptr %14, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 4
  store ptr %149, ptr %151, align 8, !tbaa !28
  br label %152

152:                                              ; preds = %140, %133
  br label %153

153:                                              ; preds = %152, %89
  %154 = load ptr, ptr %5, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.qhT, ptr %154, i32 0, i32 203
  %156 = load i32, ptr %155, align 4, !tbaa !18
  %157 = icmp ne i32 %156, 0
  br i1 %157, label %158, label %171

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

165:                                              ; preds = %158
  %166 = load ptr, ptr %5, align 8, !tbaa !5
  %167 = load ptr, ptr %13, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.facetT, ptr %167, i32 0, i32 9
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %166, ptr noundef %168, ptr noundef %169)
  br label %170

170:                                              ; preds = %165, %158
  br label %253

171:                                              ; preds = %153
  %172 = load ptr, ptr %12, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.facetT, ptr %172, i32 0, i32 15
  %174 = load i32, ptr %173, align 8
  %175 = lshr i32 %174, 14
  %176 = and i32 %175, 1
  %177 = icmp ne i32 %176, 0
  br i1 %177, label %178, label %204

178:                                              ; preds = %171
  %179 = load ptr, ptr %12, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 15
  %181 = load i32, ptr %180, align 8
  %182 = lshr i32 %181, 13
  %183 = and i32 %182, 1
  %184 = icmp ne i32 %183, 0
  br i1 %184, label %185, label %199

185:                                              ; preds = %178
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.qhT, ptr %187, i32 0, i32 158
  %189 = load ptr, ptr %188, align 8, !tbaa !29
  %190 = load ptr, ptr %12, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.facetT, ptr %190, i32 0, i32 14
  %192 = load i32, ptr %191, align 4, !tbaa !30
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.facetT, ptr %193, i32 0, i32 14
  %195 = load i32, ptr %194, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %186, ptr noundef %189, i32 noundef 6105, ptr noundef @.str.15, i32 noundef %192, i32 noundef %195)
  %196 = load ptr, ptr %5, align 8, !tbaa !5
  %197 = load ptr, ptr %12, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  call void @qh_errexit2(ptr noundef %196, i32 noundef 5, ptr noundef %197, ptr noundef %198)
  br label %199

199:                                              ; preds = %185, %178
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = load ptr, ptr %12, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 10
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %200, ptr noundef %202, ptr noundef %203)
  br label %211

204:                                              ; preds = %171
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = load ptr, ptr %12, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.facetT, ptr %206, i32 0, i32 10
  %208 = load ptr, ptr %207, align 8, !tbaa !31
  %209 = load ptr, ptr %6, align 8, !tbaa !5
  %210 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_setreplace(ptr noundef %205, ptr noundef %208, ptr noundef %209, ptr noundef %210)
  br label %211

211:                                              ; preds = %204, %199
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.facetT, ptr %212, i32 0, i32 15
  %214 = load i32, ptr %213, align 8
  %215 = lshr i32 %214, 13
  %216 = and i32 %215, 1
  %217 = icmp ne i32 %216, 0
  br i1 %217, label %218, label %226

218:                                              ; preds = %211
  %219 = load ptr, ptr %12, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.facetT, ptr %219, i32 0, i32 9
  %221 = load ptr, ptr %220, align 8, !tbaa !9
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = call ptr @qh_setdel(ptr noundef %221, ptr noundef %222)
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_delridge(ptr noundef %224, ptr noundef %225)
  br label %252

226:                                              ; preds = %211
  %227 = load ptr, ptr %5, align 8, !tbaa !5
  %228 = load ptr, ptr %13, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.facetT, ptr %228, i32 0, i32 9
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %227, ptr noundef %229, ptr noundef %230)
  %231 = load i32, ptr %16, align 4, !tbaa !15
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %242

233:                                              ; preds = %226
  %234 = load ptr, ptr %13, align 8, !tbaa !5
  %235 = load ptr, ptr %10, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ridgeT, ptr %235, i32 0, i32 1
  store ptr %234, ptr %236, align 8, !tbaa !16
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.ridgeT, ptr %237, i32 0, i32 4
  %239 = load i8, ptr %238, align 4
  %240 = and i8 %239, -33
  %241 = or i8 %240, 32
  store i8 %241, ptr %238, align 4
  br label %251

242:                                              ; preds = %226
  %243 = load ptr, ptr %13, align 8, !tbaa !5
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ridgeT, ptr %244, i32 0, i32 2
  store ptr %243, ptr %245, align 8, !tbaa !17
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ridgeT, ptr %246, i32 0, i32 4
  %248 = load i8, ptr %247, align 4
  %249 = and i8 %248, -65
  %250 = or i8 %249, 64
  store i8 %250, ptr %247, align 4
  br label %251

251:                                              ; preds = %242, %233
  br label %252

252:                                              ; preds = %251, %218
  br label %253

253:                                              ; preds = %252, %170
  %254 = load ptr, ptr %5, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.qhT, ptr %254, i32 0, i32 29
  %256 = load i32, ptr %255, align 8, !tbaa !32
  %257 = icmp sge i32 %256, 4
  br i1 %257, label %258, label %273

258:                                              ; preds = %253
  %259 = load ptr, ptr %5, align 8, !tbaa !5
  %260 = load ptr, ptr %5, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.qhT, ptr %260, i32 0, i32 158
  %262 = load ptr, ptr %261, align 8, !tbaa !29
  %263 = load ptr, ptr %13, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.facetT, ptr %263, i32 0, i32 14
  %265 = load i32, ptr %264, align 4, !tbaa !30
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.vertexT, ptr %266, i32 0, i32 4
  %268 = load i32, ptr %267, align 8, !tbaa !33
  %269 = load i32, ptr %17, align 4, !tbaa !15
  %270 = load ptr, ptr %12, align 8, !tbaa !5
  %271 = getelementptr inbounds %struct.facetT, ptr %270, i32 0, i32 14
  %272 = load i32, ptr %271, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %259, ptr noundef %262, i32 noundef 4048, ptr noundef @.str.16, i32 noundef %265, i32 noundef %268, i32 noundef %269, i32 noundef %272)
  br label %273

273:                                              ; preds = %258, %253
  br label %274

274:                                              ; preds = %273, %88
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.facetT, ptr %275, i32 0, i32 15
  %277 = load i32, ptr %276, align 8
  %278 = and i32 %277, -16385
  %279 = or i32 %278, 16384
  store i32 %279, ptr %276, align 8
  br label %28, !llvm.loop !35

280:                                              ; preds = %28
  br label %281

281:                                              ; preds = %280, %4
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  ret ptr %282
}

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

declare void @qh_setappend_set(ptr noundef, 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, !12, i64 2984, !12, i64 2988, !7, i64 2992, !7, i64 3192, !12, i64 3232, !11, i64 3240, !6, i64 3248, !6, i64 3256, !6, i64 3264, !21, i64 3272, !22, i64 3424}
!20 = !{!"long", !7, i64 0}
!21 = !{!"qhmemT", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !12, i64 64, !6, i64 72, !6, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !12, i64 128, !12, i64 132, !12, i64 136, !12, i64 140, !12, i64 144}
!22 = !{!"qhstatT", !7, i64 0, !7, i64 1992, !7, i64 2256, !7, i64 4248, !7, i64 4746, !7, i64 4995, !7, i64 5248, !12, i64 5320, !12, i64 5324, !12, i64 5328, !12, i64 5332, !11, i64 5336}
!23 = !{!10, !12, i64 104}
!24 = !{!19, !12, i64 2784}
!25 = !{!19, !6, i64 2520}
!26 = !{!19, !12, i64 632}
!27 = !{!14, !6, i64 0}
!28 = !{!7, !7, i64 0}
!29 = !{!19, !6, i64 2424}
!30 = !{!10, !12, i64 108}
!31 = !{!10, !6, i64 80}
!32 = !{!19, !12, i64 136}
!33 = !{!34, !12, i64 32}
!34 = !{!"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}
!35 = distinct !{!35, !36}
!36 = !{!"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"

@.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, 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, ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local ptr @qh_makenewfacet(ptr noundef, 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 noundef %2, ptr nocapture noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = getelementptr inbounds i8, ptr %1, i64 72
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %.loopexit, label %.preheader

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

.lr.ph:                                           ; preds = %.preheader
  %9 = getelementptr inbounds i8, ptr %0, i64 2708
  %10 = getelementptr inbounds i8, ptr %0, i64 2784
  %11 = getelementptr inbounds i8, ptr %0, i64 2520
  %12 = getelementptr inbounds i8, ptr %0, i64 632
  %13 = getelementptr inbounds i8, ptr %0, i64 2424
  %14 = getelementptr inbounds i8, ptr %1, i64 108
  %15 = getelementptr inbounds i8, ptr %0, i64 136
  %16 = getelementptr inbounds i8, ptr %2, i64 32
  br label %17

17:                                               ; preds = %.lr.ph, %119
  %18 = phi ptr [ %8, %.lr.ph ], [ %122, %119 ]
  %.0105 = phi ptr [ %.0102, %.lr.ph ], [ %.0, %119 ]
  %.088104 = phi ptr [ null, %.lr.ph ], [ %.1, %119 ]
  %19 = getelementptr inbounds i8, ptr %18, i64 24
  %20 = load i32, ptr %19, align 8, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %18, i64 8
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = icmp eq ptr %22, %1
  br i1 %23, label %24, label %27

24:                                               ; preds = %17
  %25 = getelementptr inbounds i8, ptr %18, i64 16
  %26 = load ptr, ptr %25, align 8, !tbaa !16
  br label %27

27:                                               ; preds = %17, %24
  %28 = phi ptr [ %26, %24 ], [ %22, %17 ]
  %29 = getelementptr inbounds i8, ptr %28, i64 112
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, 2048
  %.not93 = icmp eq i32 %31, 0
  br i1 %.not93, label %44, label %32

32:                                               ; preds = %27
  %33 = load i32, ptr %9, align 4, !tbaa !17
  %.not101 = icmp eq i32 %33, 0
  br i1 %.not101, label %34, label %119

34:                                               ; preds = %32
  %35 = getelementptr inbounds i8, ptr %28, i64 104
  %36 = load i32, ptr %35, align 8, !tbaa !22
  %37 = load i32, ptr %10, align 8, !tbaa !23
  %38 = icmp eq i32 %36, %37
  br i1 %38, label %39, label %119

39:                                               ; preds = %34
  %40 = load ptr, ptr %11, align 8, !tbaa !24
  %41 = icmp eq ptr %40, %18
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  store ptr null, ptr %11, align 8, !tbaa !24
  br label %43

43:                                               ; preds = %42, %39
  call void @qh_setfree(ptr noundef nonnull %0, ptr noundef nonnull %18) #3
  call void @qh_memfree(ptr noundef nonnull %0, ptr noundef nonnull %18, i32 noundef 32) #3
  br label %119

44:                                               ; preds = %27
  %45 = zext i1 %23 to i32
  %46 = load i32, ptr %12, align 8, !tbaa !25
  %47 = call ptr @qh_setnew(ptr noundef %0, i32 noundef %46) #3
  store ptr %47, ptr %5, align 8, !tbaa !12
  call void @qh_setappend(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %2) #3
  %48 = load ptr, ptr %18, align 8, !tbaa !26
  call void @qh_setappend_set(ptr noundef %0, ptr noundef nonnull %5, ptr noundef %48) #3
  %49 = load ptr, ptr %5, align 8, !tbaa !12
  %50 = call ptr @qh_makenewfacet(ptr noundef %0, ptr noundef %49, i32 noundef %45, ptr noundef nonnull %28)
  %51 = load i32, ptr %3, align 4, !tbaa !27
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %3, align 4, !tbaa !27
  %53 = load i32, ptr %29, align 8
  %54 = and i32 %53, 16777216
  %.not94 = icmp eq i32 %54, 0
  br i1 %.not94, label %70, label %55

55:                                               ; preds = %44
  %56 = getelementptr inbounds i8, ptr %50, i64 112
  %57 = load i32, ptr %56, align 8
  %58 = or i32 %57, 33554432
  store i32 %58, ptr %56, align 8
  %59 = load i32, ptr %29, align 8
  %60 = and i32 %59, 16384
  %.not95 = icmp eq i32 %60, 0
  br i1 %.not95, label %61, label %64

61:                                               ; preds = %55
  %62 = getelementptr inbounds i8, ptr %50, i64 32
  store ptr %50, ptr %62, align 8, !tbaa !28
  %63 = getelementptr inbounds i8, ptr %28, i64 32
  br label %.sink.split

64:                                               ; preds = %55
  %65 = getelementptr inbounds i8, ptr %28, i64 32
  %66 = load ptr, ptr %65, align 8, !tbaa !28
  %67 = getelementptr inbounds i8, ptr %66, i64 32
  %68 = load ptr, ptr %67, align 8, !tbaa !28
  %69 = getelementptr inbounds i8, ptr %50, i64 32
  store ptr %68, ptr %69, align 8, !tbaa !28
  br label %.sink.split

.sink.split:                                      ; preds = %64, %61
  %.sink = phi ptr [ %63, %61 ], [ %67, %64 ]
  store ptr %50, ptr %.sink, align 8, !tbaa !28
  br label %70

70:                                               ; preds = %.sink.split, %44
  %71 = load i32, ptr %9, align 4, !tbaa !17
  %.not96 = icmp eq i32 %71, 0
  %72 = load i32, ptr %29, align 8
  br i1 %.not96, label %77, label %73

73:                                               ; preds = %70
  %74 = and i32 %72, 8192
  %.not100 = icmp eq i32 %74, 0
  br i1 %.not100, label %75, label %109

75:                                               ; preds = %73
  %76 = getelementptr inbounds i8, ptr %50, i64 72
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %76, ptr noundef nonnull %18) #3
  br label %109

77:                                               ; preds = %70
  %78 = and i32 %72, 16384
  %.not97 = icmp eq i32 %78, 0
  br i1 %.not97, label %88, label %79

79:                                               ; preds = %77
  %80 = and i32 %72, 8192
  %.not98 = icmp eq i32 %80, 0
  br i1 %.not98, label %86, label %81

81:                                               ; preds = %79
  %82 = load ptr, ptr %13, align 8, !tbaa !29
  %83 = getelementptr inbounds i8, ptr %28, i64 108
  %84 = load i32, ptr %83, align 4, !tbaa !30
  %85 = load i32, ptr %14, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %82, i32 noundef 6105, ptr noundef nonnull @.str.15, i32 noundef %84, i32 noundef %85) #3
  call void @qh_errexit2(ptr noundef nonnull %0, i32 noundef 5, ptr noundef nonnull %28, ptr noundef %1) #3
  br label %86

86:                                               ; preds = %81, %79
  %87 = getelementptr inbounds i8, ptr %28, i64 80
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %87, ptr noundef %50) #3
  br label %91

88:                                               ; preds = %77
  %89 = getelementptr inbounds i8, ptr %28, i64 80
  %90 = load ptr, ptr %89, align 8, !tbaa !31
  call void @qh_setreplace(ptr noundef nonnull %0, ptr noundef %90, ptr noundef %1, ptr noundef %50) #3
  br label %91

91:                                               ; preds = %88, %86
  %92 = load i32, ptr %29, align 8
  %93 = and i32 %92, 8192
  %.not99 = icmp eq i32 %93, 0
  br i1 %.not99, label %98, label %94

94:                                               ; preds = %91
  %95 = getelementptr inbounds i8, ptr %28, i64 72
  %96 = load ptr, ptr %95, align 8, !tbaa !5
  %97 = call ptr @qh_setdel(ptr noundef %96, ptr noundef nonnull %18) #3
  call void @qh_delridge(ptr noundef nonnull %0, ptr noundef nonnull %18) #3
  br label %109

98:                                               ; preds = %91
  %99 = getelementptr inbounds i8, ptr %50, i64 72
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %99, ptr noundef nonnull %18) #3
  br i1 %23, label %100, label %104

100:                                              ; preds = %98
  store ptr %50, ptr %21, align 8, !tbaa !15
  %101 = getelementptr inbounds i8, ptr %18, i64 28
  %102 = load i8, ptr %101, align 4
  %103 = or i8 %102, 32
  store i8 %103, ptr %101, align 4
  br label %109

104:                                              ; preds = %98
  %105 = getelementptr inbounds i8, ptr %18, i64 16
  store ptr %50, ptr %105, align 8, !tbaa !16
  %106 = getelementptr inbounds i8, ptr %18, i64 28
  %107 = load i8, ptr %106, align 4
  %108 = or i8 %107, 64
  store i8 %108, ptr %106, align 4
  br label %109

109:                                              ; preds = %94, %104, %100, %73, %75
  %110 = load i32, ptr %15, align 8, !tbaa !32
  %111 = icmp sgt i32 %110, 3
  br i1 %111, label %112, label %119

112:                                              ; preds = %109
  %113 = load ptr, ptr %13, align 8, !tbaa !29
  %114 = getelementptr inbounds i8, ptr %50, i64 108
  %115 = load i32, ptr %114, align 4, !tbaa !30
  %116 = load i32, ptr %16, align 8, !tbaa !33
  %117 = getelementptr inbounds i8, ptr %28, i64 108
  %118 = load i32, ptr %117, align 4, !tbaa !30
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %113, i32 noundef 4048, ptr noundef nonnull @.str.16, i32 noundef %115, i32 noundef %116, i32 noundef %20, i32 noundef %118) #3
  br label %119

119:                                              ; preds = %109, %112, %32, %43, %34
  %.1 = phi ptr [ %.088104, %32 ], [ %.088104, %43 ], [ %.088104, %34 ], [ %50, %112 ], [ %50, %109 ]
  %120 = load i32, ptr %29, align 8
  %121 = or i32 %120, 16384
  store i32 %121, ptr %29, align 8
  %.0 = getelementptr inbounds i8, ptr %.0105, i64 8
  %122 = load ptr, ptr %.0, align 8, !tbaa !12
  %.not92 = icmp eq ptr %122, null
  br i1 %.not92, label %.loopexit, label %17, !llvm.loop !35

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

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

declare void @qh_setappend_set(ptr noundef, 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, !11, i64 2984, !11, i64 2988, !8, i64 2992, !8, i64 3192, !11, i64 3232, !7, i64 3240, !10, i64 3248, !10, i64 3256, !10, i64 3264, !20, i64 3272, !21, i64 3424}
!19 = !{!"long", !8, i64 0}
!20 = !{!"qhmemT", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !11, i64 64, !10, i64 72, !10, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144}
!21 = !{!"qhstatT", !8, i64 0, !8, i64 1992, !8, i64 2256, !8, i64 4248, !8, i64 4746, !8, i64 4995, !8, i64 5248, !11, i64 5320, !11, i64 5324, !11, i64 5328, !11, i64 5332, !7, i64 5336}
!22 = !{!6, !11, i64 104}
!23 = !{!18, !11, i64 2784}
!24 = !{!18, !10, i64 2520}
!25 = !{!18, !11, i64 632}
!26 = !{!14, !10, i64 0}
!27 = !{!11, !11, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!18, !10, i64 2424}
!30 = !{!6, !11, i64 108}
!31 = !{!6, !10, i64 80}
!32 = !{!18, !11, i64 136}
!33 = !{!34, !11, i64 32}
!34 = !{!"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}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


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