; LLVM IR from aap/librw :: src/light.ll (ZN2rw5Light6createEi)

; 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::Light" = type { %"struct.rw::ObjectWithFrame", float, %"struct.rw::RGBAf", float, %"struct.rw::LLLink", ptr, %"struct.rw::LLLink", ptr, ptr }
%"struct.rw::ObjectWithFrame" = type { %"struct.rw::Object", %"struct.rw::LLLink", ptr }
%"struct.rw::Object" = type { i8, i8, i8, i8, ptr }
%"struct.rw::RGBAf" = type { float, float, float, float }

@_ZN2rw5Light12numAllocatedE = external dso_local global i32, align 4
@_ZN2rw5Light9s_plglistE = external dso_local global %"struct.rw::PluginList", align 8
@.str = external hidden unnamed_addr constant [72 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 [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

12:                                               ; preds = %1
  br label %13

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

22:                                               ; preds = %13
  br label %23

23:                                               ; preds = %22
  store ptr null, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %78

24:                                               ; preds = %1
  %25 = load i32, ptr @_ZN2rw5Light12numAllocatedE, align 4, !tbaa !5
  %26 = add nsw i32 %25, 1
  store i32 %26, ptr @_ZN2rw5Light12numAllocatedE, align 4, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !14
  %28 = getelementptr inbounds %"struct.rw::Light", ptr %27, i32 0, i32 0
  %29 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %28, i32 0, i32 0
  %30 = load i32, ptr %3, align 4, !tbaa !5
  %31 = trunc i32 %30 to i8
  call void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16) %29, i8 noundef zeroext 3, i8 noundef zeroext %31)
  %32 = load ptr, ptr %4, align 8, !tbaa !14
  %33 = getelementptr inbounds %"struct.rw::Light", ptr %32, i32 0, i32 0
  %34 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %33, i32 0, i32 2
  store ptr @_ZN2rwL9lightSyncEPNS_15ObjectWithFrameE, ptr %34, align 8, !tbaa !18
  %35 = load ptr, ptr %4, align 8, !tbaa !14
  %36 = getelementptr inbounds %"struct.rw::Light", ptr %35, i32 0, i32 1
  store float 0.000000e+00, ptr %36, align 8, !tbaa !24
  %37 = load ptr, ptr %4, align 8, !tbaa !14
  %38 = getelementptr inbounds %"struct.rw::Light", ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds %"struct.rw::RGBAf", ptr %38, i32 0, i32 0
  store float 1.000000e+00, ptr %39, align 4, !tbaa !25
  %40 = load ptr, ptr %4, align 8, !tbaa !14
  %41 = getelementptr inbounds %"struct.rw::Light", ptr %40, i32 0, i32 2
  %42 = getelementptr inbounds %"struct.rw::RGBAf", ptr %41, i32 0, i32 1
  store float 1.000000e+00, ptr %42, align 4, !tbaa !26
  %43 = load ptr, ptr %4, align 8, !tbaa !14
  %44 = getelementptr inbounds %"struct.rw::Light", ptr %43, i32 0, i32 2
  %45 = getelementptr inbounds %"struct.rw::RGBAf", ptr %44, i32 0, i32 2
  store float 1.000000e+00, ptr %45, align 4, !tbaa !27
  %46 = load ptr, ptr %4, align 8, !tbaa !14
  %47 = getelementptr inbounds %"struct.rw::Light", ptr %46, i32 0, i32 2
  %48 = getelementptr inbounds %"struct.rw::RGBAf", ptr %47, i32 0, i32 3
  store float 1.000000e+00, ptr %48, align 4, !tbaa !28
  %49 = load ptr, ptr %4, align 8, !tbaa !14
  %50 = getelementptr inbounds %"struct.rw::Light", ptr %49, i32 0, i32 3
  store float 1.000000e+00, ptr %50, align 4, !tbaa !29
  %51 = load ptr, ptr %4, align 8, !tbaa !14
  %52 = getelementptr inbounds %"struct.rw::Light", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds %"struct.rw::Object", ptr %53, i32 0, i32 3
  store i8 1, ptr %54, align 1, !tbaa !30
  %55 = load ptr, ptr %4, align 8, !tbaa !14
  %56 = getelementptr inbounds %"struct.rw::Light", ptr %55, i32 0, i32 0
  %57 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %"struct.rw::Object", ptr %57, i32 0, i32 2
  store i8 3, ptr %58, align 2, !tbaa !31
  %59 = load ptr, ptr %4, align 8, !tbaa !14
  %60 = getelementptr inbounds %"struct.rw::Light", ptr %59, i32 0, i32 4
  call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %60)
  %61 = load ptr, ptr %4, align 8, !tbaa !14
  %62 = getelementptr inbounds %"struct.rw::Light", ptr %61, i32 0, i32 5
  store ptr null, ptr %62, align 8, !tbaa !32
  %63 = load ptr, ptr %4, align 8, !tbaa !14
  %64 = getelementptr inbounds %"struct.rw::Light", ptr %63, i32 0, i32 6
  call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %64)
  %65 = load ptr, ptr %4, align 8, !tbaa !14
  %66 = getelementptr inbounds %"struct.rw::Light", ptr %65, i32 0, i32 7
  store ptr null, ptr %66, align 8, !tbaa !33
  %67 = load ptr, ptr %4, align 8, !tbaa !14
  %68 = getelementptr inbounds %"struct.rw::Light", ptr %67, i32 0, i32 0
  %69 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %68, i32 0, i32 2
  %70 = load ptr, ptr %69, align 8, !tbaa !18
  %71 = load ptr, ptr %4, align 8, !tbaa !14
  %72 = getelementptr inbounds %"struct.rw::Light", ptr %71, i32 0, i32 8
  store ptr %70, ptr %72, align 8, !tbaa !34
  %73 = load ptr, ptr %4, align 8, !tbaa !14
  %74 = getelementptr inbounds %"struct.rw::Light", ptr %73, i32 0, i32 0
  %75 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %74, i32 0, i32 2
  store ptr @_ZN2rwL14worldLightSyncEPNS_15ObjectWithFrameE, ptr %75, align 8, !tbaa !18
  %76 = load ptr, ptr %4, align 8, !tbaa !14
  call void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw5Light9s_plglistE, ptr noundef %76)
  %77 = load ptr, ptr %4, align 8, !tbaa !14
  store ptr %77, ptr %2, align 8
  store i32 1, ptr %6, align 4
  br label %78

78:                                               ; preds = %24, %23
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  %79 = load ptr, ptr %2, align 8
  ret ptr %79
}

; 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 nounwind uwtable
declare hidden void @_ZN2rwL9lightSyncEPNS_15ObjectWithFrameE(ptr noundef) #5

; 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 @_ZN2rwL14worldLightSyncEPNS_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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"_ZTSN2rw10PluginListE", !6, i64 0, !6, i64 4, !11, i64 8}
!11 = !{!"_ZTSN2rw8LinkListE", !12, i64 0}
!12 = !{!"_ZTSN2rw6LLLinkE", !13, i64 0, !13, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !6, i64 0}
!16 = !{!"_ZTSN2rw5ErrorE", !6, i64 0, !6, i64 4}
!17 = !{!16, !6, i64 4}
!18 = !{!19, !13, i64 32}
!19 = !{!"_ZTSN2rw5LightE", !20, i64 0, !22, i64 40, !23, i64 44, !22, i64 60, !12, i64 64, !13, i64 80, !12, i64 88, !13, i64 104, !13, i64 112}
!20 = !{!"_ZTSN2rw15ObjectWithFrameE", !21, i64 0, !12, i64 16, !13, i64 32}
!21 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !13, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSN2rw5RGBAfE", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12}
!24 = !{!19, !22, i64 40}
!25 = !{!19, !22, i64 44}
!26 = !{!19, !22, i64 48}
!27 = !{!19, !22, i64 52}
!28 = !{!19, !22, i64 56}
!29 = !{!19, !22, i64 60}
!30 = !{!19, !7, i64 3}
!31 = !{!19, !7, i64 2}
!32 = !{!19, !13, i64 80}
!33 = !{!19, !13, i64 104}
!34 = !{!19, !13, i64 112}


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

@_ZN2rw5Light12numAllocatedE = external dso_local local_unnamed_addr global i32, align 4
@_ZN2rw5Light9s_plglistE = external dso_local global %"struct.rw::PluginList", align 8
@.str = external hidden unnamed_addr constant [72 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 [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [4 x i8], align 1

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

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

15:                                               ; preds = %1
  %16 = load i32, ptr @_ZN2rw5Light12numAllocatedE, align 4, !tbaa !17
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr @_ZN2rw5Light12numAllocatedE, align 4, !tbaa !17
  %18 = trunc i32 %0 to i8
  tail call void @_ZN2rw6Object4initEhh(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 noundef zeroext 3, i8 noundef zeroext %18)
  %19 = getelementptr inbounds i8, ptr %5, i64 32
  store ptr @_ZN2rwL9lightSyncEPNS_15ObjectWithFrameE, ptr %19, align 8, !tbaa !18
  %20 = getelementptr inbounds i8, ptr %5, i64 40
  store <4 x float> <float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, ptr %20, align 8, !tbaa !24
  %21 = getelementptr inbounds i8, ptr %5, i64 56
  store <2 x float> <float 1.000000e+00, float 1.000000e+00>, ptr %21, align 4, !tbaa !24
  %22 = getelementptr inbounds i8, ptr %5, i64 3
  store i8 1, ptr %22, align 1, !tbaa !25
  %23 = getelementptr inbounds i8, ptr %5, i64 2
  store i8 3, ptr %23, align 2, !tbaa !26
  %24 = getelementptr inbounds i8, ptr %5, i64 64
  tail call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %24)
  %25 = getelementptr inbounds i8, ptr %5, i64 80
  store ptr null, ptr %25, align 8, !tbaa !27
  %26 = getelementptr inbounds i8, ptr %5, i64 88
  tail call void @_ZN2rw6LLLink4initEv(ptr noundef nonnull align 8 dereferenceable(16) %26)
  %27 = getelementptr inbounds i8, ptr %5, i64 104
  store ptr null, ptr %27, align 8, !tbaa !28
  %28 = load ptr, ptr %19, align 8, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %5, i64 112
  store ptr %28, ptr %29, align 8, !tbaa !29
  store ptr @_ZN2rwL14worldLightSyncEPNS_15ObjectWithFrameE, ptr %19, align 8, !tbaa !18
  tail call void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw5Light9s_plglistE, ptr noundef nonnull %5)
  br label %30

30:                                               ; preds = %15, %7
  ret ptr %5
}

; 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 nounwind uwtable
declare hidden void @_ZN2rwL9lightSyncEPNS_15ObjectWithFrameE(ptr noundef) #5

; 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 @_ZN2rwL14worldLightSyncEPNS_15ObjectWithFrameE(ptr noundef) #0

declare void @_ZN2rw10PluginList9constructEPv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #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 = { 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 = { nounwind }
attributes #7 = { 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 = !{!"_ZTSN2rw5LightE", !20, i64 0, !22, i64 40, !23, i64 44, !22, i64 60, !11, i64 64, !12, i64 80, !11, i64 88, !12, i64 104, !12, i64 112}
!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 = !{!"float", !8, i64 0}
!23 = !{!"_ZTSN2rw5RGBAfE", !22, i64 0, !22, i64 4, !22, i64 8, !22, i64 12}
!24 = !{!22, !22, i64 0}
!25 = !{!19, !8, i64 3}
!26 = !{!19, !8, i64 2}
!27 = !{!19, !12, i64 80}
!28 = !{!19, !12, i64 104}
!29 = !{!19, !12, i64 112}


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