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

%class.Matrix33 = type { [9 x float] }
%class.Vector3 = type { [3 x float] }
%"struct.geometry::types::polyhedronFeature_t" = type { %"struct.geometry::types::polygon50_t", %class.Vector3 }
%"struct.geometry::types::polygon50_t" = type { i32, [50 x %class.Vector3] }
%"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::shapeCube_t" = type { float, float, float }

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

; 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)) #1 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)) #1 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)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12)) #1 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 @_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)) #1 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)) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry19mostParallelFeatureERKNS_5types11transform_tERKNS0_11shapeCube_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(12) %2, ptr noundef nonnull align 4 dereferenceable(24) %3) #1 {
  %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 %class.Vector3, align 4
  %17 = alloca %class.Vector3, align 4
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  %20 = alloca %class.Vector3, align 4
  %21 = alloca %class.Vector3, align 4
  %22 = alloca float, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %class.Matrix33, align 4
  %27 = alloca %class.Matrix33, align 4
  %28 = 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
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = getelementptr inbounds %"struct.geometry::types::plane_t", ptr %29, i32 0, i32 1
  store ptr %30, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 36, ptr %10) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %31, 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) %32)
  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
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %33, 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) %34)
  %35 = 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) %35)
  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 12, ptr %16) #5
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %16)
  call void @llvm.lifetime.start.p0(i64 12, ptr %17) #5
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %17)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %36

36:                                               ; preds = %60, %4
  %37 = load i32, ptr %18, align 4, !tbaa !9
  %38 = icmp ult i32 %37, 6
  br i1 %38, label %40, label %39

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

40:                                               ; preds = %36
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %17, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %41 = load i32, ptr %18, align 4, !tbaa !9
  %42 = and i32 %41, 1
  %43 = icmp eq i32 %42, 0
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, float 1.000000e+00, float -1.000000e+00
  %46 = load i32, ptr %18, align 4, !tbaa !9
  %47 = udiv i32 %46, 2
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %17, i32 noundef %47)
  store float %45, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %49 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(12) %11)
  call void @llvm.lifetime.start.p0(i64 12, ptr %20) #5
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %20, ptr noundef nonnull align 4 dereferenceable(36) %10, ptr noundef nonnull align 4 dereferenceable(12) %17)
  %50 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %20)
  %51 = fdiv float %49, %50
  call void @llvm.lifetime.end.p0(i64 12, ptr %20) #5
  store float %51, ptr %19, align 4, !tbaa !11
  %52 = load float, ptr %19, align 4, !tbaa !11
  %53 = load float, ptr %15, align 4, !tbaa !11
  %54 = fcmp ogt float %52, %53
  br i1 %54, label %55, label %59

55:                                               ; preds = %40
  %56 = load float, ptr %19, align 4, !tbaa !11
  store float %56, ptr %15, align 4, !tbaa !11
  %57 = load i32, ptr %18, align 4, !tbaa !9
  store i32 %57, ptr %14, align 4, !tbaa !9
  %58 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %17)
  br label %59

59:                                               ; preds = %55, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %60

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

63:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 12, ptr %21) #5
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %64, i32 0, i32 0
  %66 = load float, ptr %65, align 4, !tbaa !15
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !17
  %70 = load ptr, ptr %7, align 8, !tbaa !5
  %71 = getelementptr inbounds %"struct.geometry::types::shapeCube_t", ptr %70, i32 0, i32 2
  %72 = load float, ptr %71, align 4, !tbaa !18
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %21, float noundef %66, float noundef %69, float noundef %72)
  call void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616) %0)
  %73 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  %74 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %73, i32 0, i32 0
  store i32 4, ptr %74, align 4, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %75 = load i32, ptr %14, align 4, !tbaa !9
  %76 = and i32 %75, 1
  %77 = icmp eq i32 %76, 0
  %78 = zext i1 %77 to i64
  %79 = select i1 %77, float 1.000000e+00, float -1.000000e+00
  store float %79, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %80

80:                                               ; preds = %142, %63
  %81 = load i32, ptr %23, align 4, !tbaa !9
  %82 = icmp ult i32 %81, 4
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %145

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %85 = load i32, ptr %14, align 4, !tbaa !9
  %86 = udiv i32 %85, 2
  %87 = add i32 %86, 1
  %88 = urem i32 %87, 3
  store i32 %88, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %89 = load i32, ptr %14, align 4, !tbaa !9
  %90 = udiv i32 %89, 2
  %91 = add i32 %90, 2
  %92 = urem i32 %91, 3
  store i32 %92, ptr %25, align 4, !tbaa !9
  %93 = load i32, ptr %23, align 4, !tbaa !9
  %94 = and i32 %93, 1
  %95 = icmp eq i32 %94, 0
  %96 = zext i1 %95 to i64
  %97 = select i1 %95, float 1.000000e+00, float -1.000000e+00
  %98 = load i32, ptr %24, align 4, !tbaa !9
  %99 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %98)
  %100 = load float, ptr %99, align 4, !tbaa !11
  %101 = fmul float %97, %100
  %102 = fdiv float %101, 2.000000e+00
  %103 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  %104 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %103, i32 0, i32 1
  %105 = load i32, ptr %23, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = getelementptr inbounds [50 x %class.Vector3], ptr %104, i64 0, i64 %106
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %107, i32 noundef %108)
  store float %102, ptr %109, align 4, !tbaa !11
  %110 = load i32, ptr %23, align 4, !tbaa !9
  %111 = and i32 %110, 2
  %112 = icmp eq i32 %111, 0
  %113 = zext i1 %112 to i64
  %114 = select i1 %112, float 1.000000e+00, float -1.000000e+00
  %115 = load i32, ptr %25, align 4, !tbaa !9
  %116 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %115)
  %117 = load float, ptr %116, align 4, !tbaa !11
  %118 = fmul float %114, %117
  %119 = fdiv float %118, 2.000000e+00
  %120 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  %121 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %120, i32 0, i32 1
  %122 = load i32, ptr %23, align 4, !tbaa !9
  %123 = zext i32 %122 to i64
  %124 = getelementptr inbounds [50 x %class.Vector3], ptr %121, i64 0, i64 %123
  %125 = load i32, ptr %25, align 4, !tbaa !9
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %124, i32 noundef %125)
  store float %119, ptr %126, align 4, !tbaa !11
  %127 = load float, ptr %22, align 4, !tbaa !11
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = udiv i32 %128, 2
  %130 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %21, i32 noundef %129)
  %131 = load float, ptr %130, align 4, !tbaa !11
  %132 = fmul float %127, %131
  %133 = fdiv float %132, 2.000000e+00
  %134 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 0
  %135 = getelementptr inbounds %"struct.geometry::types::polygon50_t", ptr %134, i32 0, i32 1
  %136 = load i32, ptr %23, align 4, !tbaa !9
  %137 = zext i32 %136 to i64
  %138 = getelementptr inbounds [50 x %class.Vector3], ptr %135, i64 0, i64 %137
  %139 = load i32, ptr %14, align 4, !tbaa !9
  %140 = udiv i32 %139, 2
  %141 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %138, i32 noundef %140)
  store float %133, ptr %141, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %142

142:                                              ; preds = %84
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = add i32 %143, 1
  store i32 %144, ptr %23, align 4, !tbaa !9
  br label %80, !llvm.loop !23

145:                                              ; preds = %83
  %146 = load ptr, ptr %6, align 8, !tbaa !5
  %147 = 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) %146, ptr noundef nonnull align 4 dereferenceable(604) %147)
  call void @llvm.lifetime.start.p0(i64 36, ptr %26) #5
  %148 = load ptr, ptr %6, align 8, !tbaa !5
  %149 = getelementptr inbounds %"struct.geometry::types::transform_t", ptr %148, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 36, ptr %27) #5
  call void @_ZNK8Matrix339transposeEv(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %27, ptr noundef nonnull align 4 dereferenceable(36) %10)
  call void @_ZNK8Matrix33mlERKS_(ptr dead_on_unwind writable sret(%class.Matrix33) align 4 %26, ptr noundef nonnull align 4 dereferenceable(36) %149, ptr noundef nonnull align 4 dereferenceable(36) %27)
  call void @llvm.lifetime.end.p0(i64 36, ptr %27) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %28) #5
  call void @_ZNK8Matrix33mlERK7Vector3(ptr dead_on_unwind writable sret(%class.Vector3) align 4 %28, ptr noundef nonnull align 4 dereferenceable(36) %26, ptr noundef nonnull align 4 dereferenceable(12) %16)
  %150 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 1
  %151 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %150, ptr noundef nonnull align 4 dereferenceable(12) %28)
  call void @llvm.lifetime.end.p0(i64 12, ptr %28) #5
  %152 = getelementptr inbounds %"struct.geometry::types::polyhedronFeature_t", ptr %0, i32 0, i32 1
  %153 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %152)
  call void @llvm.lifetime.end.p0(i64 36, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %16) #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: mustprogress uwtable
declare dso_local void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN8geometry5types11shapeCube_tE", !12, i64 0, !12, i64 4, !12, i64 8}
!17 = !{!16, !12, i64 4}
!18 = !{!16, !12, i64 8}
!19 = !{!20, !10, i64 0}
!20 = !{!"_ZTSN8geometry5types19polyhedronFeature_tE", !21, i64 0, !22, i64 604}
!21 = !{!"_ZTSN8geometry5types11polygon50_tE", !10, i64 0, !7, i64 4}
!22 = !{!"_ZTS7Vector3", !7, i64 0}
!23 = distinct !{!23, !14}


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

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

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

; 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 #1 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 #1 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 #1 align 2

; 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 uwtable
declare dso_local noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1 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 @_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 #1 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 #1 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 #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN8geometry19mostParallelFeatureERKNS_5types11transform_tERKNS0_11shapeCube_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 nocapture noundef nonnull readonly align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(24) %3) local_unnamed_addr #1 {
  %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 %class.Vector3, align 4
  %11 = alloca %class.Vector3, align 4
  %12 = alloca %class.Vector3, 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
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %9) #5
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %9)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #5
  call void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12) %10)
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  store float 1.000000e+00, ptr %18, align 4, !tbaa !5
  %19 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %20 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %21 = fdiv float %19, %20
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %22 = fcmp ogt float %21, -1.000000e+00
  br i1 %22, label %23, label %25

23:                                               ; preds = %4
  %24 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %25

25:                                               ; preds = %23, %4
  %.134 = phi float [ %21, %23 ], [ -1.000000e+00, %4 ]
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %26 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 0)
  store float -1.000000e+00, ptr %26, align 4, !tbaa !5
  %27 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %28 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %29 = fdiv float %27, %28
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %30 = fcmp ogt float %29, %.134
  br i1 %30, label %31, label %33

31:                                               ; preds = %25
  %32 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %33

33:                                               ; preds = %31, %25
  %.134.1 = phi float [ %29, %31 ], [ %.134, %25 ]
  %.1.1 = phi i32 [ 1, %31 ], [ 0, %25 ]
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %34 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
  store float 1.000000e+00, ptr %34, align 4, !tbaa !5
  %35 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %36 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %37 = fdiv float %35, %36
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %38 = fcmp ogt float %37, %.134.1
  br i1 %38, label %39, label %41

39:                                               ; preds = %33
  %40 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %41

41:                                               ; preds = %39, %33
  %.134.2 = phi float [ %37, %39 ], [ %.134.1, %33 ]
  %.1.2 = phi i32 [ 2, %39 ], [ %.1.1, %33 ]
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 1)
  store float -1.000000e+00, ptr %42, align 4, !tbaa !5
  %43 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %44 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %45 = fdiv float %43, %44
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %46 = fcmp ogt float %45, %.134.2
  br i1 %46, label %47, label %49

47:                                               ; preds = %41
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %49

49:                                               ; preds = %47, %41
  %.134.3 = phi float [ %45, %47 ], [ %.134.2, %41 ]
  %.1.3 = phi i32 [ 3, %47 ], [ %.1.2, %41 ]
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %50 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  store float 1.000000e+00, ptr %50, align 4, !tbaa !5
  %51 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %52 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %53 = fdiv float %51, %52
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %54 = fcmp ogt float %53, %.134.3
  br i1 %54, label %55, label %57

55:                                               ; preds = %49
  %56 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %57

57:                                               ; preds = %55, %49
  %.134.4 = phi float [ %53, %55 ], [ %.134.3, %49 ]
  %.1.4 = phi i32 [ 4, %55 ], [ %.1.3, %49 ]
  call void @_ZN7Vector310InitializeEfff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef 2)
  store float -1.000000e+00, ptr %58, align 4, !tbaa !5
  %59 = call noundef float @_ZNK7Vector33dotERKS_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(12) %6)
  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) %10)
  %60 = call noundef float @_ZNK7Vector39magnitudeEv(ptr noundef nonnull align 4 dereferenceable(12) %11)
  %61 = fdiv float %59, %60
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %11) #5
  %62 = fcmp ogt float %61, %.134.4
  br i1 %62, label %63, label %.split43.us

63:                                               ; preds = %57
  %64 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10)
  br label %.split43.us

.split43.us:                                      ; preds = %63, %57
  %.1.5 = phi i32 [ 5, %63 ], [ %.1.4, %57 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %12) #5
  %65 = load float, ptr %2, align 4, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %2, i64 4
  %67 = load float, ptr %66, align 4, !tbaa !11
  %68 = getelementptr inbounds i8, ptr %2, i64 8
  %69 = load float, ptr %68, align 4, !tbaa !12
  call void @_ZN7Vector3C2Efff(ptr noundef nonnull align 4 dereferenceable(12) %12, float noundef %65, float noundef %67, float noundef %69)
  call void @_ZN8geometry5types19polyhedronFeature_tC2Ev(ptr noundef nonnull align 4 dereferenceable(616) %0)
  store i32 4, ptr %0, align 4, !tbaa !13
  %70 = and i32 %.1.5, 1
  %71 = icmp eq i32 %70, 0
  %72 = lshr i32 %.1.5, 1
  %.cmp = icmp ult i32 %.1.5, 4
  %.v = select i1 %.cmp, i32 1, i32 -2
  %73 = add i32 %72, %.v
  %.cmp50 = icmp ult i32 %.1.5, 2
  %.v76 = select i1 %.cmp50, i32 2, i32 -1
  %74 = add i32 %72, %.v76
  %75 = getelementptr inbounds i8, ptr %0, i64 4
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %73)
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = fmul float %77, 5.000000e-01
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %75, i32 noundef %73)
  store float %78, ptr %79, align 4, !tbaa !5
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %74)
  %81 = load float, ptr %80, align 4, !tbaa !5
  %82 = fmul float %81, 5.000000e-01
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %75, i32 noundef %74)
  store float %82, ptr %83, align 4, !tbaa !5
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %72)
  %85 = load float, ptr %84, align 4, !tbaa !5
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %75, i32 noundef %72)
  %87 = getelementptr inbounds i8, ptr %0, i64 16
  %88 = getelementptr inbounds i8, ptr %0, i64 28
  %.sink75 = select i1 %71, float 5.000000e-01, float -5.000000e-01
  %89 = fmul float %85, %.sink75
  store float %89, ptr %86, align 4, !tbaa !5
  %90 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %73)
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = fmul float %91, -5.000000e-01
  %93 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %87, i32 noundef %73)
  store float %92, ptr %93, align 4, !tbaa !5
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %74)
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = fmul float %95, 5.000000e-01
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %87, i32 noundef %74)
  store float %96, ptr %97, align 4, !tbaa !5
  %98 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %72)
  %99 = load float, ptr %98, align 4, !tbaa !5
  %100 = fmul float %99, %.sink75
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %87, i32 noundef %72)
  store float %100, ptr %101, align 4, !tbaa !5
  %102 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %73)
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = fmul float %103, 5.000000e-01
  %105 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %88, i32 noundef %73)
  store float %104, ptr %105, align 4, !tbaa !5
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %74)
  %107 = load float, ptr %106, align 4, !tbaa !5
  %108 = fmul float %107, -5.000000e-01
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %88, i32 noundef %74)
  store float %108, ptr %109, align 4, !tbaa !5
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %72)
  %111 = load float, ptr %110, align 4, !tbaa !5
  %112 = fmul float %111, %.sink75
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %88, i32 noundef %72)
  store float %112, ptr %113, align 4, !tbaa !5
  %114 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %73)
  %115 = load float, ptr %114, align 4, !tbaa !5
  %116 = fmul float %115, -5.000000e-01
  %117 = getelementptr inbounds i8, ptr %0, i64 40
  %118 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %117, i32 noundef %73)
  store float %116, ptr %118, align 4, !tbaa !5
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %74)
  %120 = load float, ptr %119, align 4, !tbaa !5
  %121 = fmul float %120, -5.000000e-01
  %122 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %117, i32 noundef %74)
  store float %121, ptr %122, align 4, !tbaa !5
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %12, i32 noundef %72)
  %124 = load float, ptr %123, align 4, !tbaa !5
  %125 = fmul float %124, %.sink75
  %126 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector3ixEj(ptr noundef nonnull align 4 dereferenceable(12) %117, i32 noundef %72)
  store float %125, ptr %126, align 4, !tbaa !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
  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) %9)
  %127 = getelementptr inbounds i8, ptr %0, i64 604
  %128 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector3aSERKS_(ptr noundef nonnull align 4 dereferenceable(12) %127, ptr noundef nonnull align 4 dereferenceable(12) %15)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %15) #5
  %129 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7Vector39NormalizeEv(ptr noundef nonnull align 4 dereferenceable(12) %127)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %13) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %9) #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
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Vector3C2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #1 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN8geometry5types11shapeCube_tE", !6, i64 0, !6, i64 4, !6, i64 8}
!11 = !{!10, !6, i64 4}
!12 = !{!10, !6, i64 8}
!13 = !{!14, !16, i64 0}
!14 = !{!"_ZTSN8geometry5types19polyhedronFeature_tE", !15, i64 0, !17, i64 604}
!15 = !{!"_ZTSN8geometry5types11polygon50_tE", !16, i64 0, !7, i64 4}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS7Vector3", !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass