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

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

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

@qh_qh = external global %struct.qhT, align 8
@.str.27 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [89 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 void @qh_errexit2(i32 noundef, ptr noundef, ptr noundef) #1

declare void @qh_joggle_restart(ptr noundef) #1

declare void @qh_setfree(ptr noundef) #1

declare i32 @qh_setsize(ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_matchnewfacets() #2 {
  %1 = alloca i32, align 4
  %2 = alloca i32, align 4
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #4
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store double 0.000000e+00, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  %17 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !11
  store i32 %17, ptr %8, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 0, ptr %15, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %18 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !15
  %19 = icmp sge i32 %18, 1
  br i1 %19, label %20, label %22

20:                                               ; preds = %0
  %21 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %21, i32 noundef 1019, ptr noundef @.str.27)
  br label %22

22:                                               ; preds = %20, %0
  %23 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  store ptr %23, ptr %4, align 8, !tbaa !18
  br label %24

24:                                               ; preds = %55, %22
  %25 = load ptr, ptr %4, align 8, !tbaa !18
  %26 = icmp ne ptr %25, null
  br i1 %26, label %27, label %32

27:                                               ; preds = %24
  %28 = load ptr, ptr %4, align 8, !tbaa !18
  %29 = getelementptr inbounds %struct.facetT, ptr %28, i32 0, i32 7
  %30 = load ptr, ptr %29, align 8, !tbaa !19
  %31 = icmp ne ptr %30, null
  br label %32

32:                                               ; preds = %27, %24
  %33 = phi i1 [ false, %24 ], [ %31, %27 ]
  br i1 %33, label %34, label %59

34:                                               ; preds = %32
  %35 = load i32, ptr %1, align 4, !tbaa !5
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %1, align 4, !tbaa !5
  %37 = load ptr, ptr %4, align 8, !tbaa !18
  %38 = getelementptr inbounds %struct.facetT, ptr %37, i32 0, i32 10
  %39 = load ptr, ptr %38, align 8, !tbaa !21
  store ptr %39, ptr %12, align 8, !tbaa !18
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = add nsw i32 %40, 1
  %42 = load ptr, ptr %12, align 8, !tbaa !18
  %43 = getelementptr inbounds %struct.setT, ptr %42, i32 0, i32 1
  %44 = load ptr, ptr %12, align 8, !tbaa !18
  %45 = getelementptr inbounds %struct.setT, ptr %44, i32 0, i32 0
  %46 = load i32, ptr %45, align 8, !tbaa !22
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [1 x %union.setelemT], ptr %43, i64 0, i64 %47
  store i32 %41, ptr %48, align 8, !tbaa !24
  %49 = load ptr, ptr %12, align 8, !tbaa !18
  %50 = getelementptr inbounds %struct.setT, ptr %49, i32 0, i32 1
  %51 = getelementptr inbounds [1 x %union.setelemT], ptr %50, i64 0, i64 1
  %52 = load i32, ptr %8, align 4, !tbaa !5
  %53 = mul nsw i32 %52, 8
  %54 = sext i32 %53 to i64
  call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 %54, i1 false)
  br label %55

55:                                               ; preds = %34
  %56 = load ptr, ptr %4, align 8, !tbaa !18
  %57 = getelementptr inbounds %struct.facetT, ptr %56, i32 0, i32 7
  %58 = load ptr, ptr %57, align 8, !tbaa !19
  store ptr %58, ptr %4, align 8, !tbaa !18
  br label %24, !llvm.loop !25

59:                                               ; preds = %32
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !11
  %62 = sub nsw i32 %61, 1
  %63 = mul nsw i32 %60, %62
  %64 = call i32 @qh_newhashtable(i32 noundef %63)
  %65 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %66 = call i32 @qh_setsize(ptr noundef %65)
  store i32 %66, ptr %9, align 4, !tbaa !5
  %67 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  store ptr %67, ptr %4, align 8, !tbaa !18
  br label %68

68:                                               ; preds = %108, %59
  %69 = load ptr, ptr %4, align 8, !tbaa !18
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %76

71:                                               ; preds = %68
  %72 = load ptr, ptr %4, align 8, !tbaa !18
  %73 = getelementptr inbounds %struct.facetT, ptr %72, i32 0, i32 7
  %74 = load ptr, ptr %73, align 8, !tbaa !19
  %75 = icmp ne ptr %74, null
  br label %76

76:                                               ; preds = %71, %68
  %77 = phi i1 [ false, %68 ], [ %75, %71 ]
  br i1 %77, label %78, label %112

78:                                               ; preds = %76
  %79 = load ptr, ptr %4, align 8, !tbaa !18
  %80 = getelementptr inbounds %struct.facetT, ptr %79, i32 0, i32 15
  %81 = load i32, ptr %80, align 8
  %82 = lshr i32 %81, 13
  %83 = and i32 %82, 1
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %95, label %85

85:                                               ; preds = %78
  %86 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %87 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 14
  %89 = load i32, ptr %88, align 4, !tbaa !28
  %90 = load ptr, ptr %4, align 8, !tbaa !18
  %91 = getelementptr inbounds %struct.facetT, ptr %90, i32 0, i32 14
  %92 = load i32, ptr %91, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %86, i32 noundef 6377, ptr noundef @.str.28, i32 noundef %89, i32 noundef %92)
  %93 = load ptr, ptr %4, align 8, !tbaa !18
  %94 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  call void @qh_errexit2(i32 noundef 5, ptr noundef %93, ptr noundef %94)
  br label %95

95:                                               ; preds = %85, %78
  store i32 1, ptr %3, align 4, !tbaa !5
  br label %96

96:                                               ; preds = %104, %95
  %97 = load i32, ptr %3, align 4, !tbaa !5
  %98 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !11
  %99 = icmp slt i32 %97, %98
  br i1 %99, label %100, label %107

100:                                              ; preds = %96
  %101 = load ptr, ptr %4, align 8, !tbaa !18
  %102 = load i32, ptr %3, align 4, !tbaa !5
  %103 = load i32, ptr %9, align 4, !tbaa !5
  call void @qh_matchneighbor(ptr noundef %101, i32 noundef %102, i32 noundef %103, ptr noundef %2)
  br label %104

104:                                              ; preds = %100
  %105 = load i32, ptr %3, align 4, !tbaa !5
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %3, align 4, !tbaa !5
  br label %96, !llvm.loop !29

107:                                              ; preds = %96
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %4, align 8, !tbaa !18
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 7
  %111 = load ptr, ptr %110, align 8, !tbaa !19
  store ptr %111, ptr %4, align 8, !tbaa !18
  br label %68, !llvm.loop !30

112:                                              ; preds = %76
  %113 = load i32, ptr %2, align 4, !tbaa !5
  %114 = icmp ne i32 %113, 0
  br i1 %114, label %115, label %191

115:                                              ; preds = %112
  call void @qh_joggle_restart(ptr noundef @.str.29)
  %116 = load i32, ptr %2, align 4, !tbaa !5
  %117 = icmp ne i32 %116, 0
  br i1 %117, label %118, label %190

118:                                              ; preds = %115
  %119 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  store ptr %119, ptr %4, align 8, !tbaa !18
  br label %120

120:                                              ; preds = %185, %118
  %121 = load ptr, ptr %4, align 8, !tbaa !18
  %122 = icmp ne ptr %121, null
  br i1 %122, label %123, label %128

123:                                              ; preds = %120
  %124 = load ptr, ptr %4, align 8, !tbaa !18
  %125 = getelementptr inbounds %struct.facetT, ptr %124, i32 0, i32 7
  %126 = load ptr, ptr %125, align 8, !tbaa !19
  %127 = icmp ne ptr %126, null
  br label %128

128:                                              ; preds = %123, %120
  %129 = phi i1 [ false, %120 ], [ %127, %123 ]
  br i1 %129, label %130, label %189

130:                                              ; preds = %128
  %131 = load ptr, ptr %4, align 8, !tbaa !18
  %132 = getelementptr inbounds %struct.facetT, ptr %131, i32 0, i32 15
  %133 = load i32, ptr %132, align 8
  %134 = lshr i32 %133, 21
  %135 = and i32 %134, 1
  %136 = icmp ne i32 %135, 0
  br i1 %136, label %137, label %184

137:                                              ; preds = %130
  store ptr null, ptr %5, align 8, !tbaa !18
  %138 = load ptr, ptr %4, align 8, !tbaa !18
  %139 = getelementptr inbounds %struct.facetT, ptr %138, i32 0, i32 10
  %140 = load ptr, ptr %139, align 8, !tbaa !21
  %141 = icmp ne ptr %140, null
  br i1 %141, label %142, label %183

142:                                              ; preds = %137
  store i32 0, ptr %10, align 4, !tbaa !5
  %143 = load ptr, ptr %4, align 8, !tbaa !18
  %144 = getelementptr inbounds %struct.facetT, ptr %143, i32 0, i32 10
  %145 = load ptr, ptr %144, align 8, !tbaa !21
  %146 = getelementptr inbounds %struct.setT, ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds [1 x %union.setelemT], ptr %146, i64 0, i64 0
  %148 = load ptr, ptr %147, align 8, !tbaa !24
  store ptr %148, ptr %5, align 8, !tbaa !18
  %149 = load ptr, ptr %4, align 8, !tbaa !18
  %150 = getelementptr inbounds %struct.facetT, ptr %149, i32 0, i32 10
  %151 = load ptr, ptr %150, align 8, !tbaa !21
  %152 = call i32 @qh_setsize(ptr noundef %151)
  store i32 %152, ptr %11, align 4, !tbaa !5
  br label %153

153:                                              ; preds = %172, %142
  %154 = load i32, ptr %10, align 4, !tbaa !5
  %155 = load i32, ptr %11, align 4, !tbaa !5
  %156 = icmp slt i32 %154, %155
  br i1 %156, label %157, label %182

157:                                              ; preds = %153
  %158 = load ptr, ptr %5, align 8, !tbaa !18
  %159 = icmp eq ptr %158, inttoptr (i64 1 to ptr)
  br i1 %159, label %160, label %171

160:                                              ; preds = %157
  %161 = load ptr, ptr %4, align 8, !tbaa !18
  %162 = load i32, ptr %10, align 4, !tbaa !5
  %163 = load i32, ptr %9, align 4, !tbaa !5
  %164 = call double @qh_matchdupridge(ptr noundef %161, i32 noundef %162, i32 noundef %163, ptr noundef %2)
  store double %164, ptr %7, align 8, !tbaa !9
  %165 = load double, ptr %6, align 8, !tbaa !9
  %166 = load double, ptr %7, align 8, !tbaa !9
  %167 = fcmp olt double %165, %166
  br i1 %167, label %168, label %170

168:                                              ; preds = %160
  %169 = load double, ptr %7, align 8, !tbaa !9
  store double %169, ptr %6, align 8, !tbaa !9
  br label %170

170:                                              ; preds = %168, %160
  br label %171

171:                                              ; preds = %170, %157
  br label %172

172:                                              ; preds = %171
  %173 = load ptr, ptr %4, align 8, !tbaa !18
  %174 = getelementptr inbounds %struct.facetT, ptr %173, i32 0, i32 10
  %175 = load ptr, ptr %174, align 8, !tbaa !21
  %176 = getelementptr inbounds %struct.setT, ptr %175, i32 0, i32 1
  %177 = load i32, ptr %10, align 4, !tbaa !5
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %10, align 4, !tbaa !5
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds [1 x %union.setelemT], ptr %176, i64 0, i64 %179
  %181 = load ptr, ptr %180, align 8, !tbaa !24
  store ptr %181, ptr %5, align 8, !tbaa !18
  br label %153, !llvm.loop !31

182:                                              ; preds = %153
  br label %183

183:                                              ; preds = %182, %137
  br label %184

184:                                              ; preds = %183, %130
  br label %185

185:                                              ; preds = %184
  %186 = load ptr, ptr %4, align 8, !tbaa !18
  %187 = getelementptr inbounds %struct.facetT, ptr %186, i32 0, i32 7
  %188 = load ptr, ptr %187, align 8, !tbaa !19
  store ptr %188, ptr %4, align 8, !tbaa !18
  br label %120, !llvm.loop !32

189:                                              ; preds = %128
  br label %190

190:                                              ; preds = %189, %115
  br label %191

191:                                              ; preds = %190, %112
  %192 = load i32, ptr %2, align 4, !tbaa !5
  %193 = icmp ne i32 %192, 0
  br i1 %193, label %194, label %198

194:                                              ; preds = %191
  %195 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %196 = load i32, ptr %2, align 4, !tbaa !5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %195, i32 noundef 6108, ptr noundef @.str.30, i32 noundef %196)
  %197 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void @qh_printhashtable(ptr noundef %197)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %198

198:                                              ; preds = %194, %191
  %199 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !15
  %200 = icmp sge i32 %199, 3
  br i1 %200, label %201, label %238

201:                                              ; preds = %198
  store ptr null, ptr %16, align 8, !tbaa !18
  %202 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %203 = icmp ne ptr %202, null
  br i1 %203, label %204, label %231

204:                                              ; preds = %201
  store i32 0, ptr %13, align 4, !tbaa !5
  %205 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %206 = getelementptr inbounds %struct.setT, ptr %205, i32 0, i32 1
  %207 = getelementptr inbounds [1 x %union.setelemT], ptr %206, i64 0, i64 0
  %208 = load ptr, ptr %207, align 8, !tbaa !24
  store ptr %208, ptr %16, align 8, !tbaa !18
  %209 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %210 = call i32 @qh_setsize(ptr noundef %209)
  store i32 %210, ptr %14, align 4, !tbaa !5
  br label %211

211:                                              ; preds = %222, %204
  %212 = load i32, ptr %13, align 4, !tbaa !5
  %213 = load i32, ptr %14, align 4, !tbaa !5
  %214 = icmp slt i32 %212, %213
  br i1 %214, label %215, label %230

215:                                              ; preds = %211
  %216 = load ptr, ptr %16, align 8, !tbaa !18
  %217 = icmp ne ptr %216, null
  br i1 %217, label %221, label %218

218:                                              ; preds = %215
  %219 = load i32, ptr %15, align 4, !tbaa !5
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %15, align 4, !tbaa !5
  br label %221

221:                                              ; preds = %218, %215
  br label %222

222:                                              ; preds = %221
  %223 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %224 = getelementptr inbounds %struct.setT, ptr %223, i32 0, i32 1
  %225 = load i32, ptr %13, align 4, !tbaa !5
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %13, align 4, !tbaa !5
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [1 x %union.setelemT], ptr %224, i64 0, i64 %227
  %229 = load ptr, ptr %228, align 8, !tbaa !24
  store ptr %229, ptr %16, align 8, !tbaa !18
  br label %211, !llvm.loop !33

230:                                              ; preds = %211
  br label %231

231:                                              ; preds = %230, %201
  %232 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %233 = load double, ptr %6, align 8, !tbaa !9
  %234 = load i32, ptr %1, align 4, !tbaa !5
  %235 = load i32, ptr %15, align 4, !tbaa !5
  %236 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224), align 8, !tbaa !27
  %237 = call i32 @qh_setsize(ptr noundef %236)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %232, i32 noundef 3063, ptr noundef @.str.31, double noundef %233, i32 noundef %234, i32 noundef %235, i32 noundef %237)
  br label %238

238:                                              ; preds = %231, %198
  call void @qh_setfree(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 224))
  %239 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 52), align 4, !tbaa !34
  %240 = icmp ne i32 %239, 0
  br i1 %240, label %244, label %241

241:                                              ; preds = %238
  %242 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 37), align 4, !tbaa !35
  %243 = icmp ne i32 %242, 0
  br i1 %243, label %244, label %250

244:                                              ; preds = %241, %238
  %245 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !15
  %246 = icmp sge i32 %245, 4
  br i1 %246, label %247, label %249

247:                                              ; preds = %244
  %248 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 166), align 8, !tbaa !17
  call void @qh_printfacetlist(ptr noundef %248, ptr noundef null, i32 noundef 1)
  br label %249

249:                                              ; preds = %247, %244
  br label %250

250:                                              ; preds = %249, %241
  %251 = load double, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #4
  ret double %251
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @qh_newhashtable(i32 noundef) #1

declare double @qh_matchdupridge(ptr noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare void @qh_printhashtable(ptr noundef) #1

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


; 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 global %struct.qhT, align 8
@.str.27 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [182 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [89 x i8], align 1

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

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

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

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

declare void @qh_joggle_restart(ptr noundef) local_unnamed_addr #1

declare void @qh_setfree(ptr noundef) local_unnamed_addr #1

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_matchnewfacets() local_unnamed_addr #2 {
  %1 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  %2 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !9
  %3 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !14
  %4 = icmp sgt i32 %3, 0
  br i1 %4, label %5, label %7

5:                                                ; preds = %0
  %6 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %6, i32 noundef 1019, ptr noundef nonnull @.str.27) #5
  br label %7

7:                                                ; preds = %5, %0
  %.05989 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  %.not90 = icmp eq ptr %.05989, null
  br i1 %.not90, label %.critedge, label %.lr.ph

.lr.ph:                                           ; preds = %7
  %8 = add nsw i32 %2, 1
  %9 = shl nsw i32 %2, 3
  %10 = sext i32 %9 to i64
  br label %11

11:                                               ; preds = %.lr.ph, %14
  %.05992 = phi ptr [ %.05989, %.lr.ph ], [ %.059, %14 ]
  %.05691 = phi i32 [ 0, %.lr.ph ], [ %15, %14 ]
  %12 = getelementptr inbounds i8, ptr %.05992, i64 56
  %13 = load ptr, ptr %12, align 8, !tbaa !17
  %.not71 = icmp eq ptr %13, null
  br i1 %.not71, label %.critedge, label %14

14:                                               ; preds = %11
  %15 = add nuw nsw i32 %.05691, 1
  %16 = getelementptr inbounds i8, ptr %.05992, i64 80
  %17 = load ptr, ptr %16, align 8, !tbaa !19
  %18 = getelementptr inbounds i8, ptr %17, i64 8
  %19 = load i32, ptr %17, align 8, !tbaa !20
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds [1 x %union.setelemT], ptr %18, i64 0, i64 %20
  store i32 %8, ptr %21, align 8, !tbaa !22
  %22 = getelementptr inbounds i8, ptr %17, i64 16
  tail call void @llvm.memset.p0.i64(ptr nonnull align 8 %22, i8 0, i64 %10, i1 false)
  %.059 = load ptr, ptr %12, align 8, !tbaa !16
  %.not = icmp eq ptr %.059, null
  br i1 %.not, label %.critedge, label %11, !llvm.loop !23

.critedge:                                        ; preds = %11, %14, %7
  %.056.lcssa = phi i32 [ 0, %7 ], [ %15, %14 ], [ %.05691, %11 ]
  %23 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !9
  %24 = add nsw i32 %23, -1
  %25 = mul nsw i32 %24, %.056.lcssa
  %26 = tail call i32 @qh_newhashtable(i32 noundef %25) #5
  %27 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !25
  %28 = tail call i32 @qh_setsize(ptr noundef %27) #5
  %.16097 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  %.not7298 = icmp eq ptr %.16097, null
  br i1 %.not7298, label %.critedge2, label %.lr.ph100

.loopexit88:                                      ; preds = %.lr.ph96, %43
  %.160 = load ptr, ptr %29, align 8, !tbaa !16
  %.not72 = icmp eq ptr %.160, null
  br i1 %.not72, label %.critedge2, label %.lr.ph100, !llvm.loop !26

.lr.ph100:                                        ; preds = %.critedge, %.loopexit88
  %.16099 = phi ptr [ %.160, %.loopexit88 ], [ %.16097, %.critedge ]
  %29 = getelementptr inbounds i8, ptr %.16099, i64 56
  %30 = load ptr, ptr %29, align 8, !tbaa !17
  %.not73 = icmp eq ptr %30, null
  br i1 %.not73, label %.critedge2, label %31

31:                                               ; preds = %.lr.ph100
  %32 = getelementptr inbounds i8, ptr %.16099, i64 112
  %33 = load i32, ptr %32, align 8
  %34 = and i32 %33, 8192
  %.not83 = icmp eq i32 %34, 0
  br i1 %.not83, label %35, label %43

35:                                               ; preds = %31
  %36 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !27
  %38 = getelementptr inbounds i8, ptr %37, i64 108
  %39 = load i32, ptr %38, align 4, !tbaa !28
  %40 = getelementptr inbounds i8, ptr %.16099, i64 108
  %41 = load i32, ptr %40, align 4, !tbaa !28
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %36, i32 noundef 6377, ptr noundef nonnull @.str.28, i32 noundef %39, i32 noundef %41) #5
  %42 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !27
  call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %.16099, ptr noundef %42) #5
  br label %43

43:                                               ; preds = %35, %31
  %44 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !9
  %45 = icmp sgt i32 %44, 1
  br i1 %45, label %.lr.ph96, label %.loopexit88

.lr.ph96:                                         ; preds = %43, %.lr.ph96
  %.05895 = phi i32 [ %46, %.lr.ph96 ], [ 1, %43 ]
  call void @qh_matchneighbor(ptr noundef nonnull %.16099, i32 noundef %.05895, i32 noundef %28, ptr noundef nonnull %1)
  %46 = add nuw nsw i32 %.05895, 1
  %47 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !9
  %48 = icmp slt i32 %46, %47
  br i1 %48, label %.lr.ph96, label %.loopexit88, !llvm.loop !29

.critedge2:                                       ; preds = %.lr.ph100, %.loopexit88, %.critedge
  %49 = load i32, ptr %1, align 4, !tbaa !5
  %.not74 = icmp eq i32 %49, 0
  br i1 %.not74, label %.critedge4.thread, label %50

50:                                               ; preds = %.critedge2
  call void @qh_joggle_restart(ptr noundef nonnull @.str.29) #5
  %51 = load i32, ptr %1, align 4, !tbaa !5
  %.not75 = icmp eq i32 %51, 0
  br i1 %.not75, label %.critedge4.thread, label %.preheader

.preheader:                                       ; preds = %50
  %.261107 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !16
  %.not76108 = icmp eq ptr %.261107, null
  br i1 %.not76108, label %.critedge4.thread127, label %.lr.ph111

.lr.ph111:                                        ; preds = %.preheader, %.loopexit87
  %.261110 = phi ptr [ %.261, %.loopexit87 ], [ %.261107, %.preheader ]
  %.064109 = phi double [ %.3, %.loopexit87 ], [ 0.000000e+00, %.preheader ]
  %52 = getelementptr inbounds i8, ptr %.261110, i64 56
  %53 = load ptr, ptr %52, align 8, !tbaa !17
  %.not77 = icmp eq ptr %53, null
  br i1 %.not77, label %.critedge4, label %54

54:                                               ; preds = %.lr.ph111
  %55 = getelementptr inbounds i8, ptr %.261110, i64 112
  %56 = load i32, ptr %55, align 8
  %57 = and i32 %56, 2097152
  %.not81 = icmp eq i32 %57, 0
  br i1 %.not81, label %.loopexit87, label %58

58:                                               ; preds = %54
  %59 = getelementptr inbounds i8, ptr %.261110, i64 80
  %60 = load ptr, ptr %59, align 8, !tbaa !19
  %.not82 = icmp eq ptr %60, null
  br i1 %.not82, label %.loopexit87, label %61

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %60, i64 8
  %63 = load ptr, ptr %62, align 8, !tbaa !22
  %64 = call i32 @qh_setsize(ptr noundef nonnull %60) #5
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %.lr.ph105.preheader, label %.loopexit87

.lr.ph105.preheader:                              ; preds = %61
  %wide.trip.count = zext nneg i32 %64 to i64
  br label %.lr.ph105

.lr.ph105:                                        ; preds = %.lr.ph105.preheader, %72
  %indvars.iv = phi i64 [ 0, %.lr.ph105.preheader ], [ %indvars.iv.next, %72 ]
  %.063103 = phi ptr [ %63, %.lr.ph105.preheader ], [ %76, %72 ]
  %.165102 = phi double [ %.064109, %.lr.ph105.preheader ], [ %.266, %72 ]
  %66 = icmp eq ptr %.063103, inttoptr (i64 1 to ptr)
  br i1 %66, label %67, label %72

67:                                               ; preds = %.lr.ph105
  %68 = trunc nuw nsw i64 %indvars.iv to i32
  %69 = call double @qh_matchdupridge(ptr noundef nonnull %.261110, i32 noundef %68, i32 noundef %28, ptr noundef nonnull %1) #5
  %70 = fcmp olt double %.165102, %69
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  br label %72

72:                                               ; preds = %.lr.ph105, %71, %67
  %.266 = phi double [ %69, %71 ], [ %.165102, %67 ], [ %.165102, %.lr.ph105 ]
  %73 = load ptr, ptr %59, align 8, !tbaa !19
  %74 = getelementptr inbounds i8, ptr %73, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %75 = getelementptr inbounds [1 x %union.setelemT], ptr %74, i64 0, i64 %indvars.iv.next
  %76 = load ptr, ptr %75, align 8, !tbaa !22
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit87, label %.lr.ph105, !llvm.loop !30

.loopexit87:                                      ; preds = %72, %61, %54, %58
  %.3 = phi double [ %.064109, %58 ], [ %.064109, %54 ], [ %.064109, %61 ], [ %.266, %72 ]
  %.261 = load ptr, ptr %52, align 8, !tbaa !16
  %.not76 = icmp eq ptr %.261, null
  br i1 %.not76, label %.critedge4, label %.lr.ph111, !llvm.loop !31

.critedge4:                                       ; preds = %.lr.ph111, %.loopexit87
  %.064.lcssa.ph = phi double [ %.064109, %.lr.ph111 ], [ %.3, %.loopexit87 ]
  %.pr.pre = load i32, ptr %1, align 4, !tbaa !5
  %.not78 = icmp eq i32 %.pr.pre, 0
  br i1 %.not78, label %.critedge4.thread, label %.critedge4.thread127

.critedge4.thread127:                             ; preds = %.preheader, %.critedge4
  %.064.lcssa132 = phi double [ %.064.lcssa.ph, %.critedge4 ], [ 0.000000e+00, %.preheader ]
  %.pr131 = phi i32 [ %.pr.pre, %.critedge4 ], [ %51, %.preheader ]
  %77 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %77, i32 noundef 6108, ptr noundef nonnull @.str.30, i32 noundef %.pr131) #5
  %78 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  call void @qh_printhashtable(ptr noundef %78) #5
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #5
  br label %.critedge4.thread

.critedge4.thread:                                ; preds = %.critedge2, %50, %.critedge4.thread127, %.critedge4
  %.486 = phi double [ %.064.lcssa132, %.critedge4.thread127 ], [ %.064.lcssa.ph, %.critedge4 ], [ 0.000000e+00, %50 ], [ 0.000000e+00, %.critedge2 ]
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !14
  %80 = icmp sgt i32 %79, 2
  br i1 %80, label %81, label %108

81:                                               ; preds = %.critedge4.thread
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !25
  %.not79 = icmp eq ptr %82, null
  br i1 %.not79, label %.loopexit, label %83

83:                                               ; preds = %81
  %84 = getelementptr inbounds i8, ptr %82, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !22
  %86 = call i32 @qh_setsize(ptr noundef nonnull %82) #5
  %87 = icmp sgt i32 %86, 0
  %.pre = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2824), align 8, !tbaa !25
  br i1 %87, label %.lr.ph118, label %.loopexit

.lr.ph118:                                        ; preds = %83
  %88 = getelementptr inbounds i8, ptr %.pre, i64 8
  %wide.trip.count124 = zext nneg i32 %86 to i64
  %min.iters.check = icmp ult i32 %86, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph118
  %n.vec = and i64 %wide.trip.count124, 2147483644
  %vector.recur.init = insertelement <2 x ptr> poison, ptr %85, i64 1
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vector.recur = phi <2 x ptr> [ %vector.recur.init, %vector.ph ], [ %wide.load134, %vector.body ]
  %vec.phi = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %98, %vector.body ]
  %vec.phi133 = phi <2 x i32> [ zeroinitializer, %vector.ph ], [ %99, %vector.body ]
  %89 = or disjoint i64 %index, 1
  %90 = getelementptr inbounds [1 x %union.setelemT], ptr %88, i64 0, i64 %89
  %91 = getelementptr inbounds i8, ptr %90, i64 16
  %wide.load = load <2 x ptr>, ptr %90, align 8, !tbaa !22
  %wide.load134 = load <2 x ptr>, ptr %91, align 8, !tbaa !22
  %92 = shufflevector <2 x ptr> %vector.recur, <2 x ptr> %wide.load, <2 x i32> <i32 1, i32 2>
  %93 = shufflevector <2 x ptr> %wide.load, <2 x ptr> %wide.load134, <2 x i32> <i32 1, i32 2>
  %94 = icmp eq <2 x ptr> %92, zeroinitializer
  %95 = icmp eq <2 x ptr> %93, zeroinitializer
  %96 = zext <2 x i1> %94 to <2 x i32>
  %97 = zext <2 x i1> %95 to <2 x i32>
  %98 = add <2 x i32> %vec.phi, %96
  %99 = add <2 x i32> %vec.phi133, %97
  %index.next = add nuw i64 %index, 4
  %100 = icmp eq i64 %index.next, %n.vec
  br i1 %100, label %middle.block, label %vector.body, !llvm.loop !32

middle.block:                                     ; preds = %vector.body
  %bin.rdx = add <2 x i32> %99, %98
  %101 = call i32 @llvm.vector.reduce.add.v2i32(<2 x i32> %bin.rdx)
  %vector.recur.extract = extractelement <2 x ptr> %wide.load134, i64 1
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count124
  br i1 %cmp.n, label %.loopexit, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.lr.ph118
  %indvars.iv121.ph = phi i64 [ 0, %.lr.ph118 ], [ %n.vec, %middle.block ]
  %.0117.ph = phi ptr [ %85, %.lr.ph118 ], [ %vector.recur.extract, %middle.block ]
  %.055116.ph = phi i32 [ 0, %.lr.ph118 ], [ %101, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv121 = phi i64 [ %indvars.iv.next122, %scalar.ph ], [ %indvars.iv121.ph, %scalar.ph.preheader ]
  %.0117 = phi ptr [ %104, %scalar.ph ], [ %.0117.ph, %scalar.ph.preheader ]
  %.055116 = phi i32 [ %spec.select, %scalar.ph ], [ %.055116.ph, %scalar.ph.preheader ]
  %.not80 = icmp eq ptr %.0117, null
  %102 = zext i1 %.not80 to i32
  %spec.select = add nuw nsw i32 %.055116, %102
  %indvars.iv.next122 = add nuw nsw i64 %indvars.iv121, 1
  %103 = getelementptr inbounds [1 x %union.setelemT], ptr %88, i64 0, i64 %indvars.iv.next122
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  %exitcond125.not = icmp eq i64 %indvars.iv.next122, %wide.trip.count124
  br i1 %exitcond125.not, label %.loopexit, label %scalar.ph, !llvm.loop !35

.loopexit:                                        ; preds = %scalar.ph, %middle.block, %83, %81
  %105 = phi ptr [ null, %81 ], [ %.pre, %83 ], [ %.pre, %middle.block ], [ %.pre, %scalar.ph ]
  %.2 = phi i32 [ 0, %81 ], [ 0, %83 ], [ %101, %middle.block ], [ %spec.select, %scalar.ph ]
  %106 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !15
  %107 = call i32 @qh_setsize(ptr noundef %105) #5
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %106, i32 noundef 3063, ptr noundef nonnull @.str.31, double noundef %.486, i32 noundef %.056.lcssa, i32 noundef %.2, i32 noundef %107) #5
  br label %108

108:                                              ; preds = %.loopexit, %.critedge4.thread
  call void @qh_setfree(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2824)) #5
  %109 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 252), align 4, !tbaa !36
  %110 = icmp ne i32 %109, 0
  %111 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 180), align 4
  %112 = icmp ne i32 %111, 0
  %or.cond = select i1 %110, i1 true, i1 %112
  %113 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %114 = icmp sgt i32 %113, 3
  %or.cond7 = select i1 %or.cond, i1 %114, i1 false
  br i1 %or.cond7, label %115, label %117

115:                                              ; preds = %108
  %116 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2480), align 8, !tbaa !27
  call void @qh_printfacetlist(ptr noundef %116, ptr noundef null, i32 noundef 1) #5
  br label %117

117:                                              ; preds = %115, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %1) #5
  ret double %.486
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

declare i32 @qh_newhashtable(i32 noundef) local_unnamed_addr #1

declare double @qh_matchdupridge(ptr noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

declare void @qh_printhashtable(ptr noundef) local_unnamed_addr #1

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.v2i32(<2 x i32>) #4

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


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