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

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

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

@qh_qh = external global %struct.qhT, align 8
@.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, 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) #1

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

18:                                               ; preds = %1
  store i32 1, ptr %11, align 4
  br label %269

19:                                               ; preds = %1
  %20 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %21 = icmp sge i32 %20, 4
  br i1 %21, label %22, label %27

22:                                               ; preds = %19
  %23 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.facetT, ptr %24, i32 0, i32 14
  %26 = load i32, ptr %25, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %23, i32 noundef 4027, ptr noundef @.str.101, i32 noundef %26)
  br label %27

27:                                               ; preds = %22, %19
  %28 = load ptr, ptr %2, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 15
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, -8193
  %32 = or i32 %31, 0
  store i32 %32, ptr %29, align 8
  store ptr null, ptr %3, align 8, !tbaa !5
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.facetT, ptr %33, i32 0, i32 10
  %35 = load ptr, ptr %34, align 8, !tbaa !18
  %36 = icmp ne ptr %35, null
  br i1 %36, label %37, label %60

37:                                               ; preds = %27
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.facetT, ptr %38, i32 0, i32 10
  %40 = load ptr, ptr %39, align 8, !tbaa !18
  %41 = getelementptr inbounds %struct.setT, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [1 x %union.setelemT], ptr %41, i64 0, i64 0
  store ptr %42, ptr %4, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %58, %37
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i32 1
  store ptr %45, ptr %4, align 8, !tbaa !5
  %46 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %46, ptr %3, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %59

48:                                               ; preds = %43
  %49 = load ptr, ptr %3, align 8, !tbaa !5
  %50 = icmp eq ptr %49, inttoptr (i64 2 to ptr)
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %58

52:                                               ; preds = %48
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.facetT, ptr %53, i32 0, i32 15
  %55 = load i32, ptr %54, align 8
  %56 = and i32 %55, -16385
  %57 = or i32 %56, 0
  store i32 %57, ptr %54, align 8
  br label %58

58:                                               ; preds = %52, %51
  br label %43, !llvm.loop !19

59:                                               ; preds = %43
  br label %60

60:                                               ; preds = %59, %27
  store ptr null, ptr %5, align 8, !tbaa !5
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.facetT, ptr %61, i32 0, i32 9
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %97

65:                                               ; preds = %60
  %66 = load ptr, ptr %2, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.facetT, ptr %66, i32 0, i32 9
  %68 = load ptr, ptr %67, align 8, !tbaa !21
  %69 = getelementptr inbounds %struct.setT, ptr %68, i32 0, i32 1
  %70 = getelementptr inbounds [1 x %union.setelemT], ptr %69, i64 0, i64 0
  store ptr %70, ptr %6, align 8, !tbaa !5
  br label %71

71:                                               ; preds = %90, %65
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds ptr, ptr %72, i32 1
  store ptr %73, ptr %6, align 8, !tbaa !5
  %74 = load ptr, ptr %72, align 8, !tbaa !5
  store ptr %74, ptr %5, align 8, !tbaa !5
  %75 = icmp ne ptr %74, null
  br i1 %75, label %76, label %96

76:                                               ; preds = %71
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ridgeT, ptr %77, i32 0, i32 1
  %79 = load ptr, ptr %78, align 8, !tbaa !22
  %80 = load ptr, ptr %2, align 8, !tbaa !5
  %81 = icmp eq ptr %79, %80
  br i1 %81, label %82, label %86

82:                                               ; preds = %76
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.ridgeT, ptr %83, i32 0, i32 2
  %85 = load ptr, ptr %84, align 8, !tbaa !24
  br label %90

86:                                               ; preds = %76
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.ridgeT, ptr %87, i32 0, i32 1
  %89 = load ptr, ptr %88, align 8, !tbaa !22
  br label %90

90:                                               ; preds = %86, %82
  %91 = phi ptr [ %85, %82 ], [ %89, %86 ]
  %92 = getelementptr inbounds %struct.facetT, ptr %91, i32 0, i32 15
  %93 = load i32, ptr %92, align 8
  %94 = and i32 %93, -16385
  %95 = or i32 %94, 16384
  store i32 %95, ptr %92, align 8
  br label %71, !llvm.loop !25

96:                                               ; preds = %71
  br label %97

97:                                               ; preds = %96, %60
  store ptr null, ptr %3, align 8, !tbaa !5
  %98 = load ptr, ptr %2, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 10
  %100 = load ptr, ptr %99, align 8, !tbaa !18
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %256

102:                                              ; preds = %97
  store i32 0, ptr %7, align 4, !tbaa !9
  %103 = load ptr, ptr %2, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.facetT, ptr %103, i32 0, i32 10
  %105 = load ptr, ptr %104, align 8, !tbaa !18
  %106 = getelementptr inbounds %struct.setT, ptr %105, i32 0, i32 1
  %107 = getelementptr inbounds [1 x %union.setelemT], ptr %106, i64 0, i64 0
  %108 = load ptr, ptr %107, align 8, !tbaa !26
  store ptr %108, ptr %3, align 8, !tbaa !5
  %109 = load ptr, ptr %2, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 10
  %111 = load ptr, ptr %110, align 8, !tbaa !18
  %112 = call i32 @qh_setsize(ptr noundef %111)
  store i32 %112, ptr %8, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %245, %102
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = icmp slt i32 %114, %115
  br i1 %116, label %117, label %255

117:                                              ; preds = %113
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = icmp eq ptr %118, inttoptr (i64 2 to ptr)
  br i1 %119, label %120, label %121

120:                                              ; preds = %117
  br label %245

121:                                              ; preds = %117
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 15
  %124 = load i32, ptr %123, align 8
  %125 = lshr i32 %124, 14
  %126 = and i32 %125, 1
  %127 = icmp ne i32 %126, 0
  br i1 %127, label %243, label %128

128:                                              ; preds = %121
  %129 = call ptr @qh_newridge()
  store ptr %129, ptr %5, align 8, !tbaa !5
  %130 = load ptr, ptr %2, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 8
  %132 = load ptr, ptr %131, align 8, !tbaa !27
  %133 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !28
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = call ptr @qh_setnew_delnthsorted(ptr noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef 0)
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ridgeT, ptr %136, i32 0, i32 0
  store ptr %135, ptr %137, align 8, !tbaa !29
  %138 = load ptr, ptr %2, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 15
  %140 = load i32, ptr %139, align 8
  %141 = lshr i32 %140, 12
  %142 = and i32 %141, 1
  %143 = load i32, ptr %7, align 4, !tbaa !9
  %144 = and i32 %143, 1
  %145 = xor i32 %142, %144
  store i32 %145, ptr %9, align 4, !tbaa !9
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = icmp ne i32 %146, 0
  br i1 %147, label %148, label %174

148:                                              ; preds = %128
  %149 = load ptr, ptr %2, align 8, !tbaa !5
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ridgeT, ptr %150, i32 0, i32 1
  store ptr %149, ptr %151, align 8, !tbaa !22
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ridgeT, ptr %153, i32 0, i32 2
  store ptr %152, ptr %154, align 8, !tbaa !24
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.ridgeT, ptr %155, i32 0, i32 4
  %157 = load i8, ptr %156, align 4
  %158 = and i8 %157, -33
  %159 = or i8 %158, 32
  store i8 %159, ptr %156, align 4
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.facetT, ptr %160, i32 0, i32 15
  %162 = load i32, ptr %161, align 8
  %163 = lshr i32 %162, 13
  %164 = and i32 %163, 1
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.ridgeT, ptr %165, i32 0, i32 4
  %167 = trunc i32 %164 to i8
  %168 = load i8, ptr %166, align 4
  %169 = and i8 %167, 1
  %170 = shl i8 %169, 6
  %171 = and i8 %168, -65
  %172 = or i8 %171, %170
  store i8 %172, ptr %166, align 4
  %173 = zext i8 %169 to i32
  br label %200

174:                                              ; preds = %128
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = load ptr, ptr %5, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.ridgeT, ptr %176, i32 0, i32 1
  store ptr %175, ptr %177, align 8, !tbaa !22
  %178 = load ptr, ptr %2, align 8, !tbaa !5
  %179 = load ptr, ptr %5, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.ridgeT, ptr %179, i32 0, i32 2
  store ptr %178, ptr %180, align 8, !tbaa !24
  %181 = load ptr, ptr %3, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.facetT, ptr %181, i32 0, i32 15
  %183 = load i32, ptr %182, align 8
  %184 = lshr i32 %183, 13
  %185 = and i32 %184, 1
  %186 = load ptr, ptr %5, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.ridgeT, ptr %186, i32 0, i32 4
  %188 = trunc i32 %185 to i8
  %189 = load i8, ptr %187, align 4
  %190 = and i8 %188, 1
  %191 = shl i8 %190, 5
  %192 = and i8 %189, -33
  %193 = or i8 %192, %191
  store i8 %193, ptr %187, align 4
  %194 = zext i8 %190 to i32
  %195 = load ptr, ptr %5, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ridgeT, ptr %195, i32 0, i32 4
  %197 = load i8, ptr %196, align 4
  %198 = and i8 %197, -65
  %199 = or i8 %198, 64
  store i8 %199, ptr %196, align 4
  br label %200

200:                                              ; preds = %174, %148
  %201 = load ptr, ptr %2, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 15
  %203 = load i32, ptr %202, align 8
  %204 = lshr i32 %203, 27
  %205 = and i32 %204, 1
  %206 = icmp ne i32 %205, 0
  br i1 %206, label %207, label %216

207:                                              ; preds = %200
  %208 = load i32, ptr %10, align 4, !tbaa !9
  %209 = icmp ne i32 %208, 0
  br i1 %209, label %216, label %210

210:                                              ; preds = %207
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.ridgeT, ptr %211, i32 0, i32 4
  %213 = load i8, ptr %212, align 4
  %214 = and i8 %213, -3
  %215 = or i8 %214, 2
  store i8 %215, ptr %212, align 4
  br label %216

216:                                              ; preds = %210, %207, %200
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.facetT, ptr %217, i32 0, i32 9
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %218, ptr noundef %219)
  %220 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !11
  %221 = icmp sge i32 %220, 5
  br i1 %221, label %222, label %233

222:                                              ; preds = %216
  %223 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !15
  %224 = load ptr, ptr %5, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.ridgeT, ptr %224, i32 0, i32 3
  %226 = load i32, ptr %225, align 8, !tbaa !30
  %227 = load ptr, ptr %2, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.facetT, ptr %227, i32 0, i32 14
  %229 = load i32, ptr %228, align 4, !tbaa !16
  %230 = load ptr, ptr %3, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 14
  %232 = load i32, ptr %231, align 4, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %223, i32 noundef 5005, ptr noundef @.str.102, i32 noundef %226, i32 noundef %229, i32 noundef %232)
  br label %233

233:                                              ; preds = %222, %216
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.facetT, ptr %234, i32 0, i32 9
  %236 = load ptr, ptr %5, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %235, ptr noundef %236)
  %237 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 183), align 4, !tbaa !31
  %238 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 171), align 8, !tbaa !32
  %239 = icmp eq i32 %237, %238
  br i1 %239, label %240, label %242

240:                                              ; preds = %233
  %241 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %241, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 172), align 8, !tbaa !33
  br label %242

242:                                              ; preds = %240, %233
  br label %243

243:                                              ; preds = %242, %121
  br label %244

244:                                              ; preds = %243
  br label %245

245:                                              ; preds = %244, %120
  %246 = load ptr, ptr %2, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.facetT, ptr %246, i32 0, i32 10
  %248 = load ptr, ptr %247, align 8, !tbaa !18
  %249 = getelementptr inbounds %struct.setT, ptr %248, i32 0, i32 1
  %250 = load i32, ptr %7, align 4, !tbaa !9
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %7, align 4, !tbaa !9
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds [1 x %union.setelemT], ptr %249, i64 0, i64 %252
  %254 = load ptr, ptr %253, align 8, !tbaa !26
  store ptr %254, ptr %3, align 8, !tbaa !5
  br label %113, !llvm.loop !34

255:                                              ; preds = %113
  br label %256

256:                                              ; preds = %255, %97
  %257 = load i32, ptr %10, align 4, !tbaa !9
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %268

259:                                              ; preds = %256
  br label %260

260:                                              ; preds = %266, %259
  %261 = load ptr, ptr %2, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.facetT, ptr %261, i32 0, i32 10
  %263 = load ptr, ptr %262, align 8, !tbaa !18
  %264 = call ptr @qh_setdel(ptr noundef %263, ptr noundef inttoptr (i64 2 to ptr))
  %265 = icmp ne ptr %264, null
  br i1 %265, label %266, label %267

266:                                              ; preds = %260
  br label %260, !llvm.loop !35

267:                                              ; preds = %260
  br label %268

268:                                              ; preds = %267, %256
  store i32 0, ptr %11, align 4
  br label %269

269:                                              ; preds = %268, %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  %270 = load i32, ptr %11, align 4
  switch i32 %270, label %272 [
    i32 0, label %271
    i32 1, label %271
  ]

271:                                              ; preds = %269, %269
  ret void

272:                                              ; preds = %269
  unreachable
}

declare ptr @qh_newridge() #1

declare ptr @qh_setnew_delnthsorted(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, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !6, i64 2424}
!16 = !{!17, !10, i64 108}
!17 = !{!"facetT", !13, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !7, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 113, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 114, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115, !10, i64 115}
!18 = !{!17, !6, i64 80}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!17, !6, i64 72}
!22 = !{!23, !6, i64 8}
!23 = !{!"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}
!24 = !{!23, !6, i64 16}
!25 = distinct !{!25, !20}
!26 = !{!7, !7, i64 0}
!27 = !{!17, !6, i64 64}
!28 = !{!12, !10, i64 632}
!29 = !{!23, !6, i64 0}
!30 = !{!23, !10, i64 24}
!31 = !{!12, !10, i64 2588}
!32 = !{!12, !10, i64 2512}
!33 = !{!12, !6, i64 2520}
!34 = distinct !{!34, !20}
!35 = distinct !{!35, !20}


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

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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.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, i32 noundef, ptr noundef, ...) local_unnamed_addr #0

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

declare void @qh_setappend(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) local_unnamed_addr #1 {
  %2 = getelementptr inbounds i8, ptr %0, i64 112
  %3 = load i32, ptr %2, align 8
  %4 = and i32 %3, 8192
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %.loopexit, label %5

5:                                                ; preds = %1
  %6 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %7 = icmp sgt i32 %6, 3
  br i1 %7, label %8, label %12

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

12:                                               ; preds = %8, %5
  %13 = phi i32 [ %.pre, %8 ], [ %3, %5 ]
  %14 = and i32 %13, -8193
  store i32 %14, ptr %2, align 8
  %15 = getelementptr inbounds i8, ptr %0, i64 80
  %16 = load ptr, ptr %15, align 8, !tbaa !16
  %.not67 = icmp eq ptr %16, null
  br i1 %.not67, label %.loopexit83, label %.preheader82.outer

.preheader82.outer:                               ; preds = %.preheader82, %12
  %.pn.ph = phi ptr [ %16, %12 ], [ %.058, %.preheader82 ]
  %.0.ph = phi i32 [ 0, %12 ], [ 1, %.preheader82 ]
  br label %.preheader82

.preheader82:                                     ; preds = %.preheader82.outer, %18
  %.pn = phi ptr [ %.058, %18 ], [ %.pn.ph, %.preheader82.outer ]
  %.058 = getelementptr inbounds i8, ptr %.pn, i64 8
  %17 = load ptr, ptr %.058, align 8, !tbaa !17
  %magicptr = ptrtoint ptr %17 to i64
  switch i64 %magicptr, label %18 [
    i64 0, label %.loopexit83
    i64 2, label %.preheader82.outer
  ], !llvm.loop !18

18:                                               ; preds = %.preheader82
  %19 = getelementptr inbounds i8, ptr %17, i64 112
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, -16385
  store i32 %21, ptr %19, align 8
  br label %.preheader82, !llvm.loop !18

.loopexit83:                                      ; preds = %.preheader82, %12
  %.2 = phi i32 [ 0, %12 ], [ %.0.ph, %.preheader82 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 72
  %23 = load ptr, ptr %22, align 8, !tbaa !20
  %.not69 = icmp eq ptr %23, null
  br i1 %.not69, label %.loopexit81, label %.preheader80

.preheader80:                                     ; preds = %.loopexit83
  %.06084 = getelementptr inbounds i8, ptr %23, i64 8
  %24 = load ptr, ptr %.06084, align 8, !tbaa !17
  %.not7185 = icmp eq ptr %24, null
  br i1 %.not7185, label %.loopexit81, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader80, %32
  %25 = phi ptr [ %37, %32 ], [ %24, %.preheader80 ]
  %.06086 = phi ptr [ %.060, %32 ], [ %.06084, %.preheader80 ]
  %26 = getelementptr inbounds i8, ptr %25, i64 8
  %27 = load ptr, ptr %26, align 8, !tbaa !21
  %28 = icmp eq ptr %27, %0
  br i1 %28, label %29, label %32

29:                                               ; preds = %.lr.ph
  %30 = getelementptr inbounds i8, ptr %25, i64 16
  %31 = load ptr, ptr %30, align 8, !tbaa !23
  br label %32

32:                                               ; preds = %.lr.ph, %29
  %33 = phi ptr [ %31, %29 ], [ %27, %.lr.ph ]
  %34 = getelementptr inbounds i8, ptr %33, i64 112
  %35 = load i32, ptr %34, align 8
  %36 = or i32 %35, 16384
  store i32 %36, ptr %34, align 8
  %.060 = getelementptr inbounds i8, ptr %.06086, i64 8
  %37 = load ptr, ptr %.060, align 8, !tbaa !17
  %.not71 = icmp eq ptr %37, null
  br i1 %.not71, label %.loopexit81, label %.lr.ph, !llvm.loop !24

.loopexit81:                                      ; preds = %32, %.preheader80, %.loopexit83
  %38 = load ptr, ptr %15, align 8, !tbaa !16
  %.not72 = icmp eq ptr %38, null
  br i1 %.not72, label %.loopexit79, label %39

39:                                               ; preds = %.loopexit81
  %40 = getelementptr inbounds i8, ptr %38, i64 8
  %41 = load ptr, ptr %40, align 8, !tbaa !25
  %42 = tail call i32 @qh_setsize(ptr noundef nonnull %38) #2
  %43 = icmp sgt i32 %42, 0
  br i1 %43, label %.lr.ph89, label %.loopexit79

.lr.ph89:                                         ; preds = %39
  %44 = getelementptr inbounds i8, ptr %0, i64 64
  %45 = icmp ne i32 %.2, 0
  %46 = getelementptr inbounds i8, ptr %0, i64 108
  %wide.trip.count = zext nneg i32 %42 to i64
  br label %47

47:                                               ; preds = %.lr.ph89, %105
  %indvars.iv = phi i64 [ 0, %.lr.ph89 ], [ %indvars.iv.next, %105 ]
  %.05788 = phi ptr [ %41, %.lr.ph89 ], [ %109, %105 ]
  %48 = icmp eq ptr %.05788, inttoptr (i64 2 to ptr)
  br i1 %48, label %105, label %49

49:                                               ; preds = %47
  %50 = getelementptr inbounds i8, ptr %.05788, i64 112
  %51 = load i32, ptr %50, align 8
  %52 = and i32 %51, 16384
  %.not75 = icmp eq i32 %52, 0
  br i1 %.not75, label %53, label %105

53:                                               ; preds = %49
  %54 = tail call ptr @qh_newridge() #2
  %55 = load ptr, ptr %44, align 8, !tbaa !26
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !27
  %57 = trunc nuw nsw i64 %indvars.iv to i32
  %58 = tail call ptr @qh_setnew_delnthsorted(ptr noundef %55, i32 noundef %56, i32 noundef %57, i32 noundef 0) #2
  store ptr %58, ptr %54, align 8, !tbaa !28
  %59 = load i32, ptr %2, align 8
  %60 = lshr i32 %59, 12
  %61 = xor i32 %60, %57
  %62 = and i32 %61, 1
  %.not76 = icmp eq i32 %62, 0
  %63 = getelementptr inbounds i8, ptr %54, i64 8
  %64 = getelementptr inbounds i8, ptr %54, i64 16
  br i1 %.not76, label %73, label %65

65:                                               ; preds = %53
  store ptr %0, ptr %63, align 8, !tbaa !21
  store ptr %.05788, ptr %64, align 8, !tbaa !23
  %66 = getelementptr inbounds i8, ptr %54, i64 28
  %67 = load i8, ptr %66, align 4
  %68 = or i8 %67, 32
  store i8 %68, ptr %66, align 4
  %69 = load i32, ptr %50, align 8
  %sh.diff77 = lshr i32 %69, 7
  %tr.sh.diff78 = trunc i32 %sh.diff77 to i8
  %70 = and i8 %tr.sh.diff78, 64
  %71 = and i8 %68, -65
  %72 = or disjoint i8 %70, %71
  store i8 %72, ptr %66, align 4
  br label %81

73:                                               ; preds = %53
  store ptr %.05788, ptr %63, align 8, !tbaa !21
  store ptr %0, ptr %64, align 8, !tbaa !23
  %74 = load i32, ptr %50, align 8
  %75 = getelementptr inbounds i8, ptr %54, i64 28
  %76 = load i8, ptr %75, align 4
  %sh.diff = lshr i32 %74, 8
  %tr.sh.diff = trunc i32 %sh.diff to i8
  %77 = and i8 %tr.sh.diff, 32
  %78 = and i8 %76, -97
  %79 = or disjoint i8 %78, %77
  %80 = or disjoint i8 %79, 64
  store i8 %80, ptr %75, align 4
  br label %81

81:                                               ; preds = %73, %65
  %82 = phi i8 [ %80, %73 ], [ %72, %65 ]
  %83 = load i32, ptr %2, align 8
  %84 = and i32 %83, 134217728
  %85 = icmp eq i32 %84, 0
  %or.cond = or i1 %85, %45
  br i1 %or.cond, label %89, label %86

86:                                               ; preds = %81
  %87 = getelementptr inbounds i8, ptr %54, i64 28
  %88 = or i8 %82, 2
  store i8 %88, ptr %87, align 4
  br label %89

89:                                               ; preds = %86, %81
  tail call void @qh_setappend(ptr noundef nonnull %22, ptr noundef nonnull %54) #2
  %90 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %91 = icmp sgt i32 %90, 4
  br i1 %91, label %92, label %99

92:                                               ; preds = %89
  %93 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %94 = getelementptr inbounds i8, ptr %54, i64 24
  %95 = load i32, ptr %94, align 8, !tbaa !29
  %96 = load i32, ptr %46, align 4, !tbaa !14
  %97 = getelementptr inbounds i8, ptr %.05788, i64 108
  %98 = load i32, ptr %97, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %93, i32 noundef 5005, ptr noundef nonnull @.str.102, i32 noundef %95, i32 noundef %96, i32 noundef %98) #2
  br label %99

99:                                               ; preds = %92, %89
  %100 = getelementptr inbounds i8, ptr %.05788, i64 72
  tail call void @qh_setappend(ptr noundef nonnull %100, ptr noundef nonnull %54) #2
  %101 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2588), align 4, !tbaa !30
  %102 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2512), align 8, !tbaa !31
  %103 = icmp eq i32 %101, %102
  br i1 %103, label %104, label %105

104:                                              ; preds = %99
  store ptr %54, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2520), align 8, !tbaa !32
  br label %105

105:                                              ; preds = %99, %104, %49, %47
  %106 = load ptr, ptr %15, align 8, !tbaa !16
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %108 = getelementptr inbounds [1 x %union.setelemT], ptr %107, i64 0, i64 %indvars.iv.next
  %109 = load ptr, ptr %108, align 8, !tbaa !25
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit79, label %47, !llvm.loop !33

.loopexit79:                                      ; preds = %105, %39, %.loopexit81
  %.not73 = icmp eq i32 %.2, 0
  br i1 %.not73, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %.loopexit79, %.preheader
  %110 = load ptr, ptr %15, align 8, !tbaa !16
  %111 = tail call ptr @qh_setdel(ptr noundef %110, ptr noundef nonnull inttoptr (i64 2 to ptr)) #2
  %.not74 = icmp eq ptr %111, null
  br i1 %.not74, label %.loopexit, label %.preheader, !llvm.loop !34

.loopexit:                                        ; preds = %.preheader, %.loopexit79, %1
  ret void
}

declare ptr @qh_newridge() local_unnamed_addr #0

declare ptr @qh_setnew_delnthsorted(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, !11, i64 2984, !7, i64 2992}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!"long", !8, i64 0}
!13 = !{!6, !11, i64 2424}
!14 = !{!15, !7, i64 108}
!15 = !{!"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}
!16 = !{!15, !11, i64 80}
!17 = !{!11, !11, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!15, !11, i64 72}
!21 = !{!22, !11, i64 8}
!22 = !{!"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}
!23 = !{!22, !11, i64 16}
!24 = distinct !{!24, !19}
!25 = !{!8, !8, i64 0}
!26 = !{!15, !11, i64 64}
!27 = !{!6, !7, i64 632}
!28 = !{!22, !11, i64 0}
!29 = !{!22, !7, i64 24}
!30 = !{!6, !7, i64 2588}
!31 = !{!6, !7, i64 2512}
!32 = !{!6, !11, i64 2520}
!33 = distinct !{!33, !19}
!34 = distinct !{!34, !19}


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