; LLVM IR from Slingshot-Physics/slingshot-community :: common/geometry/src (shape_features)

; 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.geometry::types::polyhedronFeature_t" = type { %"struct.geometry::types::polygon50_t", %class.Vector3 }
%"struct.geometry::types::polygon50_t" = type { i32, [50 x %class.Vector3] }
%class.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::plane_t" = type { %class.Vector3, %class.Vector3 }
%"struct.geometry::types::transform_t" = type { %class.Matrix33, %class.Matrix33, %class.Vector3 }
%"struct.geometry::types::gaussMapMesh_t" = type { i32, i32, i32, [1000 x %"struct.geometry::types::leanNeighborTriangle_t"], [500 x %class.Vector3], [1000 x %"struct.geometry::types::gaussMapFace_t"] }
%"struct.geometry::types::leanNeighborTriangle_t" = type { [3 x i32], [3 x i32] }
%"struct.geometry::types::gaussMapFace_t" = type { %class.Vector3, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry19mostParallelFeatureERKNS_5types11transform_tERKNS0_14gaussMapMesh_tERKNS0_7plane_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::polyhedronFeature_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(84) %1, ptr noundef nonnull align 4 dereferenceable(50012) %2, ptr noundef nonnull align 4 dereferenceable(24) %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %class.Matrix33, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, align 4
  %13 = alloca %class.Matrix33, align 4
  %14 = alloca i32, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %class.Vector3, align 4
  %20 = alloca float, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.geometry::types::polygon50_t", align 4
  %24 = alloca %class.Matrix33, align 4
  %25 = alloca %class.Matrix33, align 4
  %26 = alloca %class.Vector3, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %27 = load ptr, ptr %8, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.geometry::types::plane_t", ptr %27, i32 0, i32 1
  store ptr %28, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %10) #5
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %29, i32 0, i32 0
  call void @_ZNK8Matrix33coEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %10, ptr noundef nonnull align 4 dereferenceable(36) %30)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr %13) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %31, i32 0, i32 1
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %32)
  %33 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %12, ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(12) %33)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(12) %12)
  call void @llvm.lifetime.end.p0(i64 36, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float -1.000000e+00, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !9
  br label %34

34:                                               ; preds = %60, %4
  %35 = load i32, ptr %16, align 4, !tbaa !9
  %36 = load ptr, ptr %7, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %36, i32 0, i32 2
  %38 = load i32, ptr %37, align 4, !tbaa !13
  %39 = icmp ult i32 %35, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %63

41:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %42 = load ptr, ptr %7, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %42, i32 0, i32 5
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %43, i64 0, i64 %45
  %47 = getelementptr inbounds %"struct.geometry::types::gaussMapFace_t", ptr %46, i32 0, i32 0
  store ptr %47, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #5
  %48 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  %49 = load ptr, ptr %17, align 8, !tbaa !5
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %21, ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(12) %49)
  %50 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %21)
  store float %50, ptr %20, align 4, !tbaa !11
  call void @_ZNK7Vector3dvERKf(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %19, ptr noundef nonnull align 4 dereferenceable(12) %48, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  store ptr %19, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %51 = load ptr, ptr %18, align 8, !tbaa !5
  %52 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %51, ptr noundef nonnull align 4 dereferenceable(12) %11)
  store float %52, ptr %22, align 4, !tbaa !11
  %53 = load float, ptr %22, align 4, !tbaa !11
  %54 = load float, ptr %15, align 4, !tbaa !11
  %55 = fcmp ogt float %53, %54
  br i1 %55, label %56, label %59

56:                                               ; preds = %41
  %57 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %57, ptr %14, align 4, !tbaa !9
  %58 = load float, ptr %22, align 4, !tbaa !11
  store float %58, ptr %15, align 4, !tbaa !11
  br label %59

59:                                               ; preds = %56, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %60

60:                                               ; preds = %59
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = add i32 %61, 1
  store i32 %62, ptr %16, align 4, !tbaa !9
  br label %34, !llvm.loop !15

63:                                               ; preds = %40
  call void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616) %0)
  call void @llvm.lifetime.start.p0(i64 604, ptr %23) #5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load i32, ptr %14, align 4, !tbaa !9
  call void @_ZN8geometry4mesh15polygonFromFaceERKNS_5types14gaussMapMesh_tEj(ptr dead_on_unwind writable sret(%"struct.geometry::types::polygon50_t") align 4 %23, ptr noundef nonnull align 4 dereferenceable(50012) %64, i32 noundef %65)
  %66 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  %67 = call noundef nonnull align 4 dereferenceable(604) ptr @_ZN8geometry5types11polygon50_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(604) %66, ptr noundef nonnull align 4 dereferenceable(604) %23)
  call void @llvm.lifetime.end.p0(i64 604, ptr %23) #5
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  call void @_ZN8geometry7polygon19applyTransformationERKNS_5types11transform_tERNS1_11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(84) %68, ptr noundef nonnull align 4 dereferenceable(604) %69)
  call void @llvm.lifetime.start.p0(i64 36, ptr %24) #5
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %70, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 36, ptr %25) #5
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %25, ptr noundef nonnull align 4 dereferenceable(36) %10)
  call void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %24, ptr noundef nonnull align 4 dereferenceable(36) %71, ptr noundef nonnull align 4 dereferenceable(36) %25)
  call void @llvm.lifetime.end.p0(i64 36, ptr %25) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %26) #5
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %"struct.geometry::types::gaussMapMesh_t", ptr %72, i32 0, i32 5
  %74 = load i32, ptr %14, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %73, i64 0, i64 %75
  %77 = getelementptr inbounds %"struct.geometry::types::gaussMapFace_t", ptr %76, i32 0, i32 0
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %26, ptr noundef nonnull align 4 dereferenceable(36) %24, ptr noundef nonnull align 4 dereferenceable(12) %77)
  %78 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 1
  %79 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %78, ptr noundef nonnull align 4 dereferenceable(12) %26)
  call void @llvm.lifetime.end.p0(i64 12, ptr %26) #5
  %80 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 1
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %80)
  call void @llvm.lifetime.end.p0(i64 36, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33coEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3dvERKf(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616)) unnamed_addr #3 align 2

declare void @_ZN8geometry4mesh15polygonFromFaceERKNS_5types14gaussMapMesh_tEj(ptr dead_on_unwind writable sret(%"struct.geometry::types::polygon50_t") align 4, ptr noundef nonnull align 4 dereferenceable(50012), i32 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(604) ptr @_ZN8geometry5types11polygon50_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(604), ptr noundef nonnull align 4 dereferenceable(604)) #3 align 2

declare void @_ZN8geometry7polygon19applyTransformationERKNS_5types11transform_tERNS1_11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(84), ptr noundef nonnull align 4 dereferenceable(604)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) #0 align 2

attributes #0 = { mustprogress 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { inlinehint mustprogress 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 = { "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 #5 = { 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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTSN8geometry5types14gaussMapMesh_tE", !10, i64 0, !10, i64 4, !10, i64 8, !7, i64 12, !7, i64 24012, !7, i64 30012}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}


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

%"struct.geometry::types::polyhedronFeature_t" = type { %"struct.geometry::types::polygon50_t", %class.Vector3 }
%"struct.geometry::types::polygon50_t" = type { i32, [50 x %class.Vector3] }
%class.Vector3 = type { [3 x float] }
%class.Matrix33 = type { [9 x float] }
%"struct.geometry::types::gaussMapFace_t" = type { %class.Vector3, i32, i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry19mostParallelFeatureERKNS_5types11transform_tERKNS0_14gaussMapMesh_tERKNS0_7plane_tE(ptr dead_on_unwind noalias writable sret(%"struct.geometry::types::polyhedronFeature_t") align 4 %0, ptr noundef nonnull align 4 dereferenceable(84) %1, ptr noundef nonnull align 4 dereferenceable(50012) %2, ptr noundef nonnull align 4 dereferenceable(24) %3) local_unnamed_addr #0 {
  %5 = alloca %class.Matrix33, align 4
  %6 = alloca %class.Vector3, align 4
  %7 = alloca %class.Vector3, align 4
  %8 = alloca %class.Matrix33, align 4
  %9 = alloca %class.Vector3, align 4
  %10 = alloca float, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %"struct.geometry::types::polygon50_t", align 4
  %13 = alloca %class.Matrix33, align 4
  %14 = alloca %class.Matrix33, align 4
  %15 = alloca %class.Vector3, align 4
  %16 = getelementptr inbounds i8, ptr %3, i64 12
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %5) #5
  call void @_ZNK8Matrix33coEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %5, ptr noundef nonnull align 4 dereferenceable(36) %1)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #5
  %17 = getelementptr inbounds i8, ptr %1, i64 36
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %8, ptr noundef nonnull align 4 dereferenceable(36) %17)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %7, ptr noundef nonnull align 4 dereferenceable(36) %8, ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %6, ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  %18 = getelementptr inbounds i8, ptr %2, i64 8
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %.not = icmp eq i32 %19, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %20 = getelementptr inbounds i8, ptr %2, i64 30012
  br label %28

._crit_edge:                                      ; preds = %28, %4
  %.0.lcssa = phi i32 [ 0, %4 ], [ %.1, %28 ]
  call void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616) %0)
  call void @llvm.lifetime.start.p0(i64 604, ptr nonnull %12) #5
  call void @_ZN8geometry4mesh15polygonFromFaceERKNS_5types14gaussMapMesh_tEj(ptr dead_on_unwind nonnull writable sret(%"struct.geometry::types::polygon50_t") align 4 %12, ptr noundef nonnull align 4 dereferenceable(50012) %2, i32 noundef %.0.lcssa)
  %21 = call noundef nonnull align 4 dereferenceable(604) ptr @_ZN8geometry5types11polygon50_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(604) %0, ptr noundef nonnull align 4 dereferenceable(604) %12)
  call void @llvm.lifetime.end.p0(i64 604, ptr nonnull %12) #5
  call void @_ZN8geometry7polygon19applyTransformationERKNS_5types11transform_tERNS1_11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(84) %1, ptr noundef nonnull align 4 dereferenceable(604) %0)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %13) #5
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %14) #5
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %14, ptr noundef nonnull align 4 dereferenceable(36) %5)
  call void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind nonnull writable sret(%class.Matrix33) align 4 %13, ptr noundef nonnull align 4 dereferenceable(36) %17, ptr noundef nonnull align 4 dereferenceable(36) %14)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %14) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %15) #5
  %22 = getelementptr inbounds i8, ptr %2, i64 30012
  %23 = zext i32 %.0.lcssa to i64
  %24 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %22, i64 0, i64 %23
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %15, ptr noundef nonnull align 4 dereferenceable(36) %13, ptr noundef nonnull align 4 dereferenceable(12) %24)
  %25 = getelementptr inbounds i8, ptr %0, i64 604
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %25)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %5) #5
  ret void

28:                                               ; preds = %.lr.ph, %28
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %28 ]
  %.027 = phi i32 [ 0, %.lr.ph ], [ %.1, %28 ]
  %.02126 = phi float [ -1.000000e+00, %.lr.ph ], [ %.122, %28 ]
  %29 = getelementptr inbounds [1000 x %"struct.geometry::types::gaussMapFace_t"], ptr %20, i64 0, i64 %indvars.iv
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %11) #5
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %11, ptr noundef nonnull align 4 dereferenceable(36) %5, ptr noundef nonnull align 4 dereferenceable(12) %29)
  %30 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  store float %30, ptr %10, align 4, !tbaa !10
  call void @_ZNK7Vector3dvERKf(ptr dead_on_unwind nonnull writable sret(%class.Vector3) align 4 %9, ptr noundef nonnull align 4 dereferenceable(12) %29, ptr noundef nonnull align 4 dereferenceable(4) %10)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  %31 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %6)
  %32 = fcmp ogt float %31, %.02126
  %.122 = select i1 %32, float %31, float %.02126
  %33 = trunc nuw i64 %indvars.iv to i32
  %.1 = select i1 %32, i32 %33, i32 %.027
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %34 = load i32, ptr %18, align 4, !tbaa !5
  %35 = zext i32 %34 to i64
  %36 = icmp ult i64 %indvars.iv.next, %35
  br i1 %36, label %28, label %._crit_edge, !llvm.loop !12
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33coEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Vector3dvERKf(ptr dead_on_unwind noalias writable sret(%class.Vector3) align 4, ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616)) unnamed_addr #3 align 2

declare void @_ZN8geometry4mesh15polygonFromFaceERKNS_5types14gaussMapMesh_tEj(ptr dead_on_unwind writable sret(%"struct.geometry::types::polygon50_t") align 4, ptr noundef nonnull align 4 dereferenceable(50012), i32 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(604) ptr @_ZN8geometry5types11polygon50_taSEOS1_(ptr noundef nonnull align 4 dereferenceable(604), ptr noundef nonnull align 4 dereferenceable(604)) local_unnamed_addr #3 align 2

declare void @_ZN8geometry7polygon19applyTransformationERKNS_5types11transform_tERNS1_11polygon50_tE(ptr noundef nonnull align 4 dereferenceable(84), ptr noundef nonnull align 4 dereferenceable(604)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind noalias writable sret(%class.Matrix33) align 4, ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #0 align 2

attributes #0 = { mustprogress 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress 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 = { inlinehint mustprogress 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 = { "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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 8}
!6 = !{!"_ZTSN8geometry5types14gaussMapMesh_tE", !7, i64 0, !7, i64 4, !7, i64 8, !8, i64 12, !8, i64 24012, !8, i64 30012}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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