; 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 }
%struct.setT = type { i32, [1 x %union.setelemT] }
%union.setelemT = type { ptr }
%struct.vertexT = type { ptr, ptr, ptr, ptr, i32, i32, i8 }

@.str.24 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [76 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

declare void @qh_errexit(ptr noundef, i32 noundef, ptr 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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local double @qh_determinant(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_facetarea_simplex(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #3 {
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  store ptr %0, ptr %10, align 8, !tbaa !5
  store i32 %1, ptr %11, align 4, !tbaa !9
  store ptr %2, ptr %12, align 8, !tbaa !5
  store ptr %3, ptr %13, align 8, !tbaa !5
  store ptr %4, ptr %14, align 8, !tbaa !5
  store i32 %5, ptr %15, align 4, !tbaa !9
  store ptr %6, ptr %16, align 8, !tbaa !5
  store ptr %7, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  %31 = load ptr, ptr %10, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.qhT, ptr %31, i32 0, i32 227
  %33 = load ptr, ptr %32, align 8, !tbaa !11
  store ptr %33, ptr %20, align 8, !tbaa !5
  %34 = load ptr, ptr %10, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.qhT, ptr %34, i32 0, i32 228
  %36 = load ptr, ptr %35, align 8, !tbaa !17
  store ptr %36, ptr %21, align 8, !tbaa !5
  store ptr null, ptr %27, align 8, !tbaa !5
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = icmp ne ptr %37, null
  br i1 %38, label %39, label %144

39:                                               ; preds = %8
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.setT, ptr %40, i32 0, i32 1
  %42 = getelementptr inbounds [1 x %union.setelemT], ptr %41, i64 0, i64 0
  store ptr %42, ptr %28, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %142, %52, %39
  %44 = load ptr, ptr %28, align 8, !tbaa !5
  %45 = getelementptr inbounds ptr, ptr %44, i32 1
  store ptr %45, ptr %28, align 8, !tbaa !5
  %46 = load ptr, ptr %44, align 8, !tbaa !5
  store ptr %46, ptr %27, align 8, !tbaa !5
  %47 = icmp ne ptr %46, null
  br i1 %47, label %48, label %143

48:                                               ; preds = %43
  %49 = load ptr, ptr %27, align 8, !tbaa !5
  %50 = load ptr, ptr %14, align 8, !tbaa !5
  %51 = icmp eq ptr %49, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %48
  br label %43, !llvm.loop !18

53:                                               ; preds = %48
  %54 = load ptr, ptr %20, align 8, !tbaa !5
  %55 = load ptr, ptr %21, align 8, !tbaa !5
  %56 = load i32, ptr %24, align 4, !tbaa !9
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %24, align 4, !tbaa !9
  %58 = sext i32 %56 to i64
  %59 = getelementptr inbounds ptr, ptr %55, i64 %58
  store ptr %54, ptr %59, align 8, !tbaa !5
  %60 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %60, ptr %18, align 8, !tbaa !5
  %61 = load ptr, ptr %27, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.vertexT, ptr %61, i32 0, i32 2
  %63 = load ptr, ptr %62, align 8, !tbaa !20
  store ptr %63, ptr %19, align 8, !tbaa !5
  %64 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %64, ptr %22, align 8, !tbaa !5
  %65 = load ptr, ptr %14, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %84

67:                                               ; preds = %53
  %68 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %68, ptr %23, align 4, !tbaa !9
  br label %69

69:                                               ; preds = %73, %67
  %70 = load i32, ptr %23, align 4, !tbaa !9
  %71 = add nsw i32 %70, -1
  store i32 %71, ptr %23, align 4, !tbaa !9
  %72 = icmp ne i32 %70, 0
  br i1 %72, label %73, label %83

73:                                               ; preds = %69
  %74 = load ptr, ptr %19, align 8, !tbaa !5
  %75 = getelementptr inbounds double, ptr %74, i32 1
  store ptr %75, ptr %19, align 8, !tbaa !5
  %76 = load double, ptr %74, align 8, !tbaa !22
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = getelementptr inbounds double, ptr %77, i32 1
  store ptr %78, ptr %18, align 8, !tbaa !5
  %79 = load double, ptr %77, align 8, !tbaa !22
  %80 = fsub double %76, %79
  %81 = load ptr, ptr %20, align 8, !tbaa !5
  %82 = getelementptr inbounds double, ptr %81, i32 1
  store ptr %82, ptr %20, align 8, !tbaa !5
  store double %80, ptr %81, align 8, !tbaa !22
  br label %69, !llvm.loop !23

83:                                               ; preds = %69
  br label %142

84:                                               ; preds = %53
  %85 = load ptr, ptr %17, align 8, !tbaa !5
  %86 = load double, ptr %85, align 8, !tbaa !22
  store double %86, ptr %26, align 8, !tbaa !22
  %87 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %87, ptr %23, align 4, !tbaa !9
  br label %88

88:                                               ; preds = %92, %84
  %89 = load i32, ptr %23, align 4, !tbaa !9
  %90 = add nsw i32 %89, -1
  store i32 %90, ptr %23, align 4, !tbaa !9
  %91 = icmp ne i32 %89, 0
  br i1 %91, label %92, label %101

92:                                               ; preds = %88
  %93 = load ptr, ptr %19, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i32 1
  store ptr %94, ptr %19, align 8, !tbaa !5
  %95 = load double, ptr %93, align 8, !tbaa !22
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = getelementptr inbounds double, ptr %96, i32 1
  store ptr %97, ptr %22, align 8, !tbaa !5
  %98 = load double, ptr %96, align 8, !tbaa !22
  %99 = load double, ptr %26, align 8, !tbaa !22
  %100 = call double @llvm.fmuladd.f64(double %95, double %98, double %99)
  store double %100, ptr %26, align 8, !tbaa !22
  br label %88, !llvm.loop !24

101:                                              ; preds = %88
  %102 = load double, ptr %26, align 8, !tbaa !22
  %103 = load ptr, ptr %10, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.qhT, ptr %103, i32 0, i32 149
  %105 = load double, ptr %104, align 8, !tbaa !25
  %106 = fneg double %105
  %107 = fcmp olt double %102, %106
  br i1 %107, label %108, label %115

108:                                              ; preds = %101
  %109 = load ptr, ptr %10, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.qhT, ptr %109, i32 0, i32 258
  %111 = getelementptr inbounds %struct.qhstatT, ptr %110, i32 0, i32 0
  %112 = getelementptr inbounds [249 x %union.intrealT], ptr %111, i64 0, i64 155
  %113 = load i32, ptr %112, align 8, !tbaa !26
  %114 = add nsw i32 %113, 1
  store i32 %114, ptr %112, align 8, !tbaa !26
  store double 0.000000e+00, ptr %9, align 8
  store i32 1, ptr %30, align 4
  br label %259

115:                                              ; preds = %101
  %116 = load ptr, ptr %27, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.vertexT, ptr %116, i32 0, i32 2
  %118 = load ptr, ptr %117, align 8, !tbaa !20
  store ptr %118, ptr %19, align 8, !tbaa !5
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %119, ptr %22, align 8, !tbaa !5
  %120 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %120, ptr %23, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %125, %115
  %122 = load i32, ptr %23, align 4, !tbaa !9
  %123 = add nsw i32 %122, -1
  store i32 %123, ptr %23, align 4, !tbaa !9
  %124 = icmp ne i32 %122, 0
  br i1 %124, label %125, label %141

125:                                              ; preds = %121
  %126 = load ptr, ptr %19, align 8, !tbaa !5
  %127 = getelementptr inbounds double, ptr %126, i32 1
  store ptr %127, ptr %19, align 8, !tbaa !5
  %128 = load double, ptr %126, align 8, !tbaa !22
  %129 = load double, ptr %26, align 8, !tbaa !22
  %130 = load ptr, ptr %22, align 8, !tbaa !5
  %131 = getelementptr inbounds double, ptr %130, i32 1
  store ptr %131, ptr %22, align 8, !tbaa !5
  %132 = load double, ptr %130, align 8, !tbaa !22
  %133 = fneg double %129
  %134 = call double @llvm.fmuladd.f64(double %133, double %132, double %128)
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = getelementptr inbounds double, ptr %135, i32 1
  store ptr %136, ptr %18, align 8, !tbaa !5
  %137 = load double, ptr %135, align 8, !tbaa !22
  %138 = fsub double %134, %137
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  %140 = getelementptr inbounds double, ptr %139, i32 1
  store ptr %140, ptr %20, align 8, !tbaa !5
  store double %138, ptr %139, align 8, !tbaa !22
  br label %121, !llvm.loop !27

141:                                              ; preds = %121
  br label %142

142:                                              ; preds = %141, %83
  br label %43, !llvm.loop !18

143:                                              ; preds = %43
  br label %144

144:                                              ; preds = %143, %8
  %145 = load i32, ptr %24, align 4, !tbaa !9
  %146 = load i32, ptr %11, align 4, !tbaa !9
  %147 = sub nsw i32 %146, 1
  %148 = icmp ne i32 %145, %147
  br i1 %148, label %149, label %157

149:                                              ; preds = %144
  %150 = load ptr, ptr %10, align 8, !tbaa !5
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.qhT, ptr %151, i32 0, i32 158
  %153 = load ptr, ptr %152, align 8, !tbaa !28
  %154 = load i32, ptr %24, align 4, !tbaa !9
  %155 = load i32, ptr %11, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %150, ptr noundef %153, i32 noundef 6008, ptr noundef @.str.24, i32 noundef %154, i32 noundef %155)
  %156 = load ptr, ptr %10, align 8, !tbaa !5
  call void @qh_errexit(ptr noundef %156, i32 noundef 5, ptr noundef null, ptr noundef null)
  br label %157

157:                                              ; preds = %149, %144
  %158 = load ptr, ptr %20, align 8, !tbaa !5
  %159 = load ptr, ptr %21, align 8, !tbaa !5
  %160 = load i32, ptr %24, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds ptr, ptr %159, i64 %161
  store ptr %158, ptr %162, align 8, !tbaa !5
  %163 = load ptr, ptr %10, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.qhT, ptr %163, i32 0, i32 17
  %165 = load i32, ptr %164, align 8, !tbaa !29
  %166 = icmp ne i32 %165, 0
  br i1 %166, label %167, label %206

167:                                              ; preds = %157
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %168

168:                                              ; preds = %183, %167
  %169 = load i32, ptr %24, align 4, !tbaa !9
  %170 = load i32, ptr %11, align 4, !tbaa !9
  %171 = sub nsw i32 %170, 1
  %172 = icmp slt i32 %169, %171
  br i1 %172, label %173, label %186

173:                                              ; preds = %168
  %174 = load ptr, ptr %21, align 8, !tbaa !5
  %175 = load i32, ptr %24, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %174, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !5
  %179 = load i32, ptr %11, align 4, !tbaa !9
  %180 = sub nsw i32 %179, 1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  store double 0.000000e+00, ptr %182, align 8, !tbaa !22
  br label %183

183:                                              ; preds = %173
  %184 = load i32, ptr %24, align 4, !tbaa !9
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %24, align 4, !tbaa !9
  br label %168, !llvm.loop !30

186:                                              ; preds = %168
  %187 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %187, ptr %23, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %192, %186
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = add nsw i32 %189, -1
  store i32 %190, ptr %23, align 4, !tbaa !9
  %191 = icmp ne i32 %189, 0
  br i1 %191, label %192, label %195

192:                                              ; preds = %188
  %193 = load ptr, ptr %20, align 8, !tbaa !5
  %194 = getelementptr inbounds double, ptr %193, i32 1
  store ptr %194, ptr %20, align 8, !tbaa !5
  store double 0.000000e+00, ptr %193, align 8, !tbaa !22
  br label %188, !llvm.loop !31

195:                                              ; preds = %188
  %196 = load ptr, ptr %21, align 8, !tbaa !5
  %197 = load i32, ptr %11, align 4, !tbaa !9
  %198 = sub nsw i32 %197, 1
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds ptr, ptr %196, i64 %199
  %201 = load ptr, ptr %200, align 8, !tbaa !5
  %202 = load i32, ptr %11, align 4, !tbaa !9
  %203 = sub nsw i32 %202, 1
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds double, ptr %201, i64 %204
  store double -1.000000e+00, ptr %205, align 8, !tbaa !22
  br label %220

206:                                              ; preds = %157
  %207 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %207, ptr %22, align 8, !tbaa !5
  %208 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %208, ptr %23, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %213, %206
  %210 = load i32, ptr %23, align 4, !tbaa !9
  %211 = add nsw i32 %210, -1
  store i32 %211, ptr %23, align 4, !tbaa !9
  %212 = icmp ne i32 %210, 0
  br i1 %212, label %213, label %219

213:                                              ; preds = %209
  %214 = load ptr, ptr %22, align 8, !tbaa !5
  %215 = getelementptr inbounds double, ptr %214, i32 1
  store ptr %215, ptr %22, align 8, !tbaa !5
  %216 = load double, ptr %214, align 8, !tbaa !22
  %217 = load ptr, ptr %20, align 8, !tbaa !5
  %218 = getelementptr inbounds double, ptr %217, i32 1
  store ptr %218, ptr %20, align 8, !tbaa !5
  store double %216, ptr %217, align 8, !tbaa !22
  br label %209, !llvm.loop !32

219:                                              ; preds = %209
  br label %220

220:                                              ; preds = %219, %195
  %221 = load ptr, ptr %10, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.qhT, ptr %221, i32 0, i32 258
  %223 = getelementptr inbounds %struct.qhstatT, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds [249 x %union.intrealT], ptr %223, i64 0, i64 55
  %225 = load i32, ptr %224, align 8, !tbaa !26
  %226 = add nsw i32 %225, 1
  store i32 %226, ptr %224, align 8, !tbaa !26
  %227 = load ptr, ptr %10, align 8, !tbaa !5
  %228 = load ptr, ptr %21, align 8, !tbaa !5
  %229 = load i32, ptr %11, align 4, !tbaa !9
  %230 = call double @qh_determinant(ptr noundef %227, ptr noundef %228, i32 noundef %229, ptr noundef %29)
  store double %230, ptr %25, align 8, !tbaa !22
  %231 = load i32, ptr %15, align 4, !tbaa !9
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %236

233:                                              ; preds = %220
  %234 = load double, ptr %25, align 8, !tbaa !22
  %235 = fneg double %234
  store double %235, ptr %25, align 8, !tbaa !22
  br label %236

236:                                              ; preds = %233, %220
  %237 = load ptr, ptr %10, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.qhT, ptr %237, i32 0, i32 104
  %239 = load double, ptr %238, align 8, !tbaa !33
  %240 = load double, ptr %25, align 8, !tbaa !22
  %241 = fmul double %240, %239
  store double %241, ptr %25, align 8, !tbaa !22
  %242 = load ptr, ptr %10, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.qhT, ptr %242, i32 0, i32 29
  %244 = load i32, ptr %243, align 8, !tbaa !34
  %245 = icmp sge i32 %244, 4
  br i1 %245, label %246, label %257

246:                                              ; preds = %236
  %247 = load ptr, ptr %10, align 8, !tbaa !5
  %248 = load ptr, ptr %10, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.qhT, ptr %248, i32 0, i32 158
  %250 = load ptr, ptr %249, align 8, !tbaa !28
  %251 = load double, ptr %25, align 8, !tbaa !22
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = load ptr, ptr %12, align 8, !tbaa !5
  %254 = call i32 @qh_pointid(ptr noundef %252, ptr noundef %253)
  %255 = load i32, ptr %15, align 4, !tbaa !9
  %256 = load i32, ptr %29, align 4, !tbaa !9
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %247, ptr noundef %250, i32 noundef 4010, ptr noundef @.str.25, double noundef %251, i32 noundef %254, i32 noundef %255, i32 noundef %256)
  br label %257

257:                                              ; preds = %246, %236
  %258 = load double, ptr %25, align 8, !tbaa !22
  store double %258, ptr %9, align 8
  store i32 1, ptr %30, align 4
  br label %259

259:                                              ; preds = %257, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  %260 = load double, ptr %9, align 8
  ret double %260
}

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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { 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, !6, i64 2848}
!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, !6, i64 2856}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !6, i64 16}
!21 = !{!"vertexT", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40, !10, i64 40}
!22 = !{!13, !13, i64 0}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = !{!12, !13, i64 1904}
!26 = !{!7, !7, i64 0}
!27 = distinct !{!27, !19}
!28 = !{!12, !6, i64 2424}
!29 = !{!12, !10, i64 80}
!30 = distinct !{!30, !19}
!31 = distinct !{!31, !19}
!32 = distinct !{!32, !19}
!33 = !{!12, !13, i64 592}
!34 = !{!12, !10, i64 136}


