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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@qhmem = external global %struct.qhmemT, align 8
@.str.83 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [101 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: nounwind uwtable
define dso_local void @qh_forcedmerges(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 ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = 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 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 0, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  store i32 0, ptr %20, align 4, !tbaa !9
  %21 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !11
  %22 = sub nsw i32 %21, 1
  %23 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !15
  %24 = icmp eq i32 %22, %23
  br i1 %24, label %25, label %27

25:                                               ; preds = %1
  %26 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !16
  store i32 %26, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  store i32 %26, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !18
  br label %27

27:                                               ; preds = %25, %1
  %28 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  %29 = icmp sge i32 %28, 3
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %31, i32 noundef 3054, ptr noundef @.str.83)
  br label %32

32:                                               ; preds = %30, %27
  %33 = call ptr @qh_settemppop()
  store ptr %33, ptr %16, align 8, !tbaa !5
  %34 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !21
  %35 = load ptr, ptr %16, align 8, !tbaa !5
  %36 = icmp ne ptr %34, %35
  br i1 %36, label %37, label %43

37:                                               ; preds = %32
  %38 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %39 = load ptr, ptr %16, align 8, !tbaa !5
  %40 = call i32 @qh_setsize(ptr noundef %39)
  %41 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !21
  %42 = call i32 @qh_setsize(ptr noundef %41)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %38, i32 noundef 6279, ptr noundef @.str.84, i32 noundef %40, i32 noundef %42)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %43

43:                                               ; preds = %37, %32
  %44 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 162), align 8, !tbaa !22
  %45 = call ptr @qh_settemp(i32 noundef %44)
  store ptr %45, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !21
  %46 = load ptr, ptr %16, align 8, !tbaa !5
  call void @qh_settemppush(ptr noundef %46)
  store ptr null, ptr %8, align 8, !tbaa !5
  %47 = load ptr, ptr %16, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %49, label %227

49:                                               ; preds = %43
  %50 = load ptr, ptr %16, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.setT, ptr %50, i32 0, i32 1
  %52 = getelementptr inbounds [1 x %union.setelemT], ptr %51, i64 0, i64 0
  store ptr %52, ptr %9, align 8, !tbaa !5
  br label %53

53:                                               ; preds = %225, %83, %63, %49
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds ptr, ptr %54, i32 1
  store ptr %55, ptr %9, align 8, !tbaa !5
  %56 = load ptr, ptr %54, align 8, !tbaa !5
  store ptr %56, ptr %8, align 8, !tbaa !5
  %57 = icmp ne ptr %56, null
  br i1 %57, label %58, label %226

58:                                               ; preds = %53
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.mergeT, ptr %59, i32 0, i32 8
  %61 = load i32, ptr %60, align 8, !tbaa !23
  %62 = icmp ne i32 %61, 7
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  br label %53, !llvm.loop !25

64:                                               ; preds = %58
  store i32 1, ptr %20, align 4, !tbaa !9
  %65 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 96), align 8, !tbaa !11
  %66 = sub nsw i32 %65, 1
  %67 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !15
  %68 = icmp eq i32 %66, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %64
  %70 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 92), align 8, !tbaa !16
  store i32 %70, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  store i32 %70, ptr getelementptr inbounds (%struct.qhmemT, ptr @qhmem, i32 0, i32 14), align 8, !tbaa !18
  br label %71

71:                                               ; preds = %69, %64
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.mergeT, ptr %72, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !27
  %75 = call ptr @qh_getreplacement(ptr noundef %74)
  store ptr %75, ptr %3, align 8, !tbaa !5
  %76 = load ptr, ptr %8, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.mergeT, ptr %76, i32 0, i32 3
  %78 = load ptr, ptr %77, align 8, !tbaa !28
  %79 = call ptr @qh_getreplacement(ptr noundef %78)
  store ptr %79, ptr %4, align 8, !tbaa !5
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = icmp eq ptr %80, %81
  br i1 %82, label %83, label %84

83:                                               ; preds = %71
  br label %53, !llvm.loop !25

84:                                               ; preds = %71
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.facetT, ptr %85, i32 0, i32 10
  %87 = load ptr, ptr %86, align 8, !tbaa !29
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = call i32 @qh_setin(ptr noundef %87, ptr noundef %88)
  %90 = icmp ne i32 %89, 0
  br i1 %90, label %111, label %91

91:                                               ; preds = %84
  %92 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %93 = load ptr, ptr %8, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.mergeT, ptr %93, i32 0, i32 2
  %95 = load ptr, ptr %94, align 8, !tbaa !27
  %96 = getelementptr inbounds %struct.facetT, ptr %95, i32 0, i32 14
  %97 = load i32, ptr %96, align 4, !tbaa !31
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.mergeT, ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !28
  %101 = getelementptr inbounds %struct.facetT, ptr %100, i32 0, i32 14
  %102 = load i32, ptr %101, align 4, !tbaa !31
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.facetT, ptr %103, i32 0, i32 14
  %105 = load i32, ptr %104, align 4, !tbaa !31
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.facetT, ptr %106, i32 0, i32 14
  %108 = load i32, ptr %107, align 4, !tbaa !31
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %92, i32 noundef 6096, ptr noundef @.str.85, i32 noundef %97, i32 noundef %102, i32 noundef %105, i32 noundef %108)
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %109, ptr noundef %110)
  br label %111

111:                                              ; preds = %91, %84
  %112 = load ptr, ptr %3, align 8, !tbaa !5
  %113 = load ptr, ptr %4, align 8, !tbaa !5
  %114 = call double @qh_getdistance(ptr noundef %112, ptr noundef %113, ptr noundef %11, ptr noundef %12)
  store double %114, ptr %10, align 8, !tbaa !32
  %115 = load ptr, ptr %4, align 8, !tbaa !5
  %116 = load ptr, ptr %3, align 8, !tbaa !5
  %117 = call double @qh_getdistance(ptr noundef %115, ptr noundef %116, ptr noundef %14, ptr noundef %15)
  store double %117, ptr %13, align 8, !tbaa !32
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = load double, ptr %10, align 8, !tbaa !32
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load double, ptr %13, align 8, !tbaa !32
  call void @qh_check_dupridge(ptr noundef %118, double noundef %119, ptr noundef %120, double noundef %121)
  %122 = load double, ptr %10, align 8, !tbaa !32
  %123 = load double, ptr %13, align 8, !tbaa !32
  %124 = fcmp olt double %122, %123
  br i1 %124, label %125, label %156

125:                                              ; preds = %111
  %126 = load ptr, ptr %4, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.facetT, ptr %126, i32 0, i32 15
  %128 = load i32, ptr %127, align 8
  %129 = lshr i32 %128, 16
  %130 = and i32 %129, 1
  %131 = icmp ne i32 %130, 0
  br i1 %131, label %132, label %152

132:                                              ; preds = %125
  %133 = load ptr, ptr %3, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.facetT, ptr %133, i32 0, i32 15
  %135 = load i32, ptr %134, align 8
  %136 = lshr i32 %135, 16
  %137 = and i32 %136, 1
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %152, label %139

139:                                              ; preds = %132
  %140 = load double, ptr %13, align 8, !tbaa !32
  %141 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !33
  %142 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !34
  %143 = fadd double %141, %142
  %144 = fmul double 5.000000e+01, %143
  %145 = fcmp olt double %140, %144
  br i1 %145, label %146, label %152

146:                                              ; preds = %139
  %147 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %147, ptr %5, align 8, !tbaa !5
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %148, ptr %6, align 8, !tbaa !5
  %149 = load double, ptr %13, align 8, !tbaa !32
  store double %149, ptr %10, align 8, !tbaa !32
  %150 = load double, ptr %14, align 8, !tbaa !32
  store double %150, ptr %11, align 8, !tbaa !32
  %151 = load double, ptr %15, align 8, !tbaa !32
  store double %151, ptr %12, align 8, !tbaa !32
  br label %155

152:                                              ; preds = %139, %132, %125
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %153, ptr %5, align 8, !tbaa !5
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %154, ptr %6, align 8, !tbaa !5
  br label %155

155:                                              ; preds = %152, %146
  br label %187

156:                                              ; preds = %111
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.facetT, ptr %157, i32 0, i32 15
  %159 = load i32, ptr %158, align 8
  %160 = lshr i32 %159, 16
  %161 = and i32 %160, 1
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %180

163:                                              ; preds = %156
  %164 = load ptr, ptr %4, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.facetT, ptr %164, i32 0, i32 15
  %166 = load i32, ptr %165, align 8
  %167 = lshr i32 %166, 16
  %168 = and i32 %167, 1
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %180, label %170

170:                                              ; preds = %163
  %171 = load double, ptr %10, align 8, !tbaa !32
  %172 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 147), align 8, !tbaa !33
  %173 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 134), align 8, !tbaa !34
  %174 = fadd double %172, %173
  %175 = fmul double 5.000000e+01, %174
  %176 = fcmp olt double %171, %175
  br i1 %176, label %177, label %180

177:                                              ; preds = %170
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %178, ptr %5, align 8, !tbaa !5
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %179, ptr %6, align 8, !tbaa !5
  br label %186

180:                                              ; preds = %170, %163, %156
  %181 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %181, ptr %5, align 8, !tbaa !5
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  store ptr %182, ptr %6, align 8, !tbaa !5
  %183 = load double, ptr %13, align 8, !tbaa !32
  store double %183, ptr %10, align 8, !tbaa !32
  %184 = load double, ptr %14, align 8, !tbaa !32
  store double %184, ptr %11, align 8, !tbaa !32
  %185 = load double, ptr %15, align 8, !tbaa !32
  store double %185, ptr %12, align 8, !tbaa !32
  br label %186

186:                                              ; preds = %180, %177
  br label %187

187:                                              ; preds = %186, %155
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = load ptr, ptr %6, align 8, !tbaa !5
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.mergeT, ptr %190, i32 0, i32 8
  %192 = load i32, ptr %191, align 8, !tbaa !23
  call void @qh_mergefacet(ptr noundef %188, ptr noundef %189, i32 noundef %192, ptr noundef %11, ptr noundef %12, i32 noundef 0)
  %193 = call i32 @qh_merge_degenredundant()
  %194 = load i32, ptr %19, align 4, !tbaa !9
  %195 = add nsw i32 %194, %193
  store i32 %195, ptr %19, align 4, !tbaa !9
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.facetT, ptr %196, i32 0, i32 15
  %198 = load i32, ptr %197, align 8
  %199 = lshr i32 %198, 16
  %200 = and i32 %199, 1
  %201 = icmp ne i32 %200, 0
  br i1 %201, label %202, label %207

202:                                              ; preds = %187
  %203 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 127), align 8, !tbaa !15
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 127), align 8, !tbaa !15
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %18, align 4, !tbaa !9
  br label %210

207:                                              ; preds = %187
  %208 = load i32, ptr %17, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %17, align 4, !tbaa !9
  br label %210

210:                                              ; preds = %207, %202
  %211 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 67), align 8, !tbaa !35
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %213, label %225

213:                                              ; preds = %210
  %214 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 80), align 8, !tbaa !15
  %215 = add nsw i32 %214, 1
  store i32 %215, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 80), align 8, !tbaa !15
  %216 = load double, ptr %10, align 8, !tbaa !32
  %217 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 82), align 8, !tbaa !15
  %218 = fadd double %217, %216
  store double %218, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 82), align 8, !tbaa !15
  %219 = load double, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 81), align 8, !tbaa !15
  %220 = load double, ptr %10, align 8, !tbaa !32
  %221 = fcmp olt double %219, %220
  br i1 %221, label %222, label %224

222:                                              ; preds = %213
  %223 = load double, ptr %10, align 8, !tbaa !32
  store double %223, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 81), align 8, !tbaa !15
  br label %224

224:                                              ; preds = %222, %213
  br label %225

225:                                              ; preds = %224, %210
  br label %53, !llvm.loop !25

226:                                              ; preds = %53
  br label %227

227:                                              ; preds = %226, %43
  store ptr null, ptr %8, align 8, !tbaa !5
  %228 = load ptr, ptr %16, align 8, !tbaa !5
  %229 = icmp ne ptr %228, null
  br i1 %229, label %230, label %250

230:                                              ; preds = %227
  %231 = load ptr, ptr %16, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.setT, ptr %231, i32 0, i32 1
  %233 = getelementptr inbounds [1 x %union.setelemT], ptr %232, i64 0, i64 0
  store ptr %233, ptr %9, align 8, !tbaa !5
  br label %234

234:                                              ; preds = %248, %230
  %235 = load ptr, ptr %9, align 8, !tbaa !5
  %236 = getelementptr inbounds ptr, ptr %235, i32 1
  store ptr %236, ptr %9, align 8, !tbaa !5
  %237 = load ptr, ptr %235, align 8, !tbaa !5
  store ptr %237, ptr %8, align 8, !tbaa !5
  %238 = icmp ne ptr %237, null
  br i1 %238, label %239, label %249

239:                                              ; preds = %234
  %240 = load ptr, ptr %8, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.mergeT, ptr %240, i32 0, i32 8
  %242 = load i32, ptr %241, align 8, !tbaa !23
  %243 = icmp eq i32 %242, 7
  br i1 %243, label %244, label %246

244:                                              ; preds = %239
  %245 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_memfree(ptr noundef %245, i32 noundef 72)
  br label %248

246:                                              ; preds = %239
  %247 = load ptr, ptr %8, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), ptr noundef %247)
  br label %248

248:                                              ; preds = %246, %244
  br label %234, !llvm.loop !36

249:                                              ; preds = %234
  br label %250

250:                                              ; preds = %249, %227
  call void @qh_settempfree(ptr noundef %16)
  %251 = load i32, ptr %20, align 4, !tbaa !9
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %316

253:                                              ; preds = %250
  %254 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !37
  store ptr %254, ptr %7, align 8, !tbaa !5
  br label %255

255:                                              ; preds = %308, %253
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = icmp ne ptr %256, null
  br i1 %257, label %258, label %263

258:                                              ; preds = %255
  %259 = load ptr, ptr %7, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.facetT, ptr %259, i32 0, i32 7
  %261 = load ptr, ptr %260, align 8, !tbaa !38
  %262 = icmp ne ptr %261, null
  br label %263

263:                                              ; preds = %258, %255
  %264 = phi i1 [ false, %255 ], [ %262, %258 ]
  br i1 %264, label %265, label %312

265:                                              ; preds = %263
  %266 = load ptr, ptr %7, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.facetT, ptr %266, i32 0, i32 15
  %268 = load i32, ptr %267, align 8
  %269 = lshr i32 %268, 21
  %270 = and i32 %269, 1
  %271 = icmp ne i32 %270, 0
  br i1 %271, label %272, label %307

272:                                              ; preds = %265
  %273 = load ptr, ptr %7, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.facetT, ptr %273, i32 0, i32 15
  %275 = load i32, ptr %274, align 8
  %276 = and i32 %275, -2097153
  %277 = or i32 %276, 0
  store i32 %277, ptr %274, align 8
  %278 = load ptr, ptr %7, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.facetT, ptr %278, i32 0, i32 15
  %280 = load i32, ptr %279, align 8
  %281 = and i32 %280, -4194305
  %282 = or i32 %281, 0
  store i32 %282, ptr %279, align 8
  %283 = load ptr, ptr %7, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.facetT, ptr %283, i32 0, i32 15
  %285 = load i32, ptr %284, align 8
  %286 = and i32 %285, -8388609
  %287 = or i32 %286, 0
  store i32 %287, ptr %284, align 8
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.facetT, ptr %288, i32 0, i32 10
  %290 = load ptr, ptr %289, align 8, !tbaa !29
  %291 = call i32 @qh_setsize(ptr noundef %290)
  %292 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !39
  %293 = icmp slt i32 %291, %292
  br i1 %293, label %294, label %306

294:                                              ; preds = %272
  %295 = load ptr, ptr %7, align 8, !tbaa !5
  %296 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_appendmergeset(ptr noundef %295, ptr noundef %296, i32 noundef 10, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %297 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  %298 = icmp sge i32 %297, 2
  br i1 %298, label %299, label %305

299:                                              ; preds = %294
  %300 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %301 = load ptr, ptr %7, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.facetT, ptr %301, i32 0, i32 14
  %303 = load i32, ptr %302, align 4, !tbaa !31
  %304 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !39
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %300, i32 noundef 2107, ptr noundef @.str.86, i32 noundef %303, i32 noundef %304)
  br label %305

305:                                              ; preds = %299, %294
  br label %306

306:                                              ; preds = %305, %272
  br label %307

307:                                              ; preds = %306, %265
  br label %308

308:                                              ; preds = %307
  %309 = load ptr, ptr %7, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.facetT, ptr %309, i32 0, i32 7
  %311 = load ptr, ptr %310, align 8, !tbaa !38
  store ptr %311, ptr %7, align 8, !tbaa !5
  br label %255, !llvm.loop !40

312:                                              ; preds = %263
  %313 = call i32 @qh_merge_degenredundant()
  %314 = load i32, ptr %19, align 4, !tbaa !9
  %315 = add nsw i32 %314, %313
  store i32 %315, ptr %19, align 4, !tbaa !9
  br label %316

316:                                              ; preds = %312, %250
  %317 = load i32, ptr %17, align 4, !tbaa !9
  %318 = icmp ne i32 %317, 0
  br i1 %318, label %322, label %319

319:                                              ; preds = %316
  %320 = load i32, ptr %18, align 4, !tbaa !9
  %321 = icmp ne i32 %320, 0
  br i1 %321, label %322, label %332

322:                                              ; preds = %319, %316
  %323 = load ptr, ptr %2, align 8, !tbaa !5
  store i32 1, ptr %323, align 4, !tbaa !9
  %324 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !17
  %325 = icmp sge i32 %324, 1
  br i1 %325, label %326, label %331

326:                                              ; preds = %322
  %327 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !20
  %328 = load i32, ptr %17, align 4, !tbaa !9
  %329 = load i32, ptr %18, align 4, !tbaa !9
  %330 = load i32, ptr %19, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %327, i32 noundef 1011, ptr noundef @.str.87, i32 noundef %328, i32 noundef %329, i32 noundef %330)
  br label %331

331:                                              ; preds = %326, %322
  br label %332

332:                                              ; preds = %331, %319
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, 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
  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
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  ret void
}

; 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

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_merge_degenredundant() #2

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

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

declare ptr @qh_getreplacement(ptr noundef) #1

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

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

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

declare ptr @qh_settemp(i32 noundef) #1

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

declare void @qh_settempfree(ptr noundef) #1

declare double @qh_getdistance(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare ptr @qh_settemppop() #1

declare void @qh_settemppush(ptr noundef) #1

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

declare i32 @qh_setin(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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 560}
!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 = !{!7, !7, i64 0}
!16 = !{!12, !10, i64 536}
!17 = !{!12, !10, i64 136}
!18 = !{!19, !10, i64 88}
!19 = !{!"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}
!20 = !{!12, !6, i64 2424}
!21 = !{!12, !6, i64 2800}
!22 = !{!12, !10, i64 2448}
!23 = !{!24, !10, i64 64}
!24 = !{!"mergeT", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!24, !6, i64 16}
!28 = !{!24, !6, i64 24}
!29 = !{!30, !6, i64 80}
!30 = !{!"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}
!31 = !{!30, !10, i64 108}
!32 = !{!13, !13, i64 0}
!33 = !{!12, !13, i64 1888}
!34 = !{!12, !13, i64 1784}
!35 = !{!12, !10, i64 424}
!36 = distinct !{!36, !26}
!37 = !{!12, !6, i64 2480}
!38 = !{!30, !6, i64 56}
!39 = !{!12, !10, i64 632}
!40 = distinct !{!40, !26}


; 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] }
%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.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 }

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@qhmem = external local_unnamed_addr global %struct.qhmemT, align 8
@.str.83 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [100 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [116 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [101 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_forcedmerges(ptr nocapture noundef writeonly %0) local_unnamed_addr #2 {
  %2 = alloca double, align 8
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca double, align 8
  %6 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #3
  %7 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !5
  %8 = add nsw i32 %7, -1
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !13
  %10 = icmp eq i32 %8, %9
  br i1 %10, label %11, label %thread-pre-split

11:                                               ; preds = %1
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !14
  store i32 %12, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  store i32 %12, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !16
  br label %13

thread-pre-split:                                 ; preds = %1
  %.pr = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  br label %13

13:                                               ; preds = %thread-pre-split, %11
  %14 = phi i32 [ %.pr, %thread-pre-split ], [ %12, %11 ]
  %15 = icmp sgt i32 %14, 2
  br i1 %15, label %16, label %18

16:                                               ; preds = %13
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %17, i32 noundef 3054, ptr noundef nonnull @.str.83) #3
  br label %18

18:                                               ; preds = %16, %13
  %19 = tail call ptr @qh_settemppop() #3
  store ptr %19, ptr %6, align 8, !tbaa !19
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !20
  %.not = icmp eq ptr %20, %19
  br i1 %.not, label %26, label %21

21:                                               ; preds = %18
  %22 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %23 = tail call i32 @qh_setsize(ptr noundef %19) #3
  %24 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !20
  %25 = tail call i32 @qh_setsize(ptr noundef %24) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %22, i32 noundef 6279, ptr noundef nonnull @.str.84, i32 noundef %23, i32 noundef %25) #3
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %26

26:                                               ; preds = %21, %18
  %27 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2448), align 8, !tbaa !21
  %28 = tail call ptr @qh_settemp(i32 noundef %27) #3
  store ptr %28, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !20
  tail call void @qh_settemppush(ptr noundef %19) #3
  %.not98 = icmp eq ptr %19, null
  br i1 %.not98, label %.thread125, label %29

.thread125:                                       ; preds = %26
  call void @qh_settempfree(ptr noundef nonnull %6) #3
  br label %166

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %19, i64 8
  br label %.outer

.outer:                                           ; preds = %.outer.backedge, %29
  %.083.ph = phi ptr [ %30, %29 ], [ %34, %.outer.backedge ]
  %.078.ph = phi i32 [ 0, %29 ], [ %.179, %.outer.backedge ]
  %.075.ph = phi i32 [ 0, %29 ], [ %.176, %.outer.backedge ]
  %.073.ph = phi i32 [ 0, %29 ], [ %112, %.outer.backedge ]
  %.0.ph = phi i32 [ 0, %29 ], [ 1, %.outer.backedge ]
  br label %.outer134

.outer134:                                        ; preds = %.outer, %44
  %.083.ph135 = phi ptr [ %.083.ph, %.outer ], [ %34, %44 ]
  %.0.ph136 = phi i32 [ %.0.ph, %.outer ], [ 1, %44 ]
  br label %31

31:                                               ; preds = %.outer134, %33
  %.083 = phi ptr [ %34, %33 ], [ %.083.ph135, %.outer134 ]
  %32 = load ptr, ptr %.083, align 8, !tbaa !19
  %.not99 = icmp eq ptr %32, null
  br i1 %.not99, label %132, label %33

33:                                               ; preds = %31
  %34 = getelementptr inbounds i8, ptr %.083, i64 8
  %35 = getelementptr inbounds i8, ptr %32, i64 64
  %36 = load i32, ptr %35, align 8, !tbaa !22
  %.not106 = icmp eq i32 %36, 7
  br i1 %.not106, label %37, label %31, !llvm.loop !24

37:                                               ; preds = %33
  %38 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 560), align 8, !tbaa !5
  %39 = add nsw i32 %38, -1
  %40 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !13
  %41 = icmp eq i32 %39, %40
  br i1 %41, label %42, label %44

42:                                               ; preds = %37
  %43 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 536), align 8, !tbaa !14
  store i32 %43, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  store i32 %43, ptr getelementptr inbounds (i8, ptr @qhmem, i64 88), align 8, !tbaa !16
  br label %44

44:                                               ; preds = %42, %37
  %45 = getelementptr inbounds i8, ptr %32, i64 16
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = call ptr @qh_getreplacement(ptr noundef %46) #3
  %48 = getelementptr inbounds i8, ptr %32, i64 24
  %49 = load ptr, ptr %48, align 8, !tbaa !27
  %50 = call ptr @qh_getreplacement(ptr noundef %49) #3
  %51 = icmp eq ptr %47, %50
  br i1 %51, label %.outer134, label %52, !llvm.loop !24

52:                                               ; preds = %44
  %53 = getelementptr inbounds i8, ptr %32, i64 64
  %54 = getelementptr inbounds i8, ptr %50, i64 80
  %55 = load ptr, ptr %54, align 8, !tbaa !28
  %56 = call i32 @qh_setin(ptr noundef %55, ptr noundef %47) #3
  %.not107 = icmp eq i32 %56, 0
  br i1 %.not107, label %57, label %71

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %32, i64 24
  %59 = getelementptr inbounds i8, ptr %32, i64 16
  %60 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %61 = load ptr, ptr %59, align 8, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %61, i64 108
  %63 = load i32, ptr %62, align 4, !tbaa !30
  %64 = load ptr, ptr %58, align 8, !tbaa !27
  %65 = getelementptr inbounds i8, ptr %64, i64 108
  %66 = load i32, ptr %65, align 4, !tbaa !30
  %67 = getelementptr inbounds i8, ptr %47, i64 108
  %68 = load i32, ptr %67, align 4, !tbaa !30
  %69 = getelementptr inbounds i8, ptr %50, i64 108
  %70 = load i32, ptr %69, align 4, !tbaa !30
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %60, i32 noundef 6096, ptr noundef nonnull @.str.85, i32 noundef %63, i32 noundef %66, i32 noundef %68, i32 noundef %70) #3
  call void @qh_errexit2(i32 noundef 5, ptr noundef %47, ptr noundef nonnull %50) #3
  br label %71

71:                                               ; preds = %57, %52
  %72 = call double @qh_getdistance(ptr noundef %47, ptr noundef nonnull %50, ptr noundef nonnull %2, ptr noundef nonnull %3) #3
  %73 = call double @qh_getdistance(ptr noundef nonnull %50, ptr noundef %47, ptr noundef nonnull %4, ptr noundef nonnull %5) #3
  call void @qh_check_dupridge(ptr noundef %47, double noundef %72, ptr noundef nonnull %50, double noundef %73)
  %74 = fcmp olt double %72, %73
  br i1 %74, label %75, label %92

75:                                               ; preds = %71
  %76 = getelementptr inbounds i8, ptr %50, i64 112
  %77 = load i32, ptr %76, align 8
  %78 = and i32 %77, 65536
  %.not110 = icmp eq i32 %78, 0
  br i1 %.not110, label %109, label %79

79:                                               ; preds = %75
  %80 = getelementptr inbounds i8, ptr %47, i64 112
  %81 = load i32, ptr %80, align 8
  %82 = and i32 %81, 65536
  %.not111 = icmp eq i32 %82, 0
  br i1 %.not111, label %83, label %109

83:                                               ; preds = %79
  %84 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1888), align 8, !tbaa !31
  %85 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !32
  %86 = fadd double %84, %85
  %87 = fmul double %86, 5.000000e+01
  %88 = fcmp olt double %73, %87
  br i1 %88, label %89, label %109

89:                                               ; preds = %83
  %90 = load double, ptr %4, align 8, !tbaa !33
  store double %90, ptr %2, align 8, !tbaa !33
  %91 = load double, ptr %5, align 8, !tbaa !33
  store double %91, ptr %3, align 8, !tbaa !33
  br label %109

92:                                               ; preds = %71
  %93 = getelementptr inbounds i8, ptr %47, i64 112
  %94 = load i32, ptr %93, align 8
  %95 = and i32 %94, 65536
  %.not108 = icmp eq i32 %95, 0
  br i1 %.not108, label %106, label %96

96:                                               ; preds = %92
  %97 = getelementptr inbounds i8, ptr %50, i64 112
  %98 = load i32, ptr %97, align 8
  %99 = and i32 %98, 65536
  %.not109 = icmp eq i32 %99, 0
  br i1 %.not109, label %100, label %106

100:                                              ; preds = %96
  %101 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1888), align 8, !tbaa !31
  %102 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1784), align 8, !tbaa !32
  %103 = fadd double %101, %102
  %104 = fmul double %103, 5.000000e+01
  %105 = fcmp olt double %72, %104
  br i1 %105, label %109, label %106

106:                                              ; preds = %100, %96, %92
  %107 = load double, ptr %4, align 8, !tbaa !33
  store double %107, ptr %2, align 8, !tbaa !33
  %108 = load double, ptr %5, align 8, !tbaa !33
  store double %108, ptr %3, align 8, !tbaa !33
  br label %109

109:                                              ; preds = %100, %75, %79, %83, %106, %89
  %.086 = phi ptr [ %47, %89 ], [ %47, %106 ], [ %50, %83 ], [ %50, %79 ], [ %50, %75 ], [ %50, %100 ]
  %.082 = phi double [ %73, %89 ], [ %73, %106 ], [ %72, %83 ], [ %72, %79 ], [ %72, %75 ], [ %72, %100 ]
  %.081 = phi ptr [ %50, %89 ], [ %50, %106 ], [ %47, %83 ], [ %47, %79 ], [ %47, %75 ], [ %47, %100 ]
  %110 = load i32, ptr %53, align 8, !tbaa !22
  call void @qh_mergefacet(ptr noundef %.081, ptr noundef nonnull %.086, i32 noundef %110, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 0)
  %111 = call i32 @qh_merge_degenredundant()
  %112 = add nsw i32 %111, %.073.ph
  %113 = getelementptr inbounds i8, ptr %47, i64 112
  %114 = load i32, ptr %113, align 8
  %115 = and i32 %114, 65536
  %.not112 = icmp eq i32 %115, 0
  br i1 %.not112, label %120, label %116

116:                                              ; preds = %109
  %117 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1016), align 8, !tbaa !13
  %118 = add nsw i32 %117, 1
  store i32 %118, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1016), align 8, !tbaa !13
  %119 = add nsw i32 %.075.ph, 1
  br label %122

120:                                              ; preds = %109
  %121 = add nsw i32 %.078.ph, 1
  br label %122

122:                                              ; preds = %120, %116
  %.179 = phi i32 [ %.078.ph, %116 ], [ %121, %120 ]
  %.176 = phi i32 [ %119, %116 ], [ %.075.ph, %120 ]
  %123 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 424), align 8, !tbaa !34
  %.not113 = icmp eq i32 %123, 0
  br i1 %.not113, label %.outer.backedge, label %124

124:                                              ; preds = %122
  %125 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 640), align 8, !tbaa !13
  %126 = add nsw i32 %125, 1
  store i32 %126, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 640), align 8, !tbaa !13
  %127 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 656), align 8, !tbaa !13
  %128 = fadd double %.082, %127
  store double %128, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 656), align 8, !tbaa !13
  %129 = load double, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 648), align 8, !tbaa !13
  %130 = fcmp olt double %129, %.082
  br i1 %130, label %131, label %.outer.backedge

.outer.backedge:                                  ; preds = %124, %131, %122
  br label %.outer, !llvm.loop !24

131:                                              ; preds = %124
  store double %.082, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 648), align 8, !tbaa !13
  br label %.outer.backedge

132:                                              ; preds = %31
  %.pr115 = load ptr, ptr %6, align 8, !tbaa !19
  %.not100 = icmp eq ptr %.pr115, null
  br i1 %.not100, label %.loopexit, label %.preheader133

.preheader133:                                    ; preds = %132
  %.184147 = getelementptr inbounds i8, ptr %.pr115, i64 8
  %133 = load ptr, ptr %.184147, align 8, !tbaa !19
  %.not101148 = icmp eq ptr %133, null
  br i1 %.not101148, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader133, %140
  %134 = phi ptr [ %141, %140 ], [ %133, %.preheader133 ]
  %.184149 = phi ptr [ %.184, %140 ], [ %.184147, %.preheader133 ]
  %135 = getelementptr inbounds i8, ptr %134, i64 64
  %136 = load i32, ptr %135, align 8, !tbaa !22
  %137 = icmp eq i32 %136, 7
  br i1 %137, label %138, label %139

138:                                              ; preds = %.lr.ph
  call void @qh_memfree(ptr noundef nonnull %134, i32 noundef 72) #3
  br label %140

139:                                              ; preds = %.lr.ph
  call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2800), ptr noundef nonnull %134) #3
  br label %140

140:                                              ; preds = %139, %138
  %.184 = getelementptr inbounds i8, ptr %.184149, i64 8
  %141 = load ptr, ptr %.184, align 8, !tbaa !19
  %.not101 = icmp eq ptr %141, null
  br i1 %.not101, label %.loopexit, label %.lr.ph, !llvm.loop !35

.loopexit:                                        ; preds = %140, %.preheader133, %132
  call void @qh_settempfree(ptr noundef nonnull %6) #3
  %.not102 = icmp eq i32 %.0.ph136, 0
  br i1 %.not102, label %166, label %.preheader

.preheader:                                       ; preds = %.loopexit
  %.085150 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !19
  %.not103151 = icmp eq ptr %.085150, null
  br i1 %.not103151, label %.critedge, label %.lr.ph153

.lr.ph153:                                        ; preds = %.preheader, %163
  %.085152 = phi ptr [ %.085, %163 ], [ %.085150, %.preheader ]
  %142 = getelementptr inbounds i8, ptr %.085152, i64 56
  %143 = load ptr, ptr %142, align 8, !tbaa !36
  %.not104 = icmp eq ptr %143, null
  br i1 %.not104, label %.critedge, label %144

144:                                              ; preds = %.lr.ph153
  %145 = getelementptr inbounds i8, ptr %.085152, i64 112
  %146 = load i32, ptr %145, align 8
  %147 = and i32 %146, 2097152
  %.not105 = icmp eq i32 %147, 0
  br i1 %.not105, label %163, label %148

148:                                              ; preds = %144
  %149 = and i32 %146, -14680065
  store i32 %149, ptr %145, align 8
  %150 = getelementptr inbounds i8, ptr %.085152, i64 80
  %151 = load ptr, ptr %150, align 8, !tbaa !28
  %152 = call i32 @qh_setsize(ptr noundef %151) #3
  %153 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !37
  %154 = icmp slt i32 %152, %153
  br i1 %154, label %155, label %163

155:                                              ; preds = %148
  call void @qh_appendmergeset(ptr noundef nonnull %.085152, ptr noundef nonnull %.085152, i32 noundef 10, double noundef 0.000000e+00, double noundef 1.000000e+00)
  %156 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %157 = icmp sgt i32 %156, 1
  br i1 %157, label %158, label %163

158:                                              ; preds = %155
  %159 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  %160 = getelementptr inbounds i8, ptr %.085152, i64 108
  %161 = load i32, ptr %160, align 4, !tbaa !30
  %162 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !37
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %159, i32 noundef 2107, ptr noundef nonnull @.str.86, i32 noundef %161, i32 noundef %162) #3
  br label %163

163:                                              ; preds = %144, %155, %158, %148
  %.085 = load ptr, ptr %142, align 8, !tbaa !19
  %.not103 = icmp eq ptr %.085, null
  br i1 %.not103, label %.critedge, label %.lr.ph153, !llvm.loop !38

.critedge:                                        ; preds = %.lr.ph153, %163, %.preheader
  %164 = call i32 @qh_merge_degenredundant()
  %165 = add nsw i32 %164, %.073.ph
  br label %166

166:                                              ; preds = %.thread125, %.critedge, %.loopexit
  %.280121132 = phi i32 [ %.078.ph, %.critedge ], [ %.078.ph, %.loopexit ], [ 0, %.thread125 ]
  %.277122131 = phi i32 [ %.075.ph, %.critedge ], [ %.075.ph, %.loopexit ], [ 0, %.thread125 ]
  %.2 = phi i32 [ %165, %.critedge ], [ %.073.ph, %.loopexit ], [ 0, %.thread125 ]
  %167 = icmp ne i32 %.280121132, 0
  %168 = icmp ne i32 %.277122131, 0
  %or.cond = select i1 %167, i1 true, i1 %168
  br i1 %or.cond, label %169, label %174

169:                                              ; preds = %166
  store i32 1, ptr %0, align 4, !tbaa !39
  %170 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !15
  %171 = icmp sgt i32 %170, 0
  br i1 %171, label %172, label %174

172:                                              ; preds = %169
  %173 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !18
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %173, i32 noundef 1011, ptr noundef nonnull @.str.87, i32 noundef %.280121132, i32 noundef %.277122131, i32 noundef %.2) #3
  br label %174

174:                                              ; preds = %169, %172, %166
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #3
  ret void
}

; Function Attrs: mustprogress 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) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_merge_degenredundant() local_unnamed_addr #2

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

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

declare ptr @qh_getreplacement(ptr noundef) local_unnamed_addr #1

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

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

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

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

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

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

declare double @qh_getdistance(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_settemppop() local_unnamed_addr #1

declare void @qh_settemppush(ptr noundef) local_unnamed_addr #1

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

declare i32 @qh_setin(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, !7, i64 560}
!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 = !{!8, !8, i64 0}
!14 = !{!6, !7, i64 536}
!15 = !{!6, !7, i64 136}
!16 = !{!17, !7, i64 88}
!17 = !{!"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}
!18 = !{!6, !11, i64 2424}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !11, i64 2800}
!21 = !{!6, !7, i64 2448}
!22 = !{!23, !7, i64 64}
!23 = !{!"mergeT", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !7, i64 64}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!23, !11, i64 16}
!27 = !{!23, !11, i64 24}
!28 = !{!29, !11, i64 80}
!29 = !{!"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}
!30 = !{!29, !7, i64 108}
!31 = !{!6, !10, i64 1888}
!32 = !{!6, !10, i64 1784}
!33 = !{!10, !10, i64 0}
!34 = !{!6, !7, i64 424}
!35 = distinct !{!35, !25}
!36 = !{!29, !11, i64 56}
!37 = !{!6, !7, i64 632}
!38 = distinct !{!38, !25}
!39 = !{!7, !7, i64 0}


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