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

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

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

@mergetypes = external dso_local global [14 x ptr], align 16
@qh_qh = external global %struct.qhT, align 8
@.str.26 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [112 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef) #1

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

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

21:                                               ; preds = %5
  %22 = load i32, ptr %8, align 4, !tbaa !9
  %23 = icmp ne i32 %22, 12
  br i1 %23, label %30, label %24

24:                                               ; preds = %21, %5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.facetT, ptr %25, i32 0, i32 15
  %27 = load i32, ptr %26, align 8
  %28 = lshr i32 %27, 31
  %29 = icmp ne i32 %28, 0
  br i1 %29, label %30, label %57

30:                                               ; preds = %24, %21
  %31 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %32 = icmp sge i32 %31, 3
  br i1 %32, label %33, label %56

33:                                               ; preds = %30
  %34 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.facetT, ptr %35, i32 0, i32 14
  %37 = load i32, ptr %36, align 4, !tbaa !17
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.facetT, ptr %38, i32 0, i32 15
  %40 = load i32, ptr %39, align 8
  %41 = lshr i32 %40, 31
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.facetT, ptr %42, i32 0, i32 14
  %44 = load i32, ptr %43, align 4, !tbaa !17
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.facetT, ptr %45, i32 0, i32 15
  %47 = load i32, ptr %46, align 8
  %48 = lshr i32 %47, 31
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.facetT, ptr %49, i32 0, i32 14
  %51 = load i32, ptr %50, align 4, !tbaa !17
  %52 = load ptr, ptr %7, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.facetT, ptr %52, i32 0, i32 14
  %54 = load i32, ptr %53, align 4, !tbaa !17
  %55 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, i32 noundef 3051, ptr noundef @.str.26, i32 noundef %37, i32 noundef %41, i32 noundef %44, i32 noundef %48, i32 noundef %51, i32 noundef %54, i32 noundef %55)
  br label %56

56:                                               ; preds = %33, %30
  store i32 1, ptr %15, align 4
  br label %318

57:                                               ; preds = %24
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.facetT, ptr %58, i32 0, i32 15
  %60 = load i32, ptr %59, align 8
  %61 = lshr i32 %60, 30
  %62 = and i32 %61, 1
  %63 = icmp ne i32 %62, 0
  br i1 %63, label %64, label %80

64:                                               ; preds = %57
  %65 = load i32, ptr %8, align 4, !tbaa !9
  %66 = icmp eq i32 %65, 10
  br i1 %66, label %67, label %80

67:                                               ; preds = %64
  %68 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %69 = icmp sge i32 %68, 3
  br i1 %69, label %70, label %79

70:                                               ; preds = %67
  %71 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.facetT, ptr %72, i32 0, i32 14
  %74 = load i32, ptr %73, align 4, !tbaa !17
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 14
  %77 = load i32, ptr %76, align 4, !tbaa !17
  %78 = load i32, ptr %8, align 4, !tbaa !9
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %71, i32 noundef 3077, ptr noundef @.str.27, i32 noundef %74, i32 noundef %77, i32 noundef %78)
  br label %79

79:                                               ; preds = %70, %67
  store i32 1, ptr %15, align 4
  br label %318

80:                                               ; preds = %64, %57
  %81 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !19
  %82 = icmp ne ptr %81, null
  br i1 %82, label %83, label %86

83:                                               ; preds = %80
  %84 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !20
  %85 = icmp ne ptr %84, null
  br i1 %85, label %90, label %86

86:                                               ; preds = %83, %80
  %87 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %88 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !19
  %89 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !20
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %87, i32 noundef 6403, ptr noundef @.str.28, ptr noundef %88, ptr noundef %89)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %90

90:                                               ; preds = %86, %83
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.facetT, ptr %91, i32 0, i32 15
  %93 = load i32, ptr %92, align 8
  %94 = lshr i32 %93, 16
  %95 = and i32 %94, 1
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %131

97:                                               ; preds = %90
  %98 = load ptr, ptr %6, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.facetT, ptr %98, i32 0, i32 15
  %100 = load i32, ptr %99, align 8
  %101 = lshr i32 %100, 16
  %102 = and i32 %101, 1
  %103 = icmp ne i32 %102, 0
  br i1 %103, label %131, label %104

104:                                              ; preds = %97
  %105 = load i32, ptr %8, align 4, !tbaa !9
  %106 = icmp ne i32 %105, 7
  br i1 %106, label %107, label %117

107:                                              ; preds = %104
  %108 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.facetT, ptr %109, i32 0, i32 14
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.facetT, ptr %112, i32 0, i32 14
  %114 = load i32, ptr %113, align 4, !tbaa !17
  %115 = load i32, ptr %8, align 4, !tbaa !9
  %116 = load double, ptr %9, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %108, i32 noundef 6355, ptr noundef @.str.29, i32 noundef %111, i32 noundef %114, i32 noundef %115, double noundef %116)
  call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %130

117:                                              ; preds = %104
  %118 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %119 = icmp sge i32 %118, 2
  br i1 %119, label %120, label %129

120:                                              ; preds = %117
  %121 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.facetT, ptr %122, i32 0, i32 14
  %124 = load i32, ptr %123, align 4, !tbaa !17
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.facetT, ptr %125, i32 0, i32 14
  %127 = load i32, ptr %126, align 4, !tbaa !17
  %128 = load double, ptr %9, align 8, !tbaa !11
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %121, i32 noundef 2106, ptr noundef @.str.30, i32 noundef %124, i32 noundef %127, double noundef %128)
  br label %129

129:                                              ; preds = %120, %117
  br label %130

130:                                              ; preds = %129, %107
  br label %131

131:                                              ; preds = %130, %97, %90
  %132 = load ptr, ptr %13, align 8, !tbaa !5
  %133 = call ptr @qh_memalloc(i32 noundef 72)
  store ptr %133, ptr %11, align 8, !tbaa !5
  %134 = load double, ptr %10, align 8, !tbaa !11
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.mergeT, ptr %135, i32 0, i32 0
  store double %134, ptr %136, align 8, !tbaa !21
  %137 = load double, ptr %9, align 8, !tbaa !11
  %138 = load ptr, ptr %11, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.mergeT, ptr %138, i32 0, i32 1
  store double %137, ptr %139, align 8, !tbaa !23
  %140 = load ptr, ptr %6, align 8, !tbaa !5
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.mergeT, ptr %141, i32 0, i32 2
  store ptr %140, ptr %142, align 8, !tbaa !24
  %143 = load ptr, ptr %7, align 8, !tbaa !5
  %144 = load ptr, ptr %11, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.mergeT, ptr %144, i32 0, i32 3
  store ptr %143, ptr %145, align 8, !tbaa !25
  %146 = load ptr, ptr %11, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.mergeT, ptr %146, i32 0, i32 4
  store ptr null, ptr %147, align 8, !tbaa !26
  %148 = load ptr, ptr %11, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.mergeT, ptr %148, i32 0, i32 5
  store ptr null, ptr %149, align 8, !tbaa !27
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.mergeT, ptr %150, i32 0, i32 6
  store ptr null, ptr %151, align 8, !tbaa !28
  %152 = load ptr, ptr %11, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.mergeT, ptr %152, i32 0, i32 7
  store ptr null, ptr %153, align 8, !tbaa !29
  %154 = load i32, ptr %8, align 4, !tbaa !9
  %155 = load ptr, ptr %11, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.mergeT, ptr %155, i32 0, i32 8
  store i32 %154, ptr %156, align 8, !tbaa !30
  %157 = load i32, ptr %8, align 4, !tbaa !9
  %158 = icmp ugt i32 %157, 0
  br i1 %158, label %159, label %168

159:                                              ; preds = %131
  %160 = load i32, ptr %8, align 4, !tbaa !9
  %161 = zext i32 %160 to i64
  %162 = icmp ult i64 %161, 14
  br i1 %162, label %163, label %168

163:                                              ; preds = %159
  %164 = load i32, ptr %8, align 4, !tbaa !9
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [14 x ptr], ptr @mergetypes, i64 0, i64 %165
  %167 = load ptr, ptr %166, align 8, !tbaa !5
  store ptr %167, ptr %14, align 8, !tbaa !5
  br label %170

168:                                              ; preds = %159, %131
  %169 = load ptr, ptr @mergetypes, align 16, !tbaa !5
  store ptr %169, ptr %14, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %168, %163
  %171 = load i32, ptr %8, align 4, !tbaa !9
  %172 = icmp ult i32 %171, 10
  br i1 %172, label %173, label %175

173:                                              ; preds = %170
  %174 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), ptr noundef %174)
  br label %262

175:                                              ; preds = %170
  %176 = load i32, ptr %8, align 4, !tbaa !9
  %177 = icmp eq i32 %176, 10
  br i1 %177, label %178, label %197

178:                                              ; preds = %175
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.facetT, ptr %179, i32 0, i32 15
  %181 = load i32, ptr %180, align 8
  %182 = and i32 %181, -1073741825
  %183 = or i32 %182, 1073741824
  store i32 %183, ptr %180, align 8
  %184 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !20
  %185 = call ptr @qh_setlast(ptr noundef %184)
  store ptr %185, ptr %12, align 8, !tbaa !5
  %186 = icmp ne ptr %185, null
  br i1 %186, label %187, label %192

187:                                              ; preds = %178
  %188 = load ptr, ptr %12, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.mergeT, ptr %188, i32 0, i32 8
  %190 = load i32, ptr %189, align 8, !tbaa !30
  %191 = icmp eq i32 %190, 10
  br i1 %191, label %192, label %194

192:                                              ; preds = %187, %178
  %193 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), ptr noundef %193)
  br label %196

194:                                              ; preds = %187
  %195 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setaddnth(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), i32 noundef 0, ptr noundef %195)
  br label %196

196:                                              ; preds = %194, %192
  br label %261

197:                                              ; preds = %175
  %198 = load i32, ptr %8, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 11
  br i1 %199, label %200, label %207

200:                                              ; preds = %197
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.facetT, ptr %201, i32 0, i32 15
  %203 = load i32, ptr %202, align 8
  %204 = and i32 %203, 2147483647
  %205 = or i32 %204, -2147483648
  store i32 %205, ptr %202, align 8
  %206 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), ptr noundef %206)
  br label %260

207:                                              ; preds = %197
  %208 = load ptr, ptr %6, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.facetT, ptr %208, i32 0, i32 15
  %210 = load i32, ptr %209, align 8
  %211 = lshr i32 %210, 31
  %212 = icmp ne i32 %211, 0
  br i1 %212, label %219, label %213

213:                                              ; preds = %207
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.facetT, ptr %214, i32 0, i32 15
  %216 = load i32, ptr %215, align 8
  %217 = lshr i32 %216, 31
  %218 = icmp ne i32 %217, 0
  br i1 %218, label %219, label %229

219:                                              ; preds = %213, %207
  %220 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %221 = load ptr, ptr %6, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.facetT, ptr %221, i32 0, i32 14
  %223 = load i32, ptr %222, align 4, !tbaa !17
  %224 = load ptr, ptr %7, align 8, !tbaa !5
  %225 = getelementptr inbounds %struct.facetT, ptr %224, i32 0, i32 14
  %226 = load i32, ptr %225, align 4, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %220, i32 noundef 6092, ptr noundef @.str.31, i32 noundef %223, i32 noundef %226)
  %227 = load ptr, ptr %6, align 8, !tbaa !5
  %228 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %227, ptr noundef %228)
  br label %229

229:                                              ; preds = %219, %213
  %230 = load ptr, ptr %6, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.facetT, ptr %230, i32 0, i32 8
  %232 = load ptr, ptr %231, align 8, !tbaa !31
  %233 = load ptr, ptr %7, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.facetT, ptr %233, i32 0, i32 8
  %235 = load ptr, ptr %234, align 8, !tbaa !31
  %236 = call i32 @qh_setequal(ptr noundef %232, ptr noundef %235)
  %237 = icmp ne i32 %236, 0
  br i1 %237, label %248, label %238

238:                                              ; preds = %229
  %239 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %240 = load ptr, ptr %6, align 8, !tbaa !5
  %241 = getelementptr inbounds %struct.facetT, ptr %240, i32 0, i32 14
  %242 = load i32, ptr %241, align 4, !tbaa !17
  %243 = load ptr, ptr %7, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.facetT, ptr %243, i32 0, i32 14
  %245 = load i32, ptr %244, align 4, !tbaa !17
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %239, i32 noundef 6093, ptr noundef @.str.32, i32 noundef %242, i32 noundef %245)
  %246 = load ptr, ptr %6, align 8, !tbaa !5
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  call void @qh_errexit2(i32 noundef 5, ptr noundef %246, ptr noundef %247)
  br label %248

248:                                              ; preds = %238, %229
  %249 = load ptr, ptr %6, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.facetT, ptr %249, i32 0, i32 15
  %251 = load i32, ptr %250, align 8
  %252 = and i32 %251, 2147483647
  %253 = or i32 %252, -2147483648
  store i32 %253, ptr %250, align 8
  %254 = load ptr, ptr %7, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.facetT, ptr %254, i32 0, i32 15
  %256 = load i32, ptr %255, align 8
  %257 = and i32 %256, 2147483647
  %258 = or i32 %257, -2147483648
  store i32 %258, ptr %255, align 8
  %259 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), ptr noundef %259)
  br label %260

260:                                              ; preds = %248, %200
  br label %261

261:                                              ; preds = %260, %196
  br label %262

262:                                              ; preds = %261, %173
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.mergeT, ptr %263, i32 0, i32 8
  %265 = load i32, ptr %264, align 8, !tbaa !30
  %266 = icmp uge i32 %265, 10
  br i1 %266, label %267, label %289

267:                                              ; preds = %262
  %268 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %269 = icmp sge i32 %268, 3
  br i1 %269, label %270, label %288

270:                                              ; preds = %267
  %271 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %272 = load ptr, ptr %11, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.mergeT, ptr %272, i32 0, i32 2
  %274 = load ptr, ptr %273, align 8, !tbaa !24
  %275 = getelementptr inbounds %struct.facetT, ptr %274, i32 0, i32 14
  %276 = load i32, ptr %275, align 4, !tbaa !17
  %277 = load ptr, ptr %11, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.mergeT, ptr %277, i32 0, i32 3
  %279 = load ptr, ptr %278, align 8, !tbaa !25
  %280 = getelementptr inbounds %struct.facetT, ptr %279, i32 0, i32 14
  %281 = load i32, ptr %280, align 4, !tbaa !17
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.mergeT, ptr %282, i32 0, i32 8
  %284 = load i32, ptr %283, align 8, !tbaa !30
  %285 = load ptr, ptr %14, align 8, !tbaa !5
  %286 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 222), align 8, !tbaa !20
  %287 = call i32 @qh_setsize(ptr noundef %286)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %271, i32 noundef 3044, ptr noundef @.str.33, i32 noundef %276, i32 noundef %281, i32 noundef %284, ptr noundef %285, i32 noundef %287)
  br label %288

288:                                              ; preds = %270, %267
  br label %317

289:                                              ; preds = %262
  %290 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %291 = icmp sge i32 %290, 3
  br i1 %291, label %292, label %316

292:                                              ; preds = %289
  %293 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  %294 = load ptr, ptr %11, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.mergeT, ptr %294, i32 0, i32 2
  %296 = load ptr, ptr %295, align 8, !tbaa !24
  %297 = getelementptr inbounds %struct.facetT, ptr %296, i32 0, i32 14
  %298 = load i32, ptr %297, align 4, !tbaa !17
  %299 = load ptr, ptr %11, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.mergeT, ptr %299, i32 0, i32 3
  %301 = load ptr, ptr %300, align 8, !tbaa !25
  %302 = getelementptr inbounds %struct.facetT, ptr %301, i32 0, i32 14
  %303 = load i32, ptr %302, align 4, !tbaa !17
  %304 = load ptr, ptr %11, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.mergeT, ptr %304, i32 0, i32 8
  %306 = load i32, ptr %305, align 8, !tbaa !30
  %307 = load ptr, ptr %14, align 8, !tbaa !5
  %308 = load ptr, ptr %11, align 8, !tbaa !5
  %309 = getelementptr inbounds %struct.mergeT, ptr %308, i32 0, i32 1
  %310 = load double, ptr %309, align 8, !tbaa !23
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.mergeT, ptr %311, i32 0, i32 0
  %313 = load double, ptr %312, align 8, !tbaa !21
  %314 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 221), align 8, !tbaa !19
  %315 = call i32 @qh_setsize(ptr noundef %314)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %293, i32 noundef 3027, ptr noundef @.str.34, i32 noundef %298, i32 noundef %303, i32 noundef %306, ptr noundef %307, double noundef %310, double noundef %313, i32 noundef %315)
  br label %316

316:                                              ; preds = %292, %289
  br label %317

317:                                              ; preds = %316, %288
  store i32 0, ptr %15, align 4
  br label %318

318:                                              ; preds = %317, %79, %56
  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
  %319 = load i32, ptr %15, align 4
  switch i32 %319, label %321 [
    i32 0, label %320
    i32 1, label %320
  ]

320:                                              ; preds = %318, %318
  ret void

321:                                              ; preds = %318
  unreachable
}

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

declare ptr @qh_memalloc(i32 noundef) #1

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

declare ptr @qh_setlast(ptr noundef) #1

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

declare i32 @qh_setequal(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, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 136}
!14 = !{!"qhT", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, 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, !12, i64 64, !12, 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, !12, i64 160, !12, i64 168, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !12, i64 192, !12, i64 200, !10, i64 208, !10, i64 212, !12, 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, !12, i64 448, !12, i64 456, !12, 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, !12, 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, !12, 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, !12, i64 1760, !12, i64 1768, !12, i64 1776, !12, i64 1784, !12, i64 1792, !12, i64 1800, !12, i64 1808, !12, i64 1816, !12, i64 1824, !12, i64 1832, !12, i64 1840, !12, i64 1848, !12, i64 1856, !12, i64 1864, !6, i64 1872, !12, i64 1880, !12, i64 1888, !12, i64 1896, !12, 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, !15, 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, !12, i64 2664, !10, i64 2672, !12, i64 2680, !12, i64 2688, !12, i64 2696, !10, i64 2704, !10, i64 2708, !10, i64 2712, !10, i64 2716, !10, i64 2720, !12, i64 2728, !12, i64 2736, !10, i64 2744, !10, i64 2748, !10, i64 2752, !10, i64 2756, !10, i64 2760, !10, i64 2764, !12, i64 2768, !12, 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, !12, i64 2920, !12, i64 2928, !12, i64 2936, !12, 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}
!15 = !{!"long", !7, i64 0}
!16 = !{!14, !6, i64 2424}
!17 = !{!18, !10, i64 108}
!18 = !{!"facetT", !12, i64 0, !12, i64 8, !12, 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}
!19 = !{!14, !6, i64 2800}
!20 = !{!14, !6, i64 2808}
!21 = !{!22, !12, i64 0}
!22 = !{!"mergeT", !12, i64 0, !12, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!23 = !{!22, !12, i64 8}
!24 = !{!22, !6, i64 16}
!25 = !{!22, !6, i64 24}
!26 = !{!22, !6, i64 32}
!27 = !{!22, !6, i64 40}
!28 = !{!22, !6, i64 48}
!29 = !{!22, !6, i64 56}
!30 = !{!22, !10, i64 64}
!31 = !{!18, !6, i64 64}


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

@mergetypes = external dso_local local_unnamed_addr global [14 x ptr], align 16
@qh_qh = external global %struct.qhT, align 8
@.str.26 = external hidden unnamed_addr constant [118 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [84 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [139 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [147 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [93 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [108 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [101 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [89 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [112 x i8], align 1

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #0

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_appendmergeset(ptr noundef %0, ptr noundef %1, i32 noundef %2, double noundef %3, double noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 112
  %7 = load i32, ptr %6, align 8
  %8 = icmp slt i32 %7, 0
  %9 = icmp ne i32 %2, 12
  %or.cond = and i1 %9, %8
  br i1 %or.cond, label %13, label %10

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %1, i64 112
  %12 = load i32, ptr %11, align 8
  %.not = icmp sgt i32 %12, -1
  br i1 %.not, label %26, label %13

13:                                               ; preds = %5, %10
  %14 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %15 = icmp sgt i32 %14, 2
  br i1 %15, label %16, label %150

16:                                               ; preds = %13
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %18 = getelementptr inbounds i8, ptr %0, i64 108
  %19 = load i32, ptr %18, align 4, !tbaa !14
  %20 = lshr i32 %7, 31
  %21 = getelementptr inbounds i8, ptr %1, i64 108
  %22 = load i32, ptr %21, align 4, !tbaa !14
  %23 = getelementptr inbounds i8, ptr %1, i64 112
  %24 = load i32, ptr %23, align 8
  %25 = lshr i32 %24, 31
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %17, i32 noundef 3051, ptr noundef nonnull @.str.26, i32 noundef %19, i32 noundef %20, i32 noundef %22, i32 noundef %25, i32 noundef %19, i32 noundef %22, i32 noundef %2) #3
  br label %150

26:                                               ; preds = %10
  %27 = and i32 %7, 1073741824
  %28 = icmp ne i32 %27, 0
  %29 = icmp eq i32 %2, 10
  %or.cond3 = and i1 %29, %28
  br i1 %or.cond3, label %30, label %37

30:                                               ; preds = %26
  %31 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %32 = icmp sgt i32 %31, 2
  br i1 %32, label %33, label %150

33:                                               ; preds = %30
  %34 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %0, i64 108
  %36 = load i32, ptr %35, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %34, i32 noundef 3077, ptr noundef nonnull @.str.27, i32 noundef %36, i32 noundef %36, i32 noundef 10) #3
  br label %150

37:                                               ; preds = %26
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !16
  %39 = icmp ne ptr %38, null
  %40 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8
  %41 = icmp ne ptr %40, null
  %or.cond5 = select i1 %39, i1 %41, i1 false
  br i1 %or.cond5, label %44, label %42

42:                                               ; preds = %37
  %43 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %43, i32 noundef 6403, ptr noundef nonnull @.str.28, ptr noundef %38, ptr noundef %40) #3
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #3
  %.pre = load i32, ptr %11, align 8
  br label %44

44:                                               ; preds = %37, %42
  %45 = phi i32 [ %12, %37 ], [ %.pre, %42 ]
  %46 = and i32 %45, 65536
  %.not91 = icmp eq i32 %46, 0
  br i1 %.not91, label %66, label %47

47:                                               ; preds = %44
  %48 = load i32, ptr %6, align 8
  %49 = and i32 %48, 65536
  %.not92 = icmp eq i32 %49, 0
  br i1 %.not92, label %50, label %66

50:                                               ; preds = %47
  %.not93 = icmp eq i32 %2, 7
  br i1 %.not93, label %57, label %51

51:                                               ; preds = %50
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %53 = getelementptr inbounds i8, ptr %0, i64 108
  %54 = load i32, ptr %53, align 4, !tbaa !14
  %55 = getelementptr inbounds i8, ptr %1, i64 108
  %56 = load i32, ptr %55, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %52, i32 noundef 6355, ptr noundef nonnull @.str.29, i32 noundef %54, i32 noundef %56, i32 noundef %2, double noundef %3) #3
  tail call void @qh_errexit(i32 noundef 5, ptr noundef null, ptr noundef null) #3
  br label %66

57:                                               ; preds = %50
  %58 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %59 = icmp sgt i32 %58, 1
  br i1 %59, label %60, label %66

60:                                               ; preds = %57
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %62 = getelementptr inbounds i8, ptr %0, i64 108
  %63 = load i32, ptr %62, align 4, !tbaa !14
  %64 = getelementptr inbounds i8, ptr %1, i64 108
  %65 = load i32, ptr %64, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %61, i32 noundef 2106, ptr noundef nonnull @.str.30, i32 noundef %63, i32 noundef %65, double noundef %3) #3
  br label %66

66:                                               ; preds = %51, %60, %57, %47, %44
  %67 = tail call ptr @qh_memalloc(i32 noundef 72) #3
  store double %4, ptr %67, align 8, !tbaa !17
  %68 = getelementptr inbounds i8, ptr %67, i64 8
  store double %3, ptr %68, align 8, !tbaa !19
  %69 = getelementptr inbounds i8, ptr %67, i64 16
  store ptr %0, ptr %69, align 8, !tbaa !20
  %70 = getelementptr inbounds i8, ptr %67, i64 24
  store ptr %1, ptr %70, align 8, !tbaa !21
  %71 = getelementptr inbounds i8, ptr %67, i64 32
  %72 = getelementptr inbounds i8, ptr %67, i64 64
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %71, i8 0, i64 32, i1 false)
  store i32 %2, ptr %72, align 8, !tbaa !22
  %73 = add i32 %2, -1
  %or.cond8 = icmp ult i32 %73, 13
  %74 = zext nneg i32 %2 to i64
  %75 = getelementptr inbounds [14 x ptr], ptr @mergetypes, i64 0, i64 %74
  %.0.in = select i1 %or.cond8, ptr %75, ptr @mergetypes
  %.0 = load ptr, ptr %.0.in, align 8, !tbaa !23
  %76 = icmp ult i32 %2, 10
  br i1 %76, label %77, label %78

77:                                               ; preds = %66
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2800), ptr noundef nonnull %67) #3
  br label %121

78:                                               ; preds = %66
  br i1 %29, label %79, label %90

79:                                               ; preds = %78
  %80 = load i32, ptr %6, align 8
  %81 = or i32 %80, 1073741824
  store i32 %81, ptr %6, align 8
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !24
  %83 = tail call ptr @qh_setlast(ptr noundef %82) #3
  %.not97 = icmp eq ptr %83, null
  br i1 %.not97, label %88, label %84

84:                                               ; preds = %79
  %85 = getelementptr inbounds i8, ptr %83, i64 64
  %86 = load i32, ptr %85, align 8, !tbaa !22
  %87 = icmp eq i32 %86, 10
  br i1 %87, label %88, label %89

88:                                               ; preds = %84, %79
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2808), ptr noundef nonnull %67) #3
  br label %121

89:                                               ; preds = %84
  tail call void @qh_setaddnth(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2808), i32 noundef 0, ptr noundef nonnull %67) #3
  br label %121

90:                                               ; preds = %78
  %91 = icmp eq i32 %2, 11
  %92 = load i32, ptr %6, align 8
  br i1 %91, label %93, label %95

93:                                               ; preds = %90
  %94 = or i32 %92, -2147483648
  store i32 %94, ptr %6, align 8
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2808), ptr noundef nonnull %67) #3
  br label %121

95:                                               ; preds = %90
  %.not94 = icmp sgt i32 %92, -1
  br i1 %.not94, label %96, label %98

96:                                               ; preds = %95
  %97 = load i32, ptr %11, align 8
  %.not95 = icmp sgt i32 %97, -1
  br i1 %.not95, label %104, label %98

98:                                               ; preds = %96, %95
  %99 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %100 = getelementptr inbounds i8, ptr %0, i64 108
  %101 = load i32, ptr %100, align 4, !tbaa !14
  %102 = getelementptr inbounds i8, ptr %1, i64 108
  %103 = load i32, ptr %102, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %99, i32 noundef 6092, ptr noundef nonnull @.str.31, i32 noundef %101, i32 noundef %103) #3
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef nonnull %1) #3
  br label %104

104:                                              ; preds = %98, %96
  %105 = getelementptr inbounds i8, ptr %0, i64 64
  %106 = load ptr, ptr %105, align 8, !tbaa !25
  %107 = getelementptr inbounds i8, ptr %1, i64 64
  %108 = load ptr, ptr %107, align 8, !tbaa !25
  %109 = tail call i32 @qh_setequal(ptr noundef %106, ptr noundef %108) #3
  %.not96 = icmp eq i32 %109, 0
  br i1 %.not96, label %110, label %116

110:                                              ; preds = %104
  %111 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %0, i64 108
  %113 = load i32, ptr %112, align 4, !tbaa !14
  %114 = getelementptr inbounds i8, ptr %1, i64 108
  %115 = load i32, ptr %114, align 4, !tbaa !14
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %111, i32 noundef 6093, ptr noundef nonnull @.str.32, i32 noundef %113, i32 noundef %115) #3
  tail call void @qh_errexit2(i32 noundef 5, ptr noundef nonnull %0, ptr noundef nonnull %1) #3
  br label %116

116:                                              ; preds = %110, %104
  %117 = load i32, ptr %6, align 8
  %118 = or i32 %117, -2147483648
  store i32 %118, ptr %6, align 8
  %119 = load i32, ptr %11, align 8
  %120 = or i32 %119, -2147483648
  store i32 %120, ptr %11, align 8
  tail call void @qh_setappend(ptr noundef nonnull getelementptr inbounds (i8, ptr @qh_qh, i64 2808), ptr noundef nonnull %67) #3
  br label %121

121:                                              ; preds = %89, %88, %116, %93, %77
  %122 = load i32, ptr %72, align 8, !tbaa !22
  %123 = icmp ugt i32 %122, 9
  %124 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %125 = icmp sgt i32 %124, 2
  br i1 %123, label %126, label %137

126:                                              ; preds = %121
  br i1 %125, label %127, label %150

127:                                              ; preds = %126
  %128 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %129 = load ptr, ptr %69, align 8, !tbaa !20
  %130 = getelementptr inbounds i8, ptr %129, i64 108
  %131 = load i32, ptr %130, align 4, !tbaa !14
  %132 = load ptr, ptr %70, align 8, !tbaa !21
  %133 = getelementptr inbounds i8, ptr %132, i64 108
  %134 = load i32, ptr %133, align 4, !tbaa !14
  %135 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2808), align 8, !tbaa !24
  %136 = tail call i32 @qh_setsize(ptr noundef %135) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %128, i32 noundef 3044, ptr noundef nonnull @.str.33, i32 noundef %131, i32 noundef %134, i32 noundef %122, ptr noundef %.0, i32 noundef %136) #3
  br label %150

137:                                              ; preds = %121
  br i1 %125, label %138, label %150

138:                                              ; preds = %137
  %139 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !13
  %140 = load ptr, ptr %69, align 8, !tbaa !20
  %141 = getelementptr inbounds i8, ptr %140, i64 108
  %142 = load i32, ptr %141, align 4, !tbaa !14
  %143 = load ptr, ptr %70, align 8, !tbaa !21
  %144 = getelementptr inbounds i8, ptr %143, i64 108
  %145 = load i32, ptr %144, align 4, !tbaa !14
  %146 = load double, ptr %68, align 8, !tbaa !19
  %147 = load double, ptr %67, align 8, !tbaa !17
  %148 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2800), align 8, !tbaa !16
  %149 = tail call i32 @qh_setsize(ptr noundef %148) #3
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %139, i32 noundef 3027, ptr noundef nonnull @.str.34, i32 noundef %142, i32 noundef %145, i32 noundef %122, ptr noundef %.0, double noundef %146, double noundef %147, i32 noundef %149) #3
  br label %150

150:                                              ; preds = %127, %126, %138, %137, %30, %33, %13, %16
  ret void
}

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

declare ptr @qh_memalloc(i32 noundef) local_unnamed_addr #0

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

declare ptr @qh_setlast(ptr noundef) local_unnamed_addr #0

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

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass