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

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

@qh_qh = external global %struct.qhT, align 8
@.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, 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) #1

declare ptr @qh_settemp(i32 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @qh_maxmin(ptr noundef %0, i32 noundef %1, i32 noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store i32 %2, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, 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 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 199), align 8, !tbaa !11
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  store double 0xFFEFFFFFFFFFFFFF, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !16
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 138), align 8, !tbaa !17
  store double 0.000000e+00, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 201), align 8, !tbaa !18
  store i32 0, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 219), align 8, !tbaa !19
  %15 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 126), align 4, !tbaa !20
  %16 = icmp ne i32 %15, 0
  br i1 %16, label %17, label %18

17:                                               ; preds = %3
  store i32 1, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 220), align 4, !tbaa !21
  br label %18

18:                                               ; preds = %17, %3
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = mul nsw i32 2, %19
  %21 = call ptr @qh_settemp(i32 noundef %20)
  store ptr %21, ptr %14, align 8, !tbaa !5
  %22 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %23 = icmp sge i32 %22, 1
  br i1 %23, label %24, label %26

24:                                               ; preds = %18
  %25 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %25, i32 noundef 8082, ptr noundef @.str.38)
  br label %26

26:                                               ; preds = %24, %18
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %27

27:                                               ; preds = %276, %26
  %28 = load i32, ptr %7, align 4, !tbaa !9
  %29 = load i32, ptr %6, align 4, !tbaa !9
  %30 = icmp slt i32 %28, %29
  br i1 %30, label %31, label %279

31:                                               ; preds = %27
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %34 = icmp eq ptr %32, %33
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load i32, ptr %6, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds double, ptr %36, i64 %38
  store ptr %39, ptr %11, align 8, !tbaa !5
  store ptr %39, ptr %10, align 8, !tbaa !5
  br label %42

40:                                               ; preds = %31
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %41, ptr %11, align 8, !tbaa !5
  store ptr %41, ptr %10, align 8, !tbaa !5
  br label %42

42:                                               ; preds = %40, %35
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %43, ptr %12, align 8, !tbaa !5
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !25
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = mul nsw i32 %45, %46
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds double, ptr %44, i64 %48
  store ptr %49, ptr %13, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %89, %42
  %51 = load ptr, ptr %12, align 8, !tbaa !5
  %52 = load ptr, ptr %13, align 8, !tbaa !5
  %53 = icmp ult ptr %51, %52
  br i1 %53, label %54, label %94

54:                                               ; preds = %50
  %55 = load ptr, ptr %12, align 8, !tbaa !5
  %56 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %57 = icmp eq ptr %55, %56
  br i1 %57, label %58, label %59

58:                                               ; preds = %54
  br label %89

59:                                               ; preds = %54
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = load i32, ptr %7, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds double, ptr %60, i64 %62
  %64 = load double, ptr %63, align 8, !tbaa !26
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  %66 = load i32, ptr %7, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds double, ptr %65, i64 %67
  %69 = load double, ptr %68, align 8, !tbaa !26
  %70 = fcmp olt double %64, %69
  br i1 %70, label %71, label %73

71:                                               ; preds = %59
  %72 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %72, ptr %11, align 8, !tbaa !5
  br label %88

73:                                               ; preds = %59
  %74 = load ptr, ptr %10, align 8, !tbaa !5
  %75 = load i32, ptr %7, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds double, ptr %74, i64 %76
  %78 = load double, ptr %77, align 8, !tbaa !26
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  %80 = load i32, ptr %7, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds double, ptr %79, i64 %81
  %83 = load double, ptr %82, align 8, !tbaa !26
  %84 = fcmp ogt double %78, %83
  br i1 %84, label %85, label %87

85:                                               ; preds = %73
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %86, ptr %10, align 8, !tbaa !5
  br label %87

87:                                               ; preds = %85, %73
  br label %88

88:                                               ; preds = %87, %71
  br label %89

89:                                               ; preds = %88, %58
  %90 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 110), align 8, !tbaa !25
  %91 = load ptr, ptr %12, align 8, !tbaa !5
  %92 = sext i32 %90 to i64
  %93 = getelementptr inbounds double, ptr %91, i64 %92
  store ptr %93, ptr %12, align 8, !tbaa !5
  br label %50, !llvm.loop !27

94:                                               ; preds = %50
  %95 = load i32, ptr %7, align 4, !tbaa !9
  %96 = load i32, ptr %6, align 4, !tbaa !9
  %97 = sub nsw i32 %96, 1
  %98 = icmp eq i32 %95, %97
  br i1 %98, label %99, label %110

99:                                               ; preds = %94
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load i32, ptr %7, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds double, ptr %100, i64 %102
  %104 = load double, ptr %103, align 8, !tbaa !26
  store double %104, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 144), align 8, !tbaa !29
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds double, ptr %105, i64 %107
  %109 = load double, ptr %108, align 8, !tbaa !26
  store double %109, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 136), align 8, !tbaa !30
  br label %110

110:                                              ; preds = %99, %94
  %111 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 82), align 8, !tbaa !31
  %112 = icmp ne i32 %111, 0
  br i1 %112, label %113, label %120

113:                                              ; preds = %110
  %114 = load i32, ptr %7, align 4, !tbaa !9
  %115 = load i32, ptr %6, align 4, !tbaa !9
  %116 = sub nsw i32 %115, 1
  %117 = icmp eq i32 %114, %116
  br i1 %117, label %118, label %120

118:                                              ; preds = %113
  %119 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  store double %119, ptr %8, align 8, !tbaa !26
  br label %202

120:                                              ; preds = %113, %110
  %121 = load ptr, ptr %11, align 8, !tbaa !5
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds double, ptr %121, i64 %123
  %125 = load double, ptr %124, align 8, !tbaa !26
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = load i32, ptr %7, align 4, !tbaa !9
  %128 = sext i32 %127 to i64
  %129 = getelementptr inbounds double, ptr %126, i64 %128
  %130 = load double, ptr %129, align 8, !tbaa !26
  %131 = fneg double %130
  %132 = fcmp olt double %125, %131
  br i1 %132, label %133, label %140

133:                                              ; preds = %120
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load i32, ptr %7, align 4, !tbaa !9
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %134, i64 %136
  %138 = load double, ptr %137, align 8, !tbaa !26
  %139 = fneg double %138
  br label %146

140:                                              ; preds = %120
  %141 = load ptr, ptr %11, align 8, !tbaa !5
  %142 = load i32, ptr %7, align 4, !tbaa !9
  %143 = sext i32 %142 to i64
  %144 = getelementptr inbounds double, ptr %141, i64 %143
  %145 = load double, ptr %144, align 8, !tbaa !26
  br label %146

146:                                              ; preds = %140, %133
  %147 = phi double [ %139, %133 ], [ %145, %140 ]
  store double %147, ptr %8, align 8, !tbaa !26
  %148 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %149 = icmp ne ptr %148, null
  br i1 %149, label %150, label %184

150:                                              ; preds = %146
  %151 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %152 = load i32, ptr %7, align 4, !tbaa !9
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds double, ptr %151, i64 %153
  %155 = load double, ptr %154, align 8, !tbaa !26
  %156 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %157 = load i32, ptr %7, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = getelementptr inbounds double, ptr %156, i64 %158
  %160 = load double, ptr %159, align 8, !tbaa !26
  %161 = fneg double %160
  %162 = fcmp olt double %155, %161
  br i1 %162, label %163, label %170

163:                                              ; preds = %150
  %164 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %165 = load i32, ptr %7, align 4, !tbaa !9
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds double, ptr %164, i64 %166
  %168 = load double, ptr %167, align 8, !tbaa !26
  %169 = fneg double %168
  br label %176

170:                                              ; preds = %150
  %171 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 23), align 8, !tbaa !24
  %172 = load i32, ptr %7, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %171, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !26
  br label %176

176:                                              ; preds = %170, %163
  %177 = phi double [ %169, %163 ], [ %175, %170 ]
  store double %177, ptr %9, align 8, !tbaa !26
  %178 = load double, ptr %8, align 8, !tbaa !26
  %179 = load double, ptr %9, align 8, !tbaa !26
  %180 = fcmp olt double %178, %179
  br i1 %180, label %181, label %183

181:                                              ; preds = %176
  %182 = load double, ptr %9, align 8, !tbaa !26
  store double %182, ptr %8, align 8, !tbaa !26
  br label %183

183:                                              ; preds = %181, %176
  br label %184

184:                                              ; preds = %183, %146
  %185 = load ptr, ptr %11, align 8, !tbaa !5
  %186 = load i32, ptr %7, align 4, !tbaa !9
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds double, ptr %185, i64 %187
  %189 = load double, ptr %188, align 8, !tbaa !26
  %190 = load ptr, ptr %10, align 8, !tbaa !5
  %191 = load i32, ptr %7, align 4, !tbaa !9
  %192 = sext i32 %191 to i64
  %193 = getelementptr inbounds double, ptr %190, i64 %192
  %194 = load double, ptr %193, align 8, !tbaa !26
  %195 = fsub double %189, %194
  store double %195, ptr %9, align 8, !tbaa !26
  %196 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !16
  %197 = load double, ptr %9, align 8, !tbaa !26
  %198 = fcmp olt double %196, %197
  br i1 %198, label %199, label %201

199:                                              ; preds = %184
  %200 = load double, ptr %9, align 8, !tbaa !26
  store double %200, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !16
  br label %201

201:                                              ; preds = %199, %184
  br label %202

202:                                              ; preds = %201, %118
  %203 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  %204 = load double, ptr %8, align 8, !tbaa !26
  %205 = fcmp olt double %203, %204
  br i1 %205, label %206, label %208

206:                                              ; preds = %202
  %207 = load double, ptr %8, align 8, !tbaa !26
  store double %207, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  br label %208

208:                                              ; preds = %206, %202
  %209 = load double, ptr %8, align 8, !tbaa !26
  %210 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 138), align 8, !tbaa !17
  %211 = fadd double %210, %209
  store double %211, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 138), align 8, !tbaa !17
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %14, ptr noundef %212)
  %213 = load ptr, ptr %11, align 8, !tbaa !5
  call void @qh_setappend(ptr noundef %14, ptr noundef %213)
  %214 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 138), align 8, !tbaa !17
  %215 = fmul double 8.000000e+01, %214
  %216 = fmul double %215, 0x3CB0000000000000
  %217 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 145), align 8, !tbaa !32
  %218 = load i32, ptr %7, align 4, !tbaa !9
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds double, ptr %217, i64 %219
  store double %216, ptr %220, align 8, !tbaa !26
  %221 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %222 = icmp sge i32 %221, 1
  br i1 %222, label %223, label %256

223:                                              ; preds = %208
  %224 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %225 = load i32, ptr %7, align 4, !tbaa !9
  %226 = load ptr, ptr %10, align 8, !tbaa !5
  %227 = load i32, ptr %7, align 4, !tbaa !9
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds double, ptr %226, i64 %228
  %230 = load double, ptr %229, align 8, !tbaa !26
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load i32, ptr %7, align 4, !tbaa !9
  %233 = sext i32 %232 to i64
  %234 = getelementptr inbounds double, ptr %231, i64 %233
  %235 = load double, ptr %234, align 8, !tbaa !26
  %236 = load ptr, ptr %11, align 8, !tbaa !5
  %237 = load i32, ptr %7, align 4, !tbaa !9
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds double, ptr %236, i64 %238
  %240 = load double, ptr %239, align 8, !tbaa !26
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = load i32, ptr %7, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %241, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !26
  %246 = fsub double %240, %245
  %247 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 145), align 8, !tbaa !32
  %248 = load i32, ptr %7, align 4, !tbaa !9
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds double, ptr %247, i64 %249
  %251 = load double, ptr %250, align 8, !tbaa !26
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = call i32 @qh_pointid(ptr noundef %252)
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  %255 = call i32 @qh_pointid(ptr noundef %254)
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %224, i32 noundef 8106, ptr noundef @.str.39, i32 noundef %225, double noundef %230, double noundef %235, double noundef %246, double noundef %251, i32 noundef %253, i32 noundef %255)
  br label %256

256:                                              ; preds = %223, %208
  %257 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 82), align 8, !tbaa !31
  %258 = icmp ne i32 %257, 0
  br i1 %258, label %259, label %275

259:                                              ; preds = %256
  %260 = load i32, ptr %7, align 4, !tbaa !9
  %261 = load i32, ptr %6, align 4, !tbaa !9
  %262 = sub nsw i32 %261, 1
  %263 = icmp eq i32 %260, %262
  br i1 %263, label %264, label %275

264:                                              ; preds = %259
  %265 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %266 = icmp sge i32 %265, 1
  br i1 %266, label %267, label %274

267:                                              ; preds = %264
  %268 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %269 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  %270 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !16
  %271 = fsub double %269, %270
  %272 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 135), align 8, !tbaa !15
  %273 = load double, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 139), align 8, !tbaa !16
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %268, i32 noundef 8107, ptr noundef @.str.40, double noundef %271, double noundef %272, double noundef %273)
  br label %274

274:                                              ; preds = %267, %264
  br label %275

275:                                              ; preds = %274, %259, %256
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %7, align 4, !tbaa !9
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %7, align 4, !tbaa !9
  br label %27, !llvm.loop !33

279:                                              ; preds = %27
  %280 = load i32, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 29), align 8, !tbaa !22
  %281 = icmp sge i32 %280, 1
  br i1 %281, label %282, label %285

282:                                              ; preds = %279
  %283 = load ptr, ptr getelementptr inbounds (%struct.qhT, ptr @qh_qh, i32 0, i32 158), align 8, !tbaa !23
  %284 = load ptr, ptr %14, align 8, !tbaa !5
  call void @qh_printpoints(ptr noundef %283, ptr noundef @.str.41, ptr noundef %284)
  br label %285

285:                                              ; preds = %282, %279
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  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 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  ret ptr %286
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printpoints(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, !6, i64 2984, !10, i64 2992}
!13 = !{!"double", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !13, i64 1792}
!16 = !{!12, !13, i64 1824}
!17 = !{!12, !13, i64 1816}
!18 = !{!12, !13, i64 2696}
!19 = !{!12, !10, i64 2792}
!20 = !{!12, !10, i64 1724}
!21 = !{!12, !10, i64 2796}
!22 = !{!12, !10, i64 136}
!23 = !{!12, !6, i64 2424}
!24 = !{!12, !6, i64 104}
!25 = !{!12, !10, i64 632}
!26 = !{!13, !13, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!12, !13, i64 1864}
!30 = !{!12, !13, i64 1800}
!31 = !{!12, !10, i64 496}
!32 = !{!12, !6, i64 1872}
!33 = distinct !{!33, !28}


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

@qh_qh = external local_unnamed_addr global %struct.qhT, align 8
@.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, 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) local_unnamed_addr #1

declare ptr @qh_settemp(i32 noundef) local_unnamed_addr #1

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

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

6:                                                ; preds = %3
  store i32 1, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2796), align 4, !tbaa !18
  br label %7

7:                                                ; preds = %6, %3
  %8 = shl nsw i32 %2, 1
  %9 = tail call ptr @qh_settemp(i32 noundef %8) #3
  store ptr %9, ptr %4, align 8, !tbaa !19
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !20
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %14

12:                                               ; preds = %7
  %13 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  tail call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %13, i32 noundef 8082, ptr noundef nonnull @.str.38) #3
  br label %14

14:                                               ; preds = %12, %7
  %15 = icmp sgt i32 %2, 0
  br i1 %15, label %.lr.ph106, label %._crit_edge107

.lr.ph106:                                        ; preds = %14
  %16 = zext nneg i32 %2 to i64
  %17 = add nsw i32 %2, -1
  %18 = zext nneg i32 %17 to i64
  br label %19

19:                                               ; preds = %.lr.ph106, %106
  %indvars.iv = phi i64 [ 0, %.lr.ph106 ], [ %indvars.iv.next, %106 ]
  %20 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 104), align 8, !tbaa !22
  %21 = icmp eq ptr %20, %0
  %.075.idx = select i1 %21, i64 %16, i64 0
  %.075 = getelementptr inbounds double, ptr %0, i64 %.075.idx
  %22 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 632), align 8, !tbaa !23
  %23 = mul nsw i32 %22, %1
  %24 = sext i32 %23 to i64
  %25 = getelementptr inbounds double, ptr %0, i64 %24
  %26 = icmp sgt i32 %23, 0
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %19
  %27 = sext i32 %22 to i64
  br label %28

28:                                               ; preds = %.lr.ph, %41
  %.074102 = phi ptr [ %0, %.lr.ph ], [ %42, %41 ]
  %.1101 = phi ptr [ %.075, %.lr.ph ], [ %.2, %41 ]
  %.177100 = phi ptr [ %.075, %.lr.ph ], [ %.278, %41 ]
  %29 = icmp eq ptr %.074102, %20
  br i1 %29, label %41, label %30

30:                                               ; preds = %28
  %31 = getelementptr inbounds double, ptr %.1101, i64 %indvars.iv
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = getelementptr inbounds double, ptr %.074102, i64 %indvars.iv
  %34 = load double, ptr %33, align 8, !tbaa !14
  %35 = fcmp olt double %32, %34
  br i1 %35, label %41, label %36

36:                                               ; preds = %30
  %37 = getelementptr inbounds double, ptr %.177100, i64 %indvars.iv
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = fcmp ogt double %38, %34
  br i1 %39, label %40, label %41

40:                                               ; preds = %36
  br label %41

41:                                               ; preds = %30, %40, %36, %28
  %.278 = phi ptr [ %.177100, %28 ], [ %.074102, %40 ], [ %.177100, %36 ], [ %.177100, %30 ]
  %.2 = phi ptr [ %.1101, %28 ], [ %.1101, %40 ], [ %.1101, %36 ], [ %.074102, %30 ]
  %42 = getelementptr inbounds double, ptr %.074102, i64 %27
  %43 = icmp ult ptr %42, %25
  br i1 %43, label %28, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %41, %19
  %.177.lcssa = phi ptr [ %.075, %19 ], [ %.278, %41 ]
  %.1.lcssa = phi ptr [ %.075, %19 ], [ %.2, %41 ]
  %44 = icmp eq i64 %indvars.iv, %18
  br i1 %44, label %45, label %.thread

45:                                               ; preds = %._crit_edge
  %46 = getelementptr inbounds double, ptr %.177.lcssa, i64 %18
  %47 = load double, ptr %46, align 8, !tbaa !14
  store double %47, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1864), align 8, !tbaa !26
  %48 = getelementptr inbounds double, ptr %.1.lcssa, i64 %18
  %49 = load double, ptr %48, align 8, !tbaa !14
  store double %49, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1800), align 8, !tbaa !27
  %50 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !28
  %.not93.not = icmp eq i32 %50, 0
  br i1 %.not93.not, label %.thread, label %51

51:                                               ; preds = %45
  %52 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !13
  br label %72

.thread:                                          ; preds = %._crit_edge, %45
  %53 = getelementptr inbounds double, ptr %.1.lcssa, i64 %indvars.iv
  %54 = load double, ptr %53, align 8, !tbaa !14
  %55 = getelementptr inbounds double, ptr %.177.lcssa, i64 %indvars.iv
  %56 = load double, ptr %55, align 8, !tbaa !14
  %57 = fneg double %56
  %58 = fcmp olt double %54, %57
  %. = select i1 %58, double %57, double %54
  %.not94 = icmp eq ptr %20, null
  br i1 %.not94, label %67, label %59

59:                                               ; preds = %.thread
  %60 = getelementptr inbounds double, ptr %20, i64 %indvars.iv
  %61 = load double, ptr %60, align 8, !tbaa !14
  %62 = fcmp olt double %61, 0.000000e+00
  %63 = fneg double %61
  %64 = select i1 %62, double %63, double %61
  %65 = fcmp olt double %., %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  br label %67

67:                                               ; preds = %59, %66, %.thread
  %.079 = phi double [ %64, %66 ], [ %., %59 ], [ %., %.thread ]
  %68 = fsub double %54, %56
  %69 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !29
  %70 = fcmp olt double %69, %68
  br i1 %70, label %71, label %72

71:                                               ; preds = %67
  store double %68, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !29
  br label %72

72:                                               ; preds = %67, %71, %51
  %.180 = phi double [ %52, %51 ], [ %.079, %71 ], [ %.079, %67 ]
  %73 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !13
  %74 = fcmp olt double %73, %.180
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store double %.180, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !13
  br label %76

