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

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

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

@qh_qh = external global %struct.qhT, align 8
@qh_qhstat = external global %struct.qhstatT, align 8
@.str.41 = external hidden unnamed_addr constant [57 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

declare i32 @qh_setsize(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_pointid(ptr noundef) #1

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

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

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

declare void @qh_setfree(ptr noundef) #1

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

26:                                               ; preds = %3
  %27 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %27, i32 noundef 1042, ptr noundef @.str.41)
  br label %28

28:                                               ; preds = %26, %3
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = call ptr @qh_settemp(i32 noundef %29)
  store ptr %30, ptr %7, align 8, !tbaa !5
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !17
  %31 = load ptr, ptr %7, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.setT, ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds [1 x %union.setelemT], ptr %32, i64 0, i64 0
  store ptr %33, ptr %11, align 8, !tbaa !5
  %34 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %34, ptr %18, align 4, !tbaa !9
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %35, ptr %10, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %44, %28
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = add nsw i32 %37, -1
  store i32 %38, ptr %18, align 4, !tbaa !9
  %39 = icmp ne i32 %37, 0
  br i1 %39, label %40, label %49

40:                                               ; preds = %36
  %41 = load ptr, ptr %10, align 8, !tbaa !5
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds ptr, ptr %42, i32 1
  store ptr %43, ptr %11, align 8, !tbaa !5
  store ptr %41, ptr %42, align 8, !tbaa !5
  br label %44

44:                                               ; preds = %40
  %45 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = sext i32 %45 to i64
  %48 = getelementptr inbounds double, ptr %46, i64 %47
  store ptr %48, ptr %10, align 8, !tbaa !5
  br label %36, !llvm.loop !19

49:                                               ; preds = %36
  %50 = load ptr, ptr %7, align 8, !tbaa !5
  %51 = load i32, ptr %6, align 4, !tbaa !9
  call void @qh_settruncate(ptr noundef %50, i32 noundef %51)
  store ptr null, ptr %8, align 8, !tbaa !5
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %77

54:                                               ; preds = %49
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.setT, ptr %55, i32 0, i32 1
  %57 = getelementptr inbounds [1 x %union.setelemT], ptr %56, i64 0, i64 0
  store ptr %57, ptr %9, align 8, !tbaa !5
  br label %58

58:                                               ; preds = %75, %54
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds ptr, ptr %59, i32 1
  store ptr %60, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %59, align 8, !tbaa !5
  store ptr %61, ptr %8, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %76

63:                                               ; preds = %58
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.vertexT, ptr %64, i32 0, i32 2
  %66 = load ptr, ptr %65, align 8, !tbaa !21
  %67 = call i32 @qh_pointid(ptr noundef %66)
  store i32 %67, ptr %19, align 4, !tbaa !9
  %68 = icmp sge i32 %67, 0
  br i1 %68, label %69, label %75

69:                                               ; preds = %63
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.setT, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %19, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [1 x %union.setelemT], ptr %71, i64 0, i64 %73
  store ptr null, ptr %74, align 8, !tbaa !23
  br label %75

75:                                               ; preds = %69, %63
  br label %58, !llvm.loop !24

76:                                               ; preds = %58
  br label %77

77:                                               ; preds = %76, %49
  %78 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !25
  %79 = call i32 @qh_pointid(ptr noundef %78)
  store i32 %79, ptr %19, align 4, !tbaa !9
  %80 = load i32, ptr %19, align 4, !tbaa !9
  %81 = icmp sge i32 %80, 0
  br i1 %81, label %82, label %99

82:                                               ; preds = %77
  %83 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 88), align 8, !tbaa !26
  %84 = sub nsw i32 %83, 1
  %85 = load i32, ptr %19, align 4, !tbaa !9
  %86 = icmp ne i32 %84, %85
  br i1 %86, label %87, label %99

87:                                               ; preds = %82
  %88 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 89), align 4, !tbaa !27
  %89 = sub nsw i32 0, %88
  %90 = sub nsw i32 %89, 1
  %91 = load i32, ptr %19, align 4, !tbaa !9
  %92 = icmp ne i32 %90, %91
  br i1 %92, label %93, label %99

93:                                               ; preds = %87
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.setT, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %19, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [1 x %union.setelemT], ptr %95, i64 0, i64 %97
  store ptr null, ptr %98, align 8, !tbaa !23
  br label %99

99:                                               ; preds = %93, %87, %82, %77
  %100 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !28
  %101 = icmp ne ptr %100, null
  br i1 %101, label %102, label %119

102:                                              ; preds = %99
  %103 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 48), align 4, !tbaa !29
  %104 = icmp ne i32 %103, 0
  br i1 %104, label %105, label %119

105:                                              ; preds = %102
  %106 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !30
  %107 = icmp ne i32 %106, 0
  br i1 %107, label %119, label %108

108:                                              ; preds = %105
  %109 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 26), align 8, !tbaa !28
  %110 = call i32 @qh_pointid(ptr noundef %109)
  store i32 %110, ptr %19, align 4, !tbaa !9
  %111 = icmp sge i32 %110, 0
  br i1 %111, label %112, label %118

112:                                              ; preds = %108
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.setT, ptr %113, i32 0, i32 1
  %115 = load i32, ptr %19, align 4, !tbaa !9
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds [1 x %union.setelemT], ptr %114, i64 0, i64 %116
  store ptr null, ptr %117, align 8, !tbaa !23
  br label %118

118:                                              ; preds = %112, %108
  br label %119

119:                                              ; preds = %118, %105, %102, %99
  %120 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 10), align 4, !tbaa !31
  %121 = icmp ne i32 %120, 0
  br i1 %121, label %265, label %122

122:                                              ; preds = %119
  %123 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 216), align 8, !tbaa !23
  %124 = icmp sgt i32 %123, 50
  %125 = zext i1 %124 to i64
  %126 = select i1 %124, i32 2, i32 1
  %127 = sitofp i32 %126 to double
  %128 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !30
  %129 = icmp ne i32 %128, 0
  %130 = zext i1 %129 to i64
  %131 = select i1 %129, i32 2, i32 1
  %132 = sitofp i32 %131 to double
  %133 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !32
  %134 = fmul double %132, %133
  %135 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !33
  %136 = fcmp olt double %134, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %122
  %138 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !33
  br label %147

139:                                              ; preds = %122
  %140 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !30
  %141 = icmp ne i32 %140, 0
  %142 = zext i1 %141 to i64
  %143 = select i1 %141, i32 2, i32 1
  %144 = sitofp i32 %143 to double
  %145 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 6), align 8, !tbaa !32
  %146 = fmul double %144, %145
  br label %147

147:                                              ; preds = %139, %137
  %148 = phi double [ %138, %137 ], [ %146, %139 ]
  %149 = fmul double %127, %148
  store double %149, ptr %23, align 8, !tbaa !11
  %150 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 112), align 8, !tbaa !34
  %151 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !18
  %152 = sub nsw i32 %150, %151
  %153 = sub nsw i32 %152, 1
  store i32 %153, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 218), align 8, !tbaa !23
  %154 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 178), align 8, !tbaa !35
  store i32 %154, ptr %17, align 4, !tbaa !9
  %155 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %155, ptr %16, align 4, !tbaa !9
  %156 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !36
  store ptr %156, ptr %20, align 8, !tbaa !5
  br label %157

157:                                              ; preds = %260, %147
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = icmp ne ptr %158, null
  br i1 %159, label %160, label %165

160:                                              ; preds = %157
  %161 = load ptr, ptr %20, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.facetT, ptr %161, i32 0, i32 7
  %163 = load ptr, ptr %162, align 8, !tbaa !37
  %164 = icmp ne ptr %163, null
  br label %165

165:                                              ; preds = %160, %157
  %166 = phi i1 [ false, %157 ], [ %164, %160 ]
  br i1 %166, label %167, label %264

167:                                              ; preds = %165
  %168 = load i32, ptr %16, align 4, !tbaa !9
  %169 = load i32, ptr %17, align 4, !tbaa !9
  %170 = add nsw i32 %169, -1
  store i32 %170, ptr %17, align 4, !tbaa !9
  %171 = sdiv i32 %168, %169
  %172 = add nsw i32 %171, 100
  store i32 %172, ptr %13, align 4, !tbaa !9
  %173 = load i32, ptr %13, align 4, !tbaa !9
  %174 = call ptr @qh_setnew(i32 noundef %173)
  %175 = load ptr, ptr %20, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.facetT, ptr %175, i32 0, i32 11
  store ptr %174, ptr %176, align 8, !tbaa !39
  store ptr null, ptr %12, align 8, !tbaa !5
  store i32 0, ptr %16, align 4, !tbaa !9
  store ptr null, ptr %10, align 8, !tbaa !5
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = icmp ne ptr %177, null
  br i1 %178, label %179, label %244

179:                                              ; preds = %167
  store i32 0, ptr %14, align 4, !tbaa !9
  %180 = load ptr, ptr %7, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.setT, ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds [1 x %union.setelemT], ptr %181, i64 0, i64 0
  %183 = load ptr, ptr %182, align 8, !tbaa !23
  store ptr %183, ptr %10, align 8, !tbaa !5
  %184 = load ptr, ptr %7, align 8, !tbaa !5
  %185 = call i32 @qh_setsize(ptr noundef %184)
  store i32 %185, ptr %15, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %235, %179
  %187 = load i32, ptr %14, align 4, !tbaa !9
  %188 = load i32, ptr %15, align 4, !tbaa !9
  %189 = icmp slt i32 %187, %188
  br i1 %189, label %190, label %243

190:                                              ; preds = %186
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = icmp ne ptr %191, null
  br i1 %192, label %193, label %234

193:                                              ; preds = %190
  %194 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 176), align 8, !tbaa !23
  %195 = add nsw i32 %194, 1
  store i32 %195, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 176), align 8, !tbaa !23
  %196 = load ptr, ptr %10, align 8, !tbaa !5
  %197 = load ptr, ptr %20, align 8, !tbaa !5
  call void @qh_distplane(ptr noundef %196, ptr noundef %197, ptr noundef %22)
  %198 = load double, ptr %22, align 8, !tbaa !11
  %199 = load double, ptr %23, align 8, !tbaa !11
  %200 = fcmp olt double %198, %199
  br i1 %200, label %201, label %209

201:                                              ; preds = %193
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = load ptr, ptr %7, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.setT, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = add nsw i32 %205, 1
  store i32 %206, ptr %16, align 4, !tbaa !9
  %207 = sext i32 %205 to i64
  %208 = getelementptr inbounds [1 x %union.setelemT], ptr %204, i64 0, i64 %207
  store ptr %202, ptr %208, align 8, !tbaa !23
  br label %233

209:                                              ; preds = %193
  %210 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !17
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 180), align 8, !tbaa !17
  %212 = load ptr, ptr %12, align 8, !tbaa !5
  %213 = icmp ne ptr %212, null
  br i1 %213, label %217, label %214

214:                                              ; preds = %209
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %215, ptr %12, align 8, !tbaa !5
  %216 = load double, ptr %22, align 8, !tbaa !11
  store double %216, ptr %21, align 8, !tbaa !11
  br label %232

217:                                              ; preds = %209
  %218 = load double, ptr %22, align 8, !tbaa !11
  %219 = load double, ptr %21, align 8, !tbaa !11
  %220 = fcmp ogt double %218, %219
  br i1 %220, label %221, label %227

221:                                              ; preds = %217
  %222 = load ptr, ptr %20, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.facetT, ptr %222, i32 0, i32 11
  %224 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %223, ptr noundef %224)
  %225 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %225, ptr %12, align 8, !tbaa !5
  %226 = load double, ptr %22, align 8, !tbaa !11
  store double %226, ptr %21, align 8, !tbaa !11
  br label %231

227:                                              ; preds = %217
  %228 = load ptr, ptr %20, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.facetT, ptr %228, i32 0, i32 11
  %230 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %229, ptr noundef %230)
  br label %231

231:                                              ; preds = %227, %221
  br label %232

232:                                              ; preds = %231, %214
  br label %233

233:                                              ; preds = %232, %201
  br label %234

234:                                              ; preds = %233, %190
  br label %235

235:                                              ; preds = %234
  %236 = load ptr, ptr %7, align 8, !tbaa !5
  %237 = getelementptr inbounds %struct.setT, ptr %236, i32 0, i32 1
  %238 = load i32, ptr %14, align 4, !tbaa !9
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %14, align 4, !tbaa !9
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [1 x %union.setelemT], ptr %237, i64 0, i64 %240
  %242 = load ptr, ptr %241, align 8, !tbaa !23
  store ptr %242, ptr %10, align 8, !tbaa !5
  br label %186, !llvm.loop !40

243:                                              ; preds = %186
  br label %244

244:                                              ; preds = %243, %167
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = icmp ne ptr %245, null
  br i1 %246, label %247, label %254

247:                                              ; preds = %244
  %248 = load ptr, ptr %20, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.facetT, ptr %248, i32 0, i32 11
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %249, ptr noundef %250)
  %251 = load double, ptr %21, align 8, !tbaa !11
  %252 = load ptr, ptr %20, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.facetT, ptr %252, i32 0, i32 0
  store double %251, ptr %253, align 8, !tbaa !41
  br label %257

254:                                              ; preds = %244
  %255 = load ptr, ptr %20, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.facetT, ptr %255, i32 0, i32 11
  call void @qh_setfree(ptr noundef %256)
  br label %257

257:                                              ; preds = %254, %247
  %258 = load ptr, ptr %7, align 8, !tbaa !5
  %259 = load i32, ptr %16, align 4, !tbaa !9
  call void @qh_settruncate(ptr noundef %258, i32 noundef %259)
  br label %260

260:                                              ; preds = %257
  %261 = load ptr, ptr %20, align 8, !tbaa !5
  %262 = getelementptr inbounds %struct.facetT, ptr %261, i32 0, i32 7
  %263 = load ptr, ptr %262, align 8, !tbaa !37
  store ptr %263, ptr %20, align 8, !tbaa !5
  br label %157, !llvm.loop !42

264:                                              ; preds = %165
  br label %265

265:                                              ; preds = %264, %119
  %266 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 10), align 4, !tbaa !31
  %267 = icmp ne i32 %266, 0
  br i1 %267, label %280, label %268

268:                                              ; preds = %265
  %269 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 39), align 4, !tbaa !30
  %270 = icmp ne i32 %269, 0
  br i1 %270, label %280, label %271

271:                                              ; preds = %268
  %272 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 31), align 8, !tbaa !43
  %273 = icmp ne i32 %272, 0
  br i1 %273, label %280, label %274

274:                                              ; preds = %271
  %275 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 32), align 4, !tbaa !44
  %276 = icmp ne i32 %275, 0
  br i1 %276, label %280, label %277

277:                                              ; preds = %274
  %278 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 109), align 4, !tbaa !45
  %279 = icmp ne i32 %278, 0
  br i1 %279, label %280, label %311

280:                                              ; preds = %277, %274, %271, %268, %265
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !46
  store ptr null, ptr %10, align 8, !tbaa !5
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = icmp ne ptr %281, null
  br i1 %282, label %283, label %310

283:                                              ; preds = %280
  store i32 0, ptr %14, align 4, !tbaa !9
  %284 = load ptr, ptr %7, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.setT, ptr %284, i32 0, i32 1
  %286 = getelementptr inbounds [1 x %union.setelemT], ptr %285, i64 0, i64 0
  %287 = load ptr, ptr %286, align 8, !tbaa !23
  store ptr %287, ptr %10, align 8, !tbaa !5
  %288 = load ptr, ptr %7, align 8, !tbaa !5
  %289 = call i32 @qh_setsize(ptr noundef %288)
  store i32 %289, ptr %15, align 4, !tbaa !9
  br label %290

290:                                              ; preds = %301, %283
  %291 = load i32, ptr %14, align 4, !tbaa !9
  %292 = load i32, ptr %15, align 4, !tbaa !9
  %293 = icmp slt i32 %291, %292
  br i1 %293, label %294, label %309

294:                                              ; preds = %290
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = icmp ne ptr %295, null
  br i1 %296, label %297, label %300

297:                                              ; preds = %294
  %298 = load ptr, ptr %10, align 8, !tbaa !5
  %299 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !36
  call void @qh_partitionpoint(ptr noundef %298, ptr noundef %299)
  br label %300

300:                                              ; preds = %297, %294
  br label %301

301:                                              ; preds = %300
  %302 = load ptr, ptr %7, align 8, !tbaa !5
  %303 = getelementptr inbounds %struct.setT, ptr %302, i32 0, i32 1
  %304 = load i32, ptr %14, align 4, !tbaa !9
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %14, align 4, !tbaa !9
  %306 = sext i32 %305 to i64
  %307 = getelementptr inbounds [1 x %union.setelemT], ptr %303, i64 0, i64 %306
  %308 = load ptr, ptr %307, align 8, !tbaa !23
  store ptr %308, ptr %10, align 8, !tbaa !5
  br label %290, !llvm.loop !47

309:                                              ; preds = %290
  br label %310

310:                                              ; preds = %309, %280
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 204), align 8, !tbaa !46
  br label %311

311:                                              ; preds = %310, %277
  %312 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 175), align 8, !tbaa !23
  %313 = load i32, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 176), align 8, !tbaa !23
  %314 = add nsw i32 %313, %312
  store i32 %314, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 176), align 8, !tbaa !23
  store i32 0, ptr getelementptr inbounds ([249 x %union.intrealT], ptr @qh_qhstat, i64 0, i64 175), align 8, !tbaa !23
  call void @qh_settempfree(ptr noundef %7)
  %315 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !13
  %316 = icmp sge i32 %315, 4
  br i1 %316, label %317, label %319

317:                                              ; preds = %311
  %318 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 163), align 8, !tbaa !36
  call void @qh_printfacetlist(ptr noundef %318, ptr noundef null, i32 noundef 1)
  br label %319

319:                                              ; preds = %317, %311
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

declare ptr @qh_settemp(i32 noundef) #1

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

declare ptr @qh_setnew(i32 noundef) #1

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

declare void @qh_settempfree(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 = !{!14, !10, i64 2576}
!18 = !{!14, !10, i64 632}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !6, i64 16}
!22 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !20}
!25 = !{!14, !6, i64 104}
!26 = !{!14, !10, i64 520}
!27 = !{!14, !10, i64 524}
!28 = !{!14, !6, i64 120}
!29 = !{!14, !10, i64 236}
!30 = !{!14, !10, i64 188}
!31 = !{!14, !10, i64 44}
!32 = !{!14, !12, i64 24}
!33 = !{!14, !12, i64 2680}
!34 = !{!14, !10, i64 640}
!35 = !{!14, !10, i64 2568}
!36 = !{!14, !6, i64 2456}
!37 = !{!38, !6, i64 56}
!38 = !{!"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}
!39 = !{!38, !6, i64 88}
!40 = distinct !{!40, !20}
!41 = !{!38, !12, i64 0}
!42 = distinct !{!42, !20}
!43 = !{!14, !10, i64 144}
!44 = !{!14, !10, i64 148}
!45 = !{!14, !10, i64 628}
!46 = !{!14, !10, i64 2712}
!47 = distinct !{!47, !20}


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

%struct.qhT = type { i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, double, double, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [29 x i32], i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, double, i32, ptr, ptr, i32, i32, i32, i32, i32, ptr, i32, ptr, i32, [256 x i8], i32, [256 x i8], [512 x i8], i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, ptr, double, double, double, double, i32, [6 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], [1 x %struct.__jmp_buf_tag], [40 x i8], ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, i32, i32, ptr, i32, ptr, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, double, i32, double, double, double, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, i32, i32, double, double, i32, i32, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, i32, i32, i32, ptr, double, double, double, double, i32, i32, i32, i32, i32, i32, ptr, ptr, i32 }
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%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 }
%union.setelemT = type { ptr }

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@qh_qhstat = external local_unnamed_addr global %struct.qhstatT, align 8
@.str.41 = external hidden unnamed_addr constant [57 x i8], align 1

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

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

declare i32 @qh_setsize(ptr noundef) local_unnamed_addr #1

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

declare i32 @qh_pointid(ptr noundef) local_unnamed_addr #1

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

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

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

declare void @qh_setfree(ptr noundef) local_unnamed_addr #1

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

8:                                                ; preds = %3
  %9 = 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 %9, i32 noundef 1042, ptr noundef nonnull @.str.41) #3
  br label %10

10:                                               ; preds = %8, %3
  %11 = tail call ptr @qh_settemp(i32 noundef %2) #3
  store ptr %11, ptr %4, align 8, !tbaa !14
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !15
  %.not118 = icmp eq i32 %2, 0
  br i1 %.not118, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %10
  %12 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !16
  %13 = sext i32 %12 to i64
  %xtraiter = and i32 %2, 7
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %.066121.prol = phi i32 [ %14, %.prol.preheader ], [ %2, %.lr.ph ]
  %.pn108120.prol = phi ptr [ %.078.prol, %.prol.preheader ], [ %11, %.lr.ph ]
  %.079119.prol = phi ptr [ %15, %.prol.preheader ], [ %1, %.lr.ph ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %.078.prol = getelementptr inbounds i8, ptr %.pn108120.prol, i64 8
  %14 = add nsw i32 %.066121.prol, -1
  store ptr %.079119.prol, ptr %.078.prol, align 8, !tbaa !14
  %15 = getelementptr inbounds double, ptr %.079119.prol, i64 %13
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !17

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.066121.unr = phi i32 [ %2, %.lr.ph ], [ %14, %.prol.preheader ]
  %.pn108120.unr = phi ptr [ %11, %.lr.ph ], [ %.078.prol, %.prol.preheader ]
  %.079119.unr = phi ptr [ %1, %.lr.ph ], [ %15, %.prol.preheader ]
  %16 = icmp ult i32 %2, 8
  br i1 %16, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %.066121 = phi i32 [ %24, %.lr.ph.new ], [ %.066121.unr, %.prol.loopexit ]
  %.pn108120 = phi ptr [ %.078.7, %.lr.ph.new ], [ %.pn108120.unr, %.prol.loopexit ]
  %.079119 = phi ptr [ %25, %.lr.ph.new ], [ %.079119.unr, %.prol.loopexit ]
  %.078 = getelementptr inbounds i8, ptr %.pn108120, i64 8
  store ptr %.079119, ptr %.078, align 8, !tbaa !14
  %17 = getelementptr inbounds double, ptr %.079119, i64 %13
  %.078.1 = getelementptr inbounds i8, ptr %.pn108120, i64 16
  store ptr %17, ptr %.078.1, align 8, !tbaa !14
  %18 = getelementptr inbounds double, ptr %17, i64 %13
  %.078.2 = getelementptr inbounds i8, ptr %.pn108120, i64 24
  store ptr %18, ptr %.078.2, align 8, !tbaa !14
  %19 = getelementptr inbounds double, ptr %18, i64 %13
  %.078.3 = getelementptr inbounds i8, ptr %.pn108120, i64 32
  store ptr %19, ptr %.078.3, align 8, !tbaa !14
  %20 = getelementptr inbounds double, ptr %19, i64 %13
  %.078.4 = getelementptr inbounds i8, ptr %.pn108120, i64 40
  store ptr %20, ptr %.078.4, align 8, !tbaa !14
  %21 = getelementptr inbounds double, ptr %20, i64 %13
  %.078.5 = getelementptr inbounds i8, ptr %.pn108120, i64 48
  store ptr %21, ptr %.078.5, align 8, !tbaa !14
  %22 = getelementptr inbounds double, ptr %21, i64 %13
  %.078.6 = getelementptr inbounds i8, ptr %.pn108120, i64 56
  store ptr %22, ptr %.078.6, align 8, !tbaa !14
  %23 = getelementptr inbounds double, ptr %22, i64 %13
  %.078.7 = getelementptr inbounds i8, ptr %.pn108120, i64 64
  %24 = add nsw i32 %.066121, -8
  store ptr %23, ptr %.078.7, align 8, !tbaa !14
  %25 = getelementptr inbounds double, ptr %23, i64 %13
  %.not.7 = icmp eq i32 %24, 0
  br i1 %.not.7, label %._crit_edge, label %.lr.ph.new, !llvm.loop !19

._crit_edge:                                      ; preds = %.prol.loopexit, %.lr.ph.new, %10
  tail call void @qh_settruncate(ptr noundef %11, i32 noundef %2) #3
  %.not91 = icmp eq ptr %0, null
  br i1 %.not91, label %.loopexit117, label %.preheader

.preheader:                                       ; preds = %._crit_edge
  %.074122 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %.074122, align 8, !tbaa !14
  %.not92123 = icmp eq ptr %26, null
  br i1 %.not92123, label %.loopexit117, label %.lr.ph125.preheader

.lr.ph125.preheader:                              ; preds = %.preheader
  %27 = getelementptr inbounds i8, ptr %11, i64 8
  br label %.lr.ph125

.lr.ph125:                                        ; preds = %.lr.ph125.preheader, %36
  %28 = phi ptr [ %37, %36 ], [ %26, %.lr.ph125.preheader ]
  %.074124 = phi ptr [ %.074, %36 ], [ %.074122, %.lr.ph125.preheader ]
  %29 = getelementptr inbounds i8, ptr %28, i64 16
  %30 = load ptr, ptr %29, align 8, !tbaa !21
  %31 = tail call i32 @qh_pointid(ptr noundef %30) #3
  %32 = icmp sgt i32 %31, -1
  br i1 %32, label %33, label %36

33:                                               ; preds = %.lr.ph125
  %34 = zext nneg i32 %31 to i64
  %35 = getelementptr inbounds [1 x %union.setelemT], ptr %27, i64 0, i64 %34
  store ptr null, ptr %35, align 8, !tbaa !23
  br label %36

36:                                               ; preds = %33, %.lr.ph125
  %.074 = getelementptr inbounds i8, ptr %.074124, i64 8
  %37 = load ptr, ptr %.074, align 8, !tbaa !14
  %.not92 = icmp eq ptr %37, null
  br i1 %.not92, label %.loopexit117, label %.lr.ph125, !llvm.loop !24

.loopexit117:                                     ; preds = %36, %.preheader, %._crit_edge
  %38 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !25
  %39 = tail call i32 @qh_pointid(ptr noundef %38) #3
  %40 = icmp sgt i32 %39, -1
  br i1 %40, label %41, label %51

41:                                               ; preds = %.loopexit117
  %42 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 520), align 8, !tbaa !26
  %43 = add nsw i32 %42, -1
  %.not93 = icmp eq i32 %43, %39
  br i1 %.not93, label %51, label %44

44:                                               ; preds = %41
  %45 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 524), align 4, !tbaa !27
  %46 = xor i32 %45, %39
  %.not94 = icmp eq i32 %46, -1
  br i1 %.not94, label %51, label %47

47:                                               ; preds = %44
  %48 = getelementptr inbounds i8, ptr %11, i64 8
  %49 = zext nneg i32 %39 to i64
  %50 = getelementptr inbounds [1 x %union.setelemT], ptr %48, i64 0, i64 %49
  store ptr null, ptr %50, align 8, !tbaa !23
  br label %51

51:                                               ; preds = %47, %44, %41, %.loopexit117
  %52 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 120), align 8, !tbaa !28
  %53 = icmp eq ptr %52, null
  %54 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 236), align 4
  %55 = icmp eq i32 %54, 0
  %or.cond.not97 = select i1 %53, i1 true, i1 %55
  %56 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %57 = icmp ne i32 %56, 0
  %or.cond3 = select i1 %or.cond.not97, i1 true, i1 %57
  br i1 %or.cond3, label %65, label %58

58:                                               ; preds = %51
  %59 = tail call i32 @qh_pointid(ptr noundef nonnull %52) #3
  %60 = icmp sgt i32 %59, -1
  br i1 %60, label %61, label %65

61:                                               ; preds = %58
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  %63 = zext nneg i32 %59 to i64
  %64 = getelementptr inbounds [1 x %union.setelemT], ptr %62, i64 0, i64 %63
  store ptr null, ptr %64, align 8, !tbaa !23
  br label %65

65:                                               ; preds = %58, %61, %51
  %66 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 44), align 4, !tbaa !29
  %.not98 = icmp eq i32 %66, 0
  %.pre156 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  br i1 %.not98, label %67, label %.critedge

67:                                               ; preds = %65
  %68 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1728), align 8, !tbaa !23
  %69 = icmp sgt i32 %68, 50
  %70 = select i1 %69, i32 2, i32 1
  %71 = uitofp nneg i32 %70 to double
  %.not99 = icmp eq i32 %.pre156, 0
  %72 = select i1 %.not99, i32 1, i32 2
  %73 = uitofp nneg i32 %72 to double
  %74 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 24), align 8, !tbaa !30
  %75 = fmul double %74, %73
  %76 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2680), align 8, !tbaa !31
  %77 = fcmp olt double %75, %76
  %. = select i1 %77, double %76, double %75
  %78 = fmul double %., %71
  %79 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 640), align 8, !tbaa !32
  %80 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !16
  %81 = xor i32 %80, -1
  %82 = add i32 %79, %81
  store i32 %82, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1744), align 8, !tbaa !23
  %.065136 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !14
  %.not100137 = icmp eq ptr %.065136, null
  br i1 %.not100137, label %.critedge, label %.lr.ph143.preheader

.lr.ph143.preheader:                              ; preds = %67
  %83 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2568), align 8, !tbaa !33
  br label %.lr.ph143

.lr.ph143:                                        ; preds = %.lr.ph143.preheader, %123
  %84 = phi ptr [ %124, %123 ], [ %11, %.lr.ph143.preheader ]
  %.065141 = phi ptr [ %.065, %123 ], [ %.065136, %.lr.ph143.preheader ]
  %.0140 = phi double [ %.3115, %123 ], [ 0xFFEFFFFFFFFFFFFF, %.lr.ph143.preheader ]
  %.067139 = phi i32 [ %88, %123 ], [ %83, %.lr.ph143.preheader ]
  %.068138 = phi i32 [ %.371113, %123 ], [ %2, %.lr.ph143.preheader ]
  %85 = getelementptr inbounds i8, ptr %.065141, i64 56
  %86 = load ptr, ptr %85, align 8, !tbaa !34
  %.not101 = icmp eq ptr %86, null
  br i1 %.not101, label %.critedge.loopexit, label %87

87:                                               ; preds = %.lr.ph143
  %88 = add nsw i32 %.067139, -1
  %89 = sdiv i32 %.068138, %.067139
  %90 = add nsw i32 %89, 100
  %91 = call ptr @qh_setnew(i32 noundef %90) #3
  %92 = getelementptr inbounds i8, ptr %.065141, i64 88
  store ptr %91, ptr %92, align 8, !tbaa !36
  %.not102 = icmp eq ptr %84, null
  br i1 %.not102, label %.thread, label %93

93:                                               ; preds = %87
  %94 = getelementptr inbounds i8, ptr %84, i64 8
  %95 = load ptr, ptr %94, align 8, !tbaa !23
  %96 = call i32 @qh_setsize(ptr noundef nonnull %84) #3
  %97 = icmp sgt i32 %96, 0
  br i1 %97, label %.lr.ph132.preheader, label %.thread

.lr.ph132.preheader:                              ; preds = %93
  %wide.trip.count = zext nneg i32 %96 to i64
  br label %.lr.ph132

.lr.ph132:                                        ; preds = %.lr.ph132.preheader, %117
  %98 = phi ptr [ %84, %.lr.ph132.preheader ], [ %118, %117 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph132.preheader ], [ %indvars.iv.next, %117 ]
  %.1130 = phi double [ %.0140, %.lr.ph132.preheader ], [ %.2, %117 ]
  %.169129 = phi i32 [ 0, %.lr.ph132.preheader ], [ %.270, %117 ]
  %.075127 = phi ptr [ null, %.lr.ph132.preheader ], [ %.176, %117 ]
  %.180126 = phi ptr [ %95, %.lr.ph132.preheader ], [ %121, %117 ]
  %.not104 = icmp eq ptr %.180126, null
  br i1 %.not104, label %117, label %99

99:                                               ; preds = %.lr.ph132
  %100 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1408), align 8, !tbaa !23
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1408), align 8, !tbaa !23
  call void @qh_distplane(ptr noundef nonnull %.180126, ptr noundef nonnull %.065141, ptr noundef nonnull %5) #3
  %102 = load double, ptr %5, align 8, !tbaa !37
  %103 = fcmp olt double %102, %78
  br i1 %103, label %104, label %109

104:                                              ; preds = %99
  %105 = getelementptr inbounds i8, ptr %98, i64 8
  %106 = add nsw i32 %.169129, 1
  %107 = sext i32 %.169129 to i64
  %108 = getelementptr inbounds [1 x %union.setelemT], ptr %105, i64 0, i64 %107
  store ptr %.180126, ptr %108, align 8, !tbaa !23
  br label %117

109:                                              ; preds = %99
  %110 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !15
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2576), align 8, !tbaa !15
  %.not105 = icmp eq ptr %.075127, null
  br i1 %.not105, label %117, label %112

112:                                              ; preds = %109
  %113 = fcmp ogt double %102, %.1130
  br i1 %113, label %114, label %116

114:                                              ; preds = %112
  call void @qh_setappend(ptr noundef nonnull %92, ptr noundef nonnull %.075127) #3
  %115 = load double, ptr %5, align 8, !tbaa !37
  br label %117

116:                                              ; preds = %112
  call void @qh_setappend(ptr noundef nonnull %92, ptr noundef nonnull %.180126) #3
  br label %117

117:                                              ; preds = %109, %.lr.ph132, %116, %114, %104
  %.176 = phi ptr [ %.075127, %104 ], [ %.180126, %114 ], [ %.075127, %116 ], [ %.075127, %.lr.ph132 ], [ %.180126, %109 ]
  %.270 = phi i32 [ %106, %104 ], [ %.169129, %114 ], [ %.169129, %116 ], [ %.169129, %.lr.ph132 ], [ %.169129, %109 ]
  %.2 = phi double [ %.1130, %104 ], [ %115, %114 ], [ %.1130, %116 ], [ %.1130, %.lr.ph132 ], [ %102, %109 ]
  %118 = load ptr, ptr %4, align 8, !tbaa !14
  %119 = getelementptr inbounds i8, ptr %118, i64 8
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %120 = getelementptr inbounds [1 x %union.setelemT], ptr %119, i64 0, i64 %indvars.iv.next
  %121 = load ptr, ptr %120, align 8, !tbaa !23
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge133, label %.lr.ph132, !llvm.loop !38

._crit_edge133:                                   ; preds = %117
  %.not103 = icmp eq ptr %.176, null
  br i1 %.not103, label %.thread, label %122

122:                                              ; preds = %._crit_edge133
  call void @qh_setappend(ptr noundef nonnull %92, ptr noundef nonnull %.176) #3
  store double %.2, ptr %.065141, align 8, !tbaa !39
  br label %123

.thread:                                          ; preds = %93, %87, %._crit_edge133
  %.3116 = phi double [ %.2, %._crit_edge133 ], [ %.0140, %87 ], [ %.0140, %93 ]
  %.371114 = phi i32 [ %.270, %._crit_edge133 ], [ 0, %87 ], [ 0, %93 ]
  call void @qh_setfree(ptr noundef nonnull %92) #3
  br label %123

123:                                              ; preds = %.thread, %122
  %.3115 = phi double [ %.3116, %.thread ], [ %.2, %122 ]
  %.371113 = phi i32 [ %.371114, %.thread ], [ %.270, %122 ]
  %124 = load ptr, ptr %4, align 8, !tbaa !14
  call void @qh_settruncate(ptr noundef %124, i32 noundef %.371113) #3
  %.065 = load ptr, ptr %85, align 8, !tbaa !14
  %.not100 = icmp eq ptr %.065, null
  br i1 %.not100, label %.critedge.loopexit, label %.lr.ph143, !llvm.loop !40

.critedge.loopexit:                               ; preds = %.lr.ph143, %123
  %125 = phi ptr [ %84, %.lr.ph143 ], [ %124, %123 ]
  %.pre = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 44), align 4, !tbaa !29
  %.pre155 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 188), align 4
  %126 = icmp ne i32 %.pre, 0
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %67, %65
  %127 = phi ptr [ %125, %.critedge.loopexit ], [ %11, %67 ], [ %11, %65 ]
  %128 = phi i32 [ %.pre155, %.critedge.loopexit ], [ %.pre156, %67 ], [ %.pre156, %65 ]
  %129 = phi i1 [ %126, %.critedge.loopexit ], [ false, %67 ], [ true, %65 ]
  %130 = icmp ne i32 %128, 0
  %or.cond5 = select i1 %129, i1 true, i1 %130
  %131 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 144), align 8
  %132 = icmp ne i32 %131, 0
  %or.cond7 = select i1 %or.cond5, i1 true, i1 %132
  %133 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 148), align 4
  %134 = icmp ne i32 %133, 0
  %or.cond9 = select i1 %or.cond7, i1 true, i1 %134
  %135 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 628), align 4
  %136 = icmp ne i32 %135, 0
  %or.cond11 = select i1 %or.cond9, i1 true, i1 %136
  br i1 %or.cond11, label %137, label %150

137:                                              ; preds = %.critedge
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !41
  %.not106 = icmp eq ptr %127, null
  br i1 %.not106, label %.loopexit, label %138

138:                                              ; preds = %137
  %139 = getelementptr inbounds i8, ptr %127, i64 8
  %140 = load ptr, ptr %139, align 8, !tbaa !23
  %141 = call i32 @qh_setsize(ptr noundef nonnull %127) #3
  %142 = icmp sgt i32 %141, 0
  br i1 %142, label %.lr.ph148.preheader, label %.loopexit

.lr.ph148.preheader:                              ; preds = %138
  %wide.trip.count153 = zext nneg i32 %141 to i64
  br label %.lr.ph148

.lr.ph148:                                        ; preds = %.lr.ph148.preheader, %145
  %indvars.iv150 = phi i64 [ 0, %.lr.ph148.preheader ], [ %indvars.iv.next151, %145 ]
  %.281145 = phi ptr [ %140, %.lr.ph148.preheader ], [ %149, %145 ]
  %.not107 = icmp eq ptr %.281145, null
  br i1 %.not107, label %145, label %143

143:                                              ; preds = %.lr.ph148
  %144 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !42
  call void @qh_partitionpoint(ptr noundef nonnull %.281145, ptr noundef %144)
  br label %145

145:                                              ; preds = %.lr.ph148, %143
  %146 = load ptr, ptr %4, align 8, !tbaa !14
  %147 = getelementptr inbounds i8, ptr %146, i64 8
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %148 = getelementptr inbounds [1 x %union.setelemT], ptr %147, i64 0, i64 %indvars.iv.next151
  %149 = load ptr, ptr %148, align 8, !tbaa !23
  %exitcond154.not = icmp eq i64 %indvars.iv.next151, %wide.trip.count153
  br i1 %exitcond154.not, label %.loopexit, label %.lr.ph148, !llvm.loop !43

.loopexit:                                        ; preds = %145, %138, %137
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2712), align 8, !tbaa !41
  br label %150

150:                                              ; preds = %.critedge, %.loopexit
  %151 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1400), align 8, !tbaa !23
  %152 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1408), align 8, !tbaa !23
  %153 = add nsw i32 %152, %151
  store i32 %153, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1408), align 8, !tbaa !23
  store i32 0, ptr getelementptr inbounds (i8, ptr @qh_qhstat, i64 1400), align 8, !tbaa !23
  call void @qh_settempfree(ptr noundef nonnull %4) #3
  %154 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !5
  %155 = icmp sgt i32 %154, 3
  br i1 %155, label %156, label %158

156:                                              ; preds = %150
  %157 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2456), align 8, !tbaa !42
  call void @qh_printfacetlist(ptr noundef %157, ptr noundef null, i32 noundef 1) #3
  br label %158

158:                                              ; preds = %156, %150
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret void
}

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

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

declare ptr @qh_setnew(i32 noundef) local_unnamed_addr #1

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

declare void @qh_settempfree(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 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 = !{!11, !11, i64 0}
!15 = !{!6, !7, i64 2576}
!16 = !{!6, !7, i64 632}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.unroll.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !11, i64 16}
!22 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!23 = !{!8, !8, i64 0}
!24 = distinct !{!24, !20}
!25 = !{!6, !11, i64 104}
!26 = !{!6, !7, i64 520}
!27 = !{!6, !7, i64 524}
!28 = !{!6, !11, i64 120}
!29 = !{!6, !7, i64 44}
!30 = !{!6, !10, i64 24}
!31 = !{!6, !10, i64 2680}
!32 = !{!6, !7, i64 640}
!33 = !{!6, !7, i64 2568}
!34 = !{!35, !11, i64 56}
!35 = !{!"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}
!36 = !{!35, !11, i64 88}
!37 = !{!10, !10, i64 0}
!38 = distinct !{!38, !20}
!39 = !{!35, !10, i64 0}
!40 = distinct !{!40, !20}
!41 = !{!6, !7, i64 2712}
!42 = !{!6, !11, i64 2456}
!43 = distinct !{!43, !20}


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