; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (merge_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.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.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.ridgeT = type { ptr, ptr, ptr, i32, i8 }

@.str.101 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [78 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 i32 @qh_setsize(ptr noundef, ptr noundef) #1

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

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

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

20:                                               ; preds = %2
  store i32 1, ptr %13, align 4
  br label %294

21:                                               ; preds = %2
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.qhT, ptr %22, i32 0, i32 29
  %24 = load i32, ptr %23, align 8, !tbaa !11
  %25 = icmp sge i32 %24, 4
  br i1 %25, label %26, label %34

26:                                               ; preds = %21
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.qhT, ptr %28, i32 0, i32 158
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.facetT, ptr %31, i32 0, i32 14
  %33 = load i32, ptr %32, align 4, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %27, ptr noundef %30, i32 noundef 4027, ptr noundef @.str.101, i32 noundef %33)
  br label %34

34:                                               ; preds = %26, %21
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 15
  %37 = load i32, ptr %36, align 8
  %38 = and i32 %37, -8193
  %39 = or i32 %38, 0
  store i32 %39, ptr %36, align 8
  store ptr null, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.facetT, ptr %40, i32 0, i32 10
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %67

44:                                               ; preds = %34
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 10
  %47 = load ptr, ptr %46, align 8, !tbaa !20
  %48 = getelementptr inbounds %struct.setT, ptr %47, i32 0, i32 1
  %49 = getelementptr inbounds [1 x %union.setelemT], ptr %48, i64 0, i64 0
  store ptr %49, ptr %6, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %65, %44
  %51 = load ptr, ptr %6, align 8, !tbaa !5
  %52 = getelementptr inbounds ptr, ptr %51, i32 1
  store ptr %52, ptr %6, align 8, !tbaa !5
  %53 = load ptr, ptr %51, align 8, !tbaa !5
  store ptr %53, ptr %5, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %66

55:                                               ; preds = %50
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = icmp eq ptr %56, inttoptr (i64 2 to ptr)
  br i1 %57, label %58, label %59

58:                                               ; preds = %55
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %65

59:                                               ; preds = %55
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.facetT, ptr %60, i32 0, i32 15
  %62 = load i32, ptr %61, align 8
  %63 = and i32 %62, -16385
  %64 = or i32 %63, 0
  store i32 %64, ptr %61, align 8
  br label %65

65:                                               ; preds = %59, %58
  br label %50, !llvm.loop !21

66:                                               ; preds = %50
  br label %67

67:                                               ; preds = %66, %34
  store ptr null, ptr %7, align 8, !tbaa !5
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.facetT, ptr %68, i32 0, i32 9
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %104

72:                                               ; preds = %67
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.facetT, ptr %73, i32 0, i32 9
  %75 = load ptr, ptr %74, align 8, !tbaa !23
  %76 = getelementptr inbounds %struct.setT, ptr %75, i32 0, i32 1
  %77 = getelementptr inbounds [1 x %union.setelemT], ptr %76, i64 0, i64 0
  store ptr %77, ptr %8, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %97, %72
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds ptr, ptr %79, i32 1
  store ptr %80, ptr %8, align 8, !tbaa !5
  %81 = load ptr, ptr %79, align 8, !tbaa !5
  store ptr %81, ptr %7, align 8, !tbaa !5
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %103

83:                                               ; preds = %78
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.ridgeT, ptr %84, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !24
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = icmp eq ptr %86, %87
  br i1 %88, label %89, label %93

89:                                               ; preds = %83
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.ridgeT, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !26
  br label %97

93:                                               ; preds = %83
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ridgeT, ptr %94, i32 0, i32 1
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  br label %97

97:                                               ; preds = %93, %89
  %98 = phi ptr [ %92, %89 ], [ %96, %93 ]
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 15
  %100 = load i32, ptr %99, align 8
  %101 = and i32 %100, -16385
  %102 = or i32 %101, 16384
  store i32 %102, ptr %99, align 8
  br label %78, !llvm.loop !27

103:                                              ; preds = %78
  br label %104

104:                                              ; preds = %103, %67
  store ptr null, ptr %5, align 8, !tbaa !5
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.facetT, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = icmp ne ptr %107, null
  br i1 %108, label %109, label %281

109:                                              ; preds = %104
  store i32 0, ptr %9, align 4, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.facetT, ptr %110, i32 0, i32 10
  %112 = load ptr, ptr %111, align 8, !tbaa !20
  %113 = getelementptr inbounds %struct.setT, ptr %112, i32 0, i32 1
  %114 = getelementptr inbounds [1 x %union.setelemT], ptr %113, i64 0, i64 0
  %115 = load ptr, ptr %114, align 8, !tbaa !28
  store ptr %115, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.facetT, ptr %117, i32 0, i32 10
  %119 = load ptr, ptr %118, align 8, !tbaa !20
  %120 = call i32 @qh_setsize(ptr noundef %116, ptr noundef %119)
  store i32 %120, ptr %10, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %270, %109
  %122 = load i32, ptr %9, align 4, !tbaa !9
  %123 = load i32, ptr %10, align 4, !tbaa !9
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %280

125:                                              ; preds = %121
  %126 = load ptr, ptr %5, align 8, !tbaa !5
  %127 = icmp eq ptr %126, inttoptr (i64 2 to ptr)
  br i1 %127, label %128, label %129

128:                                              ; preds = %125
  br label %270

129:                                              ; preds = %125
  %130 = load ptr, ptr %5, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 15
  %132 = load i32, ptr %131, align 8
  %133 = lshr i32 %132, 14
  %134 = and i32 %133, 1
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %268, label %136

136:                                              ; preds = %129
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = call ptr @qh_newridge(ptr noundef %137)
  store ptr %138, ptr %7, align 8, !tbaa !5
  %139 = load ptr, ptr %3, align 8, !tbaa !5
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.facetT, ptr %140, i32 0, i32 8
  %142 = load ptr, ptr %141, align 8, !tbaa !29
  %143 = load ptr, ptr %3, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.qhT, ptr %143, i32 0, i32 110
  %145 = load i32, ptr %144, align 8, !tbaa !30
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = call ptr @qh_setnew_delnthsorted(ptr noundef %139, ptr noundef %142, i32 noundef %145, i32 noundef %146, i32 noundef 0)
  %148 = load ptr, ptr %7, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ridgeT, ptr %148, i32 0, i32 0
  store ptr %147, ptr %149, align 8, !tbaa !31
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.facetT, ptr %150, i32 0, i32 15
  %152 = load i32, ptr %151, align 8
  %153 = lshr i32 %152, 12
  %154 = and i32 %153, 1
  %155 = load i32, ptr %9, align 4, !tbaa !9
  %156 = and i32 %155, 1
  %157 = xor i32 %154, %156
  store i32 %157, ptr %11, align 4, !tbaa !9
  %158 = load i32, ptr %11, align 4, !tbaa !9
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %186

160:                                              ; preds = %136
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds %struct.ridgeT, ptr %162, i32 0, i32 1
  store ptr %161, ptr %163, align 8, !tbaa !24
  %164 = load ptr, ptr %5, align 8, !tbaa !5
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ridgeT, ptr %165, i32 0, i32 2
  store ptr %164, ptr %166, align 8, !tbaa !26
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.ridgeT, ptr %167, i32 0, i32 4
  %169 = load i8, ptr %168, align 4
  %170 = and i8 %169, -33
  %171 = or i8 %170, 32
  store i8 %171, ptr %168, align 4
  %172 = load ptr, ptr %5, 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, 13
  %176 = and i32 %175, 1
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.ridgeT, ptr %177, i32 0, i32 4
  %179 = trunc i32 %176 to i8
  %180 = load i8, ptr %178, align 4
  %181 = and i8 %179, 1
  %182 = shl i8 %181, 6
  %183 = and i8 %180, -65
  %184 = or i8 %183, %182
  store i8 %184, ptr %178, align 4
  %185 = zext i8 %181 to i32
  br label %212

186:                                              ; preds = %136
  %187 = load ptr, ptr %5, align 8, !tbaa !5
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.ridgeT, ptr %188, i32 0, i32 1
  store ptr %187, ptr %189, align 8, !tbaa !24
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = load ptr, ptr %7, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.ridgeT, ptr %191, i32 0, i32 2
  store ptr %190, ptr %192, align 8, !tbaa !26
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.facetT, ptr %193, i32 0, i32 15
  %195 = load i32, ptr %194, align 8
  %196 = lshr i32 %195, 13
  %197 = and i32 %196, 1
  %198 = load ptr, ptr %7, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ridgeT, ptr %198, i32 0, i32 4
  %200 = trunc i32 %197 to i8
  %201 = load i8, ptr %199, align 4
  %202 = and i8 %200, 1
  %203 = shl i8 %202, 5
  %204 = and i8 %201, -33
  %205 = or i8 %204, %203
  store i8 %205, ptr %199, align 4
  %206 = zext i8 %202 to i32
  %207 = load ptr, ptr %7, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.ridgeT, ptr %207, i32 0, i32 4
  %209 = load i8, ptr %208, align 4
  %210 = and i8 %209, -65
  %211 = or i8 %210, 64
  store i8 %211, ptr %208, align 4
  br label %212

212:                                              ; preds = %186, %160
  %213 = load ptr, ptr %4, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.facetT, ptr %213, i32 0, i32 15
  %215 = load i32, ptr %214, align 8
  %216 = lshr i32 %215, 27
  %217 = and i32 %216, 1
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %228

219:                                              ; preds = %212
  %220 = load i32, ptr %12, align 4, !tbaa !9
  %221 = icmp ne i32 %220, 0
  br i1 %221, label %228, label %222

222:                                              ; preds = %219
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = getelementptr inbounds %struct.ridgeT, ptr %223, i32 0, i32 4
  %225 = load i8, ptr %224, align 4
  %226 = and i8 %225, -3
  %227 = or i8 %226, 2
  store i8 %227, ptr %224, align 4
  br label %228

228:                                              ; preds = %222, %219, %212
  %229 = load ptr, ptr %3, align 8, !tbaa !5
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 9
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %229, ptr noundef %231, ptr noundef %232)
  %233 = load ptr, ptr %3, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.qhT, ptr %233, i32 0, i32 29
  %235 = load i32, ptr %234, align 8, !tbaa !11
  %236 = icmp sge i32 %235, 5
  br i1 %236, label %237, label %251

237:                                              ; preds = %228
  %238 = load ptr, ptr %3, align 8, !tbaa !5
  %239 = load ptr, ptr %3, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.qhT, ptr %239, i32 0, i32 158
  %241 = load ptr, ptr %240, align 8, !tbaa !17
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.ridgeT, ptr %242, i32 0, i32 3
  %244 = load i32, ptr %243, align 8, !tbaa !32
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.facetT, ptr %245, i32 0, i32 14
  %247 = load i32, ptr %246, align 4, !tbaa !18
  %248 = load ptr, ptr %5, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.facetT, ptr %248, i32 0, i32 14
  %250 = load i32, ptr %249, align 4, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %238, ptr noundef %241, i32 noundef 5005, ptr noundef @.str.102, i32 noundef %244, i32 noundef %247, i32 noundef %250)
  br label %251

251:                                              ; preds = %237, %228
  %252 = load ptr, ptr %3, align 8, !tbaa !5
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.facetT, ptr %253, i32 0, i32 9
  %255 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %252, ptr noundef %254, ptr noundef %255)
  %256 = load ptr, ptr %3, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.qhT, ptr %256, i32 0, i32 183
  %258 = load i32, ptr %257, align 4, !tbaa !33
  %259 = load ptr, ptr %3, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.qhT, ptr %259, i32 0, i32 171
  %261 = load i32, ptr %260, align 8, !tbaa !34
  %262 = icmp eq i32 %258, %261
  br i1 %262, label %263, label %267

263:                                              ; preds = %251
  %264 = load ptr, ptr %7, align 8, !tbaa !5
  %265 = load ptr, ptr %3, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.qhT, ptr %265, i32 0, i32 172
  store ptr %264, ptr %266, align 8, !tbaa !35
  br label %267

267:                                              ; preds = %263, %251
  br label %268

268:                                              ; preds = %267, %129
  br label %269

269:                                              ; preds = %268
  br label %270

270:                                              ; preds = %269, %128
  %271 = load ptr, ptr %4, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.facetT, ptr %271, i32 0, i32 10
  %273 = load ptr, ptr %272, align 8, !tbaa !20
  %274 = getelementptr inbounds %struct.setT, ptr %273, i32 0, i32 1
  %275 = load i32, ptr %9, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %9, align 4, !tbaa !9
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds [1 x %union.setelemT], ptr %274, i64 0, i64 %277
  %279 = load ptr, ptr %278, align 8, !tbaa !28
  store ptr %279, ptr %5, align 8, !tbaa !5
  br label %121, !llvm.loop !36

280:                                              ; preds = %121
  br label %281

281:                                              ; preds = %280, %104
  %282 = load i32, ptr %12, align 4, !tbaa !9
  %283 = icmp ne i32 %282, 0
  br i1 %283, label %284, label %293

