; LLVM IR from jasonlmfong/Model-Modifier :: Model-Modifier/src/scene/object/Object.ll (ZN6Object7RescaleEv)

; 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.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%class.Object = type { %"struct.glm::vec", %"struct.glm::vec", %"class.std::vector", %"class.std::vector.2", %"class.std::vector.2", %"class.std::unordered_map" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<glm::vec<3, float>, std::allocator<glm::vec<3, float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.2" = type { %"struct.std::_Vector_base.3" }
%"struct.std::_Vector_base.3" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<unsigned int>, std::allocator<std::vector<unsigned int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }

; 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 uwtable
define dso_local void @_ZN6Object7RescaleEv(ptr noundef nonnull align 8 dereferenceable(152) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca { <2 x float>, float }, align 8
  %5 = alloca float, align 4
  %6 = alloca %"struct.glm::vec", align 4
  %7 = alloca { <2 x float>, float }, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"struct.glm::vec", align 4
  %11 = alloca %"struct.glm::vec", align 4
  %12 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  %14 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 1
  %15 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 0
  %16 = call { <2 x float>, float } @_ZN3glmmiIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %14, ptr noundef nonnull align 4 dereferenceable(12) %15)
  store { <2 x float>, float } %16, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 8 %4, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  %17 = getelementptr inbounds %"struct.glm::vec", ptr %3, i32 0, i32 0
  %18 = load float, ptr %17, align 4, !tbaa !9
  store float %18, ptr %5, align 4, !tbaa !10
  %19 = getelementptr inbounds %"struct.glm::vec", ptr %3, i32 0, i32 1
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = load float, ptr %5, align 4, !tbaa !10
  %22 = fcmp ogt float %20, %21
  br i1 %22, label %23, label %26

23:                                               ; preds = %1
  %24 = getelementptr inbounds %"struct.glm::vec", ptr %3, i32 0, i32 1
  %25 = load float, ptr %24, align 4, !tbaa !9
  store float %25, ptr %5, align 4, !tbaa !10
  br label %26

26:                                               ; preds = %23, %1
  %27 = getelementptr inbounds %"struct.glm::vec", ptr %3, i32 0, i32 2
  %28 = load float, ptr %27, align 4, !tbaa !9
  %29 = load float, ptr %5, align 4, !tbaa !10
  %30 = fcmp ogt float %28, %29
  br i1 %30, label %31, label %34

31:                                               ; preds = %26
  %32 = getelementptr inbounds %"struct.glm::vec", ptr %3, i32 0, i32 2
  %33 = load float, ptr %32, align 4, !tbaa !9
  store float %33, ptr %5, align 4, !tbaa !10
  br label %34

34:                                               ; preds = %31, %26
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #6
  %35 = load float, ptr %5, align 4, !tbaa !10
  %36 = call { <2 x float>, float } @_ZN3glmdvIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %3, float noundef %35)
  store { <2 x float>, float } %36, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 8 %7, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %37

37:                                               ; preds = %82, %34
  %38 = load i32, ptr %8, align 4, !tbaa !12
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 2
  %41 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %40) #6
  %42 = icmp ult i64 %39, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %37
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  br label %85

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  %45 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 2
  %46 = load i32, ptr %8, align 4, !tbaa !12
  %47 = zext i32 %46 to i64
  %48 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %47) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %48, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #6
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !12
  br label %49

49:                                               ; preds = %74, %44
  %50 = load i32, ptr %12, align 4, !tbaa !12
  %51 = icmp ult i32 %50, 3
  br i1 %51, label %53, label %52

52:                                               ; preds = %49
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %77

53:                                               ; preds = %49
  %54 = load i32, ptr %12, align 4, !tbaa !12
  %55 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %6, i32 noundef %54)
  %56 = load float, ptr %55, align 4, !tbaa !10
  %57 = load i32, ptr %12, align 4, !tbaa !12
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %10, i32 noundef %57)
  %59 = load float, ptr %58, align 4, !tbaa !10
  %60 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 0
  %61 = load i32, ptr %12, align 4, !tbaa !12
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %60, i32 noundef %61)
  %63 = load float, ptr %62, align 4, !tbaa !10
  %64 = fsub float %59, %63
  %65 = fmul float %64, 2.000000e+00
  %66 = load i32, ptr %12, align 4, !tbaa !12
  %67 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef %66)
  %68 = load float, ptr %67, align 4, !tbaa !10
  %69 = fdiv float %65, %68
  %70 = fsub float %69, 1.000000e+00
  %71 = fmul float %56, %70
  %72 = load i32, ptr %12, align 4, !tbaa !12
  %73 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %11, i32 noundef %72)
  store float %71, ptr %73, align 4, !tbaa !10
  br label %74

74:                                               ; preds = %53
  %75 = load i32, ptr %12, align 4, !tbaa !12
  %76 = add i32 %75, 1
  store i32 %76, ptr %12, align 4, !tbaa !12
  br label %49, !llvm.loop !15

77:                                               ; preds = %52
  %78 = getelementptr inbounds %class.Object, ptr %13, i32 0, i32 2
  %79 = load i32, ptr %8, align 4, !tbaa !12
  %80 = zext i32 %79 to i64
  %81 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %81, ptr align 4 %11, i64 12, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  br label %82

82:                                               ; preds = %77
  %83 = load i32, ptr %8, align 4, !tbaa !12
  %84 = add i32 %83, 1
  store i32 %84, ptr %8, align 4, !tbaa !12
  br label %37, !llvm.loop !17

85:                                               ; preds = %43
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  ret void
}

; 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) #3 align 2

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

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

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

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

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

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


; 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.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { 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 uwtable
define dso_local void @_ZN6Object7RescaleEv(ptr noundef nonnull align 8 dereferenceable(152) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"struct.glm::vec", align 8
  %3 = alloca %"struct.glm::vec", align 8
  %4 = alloca %"struct.glm::vec", align 4
  %5 = alloca %"struct.glm::vec", align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 12
  %7 = tail call { <2 x float>, float } @_ZN3glmmiIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S6_(ptr noundef nonnull align 4 dereferenceable(12) %6, ptr noundef nonnull align 4 dereferenceable(12) %0)
  %.fca.0.extract13 = extractvalue { <2 x float>, float } %7, 0
  %.fca.1.extract14 = extractvalue { <2 x float>, float } %7, 1
  store <2 x float> %.fca.0.extract13, ptr %2, align 8
  %.sroa.216.0..sroa_idx = getelementptr inbounds i8, ptr %2, i64 8
  store float %.fca.1.extract14, ptr %.sroa.216.0..sroa_idx, align 8
  %8 = extractelement <2 x float> %.fca.0.extract13, i64 0
  %9 = extractelement <2 x float> %.fca.0.extract13, i64 1
  %10 = fcmp ogt float %9, %8
  %.019 = select i1 %10, float %9, float %8
  %11 = fcmp ogt float %.fca.1.extract14, %.019
  %.1 = select i1 %11, float %.fca.1.extract14, float %.019
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  %12 = call { <2 x float>, float } @_ZN3glmdvIfLNS_9qualifierE0EEENS_3vecILi3ET_XT0_EEERKS4_S3_(ptr noundef nonnull align 4 dereferenceable(12) %2, float noundef %.1)
  %.fca.0.extract = extractvalue { <2 x float>, float } %12, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %12, 1
  store <2 x float> %.fca.0.extract, ptr %3, align 8
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  store float %.fca.1.extract, ptr %.sroa.2.0..sroa_idx, align 8
  %13 = getelementptr inbounds i8, ptr %0, i64 24
  %14 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %.not = icmp eq i64 %14, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %1
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  ret void

.lr.ph:                                           ; preds = %1, %.lr.ph
  %15 = phi i64 [ %61, %.lr.ph ], [ 0, %1 ]
  %.01825 = phi i32 [ %60, %.lr.ph ], [ 0, %1 ]
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  %16 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %4, ptr noundef nonnull align 4 dereferenceable(12) %16, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %5, i8 0, i64 12, i1 false)
  %17 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 0)
  %18 = load float, ptr %17, align 4, !tbaa !9
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 0)
  %20 = load float, ptr %19, align 4, !tbaa !9
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 0)
  %22 = load float, ptr %21, align 4, !tbaa !9
  %23 = fsub float %20, %22
  %24 = fmul float %23, 2.000000e+00
  %25 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0)
  %26 = load float, ptr %25, align 4, !tbaa !9
  %27 = fdiv float %24, %26
  %28 = fadd float %27, -1.000000e+00
  %29 = fmul float %18, %28
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 0)
  store float %29, ptr %30, align 4, !tbaa !9
  %31 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 1)
  %32 = load float, ptr %31, align 4, !tbaa !9
  %33 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 1)
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 1)
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = fsub float %34, %36
  %38 = fmul float %37, 2.000000e+00
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 1)
  %40 = load float, ptr %39, align 4, !tbaa !9
  %41 = fdiv float %38, %40
  %42 = fadd float %41, -1.000000e+00
  %43 = fmul float %32, %42
  %44 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 1)
  store float %43, ptr %44, align 4, !tbaa !9
  %45 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %3, i32 noundef 2)
  %46 = load float, ptr %45, align 4, !tbaa !9
  %47 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 2)
  %48 = load float, ptr %47, align 4, !tbaa !9
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %0, i32 noundef 2)
  %50 = load float, ptr %49, align 4, !tbaa !9
  %51 = fsub float %48, %50
  %52 = fmul float %51, 2.000000e+00
  %53 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 2)
  %54 = load float, ptr %53, align 4, !tbaa !9
  %55 = fdiv float %52, %54
  %56 = fadd float %55, -1.000000e+00
  %57 = fmul float %46, %56
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %5, i32 noundef 2)
  store float %57, ptr %58, align 4, !tbaa !9
  %59 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %13, i64 noundef %15) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %59, ptr noundef nonnull align 4 dereferenceable(12) %5, i64 12, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  %60 = add i32 %.01825, 1
  %61 = zext i32 %60 to i64
  %62 = call noundef i64 @_ZNKSt6vectorIN3glm3vecILi3EfLNS0_9qualifierE0EEESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #6
  %63 = icmp ugt i64 %62, %61
  br i1 %63, label %.lr.ph, label %._crit_edge, !llvm.loop !11
}

; 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) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef) local_unnamed_addr #3 align 2

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 nounwind willreturn memory(argmem: write) }
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 = !{i64 0, i64 4, !6, i64 4, i64 4, !6, i64 8, i64 4, !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"}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass