; LLVM IR from ETH3D/dataset-pipeline :: thirdparty/cork/cork/isct (triangle)

; 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.mesh = type { %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, %struct.memorypool, [4096 x ptr], [4096 x ptr], [4096 x i32], i32, ptr, double, double, double, double, double, i32, i32, i32, i32, i32, i32, i64, i32, i32, i32, i64, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, %struct.otri }
%struct.memorypool = type { ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i64, i64, i32, i32 }
%struct.otri = type { ptr, i32 }
%struct.behavior = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, double, double, double, double, [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8], [2048 x i8] }

@o3derrboundA = external dso_local global double, align 8

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local double @orient3d(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) #2 {
  %11 = alloca double, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca double, align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca double, align 8
  %34 = alloca double, align 8
  %35 = alloca double, align 8
  %36 = alloca double, align 8
  %37 = alloca double, align 8
  %38 = alloca double, align 8
  %39 = alloca double, align 8
  %40 = alloca i32, align 4
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store ptr %4, ptr %16, align 8, !tbaa !5
  store ptr %5, ptr %17, align 8, !tbaa !5
  store double %6, ptr %18, align 8, !tbaa !9
  store double %7, ptr %19, align 8, !tbaa !9
  store double %8, ptr %20, align 8, !tbaa !9
  store double %9, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #3
  %41 = load ptr, ptr %12, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.mesh, ptr %41, i32 0, i32 41
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = add nsw i64 %43, 1
  store i64 %44, ptr %42, align 8, !tbaa !11
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 0
  %47 = load double, ptr %46, align 8, !tbaa !9
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  %49 = getelementptr inbounds double, ptr %48, i64 0
  %50 = load double, ptr %49, align 8, !tbaa !9
  %51 = fsub double %47, %50
  store double %51, ptr %22, align 8, !tbaa !9
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 0
  %54 = load double, ptr %53, align 8, !tbaa !9
  %55 = load ptr, ptr %17, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 0
  %57 = load double, ptr %56, align 8, !tbaa !9
  %58 = fsub double %54, %57
  store double %58, ptr %23, align 8, !tbaa !9
  %59 = load ptr, ptr %16, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 0
  %61 = load double, ptr %60, align 8, !tbaa !9
  %62 = load ptr, ptr %17, align 8, !tbaa !5
  %63 = getelementptr inbounds double, ptr %62, i64 0
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = fsub double %61, %64
  store double %65, ptr %24, align 8, !tbaa !9
  %66 = load ptr, ptr %14, align 8, !tbaa !5
  %67 = getelementptr inbounds double, ptr %66, i64 1
  %68 = load double, ptr %67, align 8, !tbaa !9
  %69 = load ptr, ptr %17, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 1
  %71 = load double, ptr %70, align 8, !tbaa !9
  %72 = fsub double %68, %71
  store double %72, ptr %25, align 8, !tbaa !9
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = getelementptr inbounds double, ptr %73, i64 1
  %75 = load double, ptr %74, align 8, !tbaa !9
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = getelementptr inbounds double, ptr %76, i64 1
  %78 = load double, ptr %77, align 8, !tbaa !9
  %79 = fsub double %75, %78
  store double %79, ptr %26, align 8, !tbaa !9
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds double, ptr %80, i64 1
  %82 = load double, ptr %81, align 8, !tbaa !9
  %83 = load ptr, ptr %17, align 8, !tbaa !5
  %84 = getelementptr inbounds double, ptr %83, i64 1
  %85 = load double, ptr %84, align 8, !tbaa !9
  %86 = fsub double %82, %85
  store double %86, ptr %27, align 8, !tbaa !9
  %87 = load double, ptr %18, align 8, !tbaa !9
  %88 = load double, ptr %21, align 8, !tbaa !9
  %89 = fsub double %87, %88
  store double %89, ptr %28, align 8, !tbaa !9
  %90 = load double, ptr %19, align 8, !tbaa !9
  %91 = load double, ptr %21, align 8, !tbaa !9
  %92 = fsub double %90, %91
  store double %92, ptr %29, align 8, !tbaa !9
  %93 = load double, ptr %20, align 8, !tbaa !9
  %94 = load double, ptr %21, align 8, !tbaa !9
  %95 = fsub double %93, %94
  store double %95, ptr %30, align 8, !tbaa !9
  %96 = load double, ptr %23, align 8, !tbaa !9
  %97 = load double, ptr %27, align 8, !tbaa !9
  %98 = fmul double %96, %97
  store double %98, ptr %31, align 8, !tbaa !9
  %99 = load double, ptr %24, align 8, !tbaa !9
  %100 = load double, ptr %26, align 8, !tbaa !9
  %101 = fmul double %99, %100
  store double %101, ptr %32, align 8, !tbaa !9
  %102 = load double, ptr %24, align 8, !tbaa !9
  %103 = load double, ptr %25, align 8, !tbaa !9
  %104 = fmul double %102, %103
  store double %104, ptr %33, align 8, !tbaa !9
  %105 = load double, ptr %22, align 8, !tbaa !9
  %106 = load double, ptr %27, align 8, !tbaa !9
  %107 = fmul double %105, %106
  store double %107, ptr %34, align 8, !tbaa !9
  %108 = load double, ptr %22, align 8, !tbaa !9
  %109 = load double, ptr %26, align 8, !tbaa !9
  %110 = fmul double %108, %109
  store double %110, ptr %35, align 8, !tbaa !9
  %111 = load double, ptr %23, align 8, !tbaa !9
  %112 = load double, ptr %25, align 8, !tbaa !9
  %113 = fmul double %111, %112
  store double %113, ptr %36, align 8, !tbaa !9
  %114 = load double, ptr %28, align 8, !tbaa !9
  %115 = load double, ptr %31, align 8, !tbaa !9
  %116 = load double, ptr %32, align 8, !tbaa !9
  %117 = fsub double %115, %116
  %118 = load double, ptr %29, align 8, !tbaa !9
  %119 = load double, ptr %33, align 8, !tbaa !9
  %120 = load double, ptr %34, align 8, !tbaa !9
  %121 = fsub double %119, %120
  %122 = fmul double %118, %121
  %123 = call double @llvm.fmuladd.f64(double %114, double %117, double %122)
  %124 = load double, ptr %30, align 8, !tbaa !9
  %125 = load double, ptr %35, align 8, !tbaa !9
  %126 = load double, ptr %36, align 8, !tbaa !9
  %127 = fsub double %125, %126
  %128 = call double @llvm.fmuladd.f64(double %124, double %127, double %123)
  store double %128, ptr %37, align 8, !tbaa !9
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.behavior, ptr %129, i32 0, i32 21
  %131 = load i32, ptr %130, align 4, !tbaa !17
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %133, label %135

133:                                              ; preds = %10
  %134 = load double, ptr %37, align 8, !tbaa !9
  store double %134, ptr %11, align 8
  store i32 1, ptr %40, align 4
  br label %247

135:                                              ; preds = %10
  %136 = load double, ptr %31, align 8, !tbaa !9
  %137 = fcmp oge double %136, 0.000000e+00
  br i1 %137, label %138, label %140

138:                                              ; preds = %135
  %139 = load double, ptr %31, align 8, !tbaa !9
  br label %143

140:                                              ; preds = %135
  %141 = load double, ptr %31, align 8, !tbaa !9
  %142 = fneg double %141
  br label %143

143:                                              ; preds = %140, %138
  %144 = phi double [ %139, %138 ], [ %142, %140 ]
  %145 = load double, ptr %32, align 8, !tbaa !9
  %146 = fcmp oge double %145, 0.000000e+00
  br i1 %146, label %147, label %149

147:                                              ; preds = %143
  %148 = load double, ptr %32, align 8, !tbaa !9
  br label %152

149:                                              ; preds = %143
  %150 = load double, ptr %32, align 8, !tbaa !9
  %151 = fneg double %150
  br label %152

152:                                              ; preds = %149, %147
  %153 = phi double [ %148, %147 ], [ %151, %149 ]
  %154 = fadd double %144, %153
  %155 = load double, ptr %28, align 8, !tbaa !9
  %156 = fcmp oge double %155, 0.000000e+00
  br i1 %156, label %157, label %159

157:                                              ; preds = %152
  %158 = load double, ptr %28, align 8, !tbaa !9
  br label %162

159:                                              ; preds = %152
  %160 = load double, ptr %28, align 8, !tbaa !9
  %161 = fneg double %160
  br label %162

162:                                              ; preds = %159, %157
  %163 = phi double [ %158, %157 ], [ %161, %159 ]
  %164 = load double, ptr %33, align 8, !tbaa !9
  %165 = fcmp oge double %164, 0.000000e+00
  br i1 %165, label %166, label %168

166:                                              ; preds = %162
  %167 = load double, ptr %33, align 8, !tbaa !9
  br label %171

168:                                              ; preds = %162
  %169 = load double, ptr %33, align 8, !tbaa !9
  %170 = fneg double %169
  br label %171

171:                                              ; preds = %168, %166
  %172 = phi double [ %167, %166 ], [ %170, %168 ]
  %173 = load double, ptr %34, align 8, !tbaa !9
  %174 = fcmp oge double %173, 0.000000e+00
  br i1 %174, label %175, label %177

175:                                              ; preds = %171
  %176 = load double, ptr %34, align 8, !tbaa !9
  br label %180

177:                                              ; preds = %171
  %178 = load double, ptr %34, align 8, !tbaa !9
  %179 = fneg double %178
  br label %180

180:                                              ; preds = %177, %175
  %181 = phi double [ %176, %175 ], [ %179, %177 ]
  %182 = fadd double %172, %181
  %183 = load double, ptr %29, align 8, !tbaa !9
  %184 = fcmp oge double %183, 0.000000e+00
  br i1 %184, label %185, label %187

185:                                              ; preds = %180
  %186 = load double, ptr %29, align 8, !tbaa !9
  br label %190

187:                                              ; preds = %180
  %188 = load double, ptr %29, align 8, !tbaa !9
  %189 = fneg double %188
  br label %190

190:                                              ; preds = %187, %185
  %191 = phi double [ %186, %185 ], [ %189, %187 ]
  %192 = fmul double %182, %191
  %193 = call double @llvm.fmuladd.f64(double %154, double %163, double %192)
  %194 = load double, ptr %35, align 8, !tbaa !9
  %195 = fcmp oge double %194, 0.000000e+00
  br i1 %195, label %196, label %198

196:                                              ; preds = %190
  %197 = load double, ptr %35, align 8, !tbaa !9
  br label %201

198:                                              ; preds = %190
  %199 = load double, ptr %35, align 8, !tbaa !9
  %200 = fneg double %199
  br label %201

201:                                              ; preds = %198, %196
  %202 = phi double [ %197, %196 ], [ %200, %198 ]
  %203 = load double, ptr %36, align 8, !tbaa !9
  %204 = fcmp oge double %203, 0.000000e+00
  br i1 %204, label %205, label %207

205:                                              ; preds = %201
  %206 = load double, ptr %36, align 8, !tbaa !9
  br label %210

207:                                              ; preds = %201
  %208 = load double, ptr %36, align 8, !tbaa !9
  %209 = fneg double %208
  br label %210

210:                                              ; preds = %207, %205
  %211 = phi double [ %206, %205 ], [ %209, %207 ]
  %212 = fadd double %202, %211
  %213 = load double, ptr %30, align 8, !tbaa !9
  %214 = fcmp oge double %213, 0.000000e+00
  br i1 %214, label %215, label %217

215:                                              ; preds = %210
  %216 = load double, ptr %30, align 8, !tbaa !9
  br label %220

217:                                              ; preds = %210
  %218 = load double, ptr %30, align 8, !tbaa !9
  %219 = fneg double %218
  br label %220

220:                                              ; preds = %217, %215
  %221 = phi double [ %216, %215 ], [ %219, %217 ]
  %222 = call double @llvm.fmuladd.f64(double %212, double %221, double %193)
  store double %222, ptr %38, align 8, !tbaa !9
  %223 = load double, ptr @o3derrboundA, align 8, !tbaa !9
  %224 = load double, ptr %38, align 8, !tbaa !9
  %225 = fmul double %223, %224
  store double %225, ptr %39, align 8, !tbaa !9
  %226 = load double, ptr %37, align 8, !tbaa !9
  %227 = load double, ptr %39, align 8, !tbaa !9
  %228 = fcmp ogt double %226, %227
  br i1 %228, label %234, label %229

229:                                              ; preds = %220
  %230 = load double, ptr %37, align 8, !tbaa !9
  %231 = fneg double %230
  %232 = load double, ptr %39, align 8, !tbaa !9
  %233 = fcmp ogt double %231, %232
  br i1 %233, label %234, label %236

234:                                              ; preds = %229, %220
  %235 = load double, ptr %37, align 8, !tbaa !9
  store double %235, ptr %11, align 8
  store i32 1, ptr %40, align 4
  br label %247

236:                                              ; preds = %229
  %237 = load ptr, ptr %14, align 8, !tbaa !5
  %238 = load ptr, ptr %15, align 8, !tbaa !5
  %239 = load ptr, ptr %16, align 8, !tbaa !5
  %240 = load ptr, ptr %17, align 8, !tbaa !5
  %241 = load double, ptr %18, align 8, !tbaa !9
  %242 = load double, ptr %19, align 8, !tbaa !9
  %243 = load double, ptr %20, align 8, !tbaa !9
  %244 = load double, ptr %21, align 8, !tbaa !9
  %245 = load double, ptr %38, align 8, !tbaa !9
  %246 = call double @orient3dadapt(ptr noundef %237, ptr noundef %238, ptr noundef %239, ptr noundef %240, double noundef %241, double noundef %242, double noundef %243, double noundef %244, double noundef %245)
  store double %246, ptr %11, align 8
  store i32 1, ptr %40, align 4
  br label %247

247:                                              ; preds = %236, %234, %133
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #3
  %248 = load double, ptr %11, align 8
  ret double %248
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"double", !7, i64 0}
!11 = !{!12, !15, i64 82800}
!12 = !{!"mesh", !13, i64 0, !13, i64 88, !13, i64 176, !13, i64 264, !13, i64 352, !13, i64 440, !13, i64 528, !13, i64 616, !7, i64 704, !7, i64 33472, !7, i64 66240, !14, i64 82624, !6, i64 82632, !10, i64 82640, !10, i64 82648, !10, i64 82656, !10, i64 82664, !10, i64 82672, !14, i64 82680, !14, i64 82684, !14, i64 82688, !14, i64 82692, !14, i64 82696, !14, i64 82700, !15, i64 82704, !14, i64 82712, !14, i64 82716, !14, i64 82720, !15, i64 82728, !14, i64 82736, !14, i64 82740, !14, i64 82744, !14, i64 82748, !14, i64 82752, !14, i64 82756, !14, i64 82760, !14, i64 82764, !14, i64 82768, !15, i64 82776, !15, i64 82784, !15, i64 82792, !15, i64 82800, !15, i64 82808, !15, i64 82816, !15, i64 82824, !6, i64 82832, !6, i64 82840, !6, i64 82848, !6, i64 82856, !6, i64 82864, !6, i64 82872, !6, i64 82880, !16, i64 82888}
!13 = !{!"memorypool", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !15, i64 64, !15, i64 72, !14, i64 80, !14, i64 84}
!14 = !{!"int", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"otri", !6, i64 0, !14, i64 8}
!17 = !{!18, !14, i64 84}
!18 = !{!"behavior", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16, !14, i64 20, !14, i64 24, !14, i64 28, !14, i64 32, !14, i64 36, !14, i64 40, !14, i64 44, !14, i64 48, !14, i64 52, !14, i64 56, !14, i64 60, !14, i64 64, !14, i64 68, !14, i64 72, !14, i64 76, !14, i64 80, !14, i64 84, !14, i64 88, !14, i64 92, !14, i64 96, !14, i64 100, !14, i64 104, !14, i64 108, !14, i64 112, !14, i64 116, !14, i64 120, !14, i64 124, !14, i64 128, !14, i64 132, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !7, i64 168, !7, i64 2216, !7, i64 4264, !7, i64 6312, !7, i64 8360, !7, i64 10408, !7, i64 12456, !7, i64 14504, !7, i64 16552, !7, i64 18600, !7, i64 20648, !7, i64 22696}


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

@o3derrboundA = external dso_local local_unnamed_addr global double, align 8

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

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

; Function Attrs: nounwind uwtable
define dso_local double @orient3d(ptr nocapture noundef %0, ptr nocapture noundef readonly %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9) local_unnamed_addr #1 {
  %11 = getelementptr inbounds i8, ptr %0, i64 82800
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = add nsw i64 %12, 1
  store i64 %13, ptr %11, align 8, !tbaa !5
  %14 = fsub double %6, %9
  %15 = fsub double %7, %9
  %16 = fsub double %8, %9
  %17 = load <2 x double>, ptr %5, align 8, !tbaa !15
  %18 = load <2 x double>, ptr %2, align 8, !tbaa !15
  %19 = fsub <2 x double> %18, %17
  %20 = load <2 x double>, ptr %3, align 8, !tbaa !15
  %21 = fsub <2 x double> %20, %17
  %22 = shufflevector <2 x double> %21, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %23 = load <2 x double>, ptr %4, align 8, !tbaa !15
  %24 = fsub <2 x double> %23, %17
  %25 = fmul <2 x double> %22, %24
  %26 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> <i32 1, i32 0>
  %27 = fmul <2 x double> %26, %24
  %28 = fmul <2 x double> %22, %19
  %shift = shufflevector <2 x double> %25, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %29 = fsub <2 x double> %shift, %25
  %30 = extractelement <2 x double> %29, i64 0
  %shift88 = shufflevector <2 x double> %27, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %31 = fsub <2 x double> %27, %shift88
  %32 = extractelement <2 x double> %31, i64 0
  %33 = fmul double %15, %32
  %34 = tail call double @llvm.fmuladd.f64(double %14, double %30, double %33)
  %shift89 = shufflevector <2 x double> %28, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %35 = fsub <2 x double> %28, %shift89
  %36 = extractelement <2 x double> %35, i64 0
  %37 = tail call double @llvm.fmuladd.f64(double %16, double %36, double %34)
  %38 = getelementptr inbounds i8, ptr %1, i64 84
  %39 = load i32, ptr %38, align 4, !tbaa !16
  %.not = icmp eq i32 %39, 0
  br i1 %.not, label %40, label %75