; 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.24 = external hidden unnamed_addr constant [70 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [76 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

declare void @qh_errexit(ptr noundef, i32 noundef, ptr 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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

; Function Attrs: nounwind uwtable
declare dso_local double @qh_determinant(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local double @qh_facetarea_simplex(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef readonly %3, ptr noundef readnone %4, i32 noundef %5, ptr nocapture noundef readonly %6, ptr nocapture noundef readonly %7) local_unnamed_addr #3 {
  %9 = ptrtoint ptr %6 to i64
  %10 = ptrtoint ptr %2 to i64
  %11 = ptrtoint ptr %6 to i64
  %12 = ptrtoint ptr %2 to i64
  %13 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #6
  %14 = getelementptr inbounds i8, ptr %0, i64 2848
  %15 = load ptr, ptr %14, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %0, i64 2856
  %17 = load ptr, ptr %16, align 8, !tbaa !15
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %.loopexit122, label %18

18:                                               ; preds = %8
  %19 = getelementptr inbounds i8, ptr %3, i64 8
  %.not112 = icmp eq ptr %4, null
  %.not113133 = icmp eq i32 %1, 0
  %20 = getelementptr inbounds i8, ptr %0, i64 1904
  br i1 %.not112, label %.outer.us.preheader.preheader, label %.split

.outer.us.preheader.preheader:                    ; preds = %18
  %.pre215 = load ptr, ptr %19, align 8, !tbaa !16
  %.not106.us216 = icmp eq ptr %.pre215, null
  br i1 %.not106.us216, label %.loopexit122, label %.lr.ph221

.lr.ph221:                                        ; preds = %.outer.us.preheader.preheader
  %21 = zext i32 %1 to i64
  %22 = add i32 %1, -1
  %xtraiter323 = and i32 %1, 3
  %lcmp.mod324.not = icmp eq i32 %xtraiter323, 0
  %23 = icmp ult i32 %22, 3
  %min.iters.check250 = icmp ult i32 %1, 4
  %n.vec253 = and i64 %21, 4294967292
  %.cast254 = trunc nuw i64 %n.vec253 to i32
  %ind.end255 = sub i32 %1, %.cast254
  %24 = shl nuw nsw i64 %n.vec253, 3
  %ind.end257 = getelementptr i8, ptr %6, i64 %24
  %25 = shl nuw nsw i64 %n.vec253, 3
  %26 = shl nuw nsw i64 %n.vec253, 3
  %27 = shl nuw nsw i64 %n.vec253, 3
  %ind.end263 = getelementptr i8, ptr %2, i64 %27
  %cmp.n286 = icmp eq i64 %n.vec253, %21
  br label %28

28:                                               ; preds = %.lr.ph221, %.loopexit119.us
  %.pre220 = phi ptr [ %.pre215, %.lr.ph221 ], [ %.pre, %.loopexit119.us ]
  %.0.ph.us219 = phi ptr [ %19, %.lr.ph221 ], [ %29, %.loopexit119.us ]
  %.091.ph.us218 = phi ptr [ %15, %.lr.ph221 ], [ %.293.lcssa.us, %.loopexit119.us ]
  %indvars.iv189217 = phi i64 [ 0, %.lr.ph221 ], [ %indvars.iv.next190, %.loopexit119.us ]
  %.091.ph.us218242 = ptrtoint ptr %.091.ph.us218 to i64
  %29 = getelementptr inbounds i8, ptr %.0.ph.us219, i64 8
  %indvars.iv.next190 = add nuw nsw i64 %indvars.iv189217, 1
  %30 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv189217
  store ptr %.091.ph.us218, ptr %30, align 8, !tbaa !16
  %31 = getelementptr inbounds i8, ptr %.pre220, i64 16
  %32 = load ptr, ptr %31, align 8, !tbaa !17
  %33 = ptrtoint ptr %32 to i64
  %34 = load double, ptr %7, align 8, !tbaa !19
  br i1 %.not113133, label %._crit_edge.us.thread, label %.lr.ph138.us.preheader

.lr.ph138.us.preheader:                           ; preds = %28
  br i1 %lcmp.mod324.not, label %.lr.ph138.us.prol.loopexit, label %.lr.ph138.us.prol

.lr.ph138.us.prol:                                ; preds = %.lr.ph138.us.preheader, %.lr.ph138.us.prol
  %.081137.us.prol = phi double [ %40, %.lr.ph138.us.prol ], [ %34, %.lr.ph138.us.preheader ]
  %.185136.us.prol = phi i32 [ %35, %.lr.ph138.us.prol ], [ %1, %.lr.ph138.us.preheader ]
  %.087135.us.prol = phi ptr [ %38, %.lr.ph138.us.prol ], [ %6, %.lr.ph138.us.preheader ]
  %.197134.us.prol = phi ptr [ %36, %.lr.ph138.us.prol ], [ %32, %.lr.ph138.us.preheader ]
  %prol.iter325 = phi i32 [ %prol.iter325.next, %.lr.ph138.us.prol ], [ 0, %.lr.ph138.us.preheader ]
  %35 = add nsw i32 %.185136.us.prol, -1
  %36 = getelementptr inbounds i8, ptr %.197134.us.prol, i64 8
  %37 = load double, ptr %.197134.us.prol, align 8, !tbaa !19
  %38 = getelementptr inbounds i8, ptr %.087135.us.prol, i64 8
  %39 = load double, ptr %.087135.us.prol, align 8, !tbaa !19
  %40 = tail call double @llvm.fmuladd.f64(double %37, double %39, double %.081137.us.prol)
  %prol.iter325.next = add i32 %prol.iter325, 1
  %prol.iter325.cmp.not = icmp eq i32 %prol.iter325.next, %xtraiter323
  br i1 %prol.iter325.cmp.not, label %.lr.ph138.us.prol.loopexit, label %.lr.ph138.us.prol, !llvm.loop !20

.lr.ph138.us.prol.loopexit:                       ; preds = %.lr.ph138.us.prol, %.lr.ph138.us.preheader
  %.lcssa.unr = phi double [ poison, %.lr.ph138.us.preheader ], [ %40, %.lr.ph138.us.prol ]
  %.081137.us.unr = phi double [ %34, %.lr.ph138.us.preheader ], [ %40, %.lr.ph138.us.prol ]
  %.185136.us.unr = phi i32 [ %1, %.lr.ph138.us.preheader ], [ %35, %.lr.ph138.us.prol ]
  %.087135.us.unr = phi ptr [ %6, %.lr.ph138.us.preheader ], [ %38, %.lr.ph138.us.prol ]
  %.197134.us.unr = phi ptr [ %32, %.lr.ph138.us.preheader ], [ %36, %.lr.ph138.us.prol ]
  br i1 %23, label %._crit_edge.us, label %.lr.ph138.us

.lr.ph138.us:                                     ; preds = %.lr.ph138.us.prol.loopexit, %.lr.ph138.us
  %.081137.us = phi double [ %61, %.lr.ph138.us ], [ %.081137.us.unr, %.lr.ph138.us.prol.loopexit ]
  %.185136.us = phi i32 [ %56, %.lr.ph138.us ], [ %.185136.us.unr, %.lr.ph138.us.prol.loopexit ]
  %.087135.us = phi ptr [ %59, %.lr.ph138.us ], [ %.087135.us.unr, %.lr.ph138.us.prol.loopexit ]
  %.197134.us = phi ptr [ %57, %.lr.ph138.us ], [ %.197134.us.unr, %.lr.ph138.us.prol.loopexit ]
  %41 = getelementptr inbounds i8, ptr %.197134.us, i64 8
  %42 = load double, ptr %.197134.us, align 8, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %.087135.us, i64 8
  %44 = load double, ptr %.087135.us, align 8, !tbaa !19
  %45 = tail call double @llvm.fmuladd.f64(double %42, double %44, double %.081137.us)
  %46 = getelementptr inbounds i8, ptr %.197134.us, i64 16
  %47 = load double, ptr %41, align 8, !tbaa !19
  %48 = getelementptr inbounds i8, ptr %.087135.us, i64 16
  %49 = load double, ptr %43, align 8, !tbaa !19
  %50 = tail call double @llvm.fmuladd.f64(double %47, double %49, double %45)
  %51 = getelementptr inbounds i8, ptr %.197134.us, i64 24
  %52 = load double, ptr %46, align 8, !tbaa !19
  %53 = getelementptr inbounds i8, ptr %.087135.us, i64 24
  %54 = load double, ptr %48, align 8, !tbaa !19
  %55 = tail call double @llvm.fmuladd.f64(double %52, double %54, double %50)
  %56 = add nsw i32 %.185136.us, -4
  %57 = getelementptr inbounds i8, ptr %.197134.us, i64 32
  %58 = load double, ptr %51, align 8, !tbaa !19
  %59 = getelementptr inbounds i8, ptr %.087135.us, i64 32
  %60 = load double, ptr %53, align 8, !tbaa !19
  %61 = tail call double @llvm.fmuladd.f64(double %58, double %60, double %55)
  %.not113.us.3 = icmp eq i32 %56, 0
  br i1 %.not113.us.3, label %._crit_edge.us, label %.lr.ph138.us, !llvm.loop !22

._crit_edge.us:                                   ; preds = %.lr.ph138.us, %.lr.ph138.us.prol.loopexit
  %.lcssa = phi double [ %.lcssa.unr, %.lr.ph138.us.prol.loopexit ], [ %61, %.lr.ph138.us ]
  %62 = load double, ptr %20, align 8, !tbaa !24
  %63 = fneg double %62
  %64 = fcmp olt double %.lcssa, %63
  br i1 %64, label %.split149.us, label %.preheader118.us

._crit_edge.us.thread:                            ; preds = %28
  %65 = load double, ptr %20, align 8, !tbaa !24
  %66 = fneg double %65
  %67 = fcmp olt double %34, %66
  br i1 %67, label %.split149.us, label %.loopexit119.us

scalar.ph249:                                     ; preds = %scalar.ph249.prol.loopexit, %scalar.ph249
  %.286145.us = phi i32 [ %77, %scalar.ph249 ], [ %.286145.us.unr, %scalar.ph249.prol.loopexit ]
  %.188144.us = phi ptr [ %80, %scalar.ph249 ], [ %.188144.us.unr, %scalar.ph249.prol.loopexit ]
  %.293143.us = phi ptr [ %86, %scalar.ph249 ], [ %.293143.us.unr, %scalar.ph249.prol.loopexit ]
  %.298142.us = phi ptr [ %78, %scalar.ph249 ], [ %.298142.us.unr, %scalar.ph249.prol.loopexit ]
  %.1100141.us = phi ptr [ %83, %scalar.ph249 ], [ %.1100141.us.unr, %scalar.ph249.prol.loopexit ]
  %68 = getelementptr inbounds i8, ptr %.298142.us, i64 8
  %69 = load double, ptr %.298142.us, align 8, !tbaa !19
  %70 = getelementptr inbounds i8, ptr %.188144.us, i64 8
  %71 = load double, ptr %.188144.us, align 8, !tbaa !19
  %72 = tail call double @llvm.fmuladd.f64(double %87, double %71, double %69)
  %73 = getelementptr inbounds i8, ptr %.1100141.us, i64 8
  %74 = load double, ptr %.1100141.us, align 8, !tbaa !19
  %75 = fsub double %72, %74
  %76 = getelementptr inbounds i8, ptr %.293143.us, i64 8
  store double %75, ptr %.293143.us, align 8, !tbaa !19
  %77 = add nsw i32 %.286145.us, -2
  %78 = getelementptr inbounds i8, ptr %.298142.us, i64 16
  %79 = load double, ptr %68, align 8, !tbaa !19
  %80 = getelementptr inbounds i8, ptr %.188144.us, i64 16
  %81 = load double, ptr %70, align 8, !tbaa !19
  %82 = tail call double @llvm.fmuladd.f64(double %87, double %81, double %79)
  %83 = getelementptr inbounds i8, ptr %.1100141.us, i64 16
  %84 = load double, ptr %73, align 8, !tbaa !19
  %85 = fsub double %82, %84
  %86 = getelementptr inbounds i8, ptr %.293143.us, i64 16
  store double %85, ptr %76, align 8, !tbaa !19
  %.not114.us.1 = icmp eq i32 %77, 0
  br i1 %.not114.us.1, label %.loopexit119.us, label %scalar.ph249, !llvm.loop !25

.preheader118.us:                                 ; preds = %._crit_edge.us
  br i1 %.not113133, label %.loopexit119.us, label %.lr.ph146.us

.loopexit119.us:                                  ; preds = %scalar.ph249.prol.loopexit, %scalar.ph249, %middle.block248, %._crit_edge.us.thread, %.preheader118.us
  %.293.lcssa.us = phi ptr [ %.091.ph.us218, %.preheader118.us ], [ %.091.ph.us218, %._crit_edge.us.thread ], [ %ind.end259, %middle.block248 ], [ %.lcssa316.unr, %scalar.ph249.prol.loopexit ], [ %86, %scalar.ph249 ]
  %.pre = load ptr, ptr %29, align 8, !tbaa !16
  %.not106.us = icmp eq ptr %.pre, null
  br i1 %.not106.us, label %.outer.us.preheader..loopexit122.loopexit_crit_edge, label %28, !llvm.loop !27

.lr.ph146.us:                                     ; preds = %.preheader118.us
  %87 = fneg double %.lcssa
  br i1 %min.iters.check250, label %scalar.ph249.preheader, label %vector.memcheck241

scalar.ph249.preheader:                           ; preds = %middle.block248, %vector.memcheck241, %.lr.ph146.us
  %.286145.us.ph = phi i32 [ %1, %vector.memcheck241 ], [ %1, %.lr.ph146.us ], [ %ind.end255, %middle.block248 ]
  %.188144.us.ph = phi ptr [ %6, %vector.memcheck241 ], [ %6, %.lr.ph146.us ], [ %ind.end257, %middle.block248 ]
  %.293143.us.ph = phi ptr [ %.091.ph.us218, %vector.memcheck241 ], [ %.091.ph.us218, %.lr.ph146.us ], [ %ind.end259, %middle.block248 ]
  %.298142.us.ph = phi ptr [ %32, %vector.memcheck241 ], [ %32, %.lr.ph146.us ], [ %ind.end261, %middle.block248 ]
  %.1100141.us.ph = phi ptr [ %2, %vector.memcheck241 ], [ %2, %.lr.ph146.us ], [ %ind.end263, %middle.block248 ]
  %xtraiter326 = and i32 %.286145.us.ph, 1
  %lcmp.mod327.not = icmp eq i32 %xtraiter326, 0
  br i1 %lcmp.mod327.not, label %scalar.ph249.prol.loopexit, label %scalar.ph249.prol

scalar.ph249.prol:                                ; preds = %scalar.ph249.preheader
  %88 = add nsw i32 %.286145.us.ph, -1
  %89 = getelementptr inbounds i8, ptr %.298142.us.ph, i64 8
  %90 = load double, ptr %.298142.us.ph, align 8, !tbaa !19
  %91 = getelementptr inbounds i8, ptr %.188144.us.ph, i64 8
  %92 = load double, ptr %.188144.us.ph, align 8, !tbaa !19
  %93 = tail call double @llvm.fmuladd.f64(double %87, double %92, double %90)
  %94 = getelementptr inbounds i8, ptr %.1100141.us.ph, i64 8
  %95 = load double, ptr %.1100141.us.ph, align 8, !tbaa !19
  %96 = fsub double %93, %95
  %97 = getelementptr inbounds i8, ptr %.293143.us.ph, i64 8
  store double %96, ptr %.293143.us.ph, align 8, !tbaa !19
  br label %scalar.ph249.prol.loopexit

scalar.ph249.prol.loopexit:                       ; preds = %scalar.ph249.prol, %scalar.ph249.preheader
  %.lcssa316.unr = phi ptr [ poison, %scalar.ph249.preheader ], [ %97, %scalar.ph249.prol ]
  %.286145.us.unr = phi i32 [ %.286145.us.ph, %scalar.ph249.preheader ], [ %88, %scalar.ph249.prol ]
  %.188144.us.unr = phi ptr [ %.188144.us.ph, %scalar.ph249.preheader ], [ %91, %scalar.ph249.prol ]
  %.293143.us.unr = phi ptr [ %.293143.us.ph, %scalar.ph249.preheader ], [ %97, %scalar.ph249.prol ]
  %.298142.us.unr = phi ptr [ %.298142.us.ph, %scalar.ph249.preheader ], [ %89, %scalar.ph249.prol ]
  %.1100141.us.unr = phi ptr [ %.1100141.us.ph, %scalar.ph249.preheader ], [ %94, %scalar.ph249.prol ]
  %98 = icmp eq i32 %.286145.us.ph, 1
  br i1 %98, label %.loopexit119.us, label %scalar.ph249

vector.memcheck241:                               ; preds = %.lr.ph146.us
  %99 = sub i64 %.091.ph.us218242, %33
  %diff.check243 = icmp ult i64 %99, 32
  %100 = sub i64 %.091.ph.us218242, %11
  %diff.check244 = icmp ult i64 %100, 32
  %conflict.rdx245 = or i1 %diff.check243, %diff.check244
  %101 = sub i64 %.091.ph.us218242, %10
  %diff.check246 = icmp ult i64 %101, 32
  %conflict.rdx247 = or i1 %conflict.rdx245, %diff.check246
  br i1 %conflict.rdx247, label %scalar.ph249.preheader, label %vector.ph251

vector.ph251:                                     ; preds = %vector.memcheck241
  %ind.end259 = getelementptr i8, ptr %.091.ph.us218, i64 %25
  %ind.end261 = getelementptr i8, ptr %32, i64 %26
  %broadcast.splatinsert = insertelement <2 x double> poison, double %87, i64 0
  %broadcast.splat = shufflevector <2 x double> %broadcast.splatinsert, <2 x double> poison, <2 x i32> zeroinitializer
  br label %vector.body265

vector.body265:                                   ; preds = %vector.body265, %vector.ph251
  %index266 = phi i64 [ 0, %vector.ph251 ], [ %index.next285, %vector.body265 ]
  %offset.idx267 = shl i64 %index266, 3
  %next.gep268 = getelementptr i8, ptr %6, i64 %offset.idx267
  %offset.idx270 = shl i64 %index266, 3
  %next.gep271 = getelementptr i8, ptr %.091.ph.us218, i64 %offset.idx270
  %offset.idx273 = shl i64 %index266, 3
  %next.gep274 = getelementptr i8, ptr %32, i64 %offset.idx273
  %offset.idx276 = shl i64 %index266, 3
  %next.gep277 = getelementptr i8, ptr %2, i64 %offset.idx276
  %102 = getelementptr i8, ptr %next.gep274, i64 16
  %wide.load279 = load <2 x double>, ptr %next.gep274, align 8, !tbaa !19
  %wide.load280 = load <2 x double>, ptr %102, align 8, !tbaa !19
  %103 = getelementptr i8, ptr %next.gep268, i64 16
  %wide.load281 = load <2 x double>, ptr %next.gep268, align 8, !tbaa !19
  %wide.load282 = load <2 x double>, ptr %103, align 8, !tbaa !19
  %104 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load281, <2 x double> %wide.load279)
  %105 = tail call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %broadcast.splat, <2 x double> %wide.load282, <2 x double> %wide.load280)
  %106 = getelementptr i8, ptr %next.gep277, i64 16
  %wide.load283 = load <2 x double>, ptr %next.gep277, align 8, !tbaa !19
  %wide.load284 = load <2 x double>, ptr %106, align 8, !tbaa !19
  %107 = fsub <2 x double> %104, %wide.load283
  %108 = fsub <2 x double> %105, %wide.load284
  %109 = getelementptr i8, ptr %next.gep271, i64 16
  store <2 x double> %107, ptr %next.gep271, align 8, !tbaa !19
  store <2 x double> %108, ptr %109, align 8, !tbaa !19
  %index.next285 = add nuw i64 %index266, 4
  %110 = icmp eq i64 %index.next285, %n.vec253
  br i1 %110, label %middle.block248, label %vector.body265, !llvm.loop !28

middle.block248:                                  ; preds = %vector.body265
  br i1 %cmp.n286, label %.loopexit119.us, label %scalar.ph249.preheader

.split:                                           ; preds = %18
  br i1 %.not113133, label %.outer.us151, label %.outer.preheader

.outer.preheader:                                 ; preds = %.split
  %111 = zext i32 %1 to i64
  %min.iters.check = icmp ult i32 %1, 4
  %n.vec = and i64 %111, 4294967292
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = sub i32 %1, %.cast
  %112 = shl nuw nsw i64 %n.vec, 3
  %113 = shl nuw nsw i64 %n.vec, 3
  %114 = shl nuw nsw i64 %n.vec, 3
  %ind.end229 = getelementptr i8, ptr %2, i64 %114
  %cmp.n = icmp eq i64 %n.vec, %111
  br label %.outer

.outer.us151:                                     ; preds = %.split, %.preheader120.us
  %indvars.iv186 = phi i64 [ %indvars.iv.next187, %.preheader120.us ], [ 0, %.split ]
  %.0.ph.us154 = phi ptr [ %116, %.preheader120.us ], [ %19, %.split ]
  br label %119

115:                                              ; preds = %119
  %116 = getelementptr inbounds i8, ptr %.0.us157, i64 8
  %117 = icmp eq ptr %120, %4
  br i1 %117, label %119, label %.preheader120.us, !llvm.loop !27

.preheader120.us:                                 ; preds = %115
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %118 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv186
  store ptr %15, ptr %118, align 8, !tbaa !16
  br label %.outer.us151, !llvm.loop !27

119:                                              ; preds = %115, %.outer.us151
  %.0.us157 = phi ptr [ %116, %115 ], [ %.0.ph.us154, %.outer.us151 ]
  %120 = load ptr, ptr %.0.us157, align 8, !tbaa !16
  %.not106.us158 = icmp eq ptr %120, null
  br i1 %.not106.us158, label %.loopexit122.loopexit173, label %115

.outer:                                           ; preds = %.outer.preheader, %..loopexit121_crit_edge
  %indvars.iv = phi i64 [ %indvars.iv.next, %..loopexit121_crit_edge ], [ 0, %.outer.preheader ]
  %.091.ph = phi ptr [ %.lcssa214, %..loopexit121_crit_edge ], [ %15, %.outer.preheader ]
  %.0.ph = phi ptr [ %124, %..loopexit121_crit_edge ], [ %19, %.outer.preheader ]
  %.091.ph223 = ptrtoint ptr %.091.ph to i64
  br label %121

121:                                              ; preds = %.outer, %123
  %.0 = phi ptr [ %124, %123 ], [ %.0.ph, %.outer ]
  %122 = load ptr, ptr %.0, align 8, !tbaa !16
  %.not106 = icmp eq ptr %122, null
  br i1 %.not106, label %.loopexit122.loopexit174, label %123

123:                                              ; preds = %121
  %124 = getelementptr inbounds i8, ptr %.0, i64 8
  %125 = icmp eq ptr %122, %4
  br i1 %125, label %121, label %.preheader120, !llvm.loop !27

.preheader120:                                    ; preds = %123
  %126 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv
  store ptr %.091.ph, ptr %126, align 8, !tbaa !16
  %127 = getelementptr inbounds i8, ptr %122, i64 16
  %128 = load ptr, ptr %127, align 8, !tbaa !17
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.preheader120
  %129 = ptrtoint ptr %128 to i64
  %130 = sub i64 %.091.ph223, %129
  %diff.check = icmp ult i64 %130, 32
  %131 = sub i64 %.091.ph223, %12
  %diff.check224 = icmp ult i64 %131, 32
  %conflict.rdx = or i1 %diff.check, %diff.check224
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %ind.end225 = getelementptr i8, ptr %.091.ph, i64 %112
  %ind.end227 = getelementptr i8, ptr %128, i64 %113
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 3
  %next.gep = getelementptr i8, ptr %.091.ph, i64 %offset.idx
  %offset.idx232 = shl i64 %index, 3
  %next.gep233 = getelementptr i8, ptr %128, i64 %offset.idx232
  %offset.idx235 = shl i64 %index, 3
  %next.gep236 = getelementptr i8, ptr %2, i64 %offset.idx235
  %132 = getelementptr i8, ptr %next.gep233, i64 16
  %wide.load = load <2 x double>, ptr %next.gep233, align 8, !tbaa !19
  %wide.load238 = load <2 x double>, ptr %132, align 8, !tbaa !19
  %133 = getelementptr i8, ptr %next.gep236, i64 16
  %wide.load239 = load <2 x double>, ptr %next.gep236, align 8, !tbaa !19
  %wide.load240 = load <2 x double>, ptr %133, align 8, !tbaa !19
  %134 = fsub <2 x double> %wide.load, %wide.load239
  %135 = fsub <2 x double> %wide.load238, %wide.load240
  %136 = getelementptr i8, ptr %next.gep, i64 16
  store <2 x double> %134, ptr %next.gep, align 8, !tbaa !19
  store <2 x double> %135, ptr %136, align 8, !tbaa !19
  %index.next = add nuw i64 %index, 4
  %137 = icmp eq i64 %index.next, %n.vec
  br i1 %137, label %middle.block, label %vector.body, !llvm.loop !30

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..loopexit121_crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.preheader120
  %.084132.ph = phi i32 [ %1, %vector.memcheck ], [ %1, %.preheader120 ], [ %ind.end, %middle.block ]
  %.192131.ph = phi ptr [ %.091.ph, %vector.memcheck ], [ %.091.ph, %.preheader120 ], [ %ind.end225, %middle.block ]
  %.096130.ph = phi ptr [ %128, %vector.memcheck ], [ %128, %.preheader120 ], [ %ind.end227, %middle.block ]
  %.099129.ph = phi ptr [ %2, %vector.memcheck ], [ %2, %.preheader120 ], [ %ind.end229, %middle.block ]
  %138 = add nsw i32 %.084132.ph, -1
  %xtraiter = and i32 %.084132.ph, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.084132.prol = phi i32 [ %139, %scalar.ph.prol ], [ %.084132.ph, %scalar.ph.preheader ]
  %.192131.prol = phi ptr [ %145, %scalar.ph.prol ], [ %.192131.ph, %scalar.ph.preheader ]
  %.096130.prol = phi ptr [ %140, %scalar.ph.prol ], [ %.096130.ph, %scalar.ph.preheader ]
  %.099129.prol = phi ptr [ %142, %scalar.ph.prol ], [ %.099129.ph, %scalar.ph.preheader ]
  %prol.iter = phi i32 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %139 = add nsw i32 %.084132.prol, -1
  %140 = getelementptr inbounds i8, ptr %.096130.prol, i64 8
  %141 = load double, ptr %.096130.prol, align 8, !tbaa !19
  %142 = getelementptr inbounds i8, ptr %.099129.prol, i64 8
  %143 = load double, ptr %.099129.prol, align 8, !tbaa !19
  %144 = fsub double %141, %143
  %145 = getelementptr inbounds i8, ptr %.192131.prol, i64 8
  store double %144, ptr %.192131.prol, align 8, !tbaa !19
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !31

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.lcssa322.unr = phi ptr [ poison, %scalar.ph.preheader ], [ %145, %scalar.ph.prol ]
  %.084132.unr = phi i32 [ %.084132.ph, %scalar.ph.preheader ], [ %139, %scalar.ph.prol ]
  %.192131.unr = phi ptr [ %.192131.ph, %scalar.ph.preheader ], [ %145, %scalar.ph.prol ]
  %.096130.unr = phi ptr [ %.096130.ph, %scalar.ph.preheader ], [ %140, %scalar.ph.prol ]
  %.099129.unr = phi ptr [ %.099129.ph, %scalar.ph.preheader ], [ %142, %scalar.ph.prol ]
  %146 = icmp ult i32 %138, 3
  br i1 %146, label %..loopexit121_crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.084132 = phi i32 [ %165, %scalar.ph ], [ %.084132.unr, %scalar.ph.prol.loopexit ]
  %.192131 = phi ptr [ %171, %scalar.ph ], [ %.192131.unr, %scalar.ph.prol.loopexit ]
  %.096130 = phi ptr [ %166, %scalar.ph ], [ %.096130.unr, %scalar.ph.prol.loopexit ]
  %.099129 = phi ptr [ %168, %scalar.ph ], [ %.099129.unr, %scalar.ph.prol.loopexit ]
  %147 = getelementptr inbounds i8, ptr %.096130, i64 8
  %148 = load double, ptr %.096130, align 8, !tbaa !19
  %149 = getelementptr inbounds i8, ptr %.099129, i64 8
  %150 = load double, ptr %.099129, align 8, !tbaa !19
  %151 = fsub double %148, %150
  %152 = getelementptr inbounds i8, ptr %.192131, i64 8
  store double %151, ptr %.192131, align 8, !tbaa !19
  %153 = getelementptr inbounds i8, ptr %.096130, i64 16
  %154 = load double, ptr %147, align 8, !tbaa !19
  %155 = getelementptr inbounds i8, ptr %.099129, i64 16
  %156 = load double, ptr %149, align 8, !tbaa !19
  %157 = fsub double %154, %156
  %158 = getelementptr inbounds i8, ptr %.192131, i64 16
  store double %157, ptr %152, align 8, !tbaa !19
  %159 = getelementptr inbounds i8, ptr %.096130, i64 24
  %160 = load double, ptr %153, align 8, !tbaa !19
  %161 = getelementptr inbounds i8, ptr %.099129, i64 24
  %162 = load double, ptr %155, align 8, !tbaa !19
  %163 = fsub double %160, %162
  %164 = getelementptr inbounds i8, ptr %.192131, i64 24
  store double %163, ptr %158, align 8, !tbaa !19
  %165 = add nsw i32 %.084132, -4
  %166 = getelementptr inbounds i8, ptr %.096130, i64 32
  %167 = load double, ptr %159, align 8, !tbaa !19
  %168 = getelementptr inbounds i8, ptr %.099129, i64 32
  %169 = load double, ptr %161, align 8, !tbaa !19
  %170 = fsub double %167, %169
  %171 = getelementptr inbounds i8, ptr %.192131, i64 32
  store double %170, ptr %164, align 8, !tbaa !19
  %.not115.3 = icmp eq i32 %165, 0
  br i1 %.not115.3, label %..loopexit121_crit_edge, label %scalar.ph, !llvm.loop !32

.split149.us:                                     ; preds = %._crit_edge.us.thread, %._crit_edge.us
  %172 = getelementptr inbounds i8, ptr %0, i64 4664
  %173 = load i32, ptr %172, align 8, !tbaa !33
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %172, align 8, !tbaa !33
  br label %267

..loopexit121_crit_edge:                          ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %.lcssa214 = phi ptr [ %ind.end225, %middle.block ], [ %.lcssa322.unr, %scalar.ph.prol.loopexit ], [ %171, %scalar.ph ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  br label %.outer, !llvm.loop !27

.outer.us.preheader..loopexit122.loopexit_crit_edge: ; preds = %.loopexit119.us
  %175 = trunc nuw nsw i64 %indvars.iv.next190 to i32
  br label %.loopexit122

.loopexit122.loopexit173:                         ; preds = %119
  %176 = trunc nuw nsw i64 %indvars.iv186 to i32
  br label %.loopexit122

.loopexit122.loopexit174:                         ; preds = %121
  %177 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.loopexit122

.loopexit122:                                     ; preds = %.outer.us.preheader.preheader, %.outer.us.preheader..loopexit122.loopexit_crit_edge, %.loopexit122.loopexit174, %.loopexit122.loopexit173, %8
  %.495 = phi ptr [ %15, %8 ], [ %15, %.loopexit122.loopexit173 ], [ %.091.ph, %.loopexit122.loopexit174 ], [ %.293.lcssa.us, %.outer.us.preheader..loopexit122.loopexit_crit_edge ], [ %15, %.outer.us.preheader.preheader ]
  %.1 = phi i32 [ 0, %8 ], [ %176, %.loopexit122.loopexit173 ], [ %177, %.loopexit122.loopexit174 ], [ %175, %.outer.us.preheader..loopexit122.loopexit_crit_edge ], [ 0, %.outer.us.preheader.preheader ]
  %.495288 = ptrtoint ptr %.495 to i64
  %178 = add nsw i32 %1, -1
  %.not107 = icmp eq i32 %.1, %178
  br i1 %.not107, label %182, label %179

179:                                              ; preds = %.loopexit122
  %180 = getelementptr inbounds i8, ptr %0, i64 2424
  %181 = load ptr, ptr %180, align 8, !tbaa !34
  tail call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef %0, ptr noundef %181, i32 noundef 6008, ptr noundef nonnull @.str.24, i32 noundef %.1, i32 noundef %1) #6
  tail call void @qh_errexit(ptr noundef %0, i32 noundef 5, ptr noundef null, ptr noundef null) #6
  br label %182

182:                                              ; preds = %179, %.loopexit122
  %183 = zext nneg i32 %.1 to i64
  %184 = getelementptr inbounds ptr, ptr %17, i64 %183
  store ptr %.495, ptr %184, align 8, !tbaa !16
  %185 = getelementptr inbounds i8, ptr %0, i64 80
  %186 = load i32, ptr %185, align 8, !tbaa !35
  %.not108 = icmp eq i32 %186, 0
  br i1 %.not108, label %.preheader, label %.preheader117

.preheader117:                                    ; preds = %182
  %187 = icmp sgt i32 %1, 1
  br i1 %187, label %.lr.ph, label %.preheader116

.lr.ph:                                           ; preds = %.preheader117
  %188 = zext nneg i32 %178 to i64
  %wide.trip.count = zext nneg i32 %178 to i64
  %189 = add nsw i64 %wide.trip.count, -1
  %xtraiter329 = and i64 %wide.trip.count, 3
  %190 = icmp ult i64 %189, 3
  br i1 %190, label %.preheader116.loopexit.unr-lcssa, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.lr.ph
  %unroll_iter = and i64 %wide.trip.count, 2147483644
  br label %209

.preheader:                                       ; preds = %182
  %.not109168 = icmp eq i32 %1, 0
  br i1 %.not109168, label %.loopexit, label %.lr.ph172.preheader

.lr.ph172.preheader:                              ; preds = %.preheader
  %191 = zext i32 %1 to i64
  %min.iters.check292 = icmp ult i32 %1, 6
  %192 = sub i64 %.495288, %9
  %diff.check289 = icmp ult i64 %192, 32
  %or.cond = select i1 %min.iters.check292, i1 true, i1 %diff.check289
  br i1 %or.cond, label %.lr.ph172.preheader315, label %vector.ph293

.lr.ph172.preheader315:                           ; preds = %middle.block290, %.lr.ph172.preheader
  %.4171.ph = phi i32 [ %1, %.lr.ph172.preheader ], [ %ind.end297, %middle.block290 ]
  %.289170.ph = phi ptr [ %6, %.lr.ph172.preheader ], [ %ind.end299, %middle.block290 ]
  %.6169.ph = phi ptr [ %.495, %.lr.ph172.preheader ], [ %ind.end301, %middle.block290 ]
  %193 = add nsw i32 %.4171.ph, -1
  %xtraiter331 = and i32 %.4171.ph, 7
  %lcmp.mod332.not = icmp eq i32 %xtraiter331, 0
  br i1 %lcmp.mod332.not, label %.lr.ph172.prol.loopexit, label %.lr.ph172.prol

.lr.ph172.prol:                                   ; preds = %.lr.ph172.preheader315, %.lr.ph172.prol
  %.4171.prol = phi i32 [ %194, %.lr.ph172.prol ], [ %.4171.ph, %.lr.ph172.preheader315 ]
  %.289170.prol = phi ptr [ %195, %.lr.ph172.prol ], [ %.289170.ph, %.lr.ph172.preheader315 ]
  %.6169.prol = phi ptr [ %197, %.lr.ph172.prol ], [ %.6169.ph, %.lr.ph172.preheader315 ]
  %prol.iter333 = phi i32 [ %prol.iter333.next, %.lr.ph172.prol ], [ 0, %.lr.ph172.preheader315 ]
  %194 = add nsw i32 %.4171.prol, -1
  %195 = getelementptr inbounds i8, ptr %.289170.prol, i64 8
  %196 = load double, ptr %.289170.prol, align 8, !tbaa !19
  %197 = getelementptr inbounds i8, ptr %.6169.prol, i64 8
  store double %196, ptr %.6169.prol, align 8, !tbaa !19
  %prol.iter333.next = add i32 %prol.iter333, 1
  %prol.iter333.cmp.not = icmp eq i32 %prol.iter333.next, %xtraiter331
  br i1 %prol.iter333.cmp.not, label %.lr.ph172.prol.loopexit, label %.lr.ph172.prol, !llvm.loop !36

.lr.ph172.prol.loopexit:                          ; preds = %.lr.ph172.prol, %.lr.ph172.preheader315
  %.4171.unr = phi i32 [ %.4171.ph, %.lr.ph172.preheader315 ], [ %194, %.lr.ph172.prol ]
  %.289170.unr = phi ptr [ %.289170.ph, %.lr.ph172.preheader315 ], [ %195, %.lr.ph172.prol ]
  %.6169.unr = phi ptr [ %.6169.ph, %.lr.ph172.preheader315 ], [ %197, %.lr.ph172.prol ]
  %198 = icmp ult i32 %193, 7
  br i1 %198, label %.loopexit, label %.lr.ph172

vector.ph293:                                     ; preds = %.lr.ph172.preheader
  %n.vec295 = and i64 %191, 4294967292
  %.cast296 = trunc nuw i64 %n.vec295 to i32
  %ind.end297 = sub i32 %1, %.cast296
  %199 = shl nuw nsw i64 %n.vec295, 3
  %ind.end299 = getelementptr i8, ptr %6, i64 %199
  %200 = shl nuw nsw i64 %n.vec295, 3
  %ind.end301 = getelementptr i8, ptr %.495, i64 %200
  br label %vector.body303

vector.body303:                                   ; preds = %vector.body303, %vector.ph293
  %index304 = phi i64 [ 0, %vector.ph293 ], [ %index.next313, %vector.body303 ]
  %offset.idx305 = shl i64 %index304, 3
  %next.gep306 = getelementptr i8, ptr %6, i64 %offset.idx305
  %offset.idx308 = shl i64 %index304, 3
  %next.gep309 = getelementptr i8, ptr %.495, i64 %offset.idx308
  %201 = getelementptr i8, ptr %next.gep306, i64 16
  %wide.load311 = load <2 x double>, ptr %next.gep306, align 8, !tbaa !19
  %wide.load312 = load <2 x double>, ptr %201, align 8, !tbaa !19
  %202 = getelementptr i8, ptr %next.gep309, i64 16
  store <2 x double> %wide.load311, ptr %next.gep309, align 8, !tbaa !19
  store <2 x double> %wide.load312, ptr %202, align 8, !tbaa !19
  %index.next313 = add nuw i64 %index304, 4
  %203 = icmp eq i64 %index.next313, %n.vec295
  br i1 %203, label %middle.block290, label %vector.body303, !llvm.loop !37

middle.block290:                                  ; preds = %vector.body303
  %cmp.n314 = icmp eq i64 %n.vec295, %191
  br i1 %cmp.n314, label %.loopexit, label %.lr.ph172.preheader315

.preheader116.loopexit.unr-lcssa:                 ; preds = %209, %.lr.ph
  %indvars.iv192.unr = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next193.3, %209 ]
  %lcmp.mod330.not = icmp eq i64 %xtraiter329, 0
  br i1 %lcmp.mod330.not, label %.preheader116, label %.epil.preheader

.epil.preheader:                                  ; preds = %.preheader116.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv192.epil = phi i64 [ %indvars.iv.next193.epil, %.epil.preheader ], [ %indvars.iv192.unr, %.preheader116.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %.preheader116.loopexit.unr-lcssa ]
  %204 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv192.epil
  %205 = load ptr, ptr %204, align 8, !tbaa !16
  %206 = getelementptr inbounds double, ptr %205, i64 %188
  store double 0.000000e+00, ptr %206, align 8, !tbaa !19
  %indvars.iv.next193.epil = add nuw nsw i64 %indvars.iv192.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter329
  br i1 %epil.iter.cmp.not, label %.preheader116, label %.epil.preheader, !llvm.loop !38

.preheader116:                                    ; preds = %.preheader116.loopexit.unr-lcssa, %.epil.preheader, %.preheader117
  %.not110164 = icmp eq i32 %1, 0
  br i1 %.not110164, label %._crit_edge, label %.lr.ph167.preheader

.lr.ph167.preheader:                              ; preds = %.preheader116
  %207 = zext i32 %1 to i64
  %208 = shl nuw nsw i64 %207, 3
  tail call void @llvm.memset.p0.i64(ptr align 8 %.495, i8 0, i64 %208, i1 false), !tbaa !19
  br label %._crit_edge

209:                                              ; preds = %209, %.lr.ph.new
  %indvars.iv192 = phi i64 [ 0, %.lr.ph.new ], [ %indvars.iv.next193.3, %209 ]
  %niter = phi i64 [ 0, %.lr.ph.new ], [ %niter.next.3, %209 ]
  %210 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv192
  %211 = load ptr, ptr %210, align 8, !tbaa !16
  %212 = getelementptr inbounds double, ptr %211, i64 %188
  store double 0.000000e+00, ptr %212, align 8, !tbaa !19
  %indvars.iv.next193 = or disjoint i64 %indvars.iv192, 1
  %213 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv.next193
  %214 = load ptr, ptr %213, align 8, !tbaa !16
  %215 = getelementptr inbounds double, ptr %214, i64 %188
  store double 0.000000e+00, ptr %215, align 8, !tbaa !19
  %indvars.iv.next193.1 = or disjoint i64 %indvars.iv192, 2
  %216 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv.next193.1
  %217 = load ptr, ptr %216, align 8, !tbaa !16
  %218 = getelementptr inbounds double, ptr %217, i64 %188
  store double 0.000000e+00, ptr %218, align 8, !tbaa !19
  %indvars.iv.next193.2 = or disjoint i64 %indvars.iv192, 3
  %219 = getelementptr inbounds ptr, ptr %17, i64 %indvars.iv.next193.2
  %220 = load ptr, ptr %219, align 8, !tbaa !16
  %221 = getelementptr inbounds double, ptr %220, i64 %188
  store double 0.000000e+00, ptr %221, align 8, !tbaa !19
  %indvars.iv.next193.3 = add nuw nsw i64 %indvars.iv192, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %.preheader116.loopexit.unr-lcssa, label %209, !llvm.loop !39

._crit_edge:                                      ; preds = %.lr.ph167.preheader, %.preheader116
  %222 = sext i32 %178 to i64
  %223 = getelementptr inbounds ptr, ptr %17, i64 %222
  %224 = load ptr, ptr %223, align 8, !tbaa !16
  %225 = getelementptr inbounds double, ptr %224, i64 %222
  store double -1.000000e+00, ptr %225, align 8, !tbaa !19
  br label %.loopexit

.lr.ph172:                                        ; preds = %.lr.ph172.prol.loopexit, %.lr.ph172
  %.4171 = phi i32 [ %247, %.lr.ph172 ], [ %.4171.unr, %.lr.ph172.prol.loopexit ]
  %.289170 = phi ptr [ %248, %.lr.ph172 ], [ %.289170.unr, %.lr.ph172.prol.loopexit ]
  %.6169 = phi ptr [ %250, %.lr.ph172 ], [ %.6169.unr, %.lr.ph172.prol.loopexit ]
  %226 = getelementptr inbounds i8, ptr %.289170, i64 8
  %227 = load double, ptr %.289170, align 8, !tbaa !19
  %228 = getelementptr inbounds i8, ptr %.6169, i64 8
  store double %227, ptr %.6169, align 8, !tbaa !19
  %229 = getelementptr inbounds i8, ptr %.289170, i64 16
  %230 = load double, ptr %226, align 8, !tbaa !19
  %231 = getelementptr inbounds i8, ptr %.6169, i64 16
  store double %230, ptr %228, align 8, !tbaa !19
  %232 = getelementptr inbounds i8, ptr %.289170, i64 24
  %233 = load double, ptr %229, align 8, !tbaa !19
  %234 = getelementptr inbounds i8, ptr %.6169, i64 24
  store double %233, ptr %231, align 8, !tbaa !19
  %235 = getelementptr inbounds i8, ptr %.289170, i64 32
  %236 = load double, ptr %232, align 8, !tbaa !19
  %237 = getelementptr inbounds i8, ptr %.6169, i64 32
  store double %236, ptr %234, align 8, !tbaa !19
  %238 = getelementptr inbounds i8, ptr %.289170, i64 40
  %239 = load double, ptr %235, align 8, !tbaa !19
  %240 = getelementptr inbounds i8, ptr %.6169, i64 40
  store double %239, ptr %237, align 8, !tbaa !19
  %241 = getelementptr inbounds i8, ptr %.289170, i64 48
  %242 = load double, ptr %238, align 8, !tbaa !19
  %243 = getelementptr inbounds i8, ptr %.6169, i64 48
  store double %242, ptr %240, align 8, !tbaa !19
  %244 = getelementptr inbounds i8, ptr %.289170, i64 56
  %245 = load double, ptr %241, align 8, !tbaa !19
  %246 = getelementptr inbounds i8, ptr %.6169, i64 56
  store double %245, ptr %243, align 8, !tbaa !19
  %247 = add nsw i32 %.4171, -8
  %248 = getelementptr inbounds i8, ptr %.289170, i64 64
  %249 = load double, ptr %244, align 8, !tbaa !19
  %250 = getelementptr inbounds i8, ptr %.6169, i64 64
  store double %249, ptr %246, align 8, !tbaa !19
  %.not109.7 = icmp eq i32 %247, 0
  br i1 %.not109.7, label %.loopexit, label %.lr.ph172, !llvm.loop !40

.loopexit:                                        ; preds = %.lr.ph172.prol.loopexit, %.lr.ph172, %middle.block290, %.preheader, %._crit_edge
  %251 = getelementptr inbounds i8, ptr %0, i64 3864
  %252 = load i32, ptr %251, align 8, !tbaa !33
  %253 = add nsw i32 %252, 1
  store i32 %253, ptr %251, align 8, !tbaa !33
  %254 = call double @qh_determinant(ptr noundef %0, ptr noundef %17, i32 noundef %1, ptr noundef nonnull %13)
  %.not111 = icmp eq i32 %5, 0
  %255 = fneg double %254
  %.082 = select i1 %.not111, double %254, double %255
  %256 = getelementptr inbounds i8, ptr %0, i64 592
  %257 = load double, ptr %256, align 8, !tbaa !41
  %258 = fmul double %.082, %257
  %259 = getelementptr inbounds i8, ptr %0, i64 136
  %260 = load i32, ptr %259, align 8, !tbaa !42
  %261 = icmp sgt i32 %260, 3
  br i1 %261, label %262, label %267

262:                                              ; preds = %.loopexit
  %263 = getelementptr inbounds i8, ptr %0, i64 2424
  %264 = load ptr, ptr %263, align 8, !tbaa !34
  %265 = call i32 @qh_pointid(ptr noundef nonnull %0, ptr noundef %2) #6
  %266 = load i32, ptr %13, align 4, !tbaa !43
  call void (ptr, ptr, i32, ptr, ...) @qh_fprintf(ptr noundef nonnull %0, ptr noundef %264, i32 noundef 4010, ptr noundef nonnull @.str.25, double noundef %258, i32 noundef %265, i32 noundef %5, i32 noundef %266) #6
  br label %267

267:                                              ; preds = %.loopexit, %262, %.split149.us
  %.090 = phi double [ 0.000000e+00, %.split149.us ], [ %258, %262 ], [ %258, %.loopexit ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #6
  ret double %.090
}

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #5

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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 2848}
!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, !11, i64 2856}
!16 = !{!11, !11, i64 0}
!17 = !{!18, !11, i64 16}
!18 = !{!"vertexT", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40, !7, i64 40}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.unroll.disable"}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!6, !10, i64 1904}
!25 = distinct !{!25, !23, !26}
!26 = !{!"llvm.loop.isvectorized", i32 1}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23, !26, !29}
!29 = !{!"llvm.loop.unroll.runtime.disable"}
!30 = distinct !{!30, !23, !26, !29}
!31 = distinct !{!31, !21}
!32 = distinct !{!32, !23, !26}
!33 = !{!8, !8, i64 0}
!34 = !{!6, !11, i64 2424}
!35 = !{!6, !7, i64 80}
!36 = distinct !{!36, !21}
!37 = distinct !{!37, !23, !26, !29}
!38 = distinct !{!38, !21}
!39 = distinct !{!39, !23}
!40 = distinct !{!40, !23, !26}
!41 = !{!6, !10, i64 592}
!42 = !{!6, !7, i64 136}
!43 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass