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

; 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::LightChunkData" = type { float, float, float, float, float, i32 }
%"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 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw5Light6createEi(i32 noundef) #0 align 2

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

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

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

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) #3

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw5Light7destroyEv(ptr noundef nonnull align 8 dereferenceable(120)) #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw5Light10streamReadEPNS_6StreamE(ptr noundef %0) #0 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %"struct.rw::LightChunkData", align 4
  %6 = alloca %"struct.rw::Error", align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca float, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #6
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call noundef zeroext i1 @_ZN2rw9findChunkEPNS_6StreamEjPjS2_(ptr noundef %10, i32 noundef 1, ptr noundef null, ptr noundef %4)
  br i1 %11, label %23, label %12

12:                                               ; preds = %1
  br label %13

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

21:                                               ; preds = %13
  br label %22

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

23:                                               ; preds = %1
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call noundef i32 @_ZN2rw6Stream6read32EPvj(ptr noundef nonnull align 8 dereferenceable(8) %24, ptr noundef %5, i32 noundef 24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %26 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 5
  %27 = load i32, ptr %26, align 4, !tbaa !13
  %28 = lshr i32 %27, 16
  %29 = call noundef ptr @_ZN2rw5Light6createEi(i32 noundef %28)
  store ptr %29, ptr %8, align 8, !tbaa !5
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %23
  store ptr null, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %77

33:                                               ; preds = %23
  %34 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 0
  %35 = load float, ptr %34, align 4, !tbaa !16
  %36 = load ptr, ptr %8, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.rw::Light", ptr %36, i32 0, i32 1
  store float %35, ptr %37, align 8, !tbaa !17
  %38 = load ptr, ptr %8, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 1
  %40 = load float, ptr %39, align 4, !tbaa !23
  %41 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 2
  %42 = load float, ptr %41, align 4, !tbaa !24
  %43 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 3
  %44 = load float, ptr %43, align 4, !tbaa !25
  call void @_ZN2rw5Light8setColorEfff(ptr noundef nonnull align 8 dereferenceable(120) %38, float noundef %40, float noundef %42, float noundef %44)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %45 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 4
  %46 = load float, ptr %45, align 4, !tbaa !26
  store float %46, ptr %9, align 4, !tbaa !27
  %47 = load i32, ptr %4, align 4, !tbaa !28
  %48 = icmp uge i32 %47, 197376
  br i1 %48, label %49, label %53

49:                                               ; preds = %33
  %50 = load float, ptr %9, align 4, !tbaa !27
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.rw::Light", ptr %51, i32 0, i32 3
  store float %50, ptr %52, align 4, !tbaa !29
  br label %61

53:                                               ; preds = %33
  %54 = load float, ptr %9, align 4, !tbaa !27
  %55 = load float, ptr %9, align 4, !tbaa !27
  %56 = call float @llvm.fmuladd.f32(float %54, float %55, float 1.000000e+00)
  %57 = call float @sqrtf(float noundef %56) #6
  %58 = fdiv float -1.000000e+00, %57
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = getelementptr inbounds %"struct.rw::Light", ptr %59, i32 0, i32 3
  store float %58, ptr %60, align 4, !tbaa !29
  br label %61

61:                                               ; preds = %53, %49
  %62 = getelementptr inbounds %"struct.rw::LightChunkData", ptr %5, i32 0, i32 5
  %63 = load i32, ptr %62, align 4, !tbaa !13
  %64 = trunc i32 %63 to i8
  %65 = load ptr, ptr %8, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.rw::Light", ptr %65, i32 0, i32 0
  %67 = getelementptr inbounds %"struct.rw::ObjectWithFrame", ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds %"struct.rw::Object", ptr %67, i32 0, i32 2
  store i8 %64, ptr %68, align 2, !tbaa !30
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = call noundef zeroext i1 @_ZN2rw10PluginList10streamReadEPNS_6StreamEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw5Light9s_plglistE, ptr noundef %69, ptr noundef %70)
  br i1 %71, label %72, label %74

72:                                               ; preds = %61
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  store ptr %73, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %76

74:                                               ; preds = %61
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN2rw5Light7destroyEv(ptr noundef nonnull align 8 dereferenceable(120) %75)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %76

76:                                               ; preds = %74, %72
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  br label %77

77:                                               ; preds = %76, %32
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %78

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

declare noundef zeroext i1 @_ZN2rw9findChunkEPNS_6StreamEjPjS2_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) #3

declare noundef i32 @_ZN2rw6Stream6read32EPvj(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) #3

; Function Attrs: nounwind
declare float @sqrtf(float noundef) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare noundef zeroext i1 @_ZN2rw10PluginList10streamReadEPNS_6StreamEPv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #3

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 = { 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 #3 = { "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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 0}
!10 = !{!"_ZTSN2rw5ErrorE", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!14, !11, i64 20}
!14 = !{!"_ZTSN2rw14LightChunkDataE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !11, i64 20}
!15 = !{!"float", !7, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!18, !15, i64 40}
!18 = !{!"_ZTSN2rw5LightE", !19, i64 0, !15, i64 40, !22, i64 44, !15, i64 60, !21, i64 64, !6, i64 80, !21, i64 88, !6, i64 104, !6, i64 112}
!19 = !{!"_ZTSN2rw15ObjectWithFrameE", !20, i64 0, !21, i64 16, !6, i64 32}
!20 = !{!"_ZTSN2rw6ObjectE", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !6, i64 8}
!21 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!22 = !{!"_ZTSN2rw5RGBAfE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!23 = !{!14, !15, i64 4}
!24 = !{!14, !15, i64 8}
!25 = !{!14, !15, i64 12}
!26 = !{!14, !15, i64 16}
!27 = !{!15, !15, i64 0}
!28 = !{!11, !11, i64 0}
!29 = !{!18, !15, i64 60}
!30 = !{!18, !7, i64 2}


; 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::LightChunkData" = type { float, float, float, float, float, i32 }
%"struct.rw::Error" = type { i32, i32 }

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw5Light6createEi(i32 noundef) local_unnamed_addr #0 align 2

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

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

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

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) local_unnamed_addr #3

; 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 uwtable
declare dso_local void @_ZN2rw5Light7destroyEv(ptr noundef nonnull align 8 dereferenceable(120)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw5Light10streamReadEPNS_6StreamE(ptr noundef %0) local_unnamed_addr #0 align 2 {
  %2 = alloca i32, align 4
  %3 = alloca %"struct.rw::LightChunkData", align 4
  %4 = alloca %"struct.rw::Error", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %2) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  %5 = call noundef zeroext i1 @_ZN2rw9findChunkEPNS_6StreamEjPjS2_(ptr noundef %0, i32 noundef 1, ptr noundef null, ptr noundef nonnull %2)
  br i1 %5, label %13, label %6

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

13:                                               ; preds = %1
  %14 = call noundef i32 @_ZN2rw6Stream6read32EPvj(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull %3, i32 noundef 24)
  %15 = getelementptr inbounds i8, ptr %3, i64 20
  %16 = load i32, ptr %15, align 4, !tbaa !13
  %17 = lshr i32 %16, 16
  %18 = call noundef ptr @_ZN2rw5Light6createEi(i32 noundef %17)
  %19 = icmp eq ptr %18, null
  br i1 %19, label %43, label %20

20:                                               ; preds = %13
  %21 = load float, ptr %3, align 4, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %18, i64 40
  store float %21, ptr %22, align 8, !tbaa !17
  %23 = getelementptr inbounds i8, ptr %3, i64 4
  %24 = load float, ptr %23, align 4, !tbaa !23
  %25 = getelementptr inbounds i8, ptr %3, i64 8
  %26 = load float, ptr %25, align 4, !tbaa !24
  %27 = getelementptr inbounds i8, ptr %3, i64 12
  %28 = load float, ptr %27, align 4, !tbaa !25
  call void @_ZN2rw5Light8setColorEfff(ptr noundef nonnull align 8 dereferenceable(120) %18, float noundef %24, float noundef %26, float noundef %28)
  %29 = getelementptr inbounds i8, ptr %3, i64 16
  %30 = load float, ptr %29, align 4, !tbaa !26
  %31 = load i32, ptr %2, align 4, !tbaa !27
  %32 = icmp ugt i32 %31, 197375
  br i1 %32, label %36, label %33

33:                                               ; preds = %20
  %34 = call float @llvm.fmuladd.f32(float %30, float %30, float 1.000000e+00)
  %sqrt = call float @llvm.sqrt.f32(float %34)
  %35 = fdiv float -1.000000e+00, %sqrt
  br label %36

36:                                               ; preds = %20, %33
  %.sink = phi float [ %35, %33 ], [ %30, %20 ]
  %37 = getelementptr inbounds i8, ptr %18, i64 60
  store float %.sink, ptr %37, align 4
  %38 = load i32, ptr %15, align 4, !tbaa !13
  %39 = trunc i32 %38 to i8
  %40 = getelementptr inbounds i8, ptr %18, i64 2
  store i8 %39, ptr %40, align 2, !tbaa !28
  %41 = call noundef zeroext i1 @_ZN2rw10PluginList10streamReadEPNS_6StreamEPv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN2rw5Light9s_plglistE, ptr noundef nonnull %0, ptr noundef nonnull %18)
  br i1 %41, label %43, label %42

42:                                               ; preds = %36
  call void @_ZN2rw5Light7destroyEv(ptr noundef nonnull align 8 dereferenceable(120) %18)
  br label %43

43:                                               ; preds = %13, %36, %42, %6
  %.2 = phi ptr [ null, %6 ], [ null, %13 ], [ null, %42 ], [ %18, %36 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %2) #7
  ret ptr %.2
}

declare noundef zeroext i1 @_ZN2rw9findChunkEPNS_6StreamEjPjS2_(ptr noundef, i32 noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare noundef i32 @_ZN2rw6Stream6read32EPvj(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

declare noundef zeroext i1 @_ZN2rw10PluginList10streamReadEPNS_6StreamEPv(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) local_unnamed_addr #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.sqrt.f32(float) #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 = { 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 #3 = { "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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"_ZTSN2rw5ErrorE", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 4}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !7, i64 20}
!14 = !{!"_ZTSN2rw14LightChunkDataE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !7, i64 20}
!15 = !{!"float", !8, i64 0}
!16 = !{!14, !15, i64 0}
!17 = !{!18, !15, i64 40}
!18 = !{!"_ZTSN2rw5LightE", !19, i64 0, !15, i64 40, !22, i64 44, !15, i64 60, !21, i64 64, !12, i64 80, !21, i64 88, !12, i64 104, !12, i64 112}
!19 = !{!"_ZTSN2rw15ObjectWithFrameE", !20, i64 0, !21, i64 16, !12, i64 32}
!20 = !{!"_ZTSN2rw6ObjectE", !8, i64 0, !8, i64 1, !8, i64 2, !8, i64 3, !12, i64 8}
!21 = !{!"_ZTSN2rw6LLLinkE", !12, i64 0, !12, i64 8}
!22 = !{!"_ZTSN2rw5RGBAfE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12}
!23 = !{!14, !15, i64 4}
!24 = !{!14, !15, i64 8}
!25 = !{!14, !15, i64 12}
!26 = !{!14, !15, i64 16}
!27 = !{!7, !7, i64 0}
!28 = !{!18, !8, i64 2}


; Effective O3 passes: AggressiveInstCombinePass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,SROAPass,SimplifyCFGPass