40:                                               ; preds = %10
  %41 = fcmp oge <2 x double> %25, zeroinitializer
  %42 = fneg <2 x double> %25
  %43 = select <2 x i1> %41, <2 x double> %25, <2 x double> %42
  %shift90 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %44 = fadd <2 x double> %43, %shift90
  %45 = extractelement <2 x double> %44, i64 0
  %46 = fcmp oge double %14, 0.000000e+00
  %47 = fneg double %14
  %48 = select i1 %46, double %14, double %47
  %49 = fcmp oge <2 x double> %27, zeroinitializer
  %50 = fneg <2 x double> %27
  %51 = select <2 x i1> %49, <2 x double> %27, <2 x double> %50
  %shift91 = shufflevector <2 x double> %51, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %52 = fadd <2 x double> %51, %shift91
  %53 = extractelement <2 x double> %52, i64 0
  %54 = fcmp oge double %15, 0.000000e+00
  %55 = fneg double %15
  %56 = select i1 %54, double %15, double %55
  %57 = fmul double %56, %53
  %58 = tail call double @llvm.fmuladd.f64(double %45, double %48, double %57)
  %59 = fcmp oge <2 x double> %28, zeroinitializer
  %60 = fneg <2 x double> %28
  %61 = select <2 x i1> %59, <2 x double> %28, <2 x double> %60
  %shift92 = shufflevector <2 x double> %61, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %62 = fadd <2 x double> %shift92, %61
  %63 = extractelement <2 x double> %62, i64 0
  %64 = fcmp oge double %16, 0.000000e+00
  %65 = fneg double %16
  %66 = select i1 %64, double %16, double %65
  %67 = tail call double @llvm.fmuladd.f64(double %63, double %66, double %58)
  %68 = load double, ptr @o3derrboundA, align 8, !tbaa !15
  %69 = fmul double %67, %68
  %70 = fcmp ogt double %37, %69
  %71 = fneg double %37
  %72 = fcmp olt double %69, %71
  %or.cond = or i1 %70, %72
  br i1 %or.cond, label %75, label %73

73:                                               ; preds = %40
  %74 = tail call double @orient3dadapt(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, double noundef %6, double noundef %7, double noundef %8, double noundef %9, double noundef %67)
  br label %75

75:                                               ; preds = %40, %10, %73
  %.0 = phi double [ %74, %73 ], [ %37, %10 ], [ %37, %40 ]
  ret double %.0
}

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

!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, !12, i64 82800}
!6 = !{!"mesh", !7, i64 0, !7, i64 88, !7, i64 176, !7, i64 264, !7, i64 352, !7, i64 440, !7, i64 528, !7, i64 616, !9, i64 704, !9, i64 33472, !9, i64 66240, !11, i64 82624, !8, i64 82632, !13, i64 82640, !13, i64 82648, !13, i64 82656, !13, i64 82664, !13, i64 82672, !11, i64 82680, !11, i64 82684, !11, i64 82688, !11, i64 82692, !11, i64 82696, !11, i64 82700, !12, i64 82704, !11, i64 82712, !11, i64 82716, !11, i64 82720, !12, i64 82728, !11, i64 82736, !11, i64 82740, !11, i64 82744, !11, i64 82748, !11, i64 82752, !11, i64 82756, !11, i64 82760, !11, i64 82764, !11, i64 82768, !12, i64 82776, !12, i64 82784, !12, i64 82792, !12, i64 82800, !12, i64 82808, !12, i64 82816, !12, i64 82824, !8, i64 82832, !8, i64 82840, !8, i64 82848, !8, i64 82856, !8, i64 82864, !8, i64 82872, !8, i64 82880, !14, i64 82888}
!7 = !{!"memorypool", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !8, i64 32, !8, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !12, i64 64, !12, i64 72, !11, i64 80, !11, i64 84}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!"double", !9, i64 0}
!14 = !{!"otri", !8, i64 0, !11, i64 8}
!15 = !{!13, !13, i64 0}
!16 = !{!17, !11, i64 84}
!17 = !{!"behavior", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !13, i64 136, !13, i64 144, !13, i64 152, !13, i64 160, !9, i64 168, !9, i64 2216, !9, i64 4264, !9, i64 6312, !9, i64 8360, !9, i64 10408, !9, i64 12456, !9, i64 14504, !9, i64 16552, !9, i64 18600, !9, i64 20648, !9, i64 22696}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass