; LLVM IR from aap/librw :: src/camera.ll (ZN2rw6Camera6createEv)

; 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::PluginList" = type { i32, i32, %"struct.rw::LinkList" }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::Error" = type { i32, i32 }
%"struct.rw::Camera" = type { %"struct.rw::ObjectWithFrame", ptr, ptr, %"struct.rw::V2d", %"struct.rw::V2d", float, float, float, i32, %"struct.rw::Matrix", float, float, [6 x %"struct.rw::FrustumPlane"], [8 x %"struct.rw::V3d"], %"struct.rw::BBox", ptr, ptr, %"struct.rw::RawMatrix", %"struct.rw::RawMatrix", ptr, %"struct.rw::LLLink", ptr, ptr, ptr, ptr }
%"struct.rw::ObjectWithFrame" = type { %"struct.rw::Object", %"struct.rw::LLLink", ptr }
%"struct.rw::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::V2d" = type { float, float }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }
%"struct.rw::V3d" = type { float, float, float }
%"struct.rw::FrustumPlane" = type { %"struct.rw::Plane", i8, i8, i8 }
%"struct.rw::Plane" = type { %"struct.rw::V3d", float }
%"struct.rw::BBox" = type { %"struct.rw::V3d", %"struct.rw::V3d" }
%"struct.rw::RawMatrix" = type { %"struct.rw::V3d", float, %"struct.rw::V3d", float, %"struct.rw::V3d", float, %"struct.rw::V3d", float }

@_ZN2rw6Camera12numAllocatedE = external dso_local global i32, align 4
@_ZN2rw6Camera9s_plglistE = external dso_local global %"struct.rw::PluginList", align 8
@.str = external hidden unnamed_addr constant [74 x i8], align 1
@stderr = external global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw20defaultBeginUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw18defaultEndUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw18worldBeginUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw16worldEndUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw6Camera6createEv() #0 align 2 {
  %1 = alloca ptr, align 8
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.rw::Error", align 4
  %4 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #6
  %5 = load i32, ptr @_ZN2rw6Camera9s_plglistE, align 8, !tbaa !5
  %6 = sext i32 %5 to i64
  %7 = call noundef ptr @_ZN2rw10malloc_LOCEmjPKc(i64 noundef %6, i32 noundef 196613, ptr noundef @.str)
  store ptr %7, ptr %2, align 8, !tbaa !13
  %8 = load ptr, ptr %2, align 8, !tbaa !13
  %9 = icmp eq ptr %8, null
  br i1 %9, label %10, label %22

10:                                               ; preds = %0
  br label %11

11:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %12 = getelementptr inbounds %"struct.rw::Error", ptr %3, i32 0, i32 0
  store i32 5, ptr %12, align 4, !tbaa !14
  %13 = getelementptr inbounds %"struct.rw::Error", ptr %3, i32 0, i32 1
  store i32 -2147483646, ptr %13, align 4, !tbaa !16
  %14 = load ptr, ptr @stderr, align 8, !tbaa !13
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 282) #6
  %16 = load ptr, ptr @stderr, align 8, !tbaa !13
  %17 = load i32, ptr @_ZN2rw6Camera9s_plglistE, align 8, !tbaa !5
  %18 = call noundef ptr (i32, ...) @_ZN2rw9dbgsprintEjz(i32 noundef -2147483646, i32 noundef %17)
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef @.str.3, ptr noundef %18) #6
  call void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %20

20:                                               ; preds = %11
  br label %21

21:                                               ; preds = %20
  store ptr null, ptr %1, align 8
  store i32 1, ptr %4, align 4
  br label %82

22:                                               ; preds = %0
  %23 = load i32, ptr @_ZN2rw6Camera12numAllocatedE, align 4, !tbaa !17
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @_ZN2rw6Camera12numAllocatedE, align 4, !tbaa !17
  %25 = load ptr, ptr %2, align 8, !tbaa !13
  %26 = getelementptr inbounds %"struct.rw::Camera", ptr %25, i32 0, i32 0
  %27 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %26, i32 0, i32 0
  call void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16) %27, i8 noundef zeroext 4, i8 noundef zeroext 0)
  %28 = load ptr, ptr %2, align 8, !tbaa !13
  %29 = getelementptr inbounds %"struct.rw::Camera", ptr %28, i32 0, i32 0
  %30 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %29, i32 0, i32 2
  store ptr @_ZN2rwL10cameraSyncEPNS_15ObjectWithFrameE, ptr %30, align 8, !tbaa !18
  %31 = load ptr, ptr %2, align 8, !tbaa !13
  %32 = getelementptr inbounds %"struct.rw::Camera", ptr %31, i32 0, i32 1
  store ptr @_ZN2rw20defaultBeginUpdateCBEPNS_6CameraE, ptr %32, align 8, !tbaa !28
  %33 = load ptr, ptr %2, align 8, !tbaa !13
  %34 = getelementptr inbounds %"struct.rw::Camera", ptr %33, i32 0, i32 2
  store ptr @_ZN2rw18defaultEndUpdateCBEPNS_6CameraE, ptr %34, align 8, !tbaa !29
  %35 = load ptr, ptr %2, align 8, !tbaa !13
  %36 = getelementptr inbounds %"struct.rw::Camera", ptr %35, i32 0, i32 3
  call void @_ZN2rw3V2d3setEff(ptr noundef nonnull align 4 dereferenceable(8) %36, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %37 = load ptr, ptr %2, align 8, !tbaa !13
  %38 = getelementptr inbounds %"struct.rw::Camera", ptr %37, i32 0, i32 4
  call void @_ZN2rw3V2d3setEff(ptr noundef nonnull align 4 dereferenceable(8) %38, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %39 = load ptr, ptr %2, align 8, !tbaa !13
  %40 = getelementptr inbounds %"struct.rw::Camera", ptr %39, i32 0, i32 5
  store float 0x3FA99999A0000000, ptr %40, align 8, !tbaa !30
  %41 = load ptr, ptr %2, align 8, !tbaa !13
  %42 = getelementptr inbounds %"struct.rw::Camera", ptr %41, i32 0, i32 6
  store float 1.000000e+01, ptr %42, align 4, !tbaa !31
  %43 = load ptr, ptr %2, align 8, !tbaa !13
  %44 = getelementptr inbounds %"struct.rw::Camera", ptr %43, i32 0, i32 7
  store float 5.000000e+00, ptr %44, align 8, !tbaa !32
  %45 = load ptr, ptr %2, align 8, !tbaa !13
  %46 = getelementptr inbounds %"struct.rw::Camera", ptr %45, i32 0, i32 8
  store i32 1, ptr %46, align 4, !tbaa !33
  %47 = load ptr, ptr %2, align 8, !tbaa !13
  %48 = getelementptr inbounds %"struct.rw::Camera", ptr %47, i32 0, i32 15
  store ptr null, ptr %48, align 8, !tbaa !34
  %49 = load ptr, ptr %2, align 8, !tbaa !13
  %50 = getelementptr inbounds %"struct.rw::Camera", ptr %49, i32 0, i32 16
  store ptr null, ptr %50, align 8, !tbaa !35
  %51 = load ptr, ptr %2, align 8, !tbaa !13
  %52 = getelementptr inbounds %"struct.rw::Camera", ptr %51, i32 0, i32 19
  store ptr null, ptr %52, align 8, !tbaa !36
  %53 = load ptr, ptr %2, align 8, !tbaa !13
  %54 = getelementptr inbounds %"struct.rw::Camera", ptr %53, i32 0, i32 20
  call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %54)
  %55 = load ptr, ptr %2, align 8, !tbaa !13
  %56 = getelementptr inbounds %"struct.rw::Camera", ptr %55, i32 0, i32 21
  store ptr null, ptr %56, align 8, !tbaa !37
  %57 = load ptr, ptr %2, align 8, !tbaa !13
  %58 = getelementptr inbounds %"struct.rw::Camera", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = load ptr, ptr %2, align 8, !tbaa !13
  %62 = getelementptr inbounds %"struct.rw::Camera", ptr %61, i32 0, i32 22
  store ptr %60, ptr %62, align 8, !tbaa !38
  %63 = load ptr, ptr %2, align 8, !tbaa !13
  %64 = getelementptr inbounds %"struct.rw::Camera", ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !28
  %66 = load ptr, ptr %2, align 8, !tbaa !13
  %67 = getelementptr inbounds %"struct.rw::Camera", ptr %66, i32 0, i32 23
  store ptr %65, ptr %67, align 8, !tbaa !39
  %68 = load ptr, ptr %2, align 8, !tbaa !13
  %69 = getelementptr inbounds %"struct.rw::Camera", ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !29
  %71 = load ptr, ptr %2, align 8, !tbaa !13
  %72 = getelementptr inbounds %"struct.rw::Camera", ptr %71, i32 0, i32 24
  store ptr %70, ptr %72, align 8, !tbaa !40
  %73 = load ptr, ptr %2, align 8, !tbaa !13
  %74 = getelementptr inbounds %"struct.rw::Camera", ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %74, i32 0, i32 2
  store ptr @_ZN2rwL15worldCameraSyncEPNS_15ObjectWithFrameE, ptr %75, align 8, !tbaa !18
  %76 = load ptr, ptr %2, align 8, !tbaa !13
  %77 = getelementptr inbounds %"struct.rw::Camera", ptr %76, i32 0, i32 1
  store ptr @_ZN2rw18worldBeginUpdateCBEPNS_6CameraE, ptr %77, align 8, !tbaa !28
  %78 = load ptr, ptr %2, align 8, !tbaa !13
  %79 = getelementptr inbounds %"struct.rw::Camera", ptr %78, i32 0, i32 2
  store ptr @_ZN2rw16worldEndUpdateCBEPNS_6CameraE, ptr %79, align 8, !tbaa !29
  %80 = load ptr, ptr %2, align 8, !tbaa !13
  call void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw6Camera9s_plglistE, ptr noundef %80)
  %81 = load ptr, ptr %2, align 8, !tbaa !13
  store ptr %81, ptr %1, align 8
  store i32 1, ptr %4, align 4
  br label %82

82:                                               ; preds = %22, %21
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #6
  %83 = load ptr, ptr %1, align 8
  ret ptr %83
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw10malloc_LOCEmjPKc(i64 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare noundef ptr @_ZN2rw9dbgsprintEjz(i32 noundef, ...) #4

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef zeroext, i8 noundef zeroext) #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2rwL10cameraSyncEPNS_15ObjectWithFrameE(ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2rwL15worldCameraSyncEPNS_15ObjectWithFrameE(ptr noundef) #0

declare void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #4

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nounwind "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 = { 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 #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 = !{!"_ZTSN2rw10PluginListE", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2rw8LinkListE", !11, i64 0}
!11 = !{!"_ZTSN2rw6LLLinkE", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN2rw5ErrorE", !7, i64 0, !7, i64 4}
!16 = !{!15, !7, i64 4}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !12, i64 32}
!19 = !{!"_ZTSN2rw6CameraE", !20, i64 0, !12, i64 40, !12, i64 48, !22, i64 56, !22, i64 64, !23, i64 72, !23, i64 76, !23, i64 80, !7, i64 84, !24, i64 88, !23, i64 152, !23, i64 156, !8, i64 160, !8, i64 280, !26, i64 376, !12, i64 400, !12, i64 408, !27, i64 416, !27, i64 480, !12, i64 544, !11, i64 552, !12, i64 568, !12, i64 576, !12, i64 584, !12, i64 592}
!20 = !{!"_ZTSN2rw15ObjectWithFrameE", !21, i64 0, !11, i64 16, !12, i64 32}
!21 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !12, i64 8}
!22 = !{!"_ZTSN2rw3V2dE", !23, i64 0, !23, i64 4}
!23 = !{!"float", !8, i64 0}
!24 = !{!"_ZTSN2rw6MatrixE", !25, i64 0, !7, i64 12, !25, i64 16, !7, i64 28, !25, i64 32, !7, i64 44, !25, i64 48, !7, i64 60}
!25 = !{!"_ZTSN2rw3V3dE", !23, i64 0, !23, i64 4, !23, i64 8}
!26 = !{!"_ZTSN2rw4BBoxE", !25, i64 0, !25, i64 12}
!27 = !{!"_ZTSN2rw9RawMatrixE", !25, i64 0, !23, i64 12, !25, i64 16, !23, i64 28, !25, i64 32, !23, i64 44, !25, i64 48, !23, i64 60}
!28 = !{!19, !12, i64 40}
!29 = !{!19, !12, i64 48}
!30 = !{!19, !23, i64 72}
!31 = !{!19, !23, i64 76}
!32 = !{!19, !23, i64 80}
!33 = !{!19, !7, i64 84}
!34 = !{!19, !12, i64 400}
!35 = !{!19, !12, i64 408}
!36 = !{!19, !12, i64 544}
!37 = !{!19, !12, i64 568}
!38 = !{!19, !12, i64 576}
!39 = !{!19, !12, i64 584}
!40 = !{!19, !12, i64 592}


; 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::PluginList" = type { i32, i32, %"struct.rw::LinkList" }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::Error" = type { i32, i32 }

@_ZN2rw6Camera12numAllocatedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN2rw6Camera9s_plglistE = external dso_local global %"struct.rw::PluginList", align 8
@.str = external hidden unnamed_addr constant [74 x i8], align 1
@stderr = external local_unnamed_addr global ptr, align 8
@.str.1 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw20defaultBeginUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw18defaultEndUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw18worldBeginUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw16worldEndUpdateCBEPNS_6CameraE(ptr noundef) #0

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw6Camera6createEv() local_unnamed_addr #0 align 2 {
  %1 = alloca %"struct.rw::Error", align 4
  %2 = load i32, ptr @_ZN2rw6Camera9s_plglistE, align 8, !tbaa !5
  %3 = sext i32 %2 to i64
  %4 = tail call noundef ptr @_ZN2rw10malloc_LOCEmjPKc(i64 noundef %3, i32 noundef 196613, ptr noundef nonnull @.str)
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %14

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #7
  store i32 5, ptr %1, align 4, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 -2147483646, ptr %7, align 4, !tbaa !15
  %8 = load ptr, ptr @stderr, align 8, !tbaa !16
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 282) #8
  %10 = load ptr, ptr @stderr, align 8, !tbaa !16
  %11 = load i32, ptr @_ZN2rw6Camera9s_plglistE, align 8, !tbaa !5
  %12 = tail call noundef ptr (i32, ...) @_ZN2rw9dbgsprintEjz(i32 noundef -2147483646, i32 noundef %11)
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.3, ptr noundef %12) #8
  call void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef nonnull %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #7
  br label %33

14:                                               ; preds = %0
  %15 = load i32, ptr @_ZN2rw6Camera12numAllocatedE, align 4, !tbaa !17
  %16 = add nsw i32 %15, 1
  store i32 %16, ptr @_ZN2rw6Camera12numAllocatedE, align 4, !tbaa !17
  tail call void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16) %4, i8 noundef zeroext 4, i8 noundef zeroext 0)
  %17 = getelementptr inbounds i8, ptr %4, i64 32
  store ptr @_ZN2rwL10cameraSyncEPNS_15ObjectWithFrameE, ptr %17, align 8, !tbaa !18
  %18 = getelementptr inbounds i8, ptr %4, i64 40
  store ptr @_ZN2rw20defaultBeginUpdateCBEPNS_6CameraE, ptr %18, align 8, !tbaa !28
  %19 = getelementptr inbounds i8, ptr %4, i64 48
  store ptr @_ZN2rw18defaultEndUpdateCBEPNS_6CameraE, ptr %19, align 8, !tbaa !29
  %20 = getelementptr inbounds i8, ptr %4, i64 56
  tail call void @_ZN2rw3V2d3setEff(ptr noundef nonnull align 4 dereferenceable(8) %20, float noundef 1.000000e+00, float noundef 1.000000e+00)
  %21 = getelementptr inbounds i8, ptr %4, i64 64
  tail call void @_ZN2rw3V2d3setEff(ptr noundef nonnull align 4 dereferenceable(8) %21, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %22 = getelementptr inbounds i8, ptr %4, i64 72
  store <2 x float> <float 0x3FA99999A0000000, float 1.000000e+01>, ptr %22, align 8, !tbaa !30
  %23 = getelementptr inbounds i8, ptr %4, i64 80
  store float 5.000000e+00, ptr %23, align 8, !tbaa !31
  %24 = getelementptr inbounds i8, ptr %4, i64 84
  store i32 1, ptr %24, align 4, !tbaa !32
  %25 = getelementptr inbounds i8, ptr %4, i64 400
  %26 = getelementptr inbounds i8, ptr %4, i64 544
  store ptr null, ptr %26, align 8, !tbaa !33
  %27 = getelementptr inbounds i8, ptr %4, i64 552
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %25, i8 0, i64 16, i1 false)
  tail call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %27)
  %28 = getelementptr inbounds i8, ptr %4, i64 568
  store ptr null, ptr %28, align 8, !tbaa !34
  %29 = getelementptr inbounds i8, ptr %4, i64 576
  %30 = load <2 x ptr>, ptr %17, align 8, !tbaa !16
  store <2 x ptr> %30, ptr %29, align 8, !tbaa !16
  %31 = load ptr, ptr %19, align 8, !tbaa !29
  %32 = getelementptr inbounds i8, ptr %4, i64 592
  store ptr %31, ptr %32, align 8, !tbaa !35
  store ptr @_ZN2rwL15worldCameraSyncEPNS_15ObjectWithFrameE, ptr %17, align 8, !tbaa !18
  store ptr @_ZN2rw18worldBeginUpdateCBEPNS_6CameraE, ptr %18, align 8, !tbaa !28
  store ptr @_ZN2rw16worldEndUpdateCBEPNS_6CameraE, ptr %19, align 8, !tbaa !29
  tail call void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw6Camera9s_plglistE, ptr noundef nonnull %4)
  br label %33

33:                                               ; preds = %14, %6
  ret ptr %4
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw10malloc_LOCEmjPKc(i64 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

declare noundef ptr @_ZN2rw9dbgsprintEjz(i32 noundef, ...) local_unnamed_addr #4

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) local_unnamed_addr #4

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16), i8 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2rwL10cameraSyncEPNS_15ObjectWithFrameE(ptr noundef) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN2rwL15worldCameraSyncEPNS_15ObjectWithFrameE(ptr noundef) #0

declare void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #6

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nofree nounwind "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 = { 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 #6 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #7 = { nounwind }
attributes #8 = { cold 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 = !{!"_ZTSN2rw10PluginListE", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN2rw8LinkListE", !11, i64 0}
!11 = !{!"_ZTSN2rw6LLLinkE", !12, i64 0, !12, i64 8}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN2rw5ErrorE", !7, i64 0, !7, i64 4}
!15 = !{!14, !7, i64 4}
!16 = !{!12, !12, i64 0}
!17 = !{!7, !7, i64 0}
!18 = !{!19, !12, i64 32}
!19 = !{!"_ZTSN2rw6CameraE", !20, i64 0, !12, i64 40, !12, i64 48, !22, i64 56, !22, i64 64, !23, i64 72, !23, i64 76, !23, i64 80, !7, i64 84, !24, i64 88, !23, i64 152, !23, i64 156, !8, i64 160, !8, i64 280, !26, i64 376, !12, i64 400, !12, i64 408, !27, i64 416, !27, i64 480, !12, i64 544, !11, i64 552, !12, i64 568, !12, i64 576, !12, i64 584, !12, i64 592}
!20 = !{!"_ZTSN2rw15ObjectWithFrameE", !21, i64 0, !11, i64 16, !12, i64 32}
!21 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !12, i64 8}
!22 = !{!"_ZTSN2rw3V2dE", !23, i64 0, !23, i64 4}
!23 = !{!"float", !8, i64 0}
!24 = !{!"_ZTSN2rw6MatrixE", !25, i64 0, !7, i64 12, !25, i64 16, !7, i64 28, !25, i64 32, !7, i64 44, !25, i64 48, !7, i64 60}
!25 = !{!"_ZTSN2rw3V3dE", !23, i64 0, !23, i64 4, !23, i64 8}
!26 = !{!"_ZTSN2rw4BBoxE", !25, i64 0, !25, i64 12}
!27 = !{!"_ZTSN2rw9RawMatrixE", !25, i64 0, !23, i64 12, !25, i64 16, !23, i64 28, !25, i64 32, !23, i64 44, !25, i64 48, !23, i64 60}
!28 = !{!19, !12, i64 40}
!29 = !{!19, !12, i64 48}
!30 = !{!23, !23, i64 0}
!31 = !{!19, !23, i64 80}
!32 = !{!19, !7, i64 84}
!33 = !{!19, !12, i64 544}
!34 = !{!19, !12, i64 568}
!35 = !{!19, !12, i64 592}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass