; LLVM IR from ysyesilyurt/ComputerGraphics :: ForwardRenderingPipeline/Scene.ll (ZN5Scene15initializeImageEP6Camera)

; 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.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Scene = type { %class.Color, i8, i32, %"class.std::vector.25", %"class.std::vector.35", %"class.std::vector.40", %"class.std::vector.45", %"class.std::vector.15", %"class.std::vector.20", %"class.std::vector.10", %"class.std::vector.50" }
%class.Color = type { double, double, double }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<std::vector<Color>, std::allocator<std::vector<Color>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<Color>, std::allocator<std::vector<Color>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<Color>, std::allocator<std::vector<Color>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<Color>, std::allocator<std::vector<Color>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.35" = type { %"struct.std::_Vector_base.36" }
%"struct.std::_Vector_base.36" = type { %"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl" }
%"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Camera *, std::allocator<Camera *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.40" = type { %"struct.std::_Vector_base.41" }
%"struct.std::_Vector_base.41" = type { %"struct.std::_Vector_base<Vec3 *, std::allocator<Vec3 *>>::_Vector_impl" }
%"struct.std::_Vector_base<Vec3 *, std::allocator<Vec3 *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Vec3 *, std::allocator<Vec3 *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Vec3 *, std::allocator<Vec3 *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.45" = type { %"struct.std::_Vector_base.46" }
%"struct.std::_Vector_base.46" = type { %"struct.std::_Vector_base<Color *, std::allocator<Color *>>::_Vector_impl" }
%"struct.std::_Vector_base<Color *, std::allocator<Color *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Color *, std::allocator<Color *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Color *, std::allocator<Color *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<Scaling *, std::allocator<Scaling *>>::_Vector_impl" }
%"struct.std::_Vector_base<Scaling *, std::allocator<Scaling *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Scaling *, std::allocator<Scaling *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Scaling *, std::allocator<Scaling *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<Rotation *, std::allocator<Rotation *>>::_Vector_impl" }
%"struct.std::_Vector_base<Rotation *, std::allocator<Rotation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Rotation *, std::allocator<Rotation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Rotation *, std::allocator<Rotation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Translation *, std::allocator<Translation *>>::_Vector_impl" }
%"struct.std::_Vector_base<Translation *, std::allocator<Translation *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Translation *, std::allocator<Translation *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Translation *, std::allocator<Translation *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.50" = type { %"struct.std::_Vector_base.51" }
%"struct.std::_Vector_base.51" = type { %"struct.std::_Vector_base<Model *, std::allocator<Model *>>::_Vector_impl" }
%"struct.std::_Vector_base<Model *, std::allocator<Model *>>::_Vector_impl" = type { %"struct.std::_Vector_base<Model *, std::allocator<Model *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Model *, std::allocator<Model *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Camera = type { i32, [4 x i8], %class.Vec3, %class.Vec3, %class.Vec3, %class.Vec3, %class.Vec3, double, double, double, double, double, double, i32, i32, %"class.std::__cxx11::basic_string" }
%class.Vec3 = type <{ double, double, double, i32, [4 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

; 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene15initializeImageEP6Camera(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::vector.30", align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8
  %14 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 3
  %15 = call noundef zeroext i1 @_ZNKSt6vectorIS_I5ColorSaIS0_EESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %14) #3
  br i1 %15, label %16, label %54

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %45, %16
  %18 = load i32, ptr %5, align 4, !tbaa !9
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %class.Camera, ptr %19, i32 0, i32 13
  %21 = load i32, ptr %20, align 8, !tbaa !11
  %22 = icmp slt i32 %18, %21
  br i1 %22, label %24, label %23

23:                                               ; preds = %17
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %53

24:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #3
  call void @_ZNSt6vectorI5ColorSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %25

25:                                               ; preds = %35, %24
  %26 = load i32, ptr %8, align 4, !tbaa !9
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds %class.Camera, ptr %27, i32 0, i32 14
  %29 = load i32, ptr %28, align 4, !tbaa !18
  %30 = icmp slt i32 %26, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %25
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %42

32:                                               ; preds = %25
  %33 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 0
  invoke void @_ZNSt6vectorI5ColorSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %33)
          to label %34 unwind label %38

34:                                               ; preds = %32
  br label %35

35:                                               ; preds = %34
  %36 = load i32, ptr %8, align 4, !tbaa !9
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %8, align 4, !tbaa !9
  br label %25, !llvm.loop !19

38:                                               ; preds = %32
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %9, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  br label %52

42:                                               ; preds = %31
  %43 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 3
  invoke void @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %44 unwind label %48

44:                                               ; preds = %42
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %5, align 4, !tbaa !9
  br label %17, !llvm.loop !21

48:                                               ; preds = %42
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %9, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %10, align 4
  br label %52

52:                                               ; preds = %48, %38
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  br label %113

53:                                               ; preds = %23
  br label %112

54:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %55

55:                                               ; preds = %108, %54
  %56 = load i32, ptr %11, align 4, !tbaa !9
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.Camera, ptr %57, i32 0, i32 13
  %59 = load i32, ptr %58, align 8, !tbaa !11
  %60 = icmp slt i32 %56, %59
  br i1 %60, label %62, label %61

61:                                               ; preds = %55
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %111

62:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %104, %62
  %64 = load i32, ptr %12, align 4, !tbaa !9
  %65 = load ptr, ptr %4, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Camera, ptr %65, i32 0, i32 14
  %67 = load i32, ptr %66, align 4, !tbaa !18
  %68 = icmp slt i32 %64, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %63
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  br label %107

70:                                               ; preds = %63
  %71 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 0
  %72 = getelementptr inbounds %class.Color, ptr %71, i32 0, i32 0
  %73 = load double, ptr %72, align 8, !tbaa !22
  %74 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 3
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %76) #3
  %78 = load i32, ptr %12, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79) #3
  %81 = getelementptr inbounds %class.Color, ptr %80, i32 0, i32 0
  store double %73, ptr %81, align 8, !tbaa !58
  %82 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 0
  %83 = getelementptr inbounds %class.Color, ptr %82, i32 0, i32 1
  %84 = load double, ptr %83, align 8, !tbaa !59
  %85 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 3
  %86 = load i32, ptr %11, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %87) #3
  %89 = load i32, ptr %12, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90) #3
  %92 = getelementptr inbounds %class.Color, ptr %91, i32 0, i32 1
  store double %84, ptr %92, align 8, !tbaa !60
  %93 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 0
  %94 = getelementptr inbounds %class.Color, ptr %93, i32 0, i32 2
  %95 = load double, ptr %94, align 8, !tbaa !61
  %96 = getelementptr inbounds %class.Scene, ptr %13, i32 0, i32 3
  %97 = load i32, ptr %11, align 4, !tbaa !9
  %98 = sext i32 %97 to i64
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %98) #3
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = sext i32 %100 to i64
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %101) #3
  %103 = getelementptr inbounds %class.Color, ptr %102, i32 0, i32 2
  store double %95, ptr %103, align 8, !tbaa !62
  br label %104

104:                                              ; preds = %70
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %12, align 4, !tbaa !9
  br label %63, !llvm.loop !63

107:                                              ; preds = %69
  br label %108

108:                                              ; preds = %107
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %11, align 4, !tbaa !9
  br label %55, !llvm.loop !64

111:                                              ; preds = %61
  br label %112

112:                                              ; preds = %111, %53
  ret void

113:                                              ; preds = %52
  %114 = load ptr, ptr %9, align 8
  %115 = load i32, ptr %10, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIS_I5ColorSaIS0_EESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5ColorSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 216}
!12 = !{!"_ZTS6Camera", !10, i64 0, !13, i64 8, !13, i64 40, !13, i64 72, !13, i64 104, !13, i64 136, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !14, i64 208, !10, i64 216, !10, i64 220, !15, i64 224}
!13 = !{!"_ZTS4Vec3", !14, i64 0, !14, i64 8, !14, i64 16, !10, i64 24}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{!12, !10, i64 220}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = !{!23, !14, i64 0}
!23 = !{!"_ZTS5Scene", !24, i64 0, !25, i64 24, !10, i64 28, !26, i64 32, !30, i64 56, !34, i64 80, !38, i64 104, !42, i64 128, !46, i64 152, !50, i64 176, !54, i64 200}
!24 = !{!"_ZTS5Color", !14, i64 0, !14, i64 8, !14, i64 16}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSSt6vectorIS_I5ColorSaIS0_EESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!30 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!34 = !{!"_ZTSSt6vectorIP4Vec3SaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIP4Vec3SaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP4Vec3SaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP4Vec3SaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!38 = !{!"_ZTSSt6vectorIP5ColorSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIP5ColorSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP5ColorSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP5ColorSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!42 = !{!"_ZTSSt6vectorIP7ScalingSaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIP7ScalingSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIP7ScalingSaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP7ScalingSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!46 = !{!"_ZTSSt6vectorIP8RotationSaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIP8RotationSaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIP8RotationSaIS1_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIP8RotationSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!"_ZTSSt6vectorIP11TranslationSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIP11TranslationSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP11TranslationSaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP11TranslationSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!54 = !{!"_ZTSSt6vectorIP5ModelSaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIP5ModelSaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIP5ModelSaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIP5ModelSaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!58 = !{!24, !14, i64 0}
!59 = !{!23, !14, i64 8}
!60 = !{!24, !14, i64 8}
!61 = !{!23, !14, i64 16}
!62 = !{!24, !14, i64 16}
!63 = distinct !{!63, !20}
!64 = distinct !{!64, !20}


; 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.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl" = type { %"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Color, std::allocator<Color>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN5Scene15initializeImageEP6Camera(ptr noundef nonnull align 8 dereferenceable(224) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.30", align 8
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = tail call noundef zeroext i1 @_ZNKSt6vectorIS_I5ColorSaIS0_EESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %4) #3
  %6 = getelementptr inbounds i8, ptr %1, i64 216
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = icmp sgt i32 %7, 0
  br i1 %5, label %.preheader, label %.preheader27

.preheader27:                                     ; preds = %2
  br i1 %8, label %.preheader26.lr.ph, label %.loopexit

.preheader26.lr.ph:                               ; preds = %.preheader27
  %9 = getelementptr inbounds i8, ptr %1, i64 220
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = load i32, ptr %9, align 4, !tbaa !16
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.preheader26, label %.loopexit

.preheader:                                       ; preds = %2
  br i1 %8, label %.lr.ph36, label %.loopexit

.lr.ph36:                                         ; preds = %.preheader
  %14 = getelementptr inbounds i8, ptr %1, i64 220
  br label %15

15:                                               ; preds = %.lr.ph36, %24
  %.02435 = phi i32 [ 0, %.lr.ph36 ], [ %25, %24 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #3
  call void @_ZNSt6vectorI5ColorSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  %16 = load i32, ptr %14, align 4, !tbaa !16
  %17 = icmp sgt i32 %16, 0
  br i1 %17, label %.lr.ph33, label %._crit_edge34

._crit_edge34:                                    ; preds = %18, %15
  invoke void @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %3)
          to label %24 unwind label %28

.lr.ph33:                                         ; preds = %15, %18
  %.02331 = phi i32 [ %19, %18 ], [ 0, %15 ]
  invoke void @_ZNSt6vectorI5ColorSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %0)
          to label %18 unwind label %22

18:                                               ; preds = %.lr.ph33
  %19 = add nuw nsw i32 %.02331, 1
  %20 = load i32, ptr %14, align 4, !tbaa !16
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %.lr.ph33, label %._crit_edge34, !llvm.loop !17

22:                                               ; preds = %.lr.ph33
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %30

24:                                               ; preds = %._crit_edge34
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  %25 = add nuw nsw i32 %.02435, 1
  %26 = load i32, ptr %6, align 8, !tbaa !5
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %15, label %.loopexit, !llvm.loop !19

28:                                               ; preds = %._crit_edge34
  %29 = landingpad { ptr, i32 }
          cleanup
  br label %30

30:                                               ; preds = %28, %22
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %29, %28 ]
  call void @_ZNSt6vectorI5ColorSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #3
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #3
  resume { ptr, i32 } %.pn

.preheader26:                                     ; preds = %.preheader26.lr.ph, %._crit_edge
  %31 = phi i32 [ %34, %._crit_edge ], [ %7, %.preheader26.lr.ph ]
  %32 = phi i32 [ %35, %._crit_edge ], [ %12, %.preheader26.lr.ph ]
  %indvars.iv40 = phi i64 [ %indvars.iv.next41, %._crit_edge ], [ 0, %.preheader26.lr.ph ]
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i32, ptr %6, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader26
  %34 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %31, %.preheader26 ]
  %35 = phi i32 [ %49, %._crit_edge.loopexit ], [ %32, %.preheader26 ]
  %indvars.iv.next41 = add nuw nsw i64 %indvars.iv40, 1
  %36 = sext i32 %34 to i64
  %37 = icmp slt i64 %indvars.iv.next41, %36
  br i1 %37, label %.preheader26, label %.loopexit, !llvm.loop !20

.lr.ph:                                           ; preds = %.preheader26, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader26 ]
  %38 = load double, ptr %0, align 8, !tbaa !22
  %39 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv40) #3
  %40 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv) #3
  store double %38, ptr %40, align 8, !tbaa !58
  %41 = load double, ptr %10, align 8, !tbaa !59
  %42 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv40) #3
  %43 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %indvars.iv) #3
  %44 = getelementptr inbounds i8, ptr %43, i64 8
  store double %41, ptr %44, align 8, !tbaa !60
  %45 = load double, ptr %11, align 8, !tbaa !61
  %46 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv40) #3
  %47 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI5ColorSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %46, i64 noundef %indvars.iv) #3
  %48 = getelementptr inbounds i8, ptr %47, i64 16
  store double %45, ptr %48, align 8, !tbaa !62
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %49 = load i32, ptr %9, align 4, !tbaa !16
  %50 = sext i32 %49 to i64
  %51 = icmp slt i64 %indvars.iv.next, %50
  br i1 %51, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !63

.loopexit:                                        ; preds = %._crit_edge, %24, %.preheader26.lr.ph, %.preheader27, %.preheader
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt6vectorIS_I5ColorSaIS0_EESaIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorI5ColorSaIS0_EE9push_backERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIS_I5ColorSaIS0_EESaIS2_EE9push_backERKS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

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, !7, i64 216}
!6 = !{!"_ZTS6Camera", !7, i64 0, !10, i64 8, !10, i64 40, !10, i64 72, !10, i64 104, !10, i64 136, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192, !11, i64 200, !11, i64 208, !7, i64 216, !7, i64 220, !12, i64 224}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS4Vec3", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24}
!11 = !{!"double", !8, i64 0}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !15, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 220}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}
!22 = !{!23, !11, i64 0}
!23 = !{!"_ZTS5Scene", !24, i64 0, !25, i64 24, !7, i64 28, !26, i64 32, !30, i64 56, !34, i64 80, !38, i64 104, !42, i64 128, !46, i64 152, !50, i64 176, !54, i64 200}
!24 = !{!"_ZTS5Color", !11, i64 0, !11, i64 8, !11, i64 16}
!25 = !{!"bool", !8, i64 0}
!26 = !{!"_ZTSSt6vectorIS_I5ColorSaIS0_EESaIS2_EE", !27, i64 0}
!27 = !{!"_ZTSSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE12_Vector_implE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseISt6vectorI5ColorSaIS1_EESaIS3_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!30 = !{!"_ZTSSt6vectorIP6CameraSaIS1_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIP6CameraSaIS1_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIP6CameraSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!34 = !{!"_ZTSSt6vectorIP4Vec3SaIS1_EE", !35, i64 0}
!35 = !{!"_ZTSSt12_Vector_baseIP4Vec3SaIS1_EE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseIP4Vec3SaIS1_EE12_Vector_implE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIP4Vec3SaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!38 = !{!"_ZTSSt6vectorIP5ColorSaIS1_EE", !39, i64 0}
!39 = !{!"_ZTSSt12_Vector_baseIP5ColorSaIS1_EE", !40, i64 0}
!40 = !{!"_ZTSNSt12_Vector_baseIP5ColorSaIS1_EE12_Vector_implE", !41, i64 0}
!41 = !{!"_ZTSNSt12_Vector_baseIP5ColorSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!42 = !{!"_ZTSSt6vectorIP7ScalingSaIS1_EE", !43, i64 0}
!43 = !{!"_ZTSSt12_Vector_baseIP7ScalingSaIS1_EE", !44, i64 0}
!44 = !{!"_ZTSNSt12_Vector_baseIP7ScalingSaIS1_EE12_Vector_implE", !45, i64 0}
!45 = !{!"_ZTSNSt12_Vector_baseIP7ScalingSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!46 = !{!"_ZTSSt6vectorIP8RotationSaIS1_EE", !47, i64 0}
!47 = !{!"_ZTSSt12_Vector_baseIP8RotationSaIS1_EE", !48, i64 0}
!48 = !{!"_ZTSNSt12_Vector_baseIP8RotationSaIS1_EE12_Vector_implE", !49, i64 0}
!49 = !{!"_ZTSNSt12_Vector_baseIP8RotationSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!50 = !{!"_ZTSSt6vectorIP11TranslationSaIS1_EE", !51, i64 0}
!51 = !{!"_ZTSSt12_Vector_baseIP11TranslationSaIS1_EE", !52, i64 0}
!52 = !{!"_ZTSNSt12_Vector_baseIP11TranslationSaIS1_EE12_Vector_implE", !53, i64 0}
!53 = !{!"_ZTSNSt12_Vector_baseIP11TranslationSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!54 = !{!"_ZTSSt6vectorIP5ModelSaIS1_EE", !55, i64 0}
!55 = !{!"_ZTSSt12_Vector_baseIP5ModelSaIS1_EE", !56, i64 0}
!56 = !{!"_ZTSNSt12_Vector_baseIP5ModelSaIS1_EE12_Vector_implE", !57, i64 0}
!57 = !{!"_ZTSNSt12_Vector_baseIP5ModelSaIS1_EE17_Vector_impl_dataE", !14, i64 0, !14, i64 8, !14, i64 16}
!58 = !{!24, !11, i64 0}
!59 = !{!23, !11, i64 8}
!60 = !{!24, !11, i64 8}
!61 = !{!23, !11, i64 16}
!62 = !{!24, !11, i64 16}
!63 = distinct !{!63, !18}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass