; LLVM IR from MartinOpat/Lagrangian-fluid-simulation-for-Android :: simulation/app/src/main/cpp/src/transforms.ll (ZN10Transforms21updateTransformationsEv)

; 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::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1, %union.anon.2 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%union.anon.2 = type { float }
%"struct.glm::vec.3" = type { %union.anon.4, %union.anon.5, %union.anon.6 }
%union.anon.4 = type { float }
%union.anon.5 = type { float }
%union.anon.6 = type { float }
%"class.std::lock_guard" = type { ptr }
%class.Transforms = type <{ %"struct.glm::mat", %"struct.glm::mat", %"struct.glm::mat", %"class.std::mutex", %"struct.glm::vec.3", float, float, [4 x i8] }>
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4) #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm5orthoIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Transforms21updateTransformationsEv(ptr noundef nonnull align 8 dereferenceable(252) %0) #4 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.glm::mat", align 4
  %4 = alloca %"struct.glm::mat", align 4
  %5 = alloca %"struct.glm::vec.3", align 4
  %6 = alloca %"struct.glm::mat", align 4
  %7 = alloca %"struct.glm::mat", align 4
  %8 = alloca %"struct.glm::vec.3", align 4
  %9 = alloca %"struct.glm::mat", align 4
  %10 = alloca %"struct.glm::mat", align 4
  %11 = alloca %"struct.glm::vec.3", align 4
  %12 = alloca %"struct.glm::mat", align 4
  %13 = alloca %"struct.glm::mat", align 4
  %14 = alloca %"struct.glm::vec.3", align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca %"struct.glm::mat", align 4
  %18 = alloca %"class.std::lock_guard", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %19 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #8
  call void @llvm.memset.p0.i64(ptr align 4 %3, i8 0, i64 64, i1 false)
  %20 = getelementptr inbounds %"struct.glm::mat", ptr %3, i32 0, i32 0
  %21 = getelementptr inbounds [4 x %"struct.glm::vec"], ptr %20, i32 0, i32 0
  %22 = getelementptr inbounds %"struct.glm::vec", ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %union.anon, ptr %22, i32 0, i32 0
  store float 1.000000e+00, ptr %23, align 4
  %24 = getelementptr inbounds [4 x %"struct.glm::vec"], ptr %20, i32 0, i32 1
  %25 = getelementptr inbounds %"struct.glm::vec", ptr %24, i32 0, i32 1
  %26 = getelementptr inbounds %union.anon.0, ptr %25, i32 0, i32 0
  store float 1.000000e+00, ptr %26, align 4
  %27 = getelementptr inbounds [4 x %"struct.glm::vec"], ptr %20, i32 0, i32 2
  %28 = getelementptr inbounds %"struct.glm::vec", ptr %27, i32 0, i32 2
  %29 = getelementptr inbounds %union.anon.1, ptr %28, i32 0, i32 0
  store float 1.000000e+00, ptr %29, align 4
  %30 = getelementptr inbounds [4 x %"struct.glm::vec"], ptr %20, i32 0, i32 3
  %31 = getelementptr inbounds %"struct.glm::vec", ptr %30, i32 0, i32 3
  %32 = getelementptr inbounds %union.anon.2, ptr %31, i32 0, i32 0
  store float 1.000000e+00, ptr %32, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #8
  %33 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 5
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 5
  %36 = load float, ptr %35, align 4, !tbaa !9
  %37 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 5
  %38 = load float, ptr %37, align 4, !tbaa !9
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %5, float noundef %34, float noundef %36, float noundef %38)
  call void @_ZN3glm5scaleIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %4, ptr noundef nonnull align 4 dereferenceable(64) %3, ptr noundef nonnull align 4 dereferenceable(12) %5)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %4, i64 64, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %7)
  %39 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 4
  %40 = getelementptr inbounds %"struct.glm::vec.3", ptr %39, i32 0, i32 0
  %41 = load float, ptr %40, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %8, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %6, ptr noundef nonnull align 4 dereferenceable(64) %7, float noundef %41, ptr noundef nonnull align 4 dereferenceable(12) %8)
  %42 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %3, ptr noundef nonnull align 4 dereferenceable(64) %6)
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %6) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %10) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %10)
  %43 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 4
  %44 = getelementptr inbounds %"struct.glm::vec.3", ptr %43, i32 0, i32 1
  %45 = load float, ptr %44, align 4, !tbaa !17
  %46 = fneg float %45
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %11, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %9, ptr noundef nonnull align 4 dereferenceable(64) %10, float noundef %46, ptr noundef nonnull align 4 dereferenceable(12) %11)
  %47 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %3, ptr noundef nonnull align 4 dereferenceable(64) %9)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr %13) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %13)
  %48 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 4
  %49 = getelementptr inbounds %"struct.glm::vec.3", ptr %48, i32 0, i32 2
  %50 = load float, ptr %49, align 8, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %14, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %12, ptr noundef nonnull align 4 dereferenceable(64) %13, float noundef %50, ptr noundef nonnull align 4 dereferenceable(12) %14)
  %51 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %3, ptr noundef nonnull align 4 dereferenceable(64) %12)
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store float 2.000000e+02, ptr %15, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #8
  store float 1.000000e+02, ptr %16, align 4, !tbaa !18
  %52 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 6
  %53 = load float, ptr %52, align 8, !tbaa !19
  %54 = fcmp ogt float %53, 5.000000e-01
  br i1 %54, label %55, label %60

55:                                               ; preds = %1
  %56 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 6
  %57 = load float, ptr %56, align 8, !tbaa !19
  %58 = load float, ptr %15, align 4, !tbaa !18
  %59 = fmul float %58, %57
  store float %59, ptr %15, align 4, !tbaa !18
  br label %65

60:                                               ; preds = %1
  %61 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 6
  %62 = load float, ptr %61, align 8, !tbaa !19
  %63 = load float, ptr %15, align 4, !tbaa !18
  %64 = fdiv float %63, %62
  store float %64, ptr %15, align 4, !tbaa !18
  br label %65

65:                                               ; preds = %60, %55
  call void @llvm.lifetime.start.p0(i64 64, ptr %17) #8
  %66 = load float, ptr %15, align 4, !tbaa !18
  %67 = fneg float %66
  %68 = load float, ptr %15, align 4, !tbaa !18
  %69 = load float, ptr %16, align 4, !tbaa !18
  %70 = fneg float %69
  %71 = load float, ptr %16, align 4, !tbaa !18
  call void @_ZN3glm5orthoIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_S2_S2_(ptr dead_on_unwind writable sret(%"struct.glm::mat") align 4 %17, float noundef %67, float noundef %68, float noundef %70, float noundef %71, float noundef -5.000000e+02, float noundef 5.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %72 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 3
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull align 8 dereferenceable(40) %72)
  %73 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %73, ptr align 4 %3, i64 64, i1 false), !tbaa.struct !16
  %74 = getelementptr inbounds %class.Transforms, ptr %19, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %74, ptr align 4 %17, i64 64, i1 false), !tbaa.struct !16
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #8
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm5scaleIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) #2 align 2

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 #7 = { 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 #8 = { 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, !15, i64 244}
!10 = !{!"_ZTS10Transforms", !11, i64 0, !11, i64 64, !11, i64 128, !12, i64 192, !14, i64 232, !15, i64 244, !15, i64 248}
!11 = !{!"_ZTSN3glm3matILi4ELi4EfLNS_9qualifierE0EEE", !7, i64 0}
!12 = !{!"_ZTSSt5mutex", !13, i64 0}
!13 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!14 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !7, i64 0, !7, i64 4, !7, i64 8}
!15 = !{!"float", !7, i64 0}
!16 = !{i64 0, i64 64, !17}
!17 = !{!7, !7, i64 0}
!18 = !{!15, !15, i64 0}
!19 = !{!10, !15, i64 248}


; 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::mat" = type { [4 x %"struct.glm::vec"] }
%"struct.glm::vec" = type { %union.anon, %union.anon.0, %union.anon.1, %union.anon.2 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%union.anon.2 = type { float }
%"struct.glm::vec.3" = type { %union.anon.4, %union.anon.5, %union.anon.6 }
%union.anon.4 = type { float }
%union.anon.5 = type { float }
%union.anon.6 = type { float }
%"class.std::lock_guard" = type { ptr }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm5orthoIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, float noundef, float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10Transforms21updateTransformationsEv(ptr noundef nonnull align 8 dereferenceable(252) %0) local_unnamed_addr #4 align 2 {
  %2 = alloca %"struct.glm::mat", align 4
  %3 = alloca %"struct.glm::mat", align 4
  %4 = alloca %"struct.glm::vec.3", align 4
  %5 = alloca %"struct.glm::mat", align 4
  %6 = alloca %"struct.glm::mat", align 4
  %7 = alloca %"struct.glm::vec.3", align 4
  %8 = alloca %"struct.glm::mat", align 4
  %9 = alloca %"struct.glm::mat", align 4
  %10 = alloca %"struct.glm::vec.3", align 4
  %11 = alloca %"struct.glm::mat", align 4
  %12 = alloca %"struct.glm::mat", align 4
  %13 = alloca %"struct.glm::vec.3", align 4
  %14 = alloca %"struct.glm::mat", align 4
  %15 = alloca %"class.std::lock_guard", align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #8
  %16 = getelementptr inbounds i8, ptr %2, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %16, i8 0, i64 56, i1 false)
  store float 1.000000e+00, ptr %2, align 4
  %17 = getelementptr inbounds i8, ptr %2, i64 20
  store float 1.000000e+00, ptr %17, align 4
  %18 = getelementptr inbounds i8, ptr %2, i64 40
  store float 1.000000e+00, ptr %18, align 4
  %19 = getelementptr inbounds i8, ptr %2, i64 60
  store float 1.000000e+00, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #8
  %20 = getelementptr inbounds i8, ptr %0, i64 244
  %21 = load float, ptr %20, align 4, !tbaa !5
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %4, float noundef %21, float noundef %21, float noundef %21)
  call void @_ZN3glm5scaleIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %3, ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(12) %4)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %3, i64 64, i1 false), !tbaa.struct !14
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %6) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %6)
  %22 = getelementptr inbounds i8, ptr %0, i64 232
  %23 = load float, ptr %22, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %7, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %5, ptr noundef nonnull align 4 dereferenceable(64) %6, float noundef %23, ptr noundef nonnull align 4 dereferenceable(12) %7)
  %24 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %5)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %9)
  %25 = getelementptr inbounds i8, ptr %0, i64 236
  %26 = load float, ptr %25, align 4, !tbaa !15
  %27 = fneg float %26
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %10) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %10, float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %8, ptr noundef nonnull align 4 dereferenceable(64) %9, float noundef %27, ptr noundef nonnull align 4 dereferenceable(12) %10)
  %28 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %8)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #8
  call void @_ZN3glm8identityINS_3matILi4ELi4EfLNS_9qualifierE0EEEEET_v(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %12)
  %29 = getelementptr inbounds i8, ptr %0, i64 240
  %30 = load float, ptr %29, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %13) #8
  call void @_ZN3glm3vecILi3EfLNS_9qualifierE0EEC2Efff(ptr noundef nonnull align 4 dereferenceable(12) %13, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  call void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %11, ptr noundef nonnull align 4 dereferenceable(64) %12, float noundef %30, ptr noundef nonnull align 4 dereferenceable(12) %13)
  %31 = call noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64) %2, ptr noundef nonnull align 4 dereferenceable(64) %11)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #8
  %32 = getelementptr inbounds i8, ptr %0, i64 248
  %33 = load float, ptr %32, align 8, !tbaa !16
  %34 = fcmp ogt float %33, 5.000000e-01
  %35 = fmul float %33, 2.000000e+02
  %36 = fdiv float 2.000000e+02, %33
  %.0 = select i1 %34, float %35, float %36
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #8
  %37 = fneg float %.0
  call void @_ZN3glm5orthoIfEENS_3matILi4ELi4ET_LNS_9qualifierE0EEES2_S2_S2_S2_S2_S2_(ptr dead_on_unwind nonnull writable sret(%"struct.glm::mat") align 4 %14, float noundef %37, float noundef %.0, float noundef -1.000000e+02, float noundef 1.000000e+02, float noundef -5.000000e+02, float noundef 5.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  %38 = getelementptr inbounds i8, ptr %0, i64 192
  call void @_ZNSt10lock_guardISt5mutexEC2ERS0_(ptr noundef nonnull align 8 dereferenceable(8) %15, ptr noundef nonnull align 8 dereferenceable(40) %38)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %2, i64 64, i1 false), !tbaa.struct !14
  %39 = getelementptr inbounds i8, ptr %0, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %39, ptr noundef nonnull align 4 dereferenceable(64) %14, i64 64, i1 false), !tbaa.struct !14
  call void @_ZNSt10lock_guardISt5mutexED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #8
  ret void
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm5scaleIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3glm6rotateIfLNS_9qualifierE0EEENS_3matILi4ELi4ET_XT0_EEERKS4_S3_RKNS_3vecILi3ES3_XT0_EEE(ptr dead_on_unwind noalias writable sret(%"struct.glm::mat") align 4, ptr noundef nonnull align 4 dereferenceable(64), float noundef, ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(64) ptr @_ZN3glm3matILi4ELi4EfLNS_9qualifierE0EEmLIfEERS2_RKNS0_ILi4ELi4ET_LS1_0EEE(ptr noundef nonnull align 4 dereferenceable(64), ptr noundef nonnull align 4 dereferenceable(64)) local_unnamed_addr #2 align 2

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #5 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { inlinehint 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 #7 = { 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 #8 = { 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, !13, i64 244}
!6 = !{!"_ZTS10Transforms", !7, i64 0, !7, i64 64, !7, i64 128, !10, i64 192, !12, i64 232, !13, i64 244, !13, i64 248}
!7 = !{!"_ZTSN3glm3matILi4ELi4EfLNS_9qualifierE0EEE", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSSt5mutex", !11, i64 0}
!11 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!12 = !{!"_ZTSN3glm3vecILi3EfLNS_9qualifierE0EEE", !8, i64 0, !8, i64 4, !8, i64 8}
!13 = !{!"float", !8, i64 0}
!14 = !{i64 0, i64 64, !15}
!15 = !{!8, !8, i64 0}
!16 = !{!6, !13, i64 248}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass