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

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

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

@.str.90 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

declare i32 @qh_setsize(ptr noundef, ptr noundef) #1

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

21:                                               ; preds = %2
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.qhT, ptr %23, i32 0, i32 158
  %25 = load ptr, ptr %24, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %22, ptr noundef %25, i32 noundef 4026, ptr noundef @.str.90)
  br label %26

26:                                               ; preds = %21, %2
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 217
  %29 = load i32, ptr %28, align 8, !tbaa !19
  %30 = add i32 %29, 1
  store i32 %30, ptr %28, align 8, !tbaa !19
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = icmp ne ptr %31, null
  br i1 %32, label %33, label %215

33:                                               ; preds = %26
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %34, ptr %5, align 8, !tbaa !5
  br label %35

35:                                               ; preds = %210, %33
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %43

38:                                               ; preds = %35
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.facetT, ptr %39, i32 0, i32 7
  %41 = load ptr, ptr %40, align 8, !tbaa !20
  %42 = icmp ne ptr %41, null
  br label %43

43:                                               ; preds = %38, %35
  %44 = phi i1 [ false, %35 ], [ %42, %38 ]
  br i1 %44, label %45, label %214

45:                                               ; preds = %43
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.facetT, ptr %46, i32 0, i32 15
  %48 = load i32, ptr %47, align 8
  %49 = lshr i32 %48, 27
  %50 = and i32 %49, 1
  %51 = icmp ne i32 %50, 0
  br i1 %51, label %52, label %53

52:                                               ; preds = %45
  br label %210

53:                                               ; preds = %45
  %54 = load ptr, ptr %3, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.qhT, ptr %54, i32 0, i32 217
  %56 = load i32, ptr %55, align 8, !tbaa !19
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.facetT, ptr %57, i32 0, i32 13
  store i32 %56, ptr %58, align 8, !tbaa !22
  store ptr null, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %5, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.facetT, ptr %59, i32 0, i32 10
  %61 = load ptr, ptr %60, align 8, !tbaa !23
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %81

63:                                               ; preds = %53
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.facetT, ptr %64, i32 0, i32 10
  %66 = load ptr, ptr %65, align 8, !tbaa !23
  %67 = getelementptr inbounds %struct.setT, ptr %66, i32 0, i32 1
  %68 = getelementptr inbounds [1 x %union.setelemT], ptr %67, i64 0, i64 0
  store ptr %68, ptr %7, align 8, !tbaa !5
  br label %69

69:                                               ; preds = %74, %63
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds ptr, ptr %70, i32 1
  store ptr %71, ptr %7, align 8, !tbaa !5
  %72 = load ptr, ptr %70, align 8, !tbaa !5
  store ptr %72, ptr %6, align 8, !tbaa !5
  %73 = icmp ne ptr %72, null
  br i1 %73, label %74, label %80

74:                                               ; preds = %69
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.facetT, ptr %75, i32 0, i32 15
  %77 = load i32, ptr %76, align 8
  %78 = and i32 %77, -16385
  %79 = or i32 %78, 0
  store i32 %79, ptr %76, align 8
  br label %69, !llvm.loop !24

80:                                               ; preds = %69
  br label %81

81:                                               ; preds = %80, %53
  store ptr null, ptr %8, align 8, !tbaa !5
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.facetT, ptr %82, i32 0, i32 9
  %84 = load ptr, ptr %83, align 8, !tbaa !26
  %85 = icmp ne ptr %84, null
  br i1 %85, label %86, label %204

86:                                               ; preds = %81
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.facetT, ptr %87, i32 0, i32 9
  %89 = load ptr, ptr %88, align 8, !tbaa !26
  %90 = getelementptr inbounds %struct.setT, ptr %89, i32 0, i32 1
  %91 = getelementptr inbounds [1 x %union.setelemT], ptr %90, i64 0, i64 0
  store ptr %91, ptr %9, align 8, !tbaa !5
  br label %92

92:                                               ; preds = %202, %113, %86
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds ptr, ptr %93, i32 1
  store ptr %94, ptr %9, align 8, !tbaa !5
  %95 = load ptr, ptr %93, align 8, !tbaa !5
  store ptr %95, ptr %8, align 8, !tbaa !5
  %96 = icmp ne ptr %95, null
  br i1 %96, label %97, label %203

97:                                               ; preds = %92
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.ridgeT, ptr %98, i32 0, i32 4
  %100 = load i8, ptr %99, align 4
  %101 = lshr i8 %100, 1
  %102 = and i8 %101, 1
  %103 = zext i8 %102 to i32
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %114

105:                                              ; preds = %97
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ridgeT, ptr %106, i32 0, i32 4
  %108 = load i8, ptr %107, align 4
  %109 = lshr i8 %108, 2
  %110 = and i8 %109, 1
  %111 = zext i8 %110 to i32
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %114, label %113

113:                                              ; preds = %105
  br label %92, !llvm.loop !27

114:                                              ; preds = %105, %97
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.ridgeT, ptr %115, i32 0, i32 1
  %117 = load ptr, ptr %116, align 8, !tbaa !28
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = icmp eq ptr %117, %118
  br i1 %119, label %120, label %124

120:                                              ; preds = %114
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.ridgeT, ptr %121, i32 0, i32 2
  %123 = load ptr, ptr %122, align 8, !tbaa !30
  br label %128

124:                                              ; preds = %114
  %125 = load ptr, ptr %8, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ridgeT, ptr %125, i32 0, i32 1
  %127 = load ptr, ptr %126, align 8, !tbaa !28
  br label %128

128:                                              ; preds = %124, %120
  %129 = phi ptr [ %123, %120 ], [ %127, %124 ]
  store ptr %129, ptr %6, align 8, !tbaa !5
  %130 = load ptr, ptr %6, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.facetT, ptr %130, i32 0, i32 15
  %132 = load i32, ptr %131, align 8
  %133 = lshr i32 %132, 14
  %134 = and i32 %133, 1
  %135 = icmp ne i32 %134, 0
  br i1 %135, label %136, label %147

136:                                              ; preds = %128
  %137 = load ptr, ptr %8, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.ridgeT, ptr %137, i32 0, i32 4
  %139 = load i8, ptr %138, align 4
  %140 = and i8 %139, -3
  %141 = or i8 %140, 2
  store i8 %141, ptr %138, align 4
  %142 = load ptr, ptr %8, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.ridgeT, ptr %142, i32 0, i32 4
  %144 = load i8, ptr %143, align 4
  %145 = and i8 %144, -5
  %146 = or i8 %145, 0
  store i8 %146, ptr %143, align 4
  br label %202

147:                                              ; preds = %128
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.facetT, ptr %148, i32 0, i32 13
  %150 = load i32, ptr %149, align 8, !tbaa !22
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.qhT, ptr %151, i32 0, i32 217
  %153 = load i32, ptr %152, align 8, !tbaa !19
  %154 = icmp ne i32 %150, %153
  br i1 %154, label %155, label %201

155:                                              ; preds = %147
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.facetT, ptr %156, i32 0, i32 15
  %158 = load i32, ptr %157, align 8
  %159 = and i32 %158, -16385
  %160 = or i32 %159, 16384
  store i32 %160, ptr %157, align 8
  %161 = load ptr, ptr %8, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ridgeT, ptr %161, i32 0, i32 4
  %163 = load i8, ptr %162, align 4
  %164 = and i8 %163, -5
  %165 = or i8 %164, 0
  store i8 %165, ptr %162, align 4
  store i32 0, ptr %11, align 4, !tbaa !16
  %166 = load ptr, ptr %8, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ridgeT, ptr %166, i32 0, i32 4
  %168 = load i8, ptr %167, align 4
  %169 = lshr i8 %168, 6
  %170 = and i8 %169, 1
  %171 = zext i8 %170 to i32
  %172 = icmp ne i32 %171, 0
  br i1 %172, label %173, label %182

173:                                              ; preds = %155
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.ridgeT, ptr %174, i32 0, i32 4
  %176 = load i8, ptr %175, align 4
  %177 = lshr i8 %176, 5
  %178 = and i8 %177, 1
  %179 = zext i8 %178 to i32
  %180 = icmp ne i32 %179, 0
  br i1 %180, label %181, label %182

181:                                              ; preds = %173
  store i32 1, ptr %11, align 4, !tbaa !16
  br label %182

182:                                              ; preds = %181, %173, %155
  %183 = load ptr, ptr %3, align 8, !tbaa !5
  %184 = load ptr, ptr %5, align 8, !tbaa !5
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = load i32, ptr %11, align 4, !tbaa !16
  %187 = call i32 @qh_test_appendmerge(ptr noundef %183, ptr noundef %184, ptr noundef %185, i32 noundef %186)
  %188 = icmp ne i32 %187, 0
  br i1 %188, label %189, label %195

189:                                              ; preds = %182
  %190 = load ptr, ptr %8, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.ridgeT, ptr %190, i32 0, i32 4
  %192 = load i8, ptr %191, align 4
  %193 = and i8 %192, -5
  %194 = or i8 %193, 4
  store i8 %194, ptr %191, align 4
  br label %195

195:                                              ; preds = %189, %182
  %196 = load ptr, ptr %8, align 8, !tbaa !5
  %197 = getelementptr inbounds %struct.ridgeT, ptr %196, i32 0, i32 4
  %198 = load i8, ptr %197, align 4
  %199 = and i8 %198, -3
  %200 = or i8 %199, 2
  store i8 %200, ptr %197, align 4
  br label %201

201:                                              ; preds = %195, %147
  br label %202

202:                                              ; preds = %201, %136
  br label %92, !llvm.loop !27

203:                                              ; preds = %92
  br label %204

204:                                              ; preds = %203, %81
  %205 = load ptr, ptr %5, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.facetT, ptr %205, i32 0, i32 15
  %207 = load i32, ptr %206, align 8
  %208 = and i32 %207, -134217729
  %209 = or i32 %208, 134217728
  store i32 %209, ptr %206, align 8
  br label %210

210:                                              ; preds = %204, %52
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.facetT, ptr %211, i32 0, i32 7
  %213 = load ptr, ptr %212, align 8, !tbaa !20
  store ptr %213, ptr %5, align 8, !tbaa !5
  br label %35, !llvm.loop !31

214:                                              ; preds = %43
  br label %215

215:                                              ; preds = %214, %26
  %216 = load ptr, ptr %3, align 8, !tbaa !5
  %217 = load ptr, ptr %3, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.qhT, ptr %217, i32 0, i32 221
  %219 = load ptr, ptr %218, align 8, !tbaa !9
  %220 = call i32 @qh_setsize(ptr noundef %216, ptr noundef %219)
  store i32 %220, ptr %10, align 4, !tbaa !16
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.qhT, ptr %221, i32 0, i32 4
  %223 = load i32, ptr %222, align 8, !tbaa !32
  %224 = icmp ne i32 %223, 0
  br i1 %224, label %225, label %233

225:                                              ; preds = %215
  %226 = load ptr, ptr %3, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.qhT, ptr %226, i32 0, i32 221
  %228 = load ptr, ptr %227, align 8, !tbaa !9
  %229 = getelementptr inbounds %struct.setT, ptr %228, i32 0, i32 1
  %230 = getelementptr inbounds [1 x %union.setelemT], ptr %229, i64 0, i64 0
  %231 = load i32, ptr %10, align 4, !tbaa !16
  %232 = sext i32 %231 to i64
  call void @qsort(ptr noundef %230, i64 noundef %232, i64 noundef 8, ptr noundef @qh_compare_anglemerge)
  br label %241

233:                                              ; preds = %215
  %234 = load ptr, ptr %3, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.qhT, ptr %234, i32 0, i32 221
  %236 = load ptr, ptr %235, align 8, !tbaa !9
  %237 = getelementptr inbounds %struct.setT, ptr %236, i32 0, i32 1
  %238 = getelementptr inbounds [1 x %union.setelemT], ptr %237, i64 0, i64 0
  %239 = load i32, ptr %10, align 4, !tbaa !16
  %240 = sext i32 %239 to i64
  call void @qsort(ptr noundef %238, i64 noundef %240, i64 noundef 8, ptr noundef @qh_compare_facetmerge)
  br label %241

241:                                              ; preds = %233, %225
  %242 = load ptr, ptr %3, align 8, !tbaa !5
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.qhT, ptr %243, i32 0, i32 222
  %245 = load ptr, ptr %244, align 8, !tbaa !33
  %246 = call i32 @qh_setsize(ptr noundef %242, ptr noundef %245)
  %247 = load i32, ptr %10, align 4, !tbaa !16
  %248 = add nsw i32 %247, %246
  store i32 %248, ptr %10, align 4, !tbaa !16
  %249 = load ptr, ptr %3, align 8, !tbaa !5
  %250 = getelementptr inbounds %struct.qhT, ptr %249, i32 0, i32 209
  %251 = load i32, ptr %250, align 8, !tbaa !34
  %252 = icmp ne i32 %251, 0
  br i1 %252, label %253, label %261

253:                                              ; preds = %241
  %254 = load i32, ptr %10, align 4, !tbaa !16
  %255 = load ptr, ptr %3, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.qhT, ptr %255, i32 0, i32 258
  %257 = getelementptr inbounds %struct.qhstatT, ptr %256, i32 0, i32 0
  %258 = getelementptr inbounds [249 x %union.intrealT], ptr %257, i64 0, i64 137
  %259 = load i32, ptr %258, align 8, !tbaa !35
  %260 = add nsw i32 %259, %254
  store i32 %260, ptr %258, align 8, !tbaa !35
  br label %283

261:                                              ; preds = %241
  %262 = load i32, ptr %10, align 4, !tbaa !16
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.qhT, ptr %263, i32 0, i32 258
  %265 = getelementptr inbounds %struct.qhstatT, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds [249 x %union.intrealT], ptr %265, i64 0, i64 135
  %267 = load i32, ptr %266, align 8, !tbaa !35
  %268 = add nsw i32 %267, %262
  store i32 %268, ptr %266, align 8, !tbaa !35
  %269 = load ptr, ptr %3, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.qhT, ptr %269, i32 0, i32 258
  %271 = getelementptr inbounds %struct.qhstatT, ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds [249 x %union.intrealT], ptr %271, i64 0, i64 136
  %273 = load i32, ptr %272, align 8, !tbaa !35
  %274 = load i32, ptr %10, align 4, !tbaa !16
  %275 = icmp slt i32 %273, %274
  br i1 %275, label %276, label %282

276:                                              ; preds = %261
  %277 = load i32, ptr %10, align 4, !tbaa !16
  %278 = load ptr, ptr %3, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.qhT, ptr %278, i32 0, i32 258
  %280 = getelementptr inbounds %struct.qhstatT, ptr %279, i32 0, i32 0
  %281 = getelementptr inbounds [249 x %union.intrealT], ptr %280, i64 0, i64 136
  store i32 %277, ptr %281, align 8, !tbaa !35
  br label %282

282:                                              ; preds = %276, %261
  br label %283

283:                                              ; preds = %282, %253
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.qhT, ptr %284, i32 0, i32 29
  %286 = load i32, ptr %285, align 8, !tbaa !17
  %287 = icmp sge i32 %286, 2
  br i1 %287, label %288, label %294

288:                                              ; preds = %283
  %289 = load ptr, ptr %3, align 8, !tbaa !5
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.qhT, ptr %290, i32 0, i32 158
  %292 = load ptr, ptr %291, align 8, !tbaa !18
  %293 = load i32, ptr %10, align 4, !tbaa !16
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %289, ptr noundef %292, i32 noundef 2021, ptr noundef @.str.91, i32 noundef %293)
  br label %294

294:                                              ; preds = %288, %283
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

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

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

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #1

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

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


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

@.str.90 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.91 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @qh_getmergeset(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 2800
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %4) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 136
  %7 = load i32, ptr %6, align 8, !tbaa !15
  %8 = icmp sgt i32 %7, 3
  br i1 %8, label %9, label %12

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %0, i64 2424
  %11 = load ptr, ptr %10, align 8, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %11, i32 noundef 4026, ptr noundef nonnull @.str.90) #3
  br label %12

12:                                               ; preds = %9, %2
  %13 = getelementptr inbounds i8, ptr %0, i64 2784
  %14 = load i32, ptr %13, align 8, !tbaa !17
  %15 = add i32 %14, 1
  store i32 %15, ptr %13, align 8, !tbaa !17
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %.critedge, label %.preheader93

.preheader93:                                     ; preds = %12, %74
  %.06799 = phi ptr [ %75, %74 ], [ %1, %12 ]
  %16 = getelementptr inbounds i8, ptr %.06799, i64 56
  %17 = load ptr, ptr %16, align 8, !tbaa !18
  %.not76 = icmp eq ptr %17, null
  br i1 %.not76, label %.critedge, label %18

18:                                               ; preds = %.preheader93
  %19 = getelementptr inbounds i8, ptr %.06799, i64 112
  %20 = load i32, ptr %19, align 8
  %21 = and i32 %20, 134217728
  %.not79 = icmp eq i32 %21, 0
  br i1 %.not79, label %22, label %74

22:                                               ; preds = %18
  %23 = load i32, ptr %13, align 8, !tbaa !17
  %24 = getelementptr inbounds i8, ptr %.06799, i64 104
  store i32 %23, ptr %24, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %.06799, i64 80
  %26 = load ptr, ptr %25, align 8, !tbaa !21
  %.not80 = icmp eq ptr %26, null
  br i1 %.not80, label %.loopexit92, label %.preheader

.preheader:                                       ; preds = %22
  %.06694 = getelementptr inbounds i8, ptr %26, i64 8
  %27 = load ptr, ptr %.06694, align 8, !tbaa !22
  %.not8195 = icmp eq ptr %27, null
  br i1 %.not8195, label %.loopexit92, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %28 = phi ptr [ %32, %.lr.ph ], [ %27, %.preheader ]
  %.06696 = phi ptr [ %.066, %.lr.ph ], [ %.06694, %.preheader ]
  %29 = getelementptr inbounds i8, ptr %28, i64 112
  %30 = load i32, ptr %29, align 8
  %31 = and i32 %30, -16385
  store i32 %31, ptr %29, align 8
  %.066 = getelementptr inbounds i8, ptr %.06696, i64 8
  %32 = load ptr, ptr %.066, align 8, !tbaa !22
  %.not81 = icmp eq ptr %32, null
  br i1 %.not81, label %.loopexit92, label %.lr.ph, !llvm.loop !23

.loopexit92:                                      ; preds = %.lr.ph, %.preheader, %22
  %33 = getelementptr inbounds i8, ptr %.06799, i64 72
  %34 = load ptr, ptr %33, align 8, !tbaa !25
  %.not82 = icmp eq ptr %34, null
  br i1 %.not82, label %.loopexit, label %35

35:                                               ; preds = %.loopexit92
  %36 = getelementptr inbounds i8, ptr %34, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !22
  %.not8397 = icmp eq ptr %37, null
  br i1 %.not8397, label %.loopexit, label %.lr.ph98.preheader

.lr.ph98.preheader:                               ; preds = %35
  %38 = getelementptr inbounds i8, ptr %34, i64 16
  br label %.lr.ph98

.lr.ph98:                                         ; preds = %.lr.ph98.preheader, %.backedge
  %39 = phi ptr [ %71, %.backedge ], [ %37, %.lr.ph98.preheader ]
  %40 = phi ptr [ %70, %.backedge ], [ %38, %.lr.ph98.preheader ]
  %41 = getelementptr inbounds i8, ptr %39, i64 28
  %42 = load i8, ptr %41, align 4
  %43 = and i8 %42, 6
  %or.cond = icmp eq i8 %43, 2
  br i1 %or.cond, label %.backedge, label %44

44:                                               ; preds = %.lr.ph98
  %45 = getelementptr inbounds i8, ptr %39, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = icmp eq ptr %46, %.06799
  br i1 %47, label %48, label %51

48:                                               ; preds = %44
  %49 = getelementptr inbounds i8, ptr %39, i64 16
  %50 = load ptr, ptr %49, align 8, !tbaa !28
  br label %51

51:                                               ; preds = %44, %48
  %52 = phi ptr [ %50, %48 ], [ %46, %44 ]
  %53 = getelementptr inbounds i8, ptr %52, i64 112
  %54 = load i32, ptr %53, align 8
  %55 = and i32 %54, 16384
  %.not86 = icmp eq i32 %55, 0
  br i1 %.not86, label %58, label %56

56:                                               ; preds = %51
  %57 = and i8 %42, -7
  br label %.backedge.sink.split

58:                                               ; preds = %51
  %59 = getelementptr inbounds i8, ptr %52, i64 104
  %60 = load i32, ptr %59, align 8, !tbaa !20
  %61 = load i32, ptr %13, align 8, !tbaa !17
  %.not87 = icmp eq i32 %60, %61
  br i1 %.not87, label %.backedge, label %62

62:                                               ; preds = %58
  %63 = or disjoint i32 %54, 16384
  store i32 %63, ptr %53, align 8
  %64 = load i8, ptr %41, align 4
  %65 = and i8 %64, -5
  store i8 %65, ptr %41, align 4
  %66 = and i8 %64, 96
  %or.cond91.not = icmp eq i8 %66, 96
  %.0 = zext i1 %or.cond91.not to i32
  %67 = tail call i32 @qh_test_appendmerge(ptr noundef nonnull %0, ptr noundef nonnull %.06799, ptr noundef nonnull %52, i32 noundef %.0)
  %.not90 = icmp eq i32 %67, 0
  %.pre = load i8, ptr %41, align 4
  %68 = or i8 %.pre, 4
  %spec.select = select i1 %.not90, i8 %.pre, i8 %68
  br label %.backedge.sink.split

.backedge.sink.split:                             ; preds = %62, %56
  %.sink101 = phi i8 [ %57, %56 ], [ %spec.select, %62 ]
  %69 = or i8 %.sink101, 2
  store i8 %69, ptr %41, align 4
  br label %.backedge

.backedge:                                        ; preds = %.backedge.sink.split, %58, %.lr.ph98
  %70 = getelementptr inbounds i8, ptr %40, i64 8
  %71 = load ptr, ptr %40, align 8, !tbaa !22
  %.not83 = icmp eq ptr %71, null
  br i1 %.not83, label %.loopexit, label %.lr.ph98, !llvm.loop !29

.loopexit:                                        ; preds = %.backedge, %35, %.loopexit92
  %72 = load i32, ptr %19, align 8
  %73 = or i32 %72, 134217728
  store i32 %73, ptr %19, align 8
  %.pre100 = load ptr, ptr %16, align 8, !tbaa !18
  br label %74

74:                                               ; preds = %18, %.loopexit
  %75 = phi ptr [ %17, %18 ], [ %.pre100, %.loopexit ]
  %.not75 = icmp eq ptr %75, null
  br i1 %.not75, label %.critedge, label %.preheader93, !llvm.loop !30

.critedge:                                        ; preds = %.preheader93, %74, %12
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = tail call i32 @qh_setsize(ptr noundef %0, ptr noundef %76) #3
  %78 = getelementptr inbounds i8, ptr %0, i64 16
  %79 = load i32, ptr %78, align 8, !tbaa !31
  %.not77 = icmp eq i32 %79, 0
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = sext i32 %77 to i64
  %qh_compare_facetmerge.qh_compare_anglemerge = select i1 %.not77, ptr @qh_compare_facetmerge, ptr @qh_compare_anglemerge
  tail call void @qsort(ptr noundef nonnull %81, i64 noundef %82, i64 noundef 8, ptr noundef nonnull %qh_compare_facetmerge.qh_compare_anglemerge) #3
  %83 = getelementptr inbounds i8, ptr %0, i64 2808
  %84 = load ptr, ptr %83, align 8, !tbaa !32
  %85 = tail call i32 @qh_setsize(ptr noundef nonnull %0, ptr noundef %84) #3
  %86 = add nsw i32 %85, %77
  %87 = getelementptr inbounds i8, ptr %0, i64 2744
  %88 = load i32, ptr %87, align 8, !tbaa !33
  %.not78 = icmp eq i32 %88, 0
  br i1 %.not78, label %93, label %89

89:                                               ; preds = %.critedge
  %90 = getelementptr inbounds i8, ptr %0, i64 4520
  %91 = load i32, ptr %90, align 8, !tbaa !34
  %92 = add nsw i32 %91, %86
  store i32 %92, ptr %90, align 8, !tbaa !34
  br label %101

93:                                               ; preds = %.critedge
  %94 = getelementptr inbounds i8, ptr %0, i64 4504
  %95 = load i32, ptr %94, align 8, !tbaa !34
  %96 = add nsw i32 %95, %86
  store i32 %96, ptr %94, align 8, !tbaa !34
  %97 = getelementptr inbounds i8, ptr %0, i64 4512
  %98 = load i32, ptr %97, align 8, !tbaa !34
  %99 = icmp slt i32 %98, %86
  br i1 %99, label %100, label %101

100:                                              ; preds = %93
  store i32 %86, ptr %97, align 8, !tbaa !34
  br label %101

101:                                              ; preds = %93, %100, %89
  %102 = load i32, ptr %6, align 8, !tbaa !15
  %103 = icmp sgt i32 %102, 1
  br i1 %103, label %104, label %107

104:                                              ; preds = %101
  %105 = getelementptr inbounds i8, ptr %0, i64 2424
  %106 = load ptr, ptr %105, align 8, !tbaa !16
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %106, i32 noundef 2021, ptr noundef nonnull @.str.91, i32 noundef %86) #3
  br label %107

107:                                              ; preds = %104, %101
  ret void
}

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_compare_anglemerge(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_compare_facetmerge(ptr noundef, ptr noundef) #1

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @qh_test_appendmerge(ptr noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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


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