; LLVM IR from jrl-umi3218/mc_rtc :: 3rd-party/qhull/src/libqhull_r (geom2_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 }

@.str.38 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [50 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_pointid(ptr noundef, ptr noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_maxmin(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  %17 = load ptr, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.qhT, ptr %17, i32 0, i32 199
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.qhT, ptr %19, i32 0, i32 135
  store double 0.000000e+00, ptr %20, align 8, !tbaa !17
  %21 = load ptr, ptr %5, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.qhT, ptr %21, i32 0, i32 139
  store double 0xFFEFFFFFFFFFFFFF, ptr %22, align 8, !tbaa !18
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.qhT, ptr %23, i32 0, i32 138
  store double 0.000000e+00, ptr %24, align 8, !tbaa !19
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.qhT, ptr %25, i32 0, i32 201
  store double 0.000000e+00, ptr %26, align 8, !tbaa !20
  %27 = load ptr, ptr %5, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.qhT, ptr %27, i32 0, i32 219
  store i32 0, ptr %28, align 8, !tbaa !21
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.qhT, ptr %29, i32 0, i32 126
  %31 = load i32, ptr %30, align 4, !tbaa !22
  %32 = icmp ne i32 %31, 0
  br i1 %32, label %33, label %36

33:                                               ; preds = %4
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.qhT, ptr %34, i32 0, i32 220
  store i32 1, ptr %35, align 4, !tbaa !23
  br label %36

36:                                               ; preds = %33, %4
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load i32, ptr %8, align 4, !tbaa !9
  %39 = mul nsw i32 2, %38
  %40 = call ptr @qh_settemp(ptr noundef %37, i32 noundef %39)
  store ptr %40, ptr %16, align 8, !tbaa !5
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.qhT, ptr %41, i32 0, i32 29
  %43 = load i32, ptr %42, align 8, !tbaa !24
  %44 = icmp sge i32 %43, 1
  br i1 %44, label %45, label %50

45:                                               ; preds = %36
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.qhT, ptr %47, i32 0, i32 158
  %49 = load ptr, ptr %48, align 8, !tbaa !25
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %46, ptr noundef %49, i32 noundef 8082, ptr noundef @.str.38)
  br label %50

50:                                               ; preds = %45, %36
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %366, %50
  %52 = load i32, ptr %9, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %369

55:                                               ; preds = %51
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.qhT, ptr %57, i32 0, i32 23
  %59 = load ptr, ptr %58, align 8, !tbaa !26
  %60 = icmp eq ptr %56, %59
  br i1 %60, label %61, label %66

61:                                               ; preds = %55
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = load i32, ptr %8, align 4, !tbaa !9
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds double, ptr %62, i64 %64
  store ptr %65, ptr %13, align 8, !tbaa !5
  store ptr %65, ptr %12, align 8, !tbaa !5
  br label %68

66:                                               ; preds = %55
  %67 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %67, ptr %13, align 8, !tbaa !5
  store ptr %67, ptr %12, align 8, !tbaa !5
  br label %68

68:                                               ; preds = %66, %61
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %69, ptr %14, align 8, !tbaa !5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.qhT, ptr %71, i32 0, i32 110
  %73 = load i32, ptr %72, align 8, !tbaa !27
  %74 = load i32, ptr %7, align 4, !tbaa !9
  %75 = mul nsw i32 %73, %74
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %70, i64 %76
  store ptr %77, ptr %15, align 8, !tbaa !5
  br label %78

78:                                               ; preds = %119, %68
  %79 = load ptr, ptr %14, align 8, !tbaa !5
  %80 = load ptr, ptr %15, align 8, !tbaa !5
  %81 = icmp ult ptr %79, %80
  br i1 %81, label %82, label %126

82:                                               ; preds = %78
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.qhT, ptr %84, i32 0, i32 23
  %86 = load ptr, ptr %85, align 8, !tbaa !26
  %87 = icmp eq ptr %83, %86
  br i1 %87, label %88, label %89

88:                                               ; preds = %82
  br label %119

89:                                               ; preds = %82
  %90 = load ptr, ptr %13, align 8, !tbaa !5
  %91 = load i32, ptr %9, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds double, ptr %90, i64 %92
  %94 = load double, ptr %93, align 8, !tbaa !28
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = load i32, ptr %9, align 4, !tbaa !9
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds double, ptr %95, i64 %97
  %99 = load double, ptr %98, align 8, !tbaa !28
  %100 = fcmp olt double %94, %99
  br i1 %100, label %101, label %103

101:                                              ; preds = %89
  %102 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %102, ptr %13, align 8, !tbaa !5
  br label %118

103:                                              ; preds = %89
  %104 = load ptr, ptr %12, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  %108 = load double, ptr %107, align 8, !tbaa !28
  %109 = load ptr, ptr %14, align 8, !tbaa !5
  %110 = load i32, ptr %9, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds double, ptr %109, i64 %111
  %113 = load double, ptr %112, align 8, !tbaa !28
  %114 = fcmp ogt double %108, %113
  br i1 %114, label %115, label %117

115:                                              ; preds = %103
  %116 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %116, ptr %12, align 8, !tbaa !5
  br label %117

117:                                              ; preds = %115, %103
  br label %118

118:                                              ; preds = %117, %101
  br label %119

119:                                              ; preds = %118, %88
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.qhT, ptr %120, i32 0, i32 110
  %122 = load i32, ptr %121, align 8, !tbaa !27
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = sext i32 %122 to i64
  %125 = getelementptr inbounds double, ptr %123, i64 %124
  store ptr %125, ptr %14, align 8, !tbaa !5
  br label %78, !llvm.loop !29

126:                                              ; preds = %78
  %127 = load i32, ptr %9, align 4, !tbaa !9
  %128 = load i32, ptr %8, align 4, !tbaa !9
  %129 = sub nsw i32 %128, 1
  %130 = icmp eq i32 %127, %129
  br i1 %130, label %131, label %146

131:                                              ; preds = %126
  %132 = load ptr, ptr %12, align 8, !tbaa !5
  %133 = load i32, ptr %9, align 4, !tbaa !9
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds double, ptr %132, i64 %134
  %136 = load double, ptr %135, align 8, !tbaa !28
  %137 = load ptr, ptr %5, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.qhT, ptr %137, i32 0, i32 144
  store double %136, ptr %138, align 8, !tbaa !31
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = load i32, ptr %9, align 4, !tbaa !9
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds double, ptr %139, i64 %141
  %143 = load double, ptr %142, align 8, !tbaa !28
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.qhT, ptr %144, i32 0, i32 136
  store double %143, ptr %145, align 8, !tbaa !32
  br label %146

146:                                              ; preds = %131, %126
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.qhT, ptr %147, i32 0, i32 82
  %149 = load i32, ptr %148, align 8, !tbaa !33
  %150 = icmp ne i32 %149, 0
  br i1 %150, label %151, label %160

151:                                              ; preds = %146
  %152 = load i32, ptr %9, align 4, !tbaa !9
  %153 = load i32, ptr %8, align 4, !tbaa !9
  %154 = sub nsw i32 %153, 1
  %155 = icmp eq i32 %152, %154
  br i1 %155, label %156, label %160

156:                                              ; preds = %151
  %157 = load ptr, ptr %5, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.qhT, ptr %157, i32 0, i32 135
  %159 = load double, ptr %158, align 8, !tbaa !17
  store double %159, ptr %10, align 8, !tbaa !28
  br label %256

160:                                              ; preds = %151, %146
  %161 = load ptr, ptr %13, align 8, !tbaa !5
  %162 = load i32, ptr %9, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds double, ptr %161, i64 %163
  %165 = load double, ptr %164, align 8, !tbaa !28
  %166 = load ptr, ptr %12, align 8, !tbaa !5
  %167 = load i32, ptr %9, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds double, ptr %166, i64 %168
  %170 = load double, ptr %169, align 8, !tbaa !28
  %171 = fneg double %170
  %172 = fcmp olt double %165, %171
  br i1 %172, label %173, label %180

173:                                              ; preds = %160
  %174 = load ptr, ptr %12, align 8, !tbaa !5
  %175 = load i32, ptr %9, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  %178 = load double, ptr %177, align 8, !tbaa !28
  %179 = fneg double %178
  br label %186

180:                                              ; preds = %160
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = load i32, ptr %9, align 4, !tbaa !9
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !28
  br label %186

186:                                              ; preds = %180, %173
  %187 = phi double [ %179, %173 ], [ %185, %180 ]
  store double %187, ptr %10, align 8, !tbaa !28
  %188 = load ptr, ptr %5, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.qhT, ptr %188, i32 0, i32 23
  %190 = load ptr, ptr %189, align 8, !tbaa !26
  %191 = icmp ne ptr %190, null
  br i1 %191, label %192, label %234

192:                                              ; preds = %186
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.qhT, ptr %193, i32 0, i32 23
  %195 = load ptr, ptr %194, align 8, !tbaa !26
  %196 = load i32, ptr %9, align 4, !tbaa !9
  %197 = sext i32 %196 to i64
  %198 = getelementptr inbounds double, ptr %195, i64 %197
  %199 = load double, ptr %198, align 8, !tbaa !28
  %200 = load ptr, ptr %5, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.qhT, ptr %200, i32 0, i32 23
  %202 = load ptr, ptr %201, align 8, !tbaa !26
  %203 = load i32, ptr %9, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %202, i64 %204
  %206 = load double, ptr %205, align 8, !tbaa !28
  %207 = fneg double %206
  %208 = fcmp olt double %199, %207
  br i1 %208, label %209, label %218

209:                                              ; preds = %192
  %210 = load ptr, ptr %5, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.qhT, ptr %210, i32 0, i32 23
  %212 = load ptr, ptr %211, align 8, !tbaa !26
  %213 = load i32, ptr %9, align 4, !tbaa !9
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds double, ptr %212, i64 %214
  %216 = load double, ptr %215, align 8, !tbaa !28
  %217 = fneg double %216
  br label %226

218:                                              ; preds = %192
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.qhT, ptr %219, i32 0, i32 23
  %221 = load ptr, ptr %220, align 8, !tbaa !26
  %222 = load i32, ptr %9, align 4, !tbaa !9
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !28
  br label %226

226:                                              ; preds = %218, %209
  %227 = phi double [ %217, %209 ], [ %225, %218 ]
  store double %227, ptr %11, align 8, !tbaa !28
  %228 = load double, ptr %10, align 8, !tbaa !28
  %229 = load double, ptr %11, align 8, !tbaa !28
  %230 = fcmp olt double %228, %229
  br i1 %230, label %231, label %233

231:                                              ; preds = %226
  %232 = load double, ptr %11, align 8, !tbaa !28
  store double %232, ptr %10, align 8, !tbaa !28
  br label %233

233:                                              ; preds = %231, %226
  br label %234

234:                                              ; preds = %233, %186
  %235 = load ptr, ptr %13, align 8, !tbaa !5
  %236 = load i32, ptr %9, align 4, !tbaa !9
  %237 = sext i32 %236 to i64
  %238 = getelementptr inbounds double, ptr %235, i64 %237
  %239 = load double, ptr %238, align 8, !tbaa !28
  %240 = load ptr, ptr %12, align 8, !tbaa !5
  %241 = load i32, ptr %9, align 4, !tbaa !9
  %242 = sext i32 %241 to i64
  %243 = getelementptr inbounds double, ptr %240, i64 %242
  %244 = load double, ptr %243, align 8, !tbaa !28
  %245 = fsub double %239, %244
  store double %245, ptr %11, align 8, !tbaa !28
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.qhT, ptr %246, i32 0, i32 139
  %248 = load double, ptr %247, align 8, !tbaa !18
  %249 = load double, ptr %11, align 8, !tbaa !28
  %250 = fcmp olt double %248, %249
  br i1 %250, label %251, label %255

251:                                              ; preds = %234
  %252 = load double, ptr %11, align 8, !tbaa !28
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.qhT, ptr %253, i32 0, i32 139
  store double %252, ptr %254, align 8, !tbaa !18
  br label %255

255:                                              ; preds = %251, %234
  br label %256

256:                                              ; preds = %255, %156
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.qhT, ptr %257, i32 0, i32 135
  %259 = load double, ptr %258, align 8, !tbaa !17
  %260 = load double, ptr %10, align 8, !tbaa !28
  %261 = fcmp olt double %259, %260
  br i1 %261, label %262, label %266

262:                                              ; preds = %256
  %263 = load double, ptr %10, align 8, !tbaa !28
  %264 = load ptr, ptr %5, align 8, !tbaa !5
  %265 = getelementptr inbounds %struct.qhT, ptr %264, i32 0, i32 135
  store double %263, ptr %265, align 8, !tbaa !17
  br label %266

266:                                              ; preds = %262, %256
  %267 = load double, ptr %10, align 8, !tbaa !28
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.qhT, ptr %268, i32 0, i32 138
  %270 = load double, ptr %269, align 8, !tbaa !19
  %271 = fadd double %270, %267
  store double %271, ptr %269, align 8, !tbaa !19
  %272 = load ptr, ptr %5, align 8, !tbaa !5
  %273 = load ptr, ptr %12, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %272, ptr noundef %16, ptr noundef %273)
  %274 = load ptr, ptr %5, align 8, !tbaa !5
  %275 = load ptr, ptr %13, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %274, ptr noundef %16, ptr noundef %275)
  %276 = load ptr, ptr %5, align 8, !tbaa !5
  %277 = getelementptr inbounds %struct.qhT, ptr %276, i32 0, i32 138
  %278 = load double, ptr %277, align 8, !tbaa !19
  %279 = fmul double 8.000000e+01, %278
  %280 = fmul double %279, 0x3CB0000000000000
  %281 = load ptr, ptr %5, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.qhT, ptr %281, i32 0, i32 145
  %283 = load ptr, ptr %282, align 8, !tbaa !34
  %284 = load i32, ptr %9, align 4, !tbaa !9
  %285 = sext i32 %284 to i64
  %286 = getelementptr inbounds double, ptr %283, i64 %285
  store double %280, ptr %286, align 8, !tbaa !28
  %287 = load ptr, ptr %5, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.qhT, ptr %287, i32 0, i32 29
  %289 = load i32, ptr %288, align 8, !tbaa !24
  %290 = icmp sge i32 %289, 1
  br i1 %290, label %291, label %331

291:                                              ; preds = %266
  %292 = load ptr, ptr %5, align 8, !tbaa !5
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.qhT, ptr %293, i32 0, i32 158
  %295 = load ptr, ptr %294, align 8, !tbaa !25
  %296 = load i32, ptr %9, align 4, !tbaa !9
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  %298 = load i32, ptr %9, align 4, !tbaa !9
  %299 = sext i32 %298 to i64
  %300 = getelementptr inbounds double, ptr %297, i64 %299
  %301 = load double, ptr %300, align 8, !tbaa !28
  %302 = load ptr, ptr %13, align 8, !tbaa !5
  %303 = load i32, ptr %9, align 4, !tbaa !9
  %304 = sext i32 %303 to i64
  %305 = getelementptr inbounds double, ptr %302, i64 %304
  %306 = load double, ptr %305, align 8, !tbaa !28
  %307 = load ptr, ptr %13, align 8, !tbaa !5
  %308 = load i32, ptr %9, align 4, !tbaa !9
  %309 = sext i32 %308 to i64
  %310 = getelementptr inbounds double, ptr %307, i64 %309
  %311 = load double, ptr %310, align 8, !tbaa !28
  %312 = load ptr, ptr %12, align 8, !tbaa !5
  %313 = load i32, ptr %9, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %312, i64 %314
  %316 = load double, ptr %315, align 8, !tbaa !28
  %317 = fsub double %311, %316
  %318 = load ptr, ptr %5, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.qhT, ptr %318, i32 0, i32 145
  %320 = load ptr, ptr %319, align 8, !tbaa !34
  %321 = load i32, ptr %9, align 4, !tbaa !9
  %322 = sext i32 %321 to i64
  %323 = getelementptr inbounds double, ptr %320, i64 %322
  %324 = load double, ptr %323, align 8, !tbaa !28
  %325 = load ptr, ptr %5, align 8, !tbaa !5
  %326 = load ptr, ptr %12, align 8, !tbaa !5
  %327 = call i32 @qh_pointid(ptr noundef %325, ptr noundef %326)
  %328 = load ptr, ptr %5, align 8, !tbaa !5
  %329 = load ptr, ptr %13, align 8, !tbaa !5
  %330 = call i32 @qh_pointid(ptr noundef %328, ptr noundef %329)
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %292, ptr noundef %295, i32 noundef 8106, ptr noundef @.str.39, i32 noundef %296, double noundef %301, double noundef %306, double noundef %317, double noundef %324, i32 noundef %327, i32 noundef %330)
  br label %331

331:                                              ; preds = %291, %266
  %332 = load ptr, ptr %5, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.qhT, ptr %332, i32 0, i32 82
  %334 = load i32, ptr %333, align 8, !tbaa !33
  %335 = icmp ne i32 %334, 0
  br i1 %335, label %336, label %365

336:                                              ; preds = %331
  %337 = load i32, ptr %9, align 4, !tbaa !9
  %338 = load i32, ptr %8, align 4, !tbaa !9
  %339 = sub nsw i32 %338, 1
  %340 = icmp eq i32 %337, %339
  br i1 %340, label %341, label %365

341:                                              ; preds = %336
  %342 = load ptr, ptr %5, align 8, !tbaa !5
  %343 = getelementptr inbounds %struct.qhT, ptr %342, i32 0, i32 29
  %344 = load i32, ptr %343, align 8, !tbaa !24
  %345 = icmp sge i32 %344, 1
  br i1 %345, label %346, label %364

346:                                              ; preds = %341
  %347 = load ptr, ptr %5, align 8, !tbaa !5
  %348 = load ptr, ptr %5, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.qhT, ptr %348, i32 0, i32 158
  %350 = load ptr, ptr %349, align 8, !tbaa !25
  %351 = load ptr, ptr %5, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.qhT, ptr %351, i32 0, i32 135
  %353 = load double, ptr %352, align 8, !tbaa !17
  %354 = load ptr, ptr %5, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.qhT, ptr %354, i32 0, i32 139
  %356 = load double, ptr %355, align 8, !tbaa !18
  %357 = fsub double %353, %356
  %358 = load ptr, ptr %5, align 8, !tbaa !5
  %359 = getelementptr inbounds %struct.qhT, ptr %358, i32 0, i32 135
  %360 = load double, ptr %359, align 8, !tbaa !17
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.qhT, ptr %361, i32 0, i32 139
  %363 = load double, ptr %362, align 8, !tbaa !18
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %347, ptr noundef %350, i32 noundef 8107, ptr noundef @.str.40, double noundef %357, double noundef %360, double noundef %363)
  br label %364

364:                                              ; preds = %346, %341
  br label %365

365:                                              ; preds = %364, %336, %331
  br label %366

366:                                              ; preds = %365
  %367 = load i32, ptr %9, align 4, !tbaa !9
  %368 = add nsw i32 %367, 1
  store i32 %368, ptr %9, align 4, !tbaa !9
  br label %51, !llvm.loop !35

369:                                              ; preds = %51
  %370 = load ptr, ptr %5, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.qhT, ptr %370, i32 0, i32 29
  %372 = load i32, ptr %371, align 8, !tbaa !24
  %373 = icmp sge i32 %372, 1
  br i1 %373, label %374, label %380

374:                                              ; preds = %369
  %375 = load ptr, ptr %5, align 8, !tbaa !5
  %376 = load ptr, ptr %5, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.qhT, ptr %376, i32 0, i32 158
  %378 = load ptr, ptr %377, align 8, !tbaa !25
  %379 = load ptr, ptr %16, align 8, !tbaa !5
  call void @qh_printpoints(ptr noundef %375, ptr noundef %378, ptr noundef @.str.41, ptr noundef %379)
  br label %380

380:                                              ; preds = %374, %369
  %381 = load ptr, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  ret ptr %381
}

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


; 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.38 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.39 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.40 = external hidden unnamed_addr constant [83 x i8], align 1
@.str.41 = external hidden unnamed_addr constant [50 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, ptr noundef, i32 noundef, ptr noundef, ...) local_unnamed_addr #1

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

declare i32 @qh_pointid(ptr noundef, ptr noundef) local_unnamed_addr #1

declare ptr @qh_settemp(ptr noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_maxmin(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #3
  %6 = getelementptr inbounds i8, ptr %0, i64 2680
  store double 0.000000e+00, ptr %6, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 1792
  store double 0.000000e+00, ptr %7, align 8, !tbaa !15
  %8 = getelementptr inbounds i8, ptr %0, i64 1824
  %9 = getelementptr inbounds i8, ptr %0, i64 1816
  store <2 x double> <double 0.000000e+00, double 0xFFEFFFFFFFFFFFFF>, ptr %9, align 8, !tbaa !16
  %10 = getelementptr inbounds i8, ptr %0, i64 2696
  store double 0.000000e+00, ptr %10, align 8, !tbaa !17
  %11 = getelementptr inbounds i8, ptr %0, i64 2792
  store i32 0, ptr %11, align 8, !tbaa !18
  %12 = getelementptr inbounds i8, ptr %0, i64 1724
  %13 = load i32, ptr %12, align 4, !tbaa !19
  %.not = icmp eq i32 %13, 0
  br i1 %.not, label %16, label %14

14:                                               ; preds = %4
  %15 = getelementptr inbounds i8, ptr %0, i64 2796
  store i32 1, ptr %15, align 4, !tbaa !20
  br label %16

16:                                               ; preds = %14, %4
  %17 = shl nsw i32 %3, 1
  %18 = tail call ptr @qh_settemp(ptr noundef nonnull %0, i32 noundef %17) #3
  store ptr %18, ptr %5, align 8, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  %20 = load i32, ptr %19, align 8, !tbaa !22
  %21 = icmp sgt i32 %20, 0
  br i1 %21, label %22, label %25

22:                                               ; preds = %16
  %23 = getelementptr inbounds i8, ptr %0, i64 2424
  %24 = load ptr, ptr %23, align 8, !tbaa !23
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %24, i32 noundef 8082, ptr noundef nonnull @.str.38) #3
  br label %25

25:                                               ; preds = %22, %16
  %26 = icmp sgt i32 %3, 0
  br i1 %26, label %.lr.ph160, label %._crit_edge161

.lr.ph160:                                        ; preds = %25
  %27 = getelementptr inbounds i8, ptr %0, i64 104
  %28 = zext nneg i32 %3 to i64
  %29 = getelementptr inbounds i8, ptr %0, i64 632
  %30 = add nsw i32 %3, -1
  %31 = getelementptr inbounds i8, ptr %0, i64 1864
  %32 = getelementptr inbounds i8, ptr %0, i64 1800
  %33 = getelementptr inbounds i8, ptr %0, i64 496
  %34 = getelementptr inbounds i8, ptr %0, i64 1872
  %35 = getelementptr inbounds i8, ptr %0, i64 2424
  %36 = zext nneg i32 %30 to i64
  br label %37

37:                                               ; preds = %.lr.ph160, %124
  %indvars.iv = phi i64 [ 0, %.lr.ph160 ], [ %indvars.iv.next, %124 ]
  %38 = load ptr, ptr %27, align 8, !tbaa !24
  %39 = icmp eq ptr %38, %1
  %.0125.idx = select i1 %39, i64 %28, i64 0
  %.0125 = getelementptr inbounds double, ptr %1, i64 %.0125.idx
  %40 = load i32, ptr %29, align 8, !tbaa !25
  %41 = mul nsw i32 %40, %2
  %42 = sext i32 %41 to i64
  %43 = getelementptr inbounds double, ptr %1, i64 %42
  %44 = icmp sgt i32 %41, 0
  br i1 %44, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %37
  %45 = sext i32 %40 to i64
  br label %46

46:                                               ; preds = %.lr.ph, %59
  %.0124156 = phi ptr [ %1, %.lr.ph ], [ %60, %59 ]
  %.1155 = phi ptr [ %.0125, %.lr.ph ], [ %.2, %59 ]
  %.1127154 = phi ptr [ %.0125, %.lr.ph ], [ %.2128, %59 ]
  %47 = icmp eq ptr %.0124156, %38
  br i1 %47, label %59, label %48

48:                                               ; preds = %46
  %49 = getelementptr inbounds double, ptr %.1155, i64 %indvars.iv
  %50 = load double, ptr %49, align 8, !tbaa !16
  %51 = getelementptr inbounds double, ptr %.0124156, i64 %indvars.iv
  %52 = load double, ptr %51, align 8, !tbaa !16
  %53 = fcmp olt double %50, %52
  br i1 %53, label %59, label %54

54:                                               ; preds = %48
  %55 = getelementptr inbounds double, ptr %.1127154, i64 %indvars.iv
  %56 = load double, ptr %55, align 8, !tbaa !16
  %57 = fcmp ogt double %56, %52
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  br label %59

59:                                               ; preds = %48, %58, %54, %46
  %.2128 = phi ptr [ %.1127154, %46 ], [ %.0124156, %58 ], [ %.1127154, %54 ], [ %.1127154, %48 ]
  %.2 = phi ptr [ %.1155, %46 ], [ %.1155, %58 ], [ %.1155, %54 ], [ %.0124156, %48 ]
  %60 = getelementptr inbounds double, ptr %.0124156, i64 %45
  %61 = icmp ult ptr %60, %43
  br i1 %61, label %46, label %._crit_edge, !llvm.loop !26

._crit_edge:                                      ; preds = %59, %37
  %.1127.lcssa = phi ptr [ %.0125, %37 ], [ %.2128, %59 ]
  %.1.lcssa = phi ptr [ %.0125, %37 ], [ %.2, %59 ]
  %62 = icmp ne i64 %indvars.iv, %36
  br i1 %62, label %.thread, label %63

63:                                               ; preds = %._crit_edge
  %64 = getelementptr inbounds double, ptr %.1127.lcssa, i64 %36
  %65 = load double, ptr %64, align 8, !tbaa !16
  store double %65, ptr %31, align 8, !tbaa !28
  %66 = getelementptr inbounds double, ptr %.1.lcssa, i64 %36
  %67 = load double, ptr %66, align 8, !tbaa !16
  store double %67, ptr %32, align 8, !tbaa !29
  %68 = load i32, ptr %33, align 8, !tbaa !30
  %.not143 = icmp eq i32 %68, 0
  br i1 %.not143, label %.thread, label %69

69:                                               ; preds = %63
  %70 = load double, ptr %7, align 8, !tbaa !15
  br label %90

.thread:                                          ; preds = %._crit_edge, %63
  %71 = getelementptr inbounds double, ptr %.1.lcssa, i64 %indvars.iv
  %72 = load double, ptr %71, align 8, !tbaa !16
  %73 = getelementptr inbounds double, ptr %.1127.lcssa, i64 %indvars.iv
  %74 = load double, ptr %73, align 8, !tbaa !16
  %75 = fneg double %74
  %76 = fcmp olt double %72, %75
  %. = select i1 %76, double %75, double %72
  %.not144 = icmp eq ptr %38, null
  br i1 %.not144, label %85, label %77

77:                                               ; preds = %.thread
  %78 = getelementptr inbounds double, ptr %38, i64 %indvars.iv
  %79 = load double, ptr %78, align 8, !tbaa !16
  %80 = fcmp olt double %79, 0.000000e+00
  %81 = fneg double %79
  %82 = select i1 %80, double %81, double %79
  %83 = fcmp olt double %., %82
  br i1 %83, label %84, label %85

84:                                               ; preds = %77
  br label %85

85:                                               ; preds = %77, %84, %.thread
  %.0129 = phi double [ %82, %84 ], [ %., %77 ], [ %., %.thread ]
  %86 = fsub double %72, %74
  %87 = load double, ptr %8, align 8, !tbaa !31
  %88 = fcmp olt double %87, %86
  br i1 %88, label %89, label %90

89:                                               ; preds = %85
  store double %86, ptr %8, align 8, !tbaa !31
  br label %90

90:                                               ; preds = %85, %89, %69
  %.1130 = phi double [ %70, %69 ], [ %.0129, %89 ], [ %.0129, %85 ]
  %91 = load double, ptr %7, align 8, !tbaa !15
  %92 = fcmp olt double %91, %.1130
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store double %.1130, ptr %7, align 8, !tbaa !15
  br label %94

94:                                               ; preds = %93, %90
  %95 = load double, ptr %9, align 8, !tbaa !32
  %96 = fadd double %.1130, %95
  store double %96, ptr %9, align 8, !tbaa !32
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef nonnull %.1127.lcssa) #3
  call void @qh_setappend(ptr noundef nonnull %0, ptr noundef nonnull %5, ptr noundef nonnull %.1.lcssa) #3
  %97 = load double, ptr %9, align 8, !tbaa !32
  %98 = fmul double %97, 8.000000e+01
  %99 = fmul double %98, 0x3CB0000000000000
  %100 = load ptr, ptr %34, align 8, !tbaa !33
  %101 = getelementptr inbounds double, ptr %100, i64 %indvars.iv
  store double %99, ptr %101, align 8, !tbaa !16
  %102 = load i32, ptr %19, align 8, !tbaa !22
  %103 = icmp sgt i32 %102, 0
  br i1 %103, label %104, label %114

104:                                              ; preds = %94
  %105 = load ptr, ptr %35, align 8, !tbaa !23
  %106 = getelementptr inbounds double, ptr %.1127.lcssa, i64 %indvars.iv
  %107 = load double, ptr %106, align 8, !tbaa !16
  %108 = getelementptr inbounds double, ptr %.1.lcssa, i64 %indvars.iv
  %109 = load double, ptr %108, align 8, !tbaa !16
  %110 = fsub double %109, %107
  %111 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef nonnull %.1127.lcssa) #3
  %112 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef nonnull %.1.lcssa) #3
  %113 = trunc nuw nsw i64 %indvars.iv to i32
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %105, i32 noundef 8106, ptr noundef nonnull @.str.39, i32 noundef %113, double noundef %107, double noundef %109, double noundef %110, double noundef %99, i32 noundef %111, i32 noundef %112) #3
  br label %114

114:                                              ; preds = %104, %94
  %115 = load i32, ptr %33, align 8, !tbaa !30
  %.not145 = icmp eq i32 %115, 0
  %brmerge148 = or i1 %62, %.not145
  br i1 %brmerge148, label %124, label %116

116:                                              ; preds = %114
  %117 = load i32, ptr %19, align 8, !tbaa !22
  %118 = icmp sgt i32 %117, 0
  br i1 %118, label %119, label %124

119:                                              ; preds = %116
  %120 = load ptr, ptr %35, align 8, !tbaa !23
  %121 = load double, ptr %7, align 8, !tbaa !15
  %122 = load double, ptr %8, align 8, !tbaa !31
  %123 = fsub double %121, %122
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %120, i32 noundef 8107, ptr noundef nonnull @.str.40, double noundef %123, double noundef %121, double noundef %122) #3
  br label %124

124:                                              ; preds = %114, %119, %116
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %28
  br i1 %exitcond.not, label %._crit_edge161.loopexit, label %37, !llvm.loop !34

._crit_edge161.loopexit:                          ; preds = %124
  %.pre163.pre = load ptr, ptr %5, align 8, !tbaa !21
  br label %._crit_edge161

._crit_edge161:                                   ; preds = %._crit_edge161.loopexit, %25
  %.pre163 = phi ptr [ %.pre163.pre, %._crit_edge161.loopexit ], [ %18, %25 ]
  %125 = load i32, ptr %19, align 8, !tbaa !22
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %._crit_edge161
  %128 = getelementptr inbounds i8, ptr %0, i64 2424
  %129 = load ptr, ptr %128, align 8, !tbaa !23
  call void @qh_printpoints(ptr noundef nonnull %0, ptr noundef %129, ptr noundef nonnull @.str.41, ptr noundef %.pre163)
  %.pre = load ptr, ptr %5, align 8, !tbaa !21
  br label %130

130:                                              ; preds = %127, %._crit_edge161
  %131 = phi ptr [ %.pre, %127 ], [ %.pre163, %._crit_edge161 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #3
  ret ptr %131
}

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

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, !10, i64 2680}
!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, !10, i64 1792}
!16 = !{!10, !10, i64 0}
!17 = !{!6, !10, i64 2696}
!18 = !{!6, !7, i64 2792}
!19 = !{!6, !7, i64 1724}
!20 = !{!6, !7, i64 2796}
!21 = !{!11, !11, i64 0}
!22 = !{!6, !7, i64 136}
!23 = !{!6, !11, i64 2424}
!24 = !{!6, !11, i64 104}
!25 = !{!6, !7, i64 632}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!6, !10, i64 1864}
!29 = !{!6, !10, i64 1800}
!30 = !{!6, !7, i64 496}
!31 = !{!6, !10, i64 1824}
!32 = !{!6, !10, i64 1816}
!33 = !{!6, !11, i64 1872}
!34 = distinct !{!34, !27}


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