76:                                               ; preds = %75, %72
  %77 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1816), align 8, !tbaa !30
  %78 = fadd double %.180, %77
  store double %78, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1816), align 8, !tbaa !30
  call void @qh_setappend(ptr noundef nonnull %4, ptr noundef nonnull %.177.lcssa) #3
  call void @qh_setappend(ptr noundef nonnull %4, ptr noundef nonnull %.1.lcssa) #3
  %79 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1816), align 8, !tbaa !30
  %80 = fmul double %79, 8.000000e+01
  %81 = fmul double %80, 0x3CB0000000000000
  %82 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1872), align 8, !tbaa !31
  %83 = getelementptr inbounds double, ptr %82, i64 %indvars.iv
  store double %81, ptr %83, align 8, !tbaa !14
  %84 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !20
  %85 = icmp sgt i32 %84, 0
  br i1 %85, label %86, label %96

86:                                               ; preds = %76
  %87 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  %88 = getelementptr inbounds double, ptr %.177.lcssa, i64 %indvars.iv
  %89 = load double, ptr %88, align 8, !tbaa !14
  %90 = getelementptr inbounds double, ptr %.1.lcssa, i64 %indvars.iv
  %91 = load double, ptr %90, align 8, !tbaa !14
  %92 = fsub double %91, %89
  %93 = call i32 @qh_pointid(ptr noundef nonnull %.177.lcssa) #3
  %94 = call i32 @qh_pointid(ptr noundef nonnull %.1.lcssa) #3
  %95 = trunc nuw nsw i64 %indvars.iv to i32
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %87, i32 noundef 8106, ptr noundef nonnull @.str.39, i32 noundef %95, double noundef %89, double noundef %91, double noundef %92, double noundef %81, i32 noundef %93, i32 noundef %94) #3
  br label %96

96:                                               ; preds = %86, %76
  %97 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 496), align 8, !tbaa !28
  %.not95 = icmp eq i32 %97, 0
  br i1 %.not95, label %106, label %98

98:                                               ; preds = %96
  %99 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8
  %100 = icmp sgt i32 %99, 0
  %or.cond = select i1 %44, i1 %100, i1 false
  br i1 %or.cond, label %101, label %106

101:                                              ; preds = %98
  %102 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  %103 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1792), align 8, !tbaa !13
  %104 = load double, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 1824), align 8, !tbaa !29
  %105 = fsub double %103, %104
  call void (ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %102, i32 noundef 8107, ptr noundef nonnull @.str.40, double noundef %105, double noundef %103, double noundef %104) #3
  br label %106

106:                                              ; preds = %96, %98, %101
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %16
  br i1 %exitcond.not, label %._crit_edge107.loopexit, label %19, !llvm.loop !32

._crit_edge107.loopexit:                          ; preds = %106
  %.pre109.pre = load ptr, ptr %4, align 8, !tbaa !19
  br label %._crit_edge107

._crit_edge107:                                   ; preds = %._crit_edge107.loopexit, %14
  %.pre109 = phi ptr [ %.pre109.pre, %._crit_edge107.loopexit ], [ %9, %14 ]
  %107 = load i32, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 136), align 8, !tbaa !20
  %108 = icmp sgt i32 %107, 0
  br i1 %108, label %109, label %111

109:                                              ; preds = %._crit_edge107
  %110 = load ptr, ptr getelementptr inbounds (i8, ptr @qh_qh, i64 2424), align 8, !tbaa !21
  call void @qh_printpoints(ptr noundef %110, ptr noundef nonnull @.str.41, ptr noundef %.pre109)
  %.pre = load ptr, ptr %4, align 8, !tbaa !19
  br label %111

111:                                              ; preds = %109, %._crit_edge107
  %112 = phi ptr [ %.pre, %109 ], [ %.pre109, %._crit_edge107 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #3
  ret ptr %112
}

; Function Attrs: nounwind uwtable
declare dso_local void @qh_printpoints(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, !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, !10, i64 1792}
!14 = !{!10, !10, i64 0}
!15 = !{!6, !10, i64 2696}
!16 = !{!6, !7, i64 2792}
!17 = !{!6, !7, i64 1724}
!18 = !{!6, !7, i64 2796}
!19 = !{!11, !11, i64 0}
!20 = !{!6, !7, i64 136}
!21 = !{!6, !11, i64 2424}
!22 = !{!6, !11, i64 104}
!23 = !{!6, !7, i64 632}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!6, !10, i64 1864}
!27 = !{!6, !10, i64 1800}
!28 = !{!6, !7, i64 496}
!29 = !{!6, !10, i64 1824}
!30 = !{!6, !10, i64 1816}
!31 = !{!6, !11, i64 1872}
!32 = distinct !{!32, !25}


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