284:                                              ; preds = %281
  br label %285

285:                                              ; preds = %291, %284
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.facetT, ptr %286, i32 0, i32 10
  %288 = load ptr, ptr %287, align 8, !tbaa !20
  %289 = call ptr @qh_setdel(ptr noundef %288, ptr noundef inttoptr (i64 2 to ptr))
  %290 = icmp ne ptr %289, null
  br i1 %290, label %291, label %292

291:                                              ; preds = %285
  br label %285, !llvm.loop !37

292:                                              ; preds = %285
  br label %293

293:                                              ; preds = %292, %281
  store i32 0, ptr %13, align 4
  br label %294

294:                                              ; preds = %293, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  %295 = load i32, ptr %13, align 4
  switch i32 %295, label %297 [
    i32 0, label %296
    i32 1, label %296
  ]

296:                                              ; preds = %294, %294
  ret void

297:                                              ; preds = %294
  unreachable
}

declare ptr @qh_newridge(ptr noundef) #1

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


; 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"

%union.setelemT = type { ptr }

@.str.101 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [78 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_makeridges(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %1, i64 112
  %4 = load i32, ptr %3, align 8
  %5 = and i32 %4, 8192
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %.loopexit, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 136
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = icmp sgt i32 %8, 3
  br i1 %9, label %10, label %15

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %0, i64 2424
  %12 = load ptr, ptr %11, align 8, !tbaa !15
  %13 = getelementptr inbounds i8, ptr %1, i64 108
  %14 = load i32, ptr %13, align 4, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %12, i32 noundef 4027, ptr noundef nonnull @.str.101, i32 noundef %14) #2
  %.pre = load i32, ptr %3, align 8
  br label %15

15:                                               ; preds = %10, %6
  %16 = phi i32 [ %.pre, %10 ], [ %4, %6 ]
  %17 = and i32 %16, -8193
  store i32 %17, ptr %3, align 8
  %18 = getelementptr inbounds i8, ptr %1, i64 80
  %19 = load ptr, ptr %18, align 8, !tbaa !18
  %.not82 = icmp eq ptr %19, null
  br i1 %.not82, label %.loopexit98, label %.preheader97.outer

.preheader97.outer:                               ; preds = %.preheader97, %15
  %.pn.ph = phi ptr [ %19, %15 ], [ %.073, %.preheader97 ]
  %.0.ph = phi i32 [ 0, %15 ], [ 1, %.preheader97 ]
  br label %.preheader97

.preheader97:                                     ; preds = %.preheader97.outer, %21
  %.pn = phi ptr [ %.073, %21 ], [ %.pn.ph, %.preheader97.outer ]
  %.073 = getelementptr inbounds i8, ptr %.pn, i64 8
  %20 = load ptr, ptr %.073, align 8, !tbaa !19
  %magicptr = ptrtoint ptr %20 to i64
  switch i64 %magicptr, label %21 [
    i64 0, label %.loopexit98
    i64 2, label %.preheader97.outer
  ], !llvm.loop !20

21:                                               ; preds = %.preheader97
  %22 = getelementptr inbounds i8, ptr %20, i64 112
  %23 = load i32, ptr %22, align 8
  %24 = and i32 %23, -16385
  store i32 %24, ptr %22, align 8
  br label %.preheader97, !llvm.loop !20

.loopexit98:                                      ; preds = %.preheader97, %15
  %.2 = phi i32 [ 0, %15 ], [ %.0.ph, %.preheader97 ]
  %25 = getelementptr inbounds i8, ptr %1, i64 72
  %26 = load ptr, ptr %25, align 8, !tbaa !22
  %.not84 = icmp eq ptr %26, null
  br i1 %.not84, label %.loopexit96, label %.preheader95

.preheader95:                                     ; preds = %.loopexit98
  %.07599 = getelementptr inbounds i8, ptr %26, i64 8
  %27 = load ptr, ptr %.07599, align 8, !tbaa !19
  %.not86100 = icmp eq ptr %27, null
  br i1 %.not86100, label %.loopexit96, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader95, %35
  %28 = phi ptr [ %40, %35 ], [ %27, %.preheader95 ]
  %.075101 = phi ptr [ %.075, %35 ], [ %.07599, %.preheader95 ]
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !23
  %31 = icmp eq ptr %30, %1
  br i1 %31, label %32, label %35

32:                                               ; preds = %.lr.ph
  %33 = getelementptr inbounds i8, ptr %28, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  br label %35

35:                                               ; preds = %.lr.ph, %32
  %36 = phi ptr [ %34, %32 ], [ %30, %.lr.ph ]
  %37 = getelementptr inbounds i8, ptr %36, i64 112
  %38 = load i32, ptr %37, align 8
  %39 = or i32 %38, 16384
  store i32 %39, ptr %37, align 8
  %.075 = getelementptr inbounds i8, ptr %.075101, i64 8
  %40 = load ptr, ptr %.075, align 8, !tbaa !19
  %.not86 = icmp eq ptr %40, null
  br i1 %.not86, label %.loopexit96, label %.lr.ph, !llvm.loop !26

.loopexit96:                                      ; preds = %35, %.preheader95, %.loopexit98
  %41 = load ptr, ptr %18, align 8, !tbaa !18
  %.not87 = icmp eq ptr %41, null
  br i1 %.not87, label %.loopexit94, label %42

42:                                               ; preds = %.loopexit96
  %43 = getelementptr inbounds i8, ptr %41, i64 8
  %44 = load ptr, ptr %43, align 8, !tbaa !27
  %45 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef nonnull %41) #2
  %46 = icmp sgt i32 %45, 0
  br i1 %46, label %.lr.ph104, label %.loopexit94

.lr.ph104:                                        ; preds = %42
  %47 = getelementptr inbounds i8, ptr %1, i64 64
  %48 = getelementptr inbounds i8, ptr %0, i64 632
  %49 = icmp ne i32 %.2, 0
  %50 = getelementptr inbounds i8, ptr %0, i64 2424
  %51 = getelementptr inbounds i8, ptr %1, i64 108
  %52 = getelementptr inbounds i8, ptr %0, i64 2588
  %53 = getelementptr inbounds i8, ptr %0, i64 2512
  %54 = getelementptr inbounds i8, ptr %0, i64 2520
  %wide.trip.count = zext nneg i32 %45 to i64
  br label %55

55:                                               ; preds = %.lr.ph104, %113
  %indvars.iv = phi i64 [ 0, %.lr.ph104 ], [ %indvars.iv.next, %113 ]
  %.072103 = phi ptr [ %44, %.lr.ph104 ], [ %117, %113 ]
  %56 = icmp eq ptr %.072103, inttoptr (i64 2 to ptr)
  br i1 %56, label %113, label %57

57:                                               ; preds = %55
  %58 = getelementptr inbounds i8, ptr %.072103, i64 112
  %59 = load i32, ptr %58, align 8
  %60 = and i32 %59, 16384
  %.not90 = icmp eq i32 %60, 0
  br i1 %.not90, label %61, label %113

61:                                               ; preds = %57
  %62 = tail call ptr @qh_newridge(ptr noundef %0) #2
  %63 = load ptr, ptr %47, align 8, !tbaa !28
  %64 = load i32, ptr %48, align 8, !tbaa !29
  %65 = trunc nuw nsw i64 %indvars.iv to i32
  %66 = tail call ptr @qh_setnew_delnthsorted(ptr noundef %0, ptr noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef 0) #2
  store ptr %66, ptr %62, align 8, !tbaa !30
  %67 = load i32, ptr %3, align 8
  %68 = lshr i32 %67, 12
  %69 = xor i32 %68, %65
  %70 = and i32 %69, 1
  %.not91 = icmp eq i32 %70, 0
  %71 = getelementptr inbounds i8, ptr %62, i64 8
  %72 = getelementptr inbounds i8, ptr %62, i64 16
  br i1 %.not91, label %81, label %73

73:                                               ; preds = %61
  store ptr %1, ptr %71, align 8, !tbaa !23
  store ptr %.072103, ptr %72, align 8, !tbaa !25
  %74 = getelementptr inbounds i8, ptr %62, i64 28
  %75 = load i8, ptr %74, align 4
  %76 = or i8 %75, 32
  store i8 %76, ptr %74, align 4
  %77 = load i32, ptr %58, align 8
  %sh.diff92 = lshr i32 %77, 7
  %tr.sh.diff93 = trunc i32 %sh.diff92 to i8
  %78 = and i8 %tr.sh.diff93, 64
  %79 = and i8 %76, -65
  %80 = or disjoint i8 %78, %79
  store i8 %80, ptr %74, align 4
  br label %89

81:                                               ; preds = %61
  store ptr %.072103, ptr %71, align 8, !tbaa !23
  store ptr %1, ptr %72, align 8, !tbaa !25
  %82 = load i32, ptr %58, align 8
  %83 = getelementptr inbounds i8, ptr %62, i64 28
  %84 = load i8, ptr %83, align 4
  %sh.diff = lshr i32 %82, 8
  %tr.sh.diff = trunc i32 %sh.diff to i8
  %85 = and i8 %tr.sh.diff, 32
  %86 = and i8 %84, -97
  %87 = or disjoint i8 %86, %85
  %88 = or disjoint i8 %87, 64
  store i8 %88, ptr %83, align 4
  br label %89

89:                                               ; preds = %81, %73
  %90 = phi i8 [ %88, %81 ], [ %80, %73 ]
  %91 = load i32, ptr %3, align 8
  %92 = and i32 %91, 134217728
  %93 = icmp eq i32 %92, 0
  %or.cond = or i1 %93, %49
  br i1 %or.cond, label %97, label %94

94:                                               ; preds = %89
  %95 = getelementptr inbounds i8, ptr %62, i64 28
  %96 = or i8 %90, 2
  store i8 %96, ptr %95, align 4
  br label %97

97:                                               ; preds = %94, %89
  tail call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %25, ptr noundef nonnull %62) #2
  %98 = load i32, ptr %7, align 8, !tbaa !5
  %99 = icmp sgt i32 %98, 4
  br i1 %99, label %100, label %107

100:                                              ; preds = %97
  %101 = load ptr, ptr %50, align 8, !tbaa !15
  %102 = getelementptr inbounds i8, ptr %62, i64 24
  %103 = load i32, ptr %102, align 8, !tbaa !31
  %104 = load i32, ptr %51, align 4, !tbaa !16
  %105 = getelementptr inbounds i8, ptr %.072103, i64 108
  %106 = load i32, ptr %105, align 4, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %101, i32 noundef 5005, ptr noundef nonnull @.str.102, i32 noundef %103, i32 noundef %104, i32 noundef %106) #2
  br label %107

107:                                              ; preds = %100, %97
  %108 = getelementptr inbounds i8, ptr %.072103, i64 72
  tail call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %108, ptr noundef nonnull %62) #2
  %109 = load i32, ptr %52, align 4, !tbaa !32
  %110 = load i32, ptr %53, align 8, !tbaa !33
  %111 = icmp eq i32 %109, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  store ptr %62, ptr %54, align 8, !tbaa !34
  br label %113

113:                                              ; preds = %107, %112, %57, %55
  %114 = load ptr, ptr %18, align 8, !tbaa !18
  %115 = getelementptr inbounds i8, ptr %114, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %116 = getelementptr inbounds [1 x %union.setelemT], ptr %115, i64 0, i64 %indvars.iv.next
  %117 = load ptr, ptr %116, align 8, !tbaa !27
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit94, label %55, !llvm.loop !35

.loopexit94:                                      ; preds = %113, %42, %.loopexit96
  %.not88 = icmp eq i32 %.2, 0
  br i1 %.not88, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit94, %.preheader
  %118 = load ptr, ptr %18, align 8, !tbaa !18
  %119 = tail call ptr @qh_setdel(ptr noundef %118, ptr noundef nonnull inttoptr (i64 2 to ptr)) #2
  %.not89 = icmp eq ptr %119, null
  br i1 %.not89, label %.loopexit, label %.preheader, !llvm.loop !36

.loopexit:                                        ; preds = %.preheader, %.loopexit94, %2
  ret void
}

declare ptr @qh_newridge(ptr noundef) local_unnamed_addr #0

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

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

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


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