; LLVM IR from jpvt/Computer_Graphics :: Assignment #3/third_party/glm/test/gtc/gtc_type_ptr.ll (Z18test_value_ptr_vecv)

; 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 = type { float }
%union.anon.0 = type { float }
%"struct.glm::vec.1" = type { %union.anon.2, %union.anon.3, %union.anon.4 }
%union.anon.2 = type { float }
%union.anon.3 = type { float }
%union.anon.4 = type { float }
%"struct.glm::vec.5" = type { %union.anon.6, %union.anon.7, %union.anon.8, %union.anon.9 }
%union.anon.6 = type { float }
%union.anon.7 = type { float }
%union.anon.8 = type { float }
%union.anon.9 = type { float }
%"struct.glm::vec.10" = type { %union.anon.11, %union.anon.12 }
%union.anon.11 = type { double }
%union.anon.12 = type { double }
%"struct.glm::vec.13" = type { %union.anon.14, %union.anon.15, %union.anon.16 }
%union.anon.14 = type { double }
%union.anon.15 = type { double }
%union.anon.16 = type { double }
%"struct.glm::vec.17" = type { %union.anon.18, %union.anon.19, %union.anon.20, %union.anon.21 }
%union.anon.18 = type { double }
%union.anon.19 = type { double }
%union.anon.20 = type { double }
%union.anon.21 = type { double }

@__const._Z18test_value_ptr_vecv.v = external hidden unnamed_addr constant %"struct.glm::vec", align 4
@__const._Z18test_value_ptr_vecv.v.1 = external hidden unnamed_addr constant %"struct.glm::vec.1", align 4
@__const._Z18test_value_ptr_vecv.v.2 = external hidden unnamed_addr constant %"struct.glm::vec.5", align 4
@__const._Z18test_value_ptr_vecv.v.3 = external hidden unnamed_addr constant %"struct.glm::vec.10", align 8
@__const._Z18test_value_ptr_vecv.v.4 = external hidden unnamed_addr constant %"struct.glm::vec.13", align 8
@__const._Z18test_value_ptr_vecv.v.5 = external hidden unnamed_addr constant %"struct.glm::vec.17", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z18test_value_ptr_vecv() #0 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::vec", align 4
  %3 = alloca ptr, align 8
  %4 = alloca %"struct.glm::vec.1", align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.glm::vec.5", align 4
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.glm::vec.10", align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.glm::vec.13", align 8
  %11 = alloca ptr, align 8
  %12 = alloca %"struct.glm::vec.17", align 8
  %13 = alloca ptr, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #5
  store i32 0, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const._Z18test_value_ptr_vecv.v, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %14 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(8) %2)
  store ptr %14, ptr %3, align 8, !tbaa !9
  %15 = load ptr, ptr %3, align 8, !tbaa !9
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(8) %2, i32 noundef 0)
  %17 = icmp eq ptr %15, %16
  %18 = zext i1 %17 to i64
  %19 = select i1 %17, i32 0, i32 1
  %20 = load i32, ptr %1, align 4, !tbaa !5
  %21 = add nsw i32 %20, %19
  store i32 %21, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const._Z18test_value_ptr_vecv.v.1, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %22 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(12) %4)
  store ptr %22, ptr %5, align 8, !tbaa !9
  %23 = load ptr, ptr %5, align 8, !tbaa !9
  %24 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %4, i32 noundef 0)
  %25 = icmp eq ptr %23, %24
  %26 = zext i1 %25 to i64
  %27 = select i1 %25, i32 0, i32 1
  %28 = load i32, ptr %1, align 4, !tbaa !5
  %29 = add nsw i32 %28, %27
  store i32 %29, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 @__const._Z18test_value_ptr_vecv.v.2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %30 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %6)
  store ptr %30, ptr %7, align 8, !tbaa !9
  %31 = load ptr, ptr %7, align 8, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %6, i32 noundef 0)
  %33 = icmp eq ptr %31, %32
  %34 = zext i1 %33 to i64
  %35 = select i1 %33, i32 0, i32 1
  %36 = load i32, ptr %1, align 4, !tbaa !5
  %37 = add nsw i32 %36, %35
  store i32 %37, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 @__const._Z18test_value_ptr_vecv.v.3, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %38 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %8)
  store ptr %38, ptr %9, align 8, !tbaa !9
  %39 = load ptr, ptr %9, align 8, !tbaa !9
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi2EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 0)
  %41 = icmp eq ptr %39, %40
  %42 = zext i1 %41 to i64
  %43 = select i1 %41, i32 0, i32 1
  %44 = load i32, ptr %1, align 4, !tbaa !5
  %45 = add nsw i32 %44, %43
  store i32 %45, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 @__const._Z18test_value_ptr_vecv.v.4, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %46 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %10)
  store ptr %46, ptr %11, align 8, !tbaa !9
  %47 = load ptr, ptr %11, align 8, !tbaa !9
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi3EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %10, i32 noundef 0)
  %49 = icmp eq ptr %47, %48
  %50 = zext i1 %49 to i64
  %51 = select i1 %49, i32 0, i32 1
  %52 = load i32, ptr %1, align 4, !tbaa !5
  %53 = add nsw i32 %52, %51
  store i32 %53, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 @__const._Z18test_value_ptr_vecv.v.5, i64 32, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %54 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(32) %12)
  store ptr %54, ptr %13, align 8, !tbaa !9
  %55 = load ptr, ptr %13, align 8, !tbaa !9
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi4EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(32) %12, i32 noundef 0)
  %57 = icmp eq ptr %55, %56
  %58 = zext i1 %57 to i64
  %59 = select i1 %57, i32 0, i32 1
  %60 = load i32, ptr %1, align 4, !tbaa !5
  %61 = add nsw i32 %60, %59
  store i32 %61, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #5
  %62 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %62
}

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(8)) #3

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(12)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16)) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi2EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi3EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi4EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #4 align 2

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


; 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 = type { float }
%union.anon.0 = type { float }
%"struct.glm::vec.1" = type { %union.anon.2, %union.anon.3, %union.anon.4 }
%union.anon.2 = type { float }
%union.anon.3 = type { float }
%union.anon.4 = type { float }
%"struct.glm::vec.5" = type { %union.anon.6, %union.anon.7, %union.anon.8, %union.anon.9 }
%union.anon.6 = type { float }
%union.anon.7 = type { float }
%union.anon.8 = type { float }
%union.anon.9 = type { float }
%"struct.glm::vec.10" = type { %union.anon.11, %union.anon.12 }
%union.anon.11 = type { double }
%union.anon.12 = type { double }
%"struct.glm::vec.13" = type { %union.anon.14, %union.anon.15, %union.anon.16 }
%union.anon.14 = type { double }
%union.anon.15 = type { double }
%union.anon.16 = type { double }
%"struct.glm::vec.17" = type { %union.anon.18, %union.anon.19, %union.anon.20, %union.anon.21 }
%union.anon.18 = type { double }
%union.anon.19 = type { double }
%union.anon.20 = type { double }
%union.anon.21 = type { double }

@__const._Z18test_value_ptr_vecv.v = external hidden unnamed_addr constant %"struct.glm::vec", align 4
@__const._Z18test_value_ptr_vecv.v.1 = external hidden unnamed_addr constant %"struct.glm::vec.1", align 4
@__const._Z18test_value_ptr_vecv.v.2 = external hidden unnamed_addr constant %"struct.glm::vec.5", align 4
@__const._Z18test_value_ptr_vecv.v.3 = external hidden unnamed_addr constant %"struct.glm::vec.10", align 8
@__const._Z18test_value_ptr_vecv.v.4 = external hidden unnamed_addr constant %"struct.glm::vec.13", align 8
@__const._Z18test_value_ptr_vecv.v.5 = external hidden unnamed_addr constant %"struct.glm::vec.17", align 8

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 7) i32 @_Z18test_value_ptr_vecv() local_unnamed_addr #0 {
  %1 = alloca %"struct.glm::vec", align 8
  %2 = alloca %"struct.glm::vec.1", align 4
  %3 = alloca %"struct.glm::vec.5", align 4
  %4 = alloca %"struct.glm::vec.10", align 8
  %5 = alloca %"struct.glm::vec.13", align 8
  %6 = alloca %"struct.glm::vec.17", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  %7 = load i64, ptr @__const._Z18test_value_ptr_vecv.v, align 4
  store i64 %7, ptr %1, align 8
  %8 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(8) %1)
  %9 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi2EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(8) %1, i32 noundef 0)
  %10 = icmp ne ptr %8, %9
  %11 = zext i1 %10 to i32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const._Z18test_value_ptr_vecv.v.1, i64 12, i1 false)
  %12 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(12) %2)
  %13 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi3EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 0)
  %14 = icmp ne ptr %12, %13
  %15 = zext i1 %14 to i32
  %16 = add nuw nsw i32 %15, %11
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %3, ptr noundef nonnull align 4 dereferenceable(16) @__const._Z18test_value_ptr_vecv.v.2, i64 16, i1 false)
  %17 = call noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3glm3vecILi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(16) %3, i32 noundef 0)
  %19 = icmp ne ptr %17, %18
  %20 = zext i1 %19 to i32
  %21 = add nuw nsw i32 %16, %20
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) @__const._Z18test_value_ptr_vecv.v.3, i64 16, i1 false)
  %22 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16) %4)
  %23 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi2EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef 0)
  %24 = icmp ne ptr %22, %23
  %25 = zext i1 %24 to i32
  %26 = add nuw nsw i32 %21, %25
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) @__const._Z18test_value_ptr_vecv.v.4, i64 24, i1 false)
  %27 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi3EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(24) %5, i32 noundef 0)
  %29 = icmp ne ptr %27, %28
  %30 = zext i1 %29 to i32
  %31 = add nuw nsw i32 %26, %30
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) @__const._Z18test_value_ptr_vecv.v.5, i64 32, i1 false)
  %32 = call noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi4EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(32) %6, i32 noundef 0)
  %34 = icmp ne ptr %32, %33
  %35 = zext i1 %34 to i32
  %36 = add nuw nsw i32 %31, %35
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  ret i32 %36
}

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #3

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

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3

; 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 #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIfLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi2ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi2EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi3ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi3EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(24), i32 noundef) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3glm9value_ptrIdLNS_9qualifierE0EEEPT_RNS_3vecILi4ES2_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3glm3vecILi4EdLNS_9qualifierE0EEixEi(ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #4 align 2

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass