; LLVM IR from Razakhel/RaZ :: src/RaZ/Data/Mesh.ll (ZN3Raz4Mesh14createUvSphereERKNS_6SphereEjj)

; 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.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"struct.Raz::Vertex" = type { %"class.Raz::Vector", %"class.Raz::Vector.0", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Vector.0" = type { %"struct.std::array.1" }
%"struct.std::array.1" = type { [2 x float] }
%"class.Raz::Mesh" = type { %"class.Raz::Component", %"class.std::vector", %"class.Raz::AABB" }
%"class.Raz::Component" = type { ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Raz::Submesh, std::allocator<Raz::Submesh>>::_Vector_impl" }
%"struct.std::_Vector_base<Raz::Submesh, std::allocator<Raz::Submesh>>::_Vector_impl" = type { %"struct.std::_Vector_base<Raz::Submesh, std::allocator<Raz::Submesh>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Raz::Submesh, std::allocator<Raz::Submesh>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Raz::AABB" = type { %"class.Raz::Shape", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Shape" = type { ptr }

; 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN3Raz7SubmeshESaIS1_EE12emplace_backIJEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh11getVerticesEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh18getTriangleIndicesEv(ptr noundef nonnull align 8 dereferenceable(104)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz4Mesh14createUvSphereERKNS_6SphereEjj(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) #4 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca %"class.Raz::Vector", align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca %"struct.Raz::Vertex", align 4
  %24 = alloca %"class.Raz::Vector", align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca %"class.Raz::Vector.0", align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca %"class.Raz::Vector", align 4
  %32 = alloca %"class.Raz::Vector", align 4
  %33 = alloca { <2 x float>, float }, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %51 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %52 = getelementptr inbounds %"class.Raz::Mesh", ptr %51, i32 0, i32 1
  %53 = call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN3Raz7SubmeshESaIS1_EE12emplace_backIJEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %52)
  store ptr %53, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh11getVerticesEv(ptr noundef nonnull align 8 dereferenceable(104) %54)
  store ptr %55, ptr %10, align 8, !tbaa !5
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load i32, ptr %8, align 4, !tbaa !9
  %58 = add i32 %57, 1
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = add i32 %59, 1
  %61 = mul i32 %58, %60
  %62 = zext i32 %61 to i64
  call void @_ZNSt6vectorIN3Raz6VertexESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %62)
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  %63 = load i32, ptr %7, align 4, !tbaa !9
  %64 = uitofp i32 %63 to float
  %65 = fdiv float 0x401921FB60000000, %64
  store float %65, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %66 = load i32, ptr %8, align 4, !tbaa !9
  %67 = uitofp i32 %66 to float
  %68 = fdiv float 0x400921FB60000000, %67
  store float %68, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 12, ptr %13) #7
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %69)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %70, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !9
  br label %71

71:                                               ; preds = %144, %4
  %72 = load i32, ptr %14, align 4, !tbaa !9
  %73 = load i32, ptr %8, align 4, !tbaa !9
  %74 = icmp ule i32 %72, %73
  br i1 %74, label %76, label %75

75:                                               ; preds = %71
  store i32 2, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %147

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  %77 = load i32, ptr %14, align 4, !tbaa !9
  %78 = uitofp i32 %77 to float
  %79 = load float, ptr %12, align 4, !tbaa !11
  %80 = fneg float %78
  %81 = call float @llvm.fmuladd.f32(float %80, float %79, float 0x3FF921FB60000000)
  store float %81, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  %82 = load ptr, ptr %6, align 8, !tbaa !5
  %83 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %82)
  %84 = load float, ptr %16, align 4, !tbaa !11
  %85 = call noundef float @_ZSt3cosf(float noundef %84)
  %86 = fmul float %83, %85
  store float %86, ptr %17, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %87)
  %89 = load float, ptr %16, align 4, !tbaa !11
  %90 = call noundef float @_ZSt3sinf(float noundef %89)
  %91 = fmul float %88, %90
  store float %91, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %92

92:                                               ; preds = %140, %76
  %93 = load i32, ptr %19, align 4, !tbaa !9
  %94 = load i32, ptr %7, align 4, !tbaa !9
  %95 = icmp ule i32 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 5, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %143

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %98 = load i32, ptr %19, align 4, !tbaa !9
  %99 = uitofp i32 %98 to float
  %100 = load float, ptr %11, align 4, !tbaa !11
  %101 = fmul float %99, %100
  store float %101, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %102 = load float, ptr %17, align 4, !tbaa !11
  %103 = load float, ptr %20, align 4, !tbaa !11
  %104 = call noundef float @_ZSt3cosf(float noundef %103)
  %105 = fmul float %102, %104
  store float %105, ptr %21, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #7
  %106 = load float, ptr %17, align 4, !tbaa !11
  %107 = load float, ptr %20, align 4, !tbaa !11
  %108 = call noundef float @_ZSt3sinf(float noundef %107)
  %109 = fmul float %106, %108
  store float %109, ptr %22, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 44, ptr %23) #7
  call void @_ZN3Raz6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(44) %23) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  %110 = load float, ptr %21, align 4, !tbaa !11
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1xEv(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  %112 = load float, ptr %111, align 4, !tbaa !11
  %113 = fadd float %110, %112
  store float %113, ptr %25, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  %114 = load float, ptr %18, align 4, !tbaa !11
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1yEv(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  %116 = load float, ptr %115, align 4, !tbaa !11
  %117 = fadd float %114, %116
  store float %117, ptr %26, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %118 = load float, ptr %22, align 4, !tbaa !11
  %119 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1zEv(ptr noundef nonnull align 4 dereferenceable(12) %13) #7
  %120 = load float, ptr %119, align 4, !tbaa !11
  %121 = fadd float %118, %120
  store float %121, ptr %27, align 4, !tbaa !11
  call void @_ZN3Raz6VectorIfLm3EEC2IJfffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %24, ptr noundef nonnull align 4 dereferenceable(4) %25, ptr noundef nonnull align 4 dereferenceable(4) %26, ptr noundef nonnull align 4 dereferenceable(4) %27) #7
  %122 = getelementptr inbounds %"struct.Raz::Vertex", ptr %23, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 4 %24, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #7
  %123 = load i32, ptr %19, align 4, !tbaa !9
  %124 = uitofp i32 %123 to float
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = uitofp i32 %125 to float
  %127 = fdiv float %124, %126
  store float %127, ptr %29, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #7
  %128 = load i32, ptr %14, align 4, !tbaa !9
  %129 = uitofp i32 %128 to float
  %130 = load i32, ptr %8, align 4, !tbaa !9
  %131 = uitofp i32 %130 to float
  %132 = fdiv float %129, %131
  store float %132, ptr %30, align 4, !tbaa !11
  call void @_ZN3Raz6VectorIfLm2EEC2IJffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29, ptr noundef nonnull align 4 dereferenceable(4) %30) #7
  %133 = getelementptr inbounds %"struct.Raz::Vertex", ptr %23, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 4 %28, i64 8, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr %32) #7
  call void @_ZN3Raz6VectorIfLm3EEC2IJRKfS4_S4_EvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %32, ptr noundef nonnull align 4 dereferenceable(4) %21, ptr noundef nonnull align 4 dereferenceable(4) %18, ptr noundef nonnull align 4 dereferenceable(4) %22) #7
  %134 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %32) #7
  %135 = getelementptr inbounds %"class.Raz::Vector", ptr %31, i32 0, i32 0
  %136 = getelementptr inbounds %"struct.std::array", ptr %135, i32 0, i32 0
  store { <2 x float>, float } %134, ptr %33, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %136, ptr align 8 %33, i64 12, i1 false)
  %137 = getelementptr inbounds %"struct.Raz::Vertex", ptr %23, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %137, ptr align 4 %31, i64 12, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 12, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %31) #7
  %138 = load ptr, ptr %10, align 8, !tbaa !5
  %139 = call noundef nonnull align 4 dereferenceable(44) ptr @_ZNSt6vectorIN3Raz6VertexESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %138, ptr noundef nonnull align 4 dereferenceable(44) %23)
  call void @llvm.lifetime.end.p0(i64 44, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %140

140:                                              ; preds = %97
  %141 = load i32, ptr %19, align 4, !tbaa !9
  %142 = add i32 %141, 1
  store i32 %142, ptr %19, align 4, !tbaa !9
  br label %92, !llvm.loop !16

143:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %14, align 4, !tbaa !9
  %146 = add i32 %145, 1
  store i32 %146, ptr %14, align 4, !tbaa !9
  br label %71, !llvm.loop !18

147:                                              ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %34) #7
  %148 = load ptr, ptr %9, align 8, !tbaa !5
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh18getTriangleIndicesEv(ptr noundef nonnull align 8 dereferenceable(104) %148)
  store ptr %149, ptr %34, align 8, !tbaa !5
  %150 = load ptr, ptr %34, align 8, !tbaa !5
  %151 = load i32, ptr %7, align 4, !tbaa !9
  %152 = mul i32 %151, 6
  %153 = load i32, ptr %8, align 4, !tbaa !9
  %154 = sub i32 %153, 2
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = mul i32 %154, %155
  %157 = mul i32 %156, 6
  %158 = add i32 %152, %157
  %159 = zext i32 %158 to i64
  call void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %150, i64 noundef %159)
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #7
  store i32 0, ptr %35, align 4, !tbaa !9
  br label %160

160:                                              ; preds = %178, %147
  %161 = load i32, ptr %35, align 4, !tbaa !9
  %162 = load i32, ptr %7, align 4, !tbaa !9
  %163 = icmp ult i32 %161, %162
  br i1 %163, label %165, label %164

164:                                              ; preds = %160
  store i32 8, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #7
  br label %181

165:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #7
  %166 = load i32, ptr %7, align 4, !tbaa !9
  %167 = load i32, ptr %35, align 4, !tbaa !9
  %168 = add i32 %166, %167
  store i32 %168, ptr %36, align 4, !tbaa !9
  %169 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #7
  %170 = load i32, ptr %36, align 4, !tbaa !9
  %171 = add i32 %170, 1
  store i32 %171, ptr %37, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %169, ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #7
  %172 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #7
  %173 = load i32, ptr %35, align 4, !tbaa !9
  %174 = add i32 %173, 1
  store i32 %174, ptr %38, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %172, ptr noundef nonnull align 4 dereferenceable(4) %38)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #7
  %175 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #7
  %176 = load i32, ptr %36, align 4, !tbaa !9
  %177 = add i32 %176, 2
  store i32 %177, ptr %39, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %175, ptr noundef nonnull align 4 dereferenceable(4) %39)
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #7
  br label %178

178:                                              ; preds = %165
  %179 = load i32, ptr %35, align 4, !tbaa !9
  %180 = add i32 %179, 1
  store i32 %180, ptr %35, align 4, !tbaa !9
  br label %160, !llvm.loop !19

181:                                              ; preds = %164
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #7
  store i32 1, ptr %40, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %223, %181
  %183 = load i32, ptr %40, align 4, !tbaa !9
  %184 = load i32, ptr %8, align 4, !tbaa !9
  %185 = sub i32 %184, 1
  %186 = icmp ult i32 %183, %185
  br i1 %186, label %188, label %187

187:                                              ; preds = %182
  store i32 11, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #7
  br label %226

188:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #7
  %189 = load i32, ptr %40, align 4, !tbaa !9
  %190 = load i32, ptr %7, align 4, !tbaa !9
  %191 = add i32 %190, 1
  %192 = mul i32 %189, %191
  store i32 %192, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #7
  %193 = load i32, ptr %41, align 4, !tbaa !9
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = add i32 %193, %194
  %196 = add i32 %195, 1
  store i32 %196, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #7
  store i32 0, ptr %43, align 4, !tbaa !9
  br label %197

197:                                              ; preds = %215, %188
  %198 = load i32, ptr %43, align 4, !tbaa !9
  %199 = load i32, ptr %7, align 4, !tbaa !9
  %200 = icmp ult i32 %198, %199
  br i1 %200, label %202, label %201

201:                                              ; preds = %197
  store i32 14, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #7
  br label %222

202:                                              ; preds = %197
  %203 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %203, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %204 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %204, ptr noundef nonnull align 4 dereferenceable(4) %41)
  %205 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #7
  %206 = load i32, ptr %41, align 4, !tbaa !9
  %207 = add i32 %206, 1
  store i32 %207, ptr %44, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %205, ptr noundef nonnull align 4 dereferenceable(4) %44)
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #7
  %208 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %208, ptr noundef nonnull align 4 dereferenceable(4) %42)
  %209 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #7
  %210 = load i32, ptr %41, align 4, !tbaa !9
  %211 = add i32 %210, 1
  store i32 %211, ptr %45, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %209, ptr noundef nonnull align 4 dereferenceable(4) %45)
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #7
  %212 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #7
  %213 = load i32, ptr %42, align 4, !tbaa !9
  %214 = add i32 %213, 1
  store i32 %214, ptr %46, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %212, ptr noundef nonnull align 4 dereferenceable(4) %46)
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #7
  br label %215

215:                                              ; preds = %202
  %216 = load i32, ptr %43, align 4, !tbaa !9
  %217 = add i32 %216, 1
  store i32 %217, ptr %43, align 4, !tbaa !9
  %218 = load i32, ptr %41, align 4, !tbaa !9
  %219 = add i32 %218, 1
  store i32 %219, ptr %41, align 4, !tbaa !9
  %220 = load i32, ptr %42, align 4, !tbaa !9
  %221 = add i32 %220, 1
  store i32 %221, ptr %42, align 4, !tbaa !9
  br label %197, !llvm.loop !20

222:                                              ; preds = %201
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #7
  br label %223

223:                                              ; preds = %222
  %224 = load i32, ptr %40, align 4, !tbaa !9
  %225 = add i32 %224, 1
  store i32 %225, ptr %40, align 4, !tbaa !9
  br label %182, !llvm.loop !21

226:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #7
  %227 = load i32, ptr %8, align 4, !tbaa !9
  %228 = sub i32 %227, 1
  %229 = load i32, ptr %7, align 4, !tbaa !9
  %230 = add i32 %229, 1
  %231 = mul i32 %228, %230
  store i32 %231, ptr %47, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #7
  %232 = load i32, ptr %47, align 4, !tbaa !9
  %233 = load i32, ptr %7, align 4, !tbaa !9
  %234 = add i32 %232, %233
  %235 = add i32 %234, 1
  store i32 %235, ptr %48, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #7
  store i32 0, ptr %49, align 4, !tbaa !9
  br label %236

236:                                              ; preds = %247, %226
  %237 = load i32, ptr %49, align 4, !tbaa !9
  %238 = load i32, ptr %7, align 4, !tbaa !9
  %239 = icmp ult i32 %237, %238
  br i1 %239, label %241, label %240

240:                                              ; preds = %236
  store i32 17, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #7
  br label %254

241:                                              ; preds = %236
  %242 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %242, ptr noundef nonnull align 4 dereferenceable(4) %48)
  %243 = load ptr, ptr %34, align 8, !tbaa !5
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %243, ptr noundef nonnull align 4 dereferenceable(4) %47)
  %244 = load ptr, ptr %34, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #7
  %245 = load i32, ptr %47, align 4, !tbaa !9
  %246 = add i32 %245, 1
  store i32 %246, ptr %50, align 4, !tbaa !9
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %244, ptr noundef nonnull align 4 dereferenceable(4) %50)
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #7
  br label %247

247:                                              ; preds = %241
  %248 = load i32, ptr %49, align 4, !tbaa !9
  %249 = add i32 %248, 1
  store i32 %249, ptr %49, align 4, !tbaa !9
  %250 = load i32, ptr %47, align 4, !tbaa !9
  %251 = add i32 %250, 1
  store i32 %251, ptr %47, align 4, !tbaa !9
  %252 = load i32, ptr %48, align 4, !tbaa !9
  %253 = add i32 %252, 1
  store i32 %253, ptr %48, align 4, !tbaa !9
  br label %236, !llvm.loop !22

254:                                              ; preds = %240
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %34) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VectorIfLm3EEC2IJRKfS4_S4_EvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1xEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1yEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1zEv(ptr noundef nonnull align 4 dereferenceable(12)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(44)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VectorIfLm3EEC2IJfffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(44) ptr @_ZNSt6vectorIN3Raz6VertexESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(44)) #3 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint 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 #7 = { 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, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{i64 0, i64 12, !14}
!14 = !{!7, !7, i64 0}
!15 = !{i64 0, i64 8, !14}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17}
!22 = distinct !{!22, !17}


; 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.Raz::Vector" = type { %"struct.std::array" }
%"struct.std::array" = type { [3 x float] }
%"struct.Raz::Vertex" = type { %"class.Raz::Vector", %"class.Raz::Vector.0", %"class.Raz::Vector", %"class.Raz::Vector" }
%"class.Raz::Vector.0" = type { %"struct.std::array.1" }
%"struct.std::array.1" = type { [2 x float] }

; 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 nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN3Raz7SubmeshESaIS1_EE12emplace_backIJEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh11getVerticesEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh18getTriangleIndicesEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3Raz4Mesh14createUvSphereERKNS_6SphereEjj(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #4 align 2 {
  %5 = alloca %"class.Raz::Vector", align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca %"struct.Raz::Vertex", align 4
  %10 = alloca %"class.Raz::Vector", align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca %"class.Raz::Vector.0", align 8
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"class.Raz::Vector", align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = tail call noundef nonnull align 8 dereferenceable(104) ptr @_ZNSt6vectorIN3Raz7SubmeshESaIS1_EE12emplace_backIJEEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %29)
  %31 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh11getVerticesEv(ptr noundef nonnull align 8 dereferenceable(104) %30)
  %32 = add i32 %3, 1
  %33 = add i32 %2, 1
  %34 = mul i32 %32, %33
  %35 = zext i32 %34 to i64
  tail call void @_ZNSt6vectorIN3Raz6VertexESaIS1_EE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %31, i64 noundef %35)
  %36 = uitofp i32 %2 to float
  %37 = fdiv float 0x401921FB60000000, %36
  %38 = uitofp i32 %3 to float
  %39 = fdiv float 0x400921FB60000000, %38
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #7
  %40 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, ptr noundef nonnull align 4 dereferenceable(12) %40, i64 12, i1 false), !tbaa.struct !5
  %41 = getelementptr inbounds i8, ptr %9, i64 12
  %42 = getelementptr inbounds i8, ptr %9, i64 20
  %.sroa.4.0..sroa_idx = getelementptr inbounds i8, ptr %9, i64 28
  br label %49

43:                                               ; preds = %60
  %44 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3Raz7Submesh18getTriangleIndicesEv(ptr noundef nonnull align 8 dereferenceable(104) %30)
  %45 = add i32 %3, -1
  %46 = mul i32 %2, 6
  %47 = mul i32 %46, %45
  %48 = zext i32 %47 to i64
  call void @_ZNSt6vectorIjSaIjEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %48)
  %.not93 = icmp eq i32 %2, 0
  br i1 %.not93, label %.preheader.thread, label %.lr.ph

49:                                               ; preds = %4, %60
  %.07382 = phi i32 [ 0, %4 ], [ %61, %60 ]
  %50 = uitofp i32 %.07382 to float
  %51 = fneg float %50
  %52 = call float @llvm.fmuladd.f32(float %51, float %39, float 0x3FF921FB60000000)
  %53 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %54 = call noundef float @_ZSt3cosf(float noundef %52)
  %55 = fmul float %53, %54
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  %56 = call noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
  %57 = call noundef float @_ZSt3sinf(float noundef %52)
  %58 = fmul float %56, %57
  store float %58, ptr %6, align 4, !tbaa !9
  %59 = fdiv float %50, %38
  br label %62

60:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  %61 = add i32 %.07382, 1
  %.not = icmp ugt i32 %61, %3
  br i1 %.not, label %43, label %49, !llvm.loop !11

62:                                               ; preds = %49, %62
  %.07581 = phi i32 [ 0, %49 ], [ %85, %62 ]
  %63 = uitofp i32 %.07581 to float
  %64 = fmul float %37, %63
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #7
  %65 = call noundef float @_ZSt3cosf(float noundef %64)
  %66 = fmul float %55, %65
  store float %66, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  %67 = call noundef float @_ZSt3sinf(float noundef %64)
  %68 = fmul float %55, %67
  store float %68, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 44, ptr nonnull %9) #7
  call void @_ZN3Raz6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(44) %9) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #7
  %69 = load float, ptr %7, align 4, !tbaa !9
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1xEv(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  %71 = load float, ptr %70, align 4, !tbaa !9
  %72 = fadd float %69, %71
  store float %72, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #7
  %73 = load float, ptr %6, align 4, !tbaa !9
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1yEv(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  %75 = load float, ptr %74, align 4, !tbaa !9
  %76 = fadd float %73, %75
  store float %76, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #7
  %77 = load float, ptr %8, align 4, !tbaa !9
  %78 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1zEv(ptr noundef nonnull align 4 dereferenceable(12) %5) #7
  %79 = load float, ptr %78, align 4, !tbaa !9
  %80 = fadd float %77, %79
  store float %80, ptr %13, align 4, !tbaa !9
  call void @_ZN3Raz6VectorIfLm3EEC2IJfffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %10, ptr noundef nonnull align 4 dereferenceable(4) %11, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 4 dereferenceable(4) %13) #7
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %9, ptr noundef nonnull align 4 dereferenceable(12) %10, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #7
  %81 = fdiv float %63, %36
  store float %81, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #7
  store float %59, ptr %16, align 4, !tbaa !9
  call void @_ZN3Raz6VectorIfLm2EEC2IJffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16) #7
  %82 = load i64, ptr %14, align 8, !tbaa !6
  store i64 %82, ptr %41, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %17) #7
  call void @_ZN3Raz6VectorIfLm3EEC2IJRKfS4_S4_EvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12) %17, ptr noundef nonnull align 4 dereferenceable(4) %7, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %8) #7
  %83 = call { <2 x float>, float } @_ZNK3Raz6VectorIfLm3EE9normalizeIfEENS0_IT_Lm3EEEv(ptr noundef nonnull align 4 dereferenceable(12) %17) #7
  %.fca.0.extract = extractvalue { <2 x float>, float } %83, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %83, 1
  store <2 x float> %.fca.0.extract, ptr %42, align 4
  store float %.fca.1.extract, ptr %.sroa.4.0..sroa_idx, align 4, !tbaa !6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %17) #7
  %84 = call noundef nonnull align 4 dereferenceable(44) ptr @_ZNSt6vectorIN3Raz6VertexESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 4 dereferenceable(44) %9)
  call void @llvm.lifetime.end.p0(i64 44, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #7
  %85 = add i32 %.07581, 1
  %.not80 = icmp ugt i32 %85, %2
  br i1 %.not80, label %60, label %62, !llvm.loop !13

.preheader:                                       ; preds = %.lr.ph
  %86 = icmp ugt i32 %45, 1
  br i1 %86, label %.lr.ph86.us, label %._crit_edge89

.preheader.thread:                                ; preds = %43
  %87 = icmp ugt i32 %45, 1
  br i1 %87, label %._crit_edge89, label %._crit_edge89.thread

._crit_edge89.thread:                             ; preds = %.preheader.thread
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  br label %._crit_edge

.lr.ph86.us:                                      ; preds = %.preheader, %._crit_edge.us
  %.07287.us = phi i32 [ %101, %._crit_edge.us ], [ 1, %.preheader ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %21) #7
  %88 = mul i32 %.07287.us, %33
  store i32 %88, ptr %21, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %22) #7
  %89 = add i32 %88, %2
  %storemerge7984.us = add i32 %89, 1
  store i32 %storemerge7984.us, ptr %22, align 4, !tbaa !14
  br label %90

90:                                               ; preds = %.lr.ph86.us, %90
  %.07185.us = phi i32 [ 0, %.lr.ph86.us ], [ %97, %90 ]
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %21)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %23) #7
  %91 = load i32, ptr %21, align 4, !tbaa !14
  %92 = add i32 %91, 1
  store i32 %92, ptr %23, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %23) #7
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %22)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %24) #7
  %93 = load i32, ptr %21, align 4, !tbaa !14
  %94 = add i32 %93, 1
  store i32 %94, ptr %24, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %24)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %24) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %25) #7
  %95 = load i32, ptr %22, align 4, !tbaa !14
  %96 = add i32 %95, 1
  store i32 %96, ptr %25, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %25)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %25) #7
  %97 = add nuw i32 %.07185.us, 1
  %98 = load i32, ptr %21, align 4, !tbaa !14
  %99 = add i32 %98, 1
  store i32 %99, ptr %21, align 4, !tbaa !14
  %100 = load i32, ptr %22, align 4, !tbaa !14
  %storemerge79.us = add i32 %100, 1
  store i32 %storemerge79.us, ptr %22, align 4, !tbaa !14
  %exitcond97.not = icmp eq i32 %97, %2
  br i1 %exitcond97.not, label %._crit_edge.us, label %90, !llvm.loop !16

._crit_edge.us:                                   ; preds = %90
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %21) #7
  %101 = add nuw i32 %.07287.us, 1
  %exitcond98.not = icmp eq i32 %101, %45
  br i1 %exitcond98.not, label %._crit_edge89.thread102, label %.lr.ph86.us, !llvm.loop !17

._crit_edge89.thread102:                          ; preds = %._crit_edge.us
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  %102 = mul i32 %45, %33
  store i32 %102, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %103 = add i32 %102, %2
  %storemerge90103 = add i32 %103, 1
  store i32 %storemerge90103, ptr %27, align 4, !tbaa !14
  br label %.lr.ph92.preheader

.lr.ph:                                           ; preds = %43, %.lr.ph
  %.07483 = phi i32 [ %106, %.lr.ph ], [ 0, %43 ]
  %104 = add i32 %.07483, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #7
  %105 = add i32 %104, 1
  store i32 %105, ptr %18, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %18)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  %106 = add nuw i32 %.07483, 1
  store i32 %106, ptr %19, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %19)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %20) #7
  %107 = add i32 %104, 2
  store i32 %107, ptr %20, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %20)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %20) #7
  %exitcond.not = icmp eq i32 %106, %2
  br i1 %exitcond.not, label %.preheader, label %.lr.ph, !llvm.loop !18

._crit_edge89:                                    ; preds = %.preheader.thread, %.preheader
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %26) #7
  %108 = mul i32 %45, %33
  store i32 %108, ptr %26, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %27) #7
  %109 = add i32 %108, %2
  %storemerge90 = add i32 %109, 1
  store i32 %storemerge90, ptr %27, align 4, !tbaa !14
  br i1 %.not93, label %._crit_edge, label %.lr.ph92.preheader

.lr.ph92.preheader:                               ; preds = %._crit_edge89.thread102, %._crit_edge89
  br label %.lr.ph92

._crit_edge:                                      ; preds = %.lr.ph92, %._crit_edge89.thread, %._crit_edge89
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %26) #7
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #7
  ret void

.lr.ph92:                                         ; preds = %.lr.ph92.preheader, %.lr.ph92
  %.091 = phi i32 [ %112, %.lr.ph92 ], [ 0, %.lr.ph92.preheader ]
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %27)
  call void @_ZNSt6vectorIjSaIjEE9push_backERKj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %26)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %28) #7
  %110 = load i32, ptr %26, align 4, !tbaa !14
  %111 = add i32 %110, 1
  store i32 %111, ptr %28, align 4, !tbaa !14
  call void @_ZNSt6vectorIjSaIjEE9push_backEOj(ptr noundef nonnull align 8 dereferenceable(24) %44, ptr noundef nonnull align 4 dereferenceable(4) %28)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %28) #7
  %112 = add nuw i32 %.091, 1
  %113 = load i32, ptr %26, align 4, !tbaa !14
  %114 = add i32 %113, 1
  store i32 %114, ptr %26, align 4, !tbaa !14
  %115 = load i32, ptr %27, align 4, !tbaa !14
  %storemerge = add i32 %115, 1
  store i32 %storemerge, ptr %27, align 4, !tbaa !14
  %exitcond100.not = icmp eq i32 %112, %2
  br i1 %exitcond100.not, label %._crit_edge, label %.lr.ph92, !llvm.loop !19
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VectorIfLm3EEC2IJRKfS4_S4_EvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1xEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1yEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3Raz6VectorIfLm3EE1zEv(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNK3Raz6Sphere9getCenterEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZNK3Raz6Sphere9getRadiusEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3cosf(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3sinf(float noundef) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VertexC2Ev(ptr noundef nonnull align 4 dereferenceable(44)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3Raz6VectorIfLm3EEC2IJfffEvvEEDpOT_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(44) ptr @_ZNSt6vectorIN3Raz6VertexESaIS1_EE12emplace_backIJRS1_EEES5_DpOT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(44)) local_unnamed_addr #3 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="64" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint 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 #7 = { 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 = !{i64 0, i64 12, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !12}
!17 = distinct !{!17, !12}
!18 = distinct !{!18, !12}
!19 = distinct !{!19, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass