; LLVM IR from Lut1n/ImpGears :: src/ImpGears/Core/Matrix4.ll (ZN3imp7Matrix44viewERKNS_4Vec3ES3_S3_)

; 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.imp::Matrix4" = type { %"class.imp::Matrix" }
%"class.imp::Matrix" = type { %"class.imp::Object", [16 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Vec.0" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp7Matrix44viewERKNS_4Vec3ES3_S3_(ptr dead_on_unwind noalias writable sret(%"class.imp::Matrix4") align 8 %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %3) #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.imp::Vec3", align 8
  %10 = alloca %"class.imp::Vec.0", align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca %"class.imp::Vec3", align 8
  %14 = alloca %"class.imp::Vec3", align 8
  %15 = alloca [16 x float], align 16
  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 40, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr %10) #3
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind writable sret(%"class.imp::Vec.0") align 8 %10, ptr noundef nonnull align 8 dereferenceable(36) %16, ptr noundef nonnull align 8 dereferenceable(36) %17)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %10, float noundef 1.000000e+00)
          to label %18 unwind label %82

18:                                               ; preds = %4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #3
  %19 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %20 unwind label %86

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #3
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %13, ptr noundef nonnull align 8 dereferenceable(36) %21, ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %22 unwind label %90

22:                                               ; preds = %20
  %23 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %24 unwind label %94

24:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 40, ptr %14) #3
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind writable sret(%"class.imp::Vec3") align 8 %14, ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %25 unwind label %98

25:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 64, ptr %15) #3
  %26 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %27 unwind label %102

27:                                               ; preds = %25
  %28 = load float, ptr %26, align 4, !tbaa !9
  store float %28, ptr %15, align 4, !tbaa !9
  %29 = getelementptr inbounds float, ptr %15, i64 1
  %30 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %31 unwind label %102

31:                                               ; preds = %27
  %32 = load float, ptr %30, align 4, !tbaa !9
  store float %32, ptr %29, align 4, !tbaa !9
  %33 = getelementptr inbounds float, ptr %15, i64 2
  %34 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %13)
          to label %35 unwind label %102

35:                                               ; preds = %31
  %36 = load float, ptr %34, align 4, !tbaa !9
  store float %36, ptr %33, align 4, !tbaa !9
  %37 = getelementptr inbounds float, ptr %15, i64 3
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %13, ptr noundef nonnull align 8 dereferenceable(36) %38)
          to label %40 unwind label %102

40:                                               ; preds = %35
  %41 = fneg float %39
  store float %41, ptr %37, align 4, !tbaa !9
  %42 = getelementptr inbounds float, ptr %15, i64 4
  %43 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %44 unwind label %102

44:                                               ; preds = %40
  %45 = load float, ptr %43, align 4, !tbaa !9
  store float %45, ptr %42, align 4, !tbaa !9
  %46 = getelementptr inbounds float, ptr %15, i64 5
  %47 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %48 unwind label %102

48:                                               ; preds = %44
  %49 = load float, ptr %47, align 4, !tbaa !9
  store float %49, ptr %46, align 4, !tbaa !9
  %50 = getelementptr inbounds float, ptr %15, i64 6
  %51 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %14)
          to label %52 unwind label %102

52:                                               ; preds = %48
  %53 = load float, ptr %51, align 4, !tbaa !9
  store float %53, ptr %50, align 4, !tbaa !9
  %54 = getelementptr inbounds float, ptr %15, i64 7
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %14, ptr noundef nonnull align 8 dereferenceable(36) %55)
          to label %57 unwind label %102

57:                                               ; preds = %52
  %58 = fneg float %56
  store float %58, ptr %54, align 4, !tbaa !9
  %59 = getelementptr inbounds float, ptr %15, i64 8
  %60 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %61 unwind label %102

61:                                               ; preds = %57
  %62 = load float, ptr %60, align 4, !tbaa !9
  store float %62, ptr %59, align 4, !tbaa !9
  %63 = getelementptr inbounds float, ptr %15, i64 9
  %64 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %65 unwind label %102

65:                                               ; preds = %61
  %66 = load float, ptr %64, align 4, !tbaa !9
  store float %66, ptr %63, align 4, !tbaa !9
  %67 = getelementptr inbounds float, ptr %15, i64 10
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %9)
          to label %69 unwind label %102

69:                                               ; preds = %65
  %70 = load float, ptr %68, align 4, !tbaa !9
  store float %70, ptr %67, align 4, !tbaa !9
  %71 = getelementptr inbounds float, ptr %15, i64 11
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = invoke noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %9, ptr noundef nonnull align 8 dereferenceable(36) %72)
          to label %74 unwind label %102

74:                                               ; preds = %69
  %75 = fneg float %73
  store float %75, ptr %71, align 4, !tbaa !9
  %76 = getelementptr inbounds float, ptr %15, i64 12
  store float 0.000000e+00, ptr %76, align 4, !tbaa !9
  %77 = getelementptr inbounds float, ptr %15, i64 13
  store float 0.000000e+00, ptr %77, align 4, !tbaa !9
  %78 = getelementptr inbounds float, ptr %15, i64 14
  store float 0.000000e+00, ptr %78, align 4, !tbaa !9
  %79 = getelementptr inbounds float, ptr %15, i64 15
  store float 1.000000e+00, ptr %79, align 4, !tbaa !9
  %80 = getelementptr inbounds [16 x float], ptr %15, i64 0, i64 0
  invoke void @_ZN3imp7Matrix4C1EPKfb(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %80, i1 noundef zeroext true)
          to label %81 unwind label %102

81:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #3
  ret void

82:                                               ; preds = %4
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %11, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %12, align 4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %10) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr %10) #3
  br label %110

86:                                               ; preds = %18
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %11, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %12, align 4
  br label %109

90:                                               ; preds = %20
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %11, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %12, align 4
  br label %108

94:                                               ; preds = %22
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %11, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %12, align 4
  br label %107

98:                                               ; preds = %24
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %11, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %12, align 4
  br label %106

102:                                              ; preds = %74, %69, %65, %61, %57, %52, %48, %44, %40, %35, %31, %27, %25
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %11, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %15) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %14) #3
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 40, ptr %14) #3
  br label %107

107:                                              ; preds = %106, %94
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %13) #3
  br label %108

108:                                              ; preds = %107, %90
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #3
  br label %109

109:                                              ; preds = %108, %86
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %9) #3
  br label %110

110:                                              ; preds = %109, %82
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #3
  br label %111

111:                                              ; preds = %110
  %112 = load ptr, ptr %11, align 8
  %113 = load i32, ptr %12, align 4
  %114 = insertvalue { ptr, i32 } poison, ptr %112, 0
  %115 = insertvalue { ptr, i32 } %114, i32 %113, 1
  resume { ptr, i32 } %115
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.0") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) #1 align 2

declare void @_ZN3imp7Matrix4C1EPKfb(ptr, ptr, i1)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; 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.imp::Matrix4" = type { %"class.imp::Matrix" }
%"class.imp::Matrix" = type { %"class.imp::Object", [16 x float] }
%"class.imp::Object" = type { ptr, %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.imp::Vec3" = type { %"class.imp::Vec.base", [4 x i8] }
%"class.imp::Vec.base" = type <{ %"class.imp::Object", [3 x float] }>
%"class.imp::Vec.0" = type <{ %"class.imp::Object", [3 x float], [4 x i8] }>

declare i32 @__gxx_personality_v0(...)

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3imp7Matrix44viewERKNS_4Vec3ES3_S3_(ptr dead_on_unwind noalias writable sret(%"class.imp::Matrix4") align 8 %0, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2, ptr noundef nonnull align 8 dereferenceable(36) %3) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.imp::Vec3", align 8
  %6 = alloca %"class.imp::Vec.0", align 8
  %7 = alloca %"class.imp::Vec3", align 8
  %8 = alloca %"class.imp::Vec3", align 8
  %9 = alloca [16 x float], align 16
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %6) #3
  call void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec.0") align 8 %6, ptr noundef nonnull align 8 dereferenceable(36) %1, ptr noundef nonnull align 8 dereferenceable(36) %2)
  invoke void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %6, float noundef 1.000000e+00)
          to label %10 unwind label %54

10:                                               ; preds = %4
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  %11 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %12 unwind label %56

12:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #3
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %7, ptr noundef nonnull align 8 dereferenceable(36) %3, ptr noundef nonnull align 8 dereferenceable(36) %5)
          to label %13 unwind label %58

13:                                               ; preds = %12
  %14 = invoke noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %15 unwind label %60

15:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %8) #3
  invoke void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind nonnull writable sret(%"class.imp::Vec3") align 8 %8, ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %7)
          to label %16 unwind label %62

16:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #3
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %18 = load float, ptr %17, align 4, !tbaa !5
  store float %18, ptr %9, align 16, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %9, i64 4
  %20 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %21 = load float, ptr %20, align 4, !tbaa !5
  store float %21, ptr %19, align 4, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %9, i64 8
  %23 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %7)
  %24 = load float, ptr %23, align 4, !tbaa !5
  store float %24, ptr %22, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %9, i64 12
  %26 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %7, ptr noundef nonnull align 8 dereferenceable(36) %1)
  %27 = fneg float %26
  store float %27, ptr %25, align 4, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %9, i64 16
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %8)
  %30 = load float, ptr %29, align 4, !tbaa !5
  store float %30, ptr %28, align 16, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %9, i64 20
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %8)
  %33 = load float, ptr %32, align 4, !tbaa !5
  store float %33, ptr %31, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %9, i64 24
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %8)
  %36 = load float, ptr %35, align 4, !tbaa !5
  store float %36, ptr %34, align 8, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %9, i64 28
  %38 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %8, ptr noundef nonnull align 8 dereferenceable(36) %1)
  %39 = fneg float %38
  store float %39, ptr %37, align 4, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %9, i64 32
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36) %5)
  %42 = load float, ptr %41, align 4, !tbaa !5
  store float %42, ptr %40, align 16, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %9, i64 36
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36) %5)
  %45 = load float, ptr %44, align 4, !tbaa !5
  store float %45, ptr %43, align 4, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %9, i64 40
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36) %5)
  %48 = load float, ptr %47, align 4, !tbaa !5
  store float %48, ptr %46, align 8, !tbaa !5
  %49 = getelementptr inbounds i8, ptr %9, i64 44
  %50 = call noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36) %5, ptr noundef nonnull align 8 dereferenceable(36) %1)
  %51 = fneg float %50
  store float %51, ptr %49, align 4, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %9, i64 48
  store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00>, ptr %52, align 16, !tbaa !5
  invoke void @_ZN3imp7Matrix4C1EPKfb(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef nonnull %9, i1 noundef zeroext true)
          to label %53 unwind label %64

53:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  ret void

54:                                               ; preds = %4
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %6) #3
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %6) #3
  br label %70

56:                                               ; preds = %10
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %69

58:                                               ; preds = %12
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %68

60:                                               ; preds = %13
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %67

62:                                               ; preds = %15
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %16
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #3
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %8) #3
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %8) #3
  br label %67

67:                                               ; preds = %66, %60
  %.pn.pn = phi { ptr, i32 } [ %.pn, %66 ], [ %61, %60 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %7) #3
  br label %68

68:                                               ; preds = %67, %58
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %67 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #3
  br label %69

69:                                               ; preds = %68, %56
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %68 ], [ %57, %56 ]
  call void @_ZN3imp6ObjectD2Ev(ptr noundef nonnull align 8 dereferenceable(36) %5) #3
  br label %70

70:                                               ; preds = %69, %54
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %69 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %5) #3
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp3VecILi3EfEmiERKS1_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec.0") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3imp4Vec3C2ILi3EEERKNS_3VecIXT_EfEEf(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36), float noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN3imp3VecILi3EfE9normalizeEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3imp4Vec35crossERKS0_(ptr dead_on_unwind noalias writable sret(%"class.imp::Vec3") align 8, ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31xEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31yEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3imp4Vec31zEv(ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3imp3VecILi3EfE3dotERKS1_(ptr noundef nonnull align 8 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(36)) local_unnamed_addr #1 align 2

declare void @_ZN3imp7Matrix4C1EPKfb(ptr, ptr, i1) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass