; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/gtx (gtx_euler_angle)

; 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.7" = type { %union.anon.8 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { i8, i8, i8, i8 }

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN23test_derivedEulerAngles12epsilonEqualERKN3glm3matILi4ELi4EfLNS0_9qualifierE0EEES5_RKf(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) #3 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"struct.glm::vec.7", align 1
  %8 = alloca %"struct.glm::vec.7", align 1
  %9 = alloca %"struct.glm::vec.7", align 1
  %10 = alloca %"struct.glm::vec.7", align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %11, i32 noundef 0)
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %13, i32 noundef 0)
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %12, ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
  %17 = getelementptr inbounds %"struct.glm::vec.7", ptr %7, i32 0, i32 0
  %18 = getelementptr inbounds %union.anon.8, ptr %17, i32 0, i32 0
  store i32 %16, ptr %18, align 1
  %19 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %7)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  br i1 %19, label %20, label %58

20:                                               ; preds = %3
  %21 = load ptr, ptr %4, align 8, !tbaa !5
  %22 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %21, i32 noundef 1)
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  %24 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %23, i32 noundef 1)
  %25 = load ptr, ptr %6, align 8, !tbaa !5
  %26 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %22, ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %25)
  %27 = getelementptr inbounds %"struct.glm::vec.7", ptr %8, i32 0, i32 0
  %28 = getelementptr inbounds %union.anon.8, ptr %27, i32 0, i32 0
  store i32 %26, ptr %28, align 1
  %29 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %8)
  br i1 %29, label %30, label %55

30:                                               ; preds = %20
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %31, i32 noundef 2)
  %33 = load ptr, ptr %5, align 8, !tbaa !5
  %34 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %33, i32 noundef 2)
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %32, ptr noundef nonnull align 4 dereferenceable(16) %34, ptr noundef nonnull align 4 dereferenceable(4) %35)
  %37 = getelementptr inbounds %"struct.glm::vec.7", ptr %9, i32 0, i32 0
  %38 = getelementptr inbounds %union.anon.8, ptr %37, i32 0, i32 0
  store i32 %36, ptr %38, align 1
  %39 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %9)
  br i1 %39, label %40, label %52

40:                                               ; preds = %30
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %41, i32 noundef 3)
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %43, i32 noundef 3)
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %42, ptr noundef nonnull align 4 dereferenceable(16) %44, ptr noundef nonnull align 4 dereferenceable(4) %45)
  %47 = getelementptr inbounds %"struct.glm::vec.7", ptr %10, i32 0, i32 0
  %48 = getelementptr inbounds %union.anon.8, ptr %47, i32 0, i32 0
  store i32 %46, ptr %48, align 1
  %49 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %10)
  %50 = zext i1 %49 to i64
  %51 = select i1 %49, i1 true, i1 false
  br label %53

52:                                               ; preds = %30
  br label %53

53:                                               ; preds = %52, %40
  %54 = phi i1 [ %51, %40 ], [ false, %52 ]
  br label %56

55:                                               ; preds = %20
  br label %56

56:                                               ; preds = %55, %53
  %57 = phi i1 [ %54, %53 ], [ false, %55 ]
  br label %59

58:                                               ; preds = %3
  br label %59

59:                                               ; preds = %58, %56
  %60 = phi i1 [ %57, %56 ], [ false, %58 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i1 %60
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}


; 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.7" = type { %union.anon.8 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { i8, i8, i8, i8 }

; 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: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN23test_derivedEulerAngles12epsilonEqualERKN3glm3matILi4ELi4EfLNS0_9qualifierE0EEES5_RKf(ptr noundef nonnull align 4 dereferenceable(64) %0, ptr noundef nonnull align 4 dereferenceable(64) %1, ptr noundef nonnull align 4 dereferenceable(4) %2) local_unnamed_addr #3 {
  %4 = alloca %"struct.glm::vec.7", align 4
  %5 = alloca %"struct.glm::vec.7", align 4
  %6 = alloca %"struct.glm::vec.7", align 4
  %7 = alloca %"struct.glm::vec.7", align 4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #5
  %8 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %0, i32 noundef 0)
  %9 = tail call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %1, i32 noundef 0)
  %10 = tail call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %8, ptr noundef nonnull align 4 dereferenceable(16) %9, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i32 %10, ptr %4, align 4
  %11 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %4)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  br i1 %11, label %12, label %27

12:                                               ; preds = %3
  %13 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %0, i32 noundef 1)
  %14 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %1, i32 noundef 1)
  %15 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(16) %14, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i32 %15, ptr %5, align 4
  %16 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %5)
  br i1 %16, label %17, label %27

17:                                               ; preds = %12
  %18 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %0, i32 noundef 2)
  %19 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %1, i32 noundef 2)
  %20 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %18, ptr noundef nonnull align 4 dereferenceable(16) %19, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i32 %20, ptr %6, align 4
  %21 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %6)
  br i1 %21, label %22, label %27

22:                                               ; preds = %17
  %23 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %0, i32 noundef 3)
  %24 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3glm3matILi4ELi4EfLNS_9qualifierE0EEixEi(ptr noundef nonnull align 4 dereferenceable(64) %1, i32 noundef 3)
  %25 = call i32 @_ZN3glm12epsilonEqualILi4EfLNS_9qualifierE0EEENS_3vecIXT_EbXT1_EEERKNS2_IXT_ET0_XT1_EEES7_RKS4_(ptr noundef nonnull align 4 dereferenceable(16) %23, ptr noundef nonnull align 4 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(4) %2)
  store i32 %25, ptr %7, align 4
  %26 = call noundef zeroext i1 @_ZN3glm3allILi4ELNS_9qualifierE0EEEbRKNS_3vecIXT_EbXT0_EEE(ptr noundef nonnull align 1 dereferenceable(4) %7)
  br label %27

27:                                               ; preds = %3, %17, %22, %12
  %28 = phi i1 [ %26, %22 ], [ false, %17 ], [ false, %12 ], [ false, %3 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #5
  ret i1 %28
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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 #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,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass