; LLVM IR from aap/librw :: tools/playground/camera.ll (ZN6Camera6updateEv)

; 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.rw::V3d" = type { float, float, float }
%class.Camera = type { ptr, %"struct.rw::V3d", %"struct.rw::V3d", %"struct.rw::V3d", %"struct.rw::V3d", float, float, float, float }
%"struct.rw::Frame" = type { %"struct.rw::Object", %"struct.rw::LLLink", %"struct.rw::LinkList", %"struct.rw::Matrix", %"struct.rw::Matrix", ptr, ptr, ptr }
%"struct.rw::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera6updateEv(ptr noundef nonnull align 8 dereferenceable(72) %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.rw::V3d", align 4
  %5 = alloca %"struct.rw::V3d", align 4
  %6 = alloca { <2 x float>, float }, align 8
  %7 = alloca { <2 x float>, float }, align 8
  %8 = alloca %"struct.rw::V3d", align 4
  %9 = alloca %"struct.rw::V3d", align 4
  %10 = alloca { <2 x float>, float }, align 8
  %11 = alloca { <2 x float>, float }, align 8
  %12 = alloca %"struct.rw::V3d", align 4
  %13 = alloca { <2 x float>, float }, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %14 = load ptr, ptr %2, align 8
  %15 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %64

18:                                               ; preds = %1
  %19 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 0
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 7
  %22 = load float, ptr %21, align 8, !tbaa !13
  call void @_ZN2rw6Camera12setNearPlaneEf(ptr noundef nonnull align 8 dereferenceable(600) %20, float noundef %22)
  %23 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 0
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 8
  %26 = load float, ptr %25, align 4, !tbaa !14
  call void @_ZN2rw6Camera11setFarPlaneEf(ptr noundef nonnull align 8 dereferenceable(600) %24, float noundef %26)
  %27 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 0
  %28 = load ptr, ptr %27, align 8, !tbaa !9
  %29 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 5
  %30 = load float, ptr %29, align 8, !tbaa !15
  %31 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 6
  %32 = load float, ptr %31, align 4, !tbaa !16
  call void @_ZN2rw6Camera6setFOVEff(ptr noundef nonnull align 8 dereferenceable(600) %28, float noundef %30, float noundef %32)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %33 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !9
  %35 = call noundef ptr @_ZNK2rw6Camera8getFrameEv(ptr noundef nonnull align 8 dereferenceable(600) %34)
  store ptr %35, ptr %3, align 8, !tbaa !5
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %63

38:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  %39 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 2
  %40 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 1
  %41 = call { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %39, ptr noundef nonnull align 4 dereferenceable(12) %40)
  store { <2 x float>, float } %41, ptr %6, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %5, ptr align 8 %6, i64 12, i1 false)
  %42 = call { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %5)
  store { <2 x float>, float } %42, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 8 %7, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %9) #6
  %43 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 3
  %44 = call { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %43, ptr noundef nonnull align 4 dereferenceable(12) %4)
  store { <2 x float>, float } %44, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 8 %10, i64 12, i1 false)
  %45 = call { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %9)
  store { <2 x float>, float } %45, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.lifetime.end.p0(i64 12, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #6
  %46 = call { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %8)
  store { <2 x float>, float } %46, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %12, ptr align 8 %13, i64 12, i1 false)
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.rw::Frame", ptr %47, i32 0, i32 3
  %49 = getelementptr inbounds %"struct.rw::Matrix", ptr %48, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %49, ptr align 4 %8, i64 12, i1 false), !tbaa.struct !17
  %50 = load ptr, ptr %3, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.rw::Frame", ptr %50, i32 0, i32 3
  %52 = getelementptr inbounds %"struct.rw::Matrix", ptr %51, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %52, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !17
  %53 = load ptr, ptr %3, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.rw::Frame", ptr %53, i32 0, i32 3
  %55 = getelementptr inbounds %"struct.rw::Matrix", ptr %54, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %55, ptr align 4 %4, i64 12, i1 false), !tbaa.struct !17
  %56 = getelementptr inbounds %class.Camera, ptr %14, i32 0, i32 1
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.rw::Frame", ptr %57, i32 0, i32 3
  %59 = getelementptr inbounds %"struct.rw::Matrix", ptr %58, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %59, ptr align 8 %56, i64 12, i1 false), !tbaa.struct !17
  %60 = load ptr, ptr %3, align 8, !tbaa !5
  %61 = getelementptr inbounds %"struct.rw::Frame", ptr %60, i32 0, i32 3
  call void @_ZN2rw6Matrix8optimizeEPNS0_9ToleranceE(ptr noundef nonnull align 4 dereferenceable(64) %61, ptr noundef null)
  %62 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN2rw5Frame13updateObjectsEv(ptr noundef nonnull align 8 dereferenceable(200) %62)
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  br label %63

63:                                               ; preds = %38, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %64

64:                                               ; preds = %63, %1
  ret void
}

declare void @_ZN2rw6Camera12setNearPlaneEf(ptr noundef nonnull align 8 dereferenceable(600), float noundef) #1

declare void @_ZN2rw6Camera11setFarPlaneEf(ptr noundef nonnull align 8 dereferenceable(600), float noundef) #1

declare void @_ZN2rw6Camera6setFOVEff(ptr noundef nonnull align 8 dereferenceable(600), float noundef, float noundef) #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2rw6Camera8getFrameEv(ptr noundef nonnull align 8 dereferenceable(600)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

declare { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #1

declare void @_ZN2rw6Matrix8optimizeEPNS0_9ToleranceE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) #1

declare void @_ZN2rw5Frame13updateObjectsEv(ptr noundef nonnull align 8 dereferenceable(200)) #1

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTS6Camera", !6, i64 0, !11, i64 8, !11, i64 20, !11, i64 32, !11, i64 44, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68}
!11 = !{!"_ZTSN2rw3V3dE", !12, i64 0, !12, i64 4, !12, i64 8}
!12 = !{!"float", !7, i64 0}
!13 = !{!10, !12, i64 64}
!14 = !{!10, !12, i64 68}
!15 = !{!10, !12, i64 56}
!16 = !{!10, !12, i64 60}
!17 = !{i64 0, i64 4, !18, i64 4, i64 4, !18, i64 8, i64 4, !18}
!18 = !{!12, !12, 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"

%"struct.rw::V3d" = type { float, float, float }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Camera6updateEv(ptr noundef nonnull align 8 dereferenceable(72) %0) local_unnamed_addr #0 align 2 {
  %2 = alloca %"struct.rw::V3d", align 8
  %3 = alloca %"struct.rw::V3d", align 8
  %4 = alloca %"struct.rw::V3d", align 8
  %5 = alloca %"struct.rw::V3d", align 8
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %.not = icmp eq ptr %6, null
  br i1 %.not, label %33, label %7

7:                                                ; preds = %1
  %8 = getelementptr inbounds i8, ptr %0, i64 64
  %9 = load float, ptr %8, align 8, !tbaa !12
  tail call void @_ZN2rw6Camera12setNearPlaneEf(ptr noundef nonnull align 8 dereferenceable(600) %6, float noundef %9)
  %10 = load ptr, ptr %0, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %0, i64 68
  %12 = load float, ptr %11, align 4, !tbaa !13
  tail call void @_ZN2rw6Camera11setFarPlaneEf(ptr noundef nonnull align 8 dereferenceable(600) %10, float noundef %12)
  %13 = load ptr, ptr %0, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = load float, ptr %14, align 8, !tbaa !14
  %16 = getelementptr inbounds i8, ptr %0, i64 60
  %17 = load float, ptr %16, align 4, !tbaa !15
  tail call void @_ZN2rw6Camera6setFOVEff(ptr noundef nonnull align 8 dereferenceable(600) %13, float noundef %15, float noundef %17)
  %18 = load ptr, ptr %0, align 8, !tbaa !5
  %19 = tail call noundef ptr @_ZNK2rw6Camera8getFrameEv(ptr noundef nonnull align 8 dereferenceable(600) %18)
  %.not26 = icmp eq ptr %19, null
  br i1 %.not26, label %33, label %20

20:                                               ; preds = %7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  %21 = getelementptr inbounds i8, ptr %0, i64 20
  %22 = getelementptr inbounds i8, ptr %0, i64 8
  %23 = tail call { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %21, ptr noundef nonnull align 4 dereferenceable(12) %22)
  %.fca.0.extract14 = extractvalue { <2 x float>, float } %23, 0
  %.fca.1.extract15 = extractvalue { <2 x float>, float } %23, 1
  store <2 x float> %.fca.0.extract14, ptr %3, align 8
  %.sroa.217.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store float %.fca.1.extract15, ptr %.sroa.217.0..sroa_idx, align 8
  %24 = call { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %3)
  %.fca.0.extract10 = extractvalue { <2 x float>, float } %24, 0
  %.fca.1.extract11 = extractvalue { <2 x float>, float } %24, 1
  store <2 x float> %.fca.0.extract10, ptr %2, align 8
  %.sroa.213.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.fca.1.extract11, ptr %.sroa.213.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  %25 = getelementptr inbounds i8, ptr %0, i64 32
  %26 = call { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %25, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %.fca.0.extract6 = extractvalue { <2 x float>, float } %26, 0
  %.fca.1.extract7 = extractvalue { <2 x float>, float } %26, 1
  store <2 x float> %.fca.0.extract6, ptr %5, align 8
  %.sroa.29.0..sroa_idx = getelementptr inbounds i8, ptr %5, i64 8
  store float %.fca.1.extract7, ptr %.sroa.29.0..sroa_idx, align 8
  %27 = call { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12) %5)
  %.fca.0.extract2 = extractvalue { <2 x float>, float } %27, 0
  %.fca.1.extract3 = extractvalue { <2 x float>, float } %27, 1
  store <2 x float> %.fca.0.extract2, ptr %4, align 8
  %.sroa.25.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  store float %.fca.1.extract3, ptr %.sroa.25.0..sroa_idx, align 8
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  %28 = call { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
  %.fca.0.extract = extractvalue { <2 x float>, float } %28, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %28, 1
  %29 = getelementptr inbounds i8, ptr %19, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %29, ptr noundef nonnull align 8 dereferenceable(12) %4, i64 12, i1 false), !tbaa.struct !16
  %30 = getelementptr inbounds i8, ptr %19, i64 64
  store <2 x float> %.fca.0.extract, ptr %30, align 8
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %19, i64 72
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 8, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %19, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %31, ptr noundef nonnull align 8 dereferenceable(12) %2, i64 12, i1 false), !tbaa.struct !16
  %32 = getelementptr inbounds i8, ptr %19, i64 96
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %32, ptr noundef nonnull align 8 dereferenceable(12) %22, i64 12, i1 false), !tbaa.struct !16
  call void @_ZN2rw6Matrix8optimizeEPNS0_9ToleranceE(ptr noundef nonnull align 4 dereferenceable(64) %29, ptr noundef null)
  call void @_ZN2rw5Frame13updateObjectsEv(ptr noundef nonnull align 8 dereferenceable(200) %19)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  br label %33

33:                                               ; preds = %7, %20, %1
  ret void
}

declare void @_ZN2rw6Camera12setNearPlaneEf(ptr noundef nonnull align 8 dereferenceable(600), float noundef) local_unnamed_addr #1

declare void @_ZN2rw6Camera11setFarPlaneEf(ptr noundef nonnull align 8 dereferenceable(600), float noundef) local_unnamed_addr #1

declare void @_ZN2rw6Camera6setFOVEff(ptr noundef nonnull align 8 dereferenceable(600), float noundef, float noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK2rw6Camera8getFrameEv(ptr noundef nonnull align 8 dereferenceable(600)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2rw9normalizeERKNS_3V3dE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { <2 x float>, float } @_ZN2rw3subERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

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

declare { <2 x float>, float } @_ZN2rw5crossERKNS_3V3dES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #1

declare void @_ZN2rw6Matrix8optimizeEPNS0_9ToleranceE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef) local_unnamed_addr #1

declare void @_ZN2rw5Frame13updateObjectsEv(ptr noundef nonnull align 8 dereferenceable(200)) local_unnamed_addr #1

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS6Camera", !7, i64 0, !10, i64 8, !10, i64 20, !10, i64 32, !10, i64 44, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2rw3V3dE", !11, i64 0, !11, i64 4, !11, i64 8}
!11 = !{!"float", !8, i64 0}
!12 = !{!6, !11, i64 64}
!13 = !{!6, !11, i64 68}
!14 = !{!6, !11, i64 56}
!15 = !{!6, !11, i64 60}
!16 = !{i64 0, i64 4, !17, i64 4, i64 4, !17, i64 8, i64 4, !17}
!17 = !{!11, !11, i64 0}


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