; LLVM IR from jpvt/Computer_Graphics :: Assignment #3/third_party/glm/test/gtx/gtx_component_wise.ll (ZN9compScale3runEv)

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

; 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 nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3minEv() #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN9compScale3runEv() #2 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::vec.3", align 1
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca %"struct.glm::vec.8", align 1
  %5 = alloca %"struct.glm::vec", align 4
  %6 = alloca %"struct.glm::vec.13", align 2
  %7 = alloca %"struct.glm::vec", align 4
  %8 = alloca %"struct.glm::vec.18", align 2
  %9 = alloca %"struct.glm::vec", align 4
  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 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #5
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %10 = call i32 @_ZN3glm9compScaleIhLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %3)
  store i32 %10, ptr %2, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  %11 = getelementptr inbounds %"struct.glm::vec.3", ptr %2, i32 0, i32 0
  %12 = load i8, ptr %11, align 1, !tbaa !9
  %13 = zext i8 %12 to i32
  %14 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3minEv() #5
  %15 = zext i8 %14 to i32
  %16 = icmp eq i32 %13, %15
  %17 = zext i1 %16 to i64
  %18 = select i1 %16, i32 0, i32 1
  %19 = load i32, ptr %1, align 4, !tbaa !5
  %20 = add nsw i32 %19, %18
  store i32 %20, ptr %1, align 4, !tbaa !5
  %21 = getelementptr inbounds %"struct.glm::vec.3", ptr %2, i32 0, i32 1
  %22 = load i8, ptr %21, align 1, !tbaa !9
  %23 = zext i8 %22 to i32
  %24 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3maxEv() #5
  %25 = zext i8 %24 to i32
  %26 = ashr i32 %25, 2
  %27 = icmp slt i32 %23, %26
  %28 = zext i1 %27 to i64
  %29 = select i1 %27, i32 0, i32 1
  %30 = load i32, ptr %1, align 4, !tbaa !5
  %31 = add nsw i32 %30, %29
  store i32 %31, ptr %1, align 4, !tbaa !5
  %32 = getelementptr inbounds %"struct.glm::vec.3", ptr %2, i32 0, i32 2
  %33 = load i8, ptr %32, align 1, !tbaa !9
  %34 = zext i8 %33 to i32
  %35 = icmp eq i32 %34, 127
  %36 = zext i1 %35 to i64
  %37 = select i1 %35, i32 0, i32 1
  %38 = load i32, ptr %1, align 4, !tbaa !5
  %39 = add nsw i32 %38, %37
  store i32 %39, ptr %1, align 4, !tbaa !5
  %40 = getelementptr inbounds %"struct.glm::vec.3", ptr %2, i32 0, i32 3
  %41 = load i8, ptr %40, align 1, !tbaa !9
  %42 = zext i8 %41 to i32
  %43 = icmp eq i32 %42, 255
  %44 = zext i1 %43 to i64
  %45 = select i1 %43, i32 0, i32 1
  %46 = load i32, ptr %1, align 4, !tbaa !5
  %47 = add nsw i32 %46, %45
  store i32 %47, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %5, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %48 = call i32 @_ZN3glm9compScaleIaLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %5)
  store i32 %48, ptr %4, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  %49 = getelementptr inbounds %"struct.glm::vec.8", ptr %4, i32 0, i32 0
  %50 = load i8, ptr %49, align 1, !tbaa !9
  %51 = sext i8 %50 to i32
  %52 = icmp eq i32 %51, 0
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 0, i32 1
  %55 = load i32, ptr %1, align 4, !tbaa !5
  %56 = add nsw i32 %55, %54
  store i32 %56, ptr %1, align 4, !tbaa !5
  %57 = getelementptr inbounds %"struct.glm::vec.8", ptr %4, i32 0, i32 1
  %58 = load i8, ptr %57, align 1, !tbaa !9
  %59 = sext i8 %58 to i32
  %60 = icmp eq i32 %59, -128
  %61 = zext i1 %60 to i64
  %62 = select i1 %60, i32 0, i32 1
  %63 = load i32, ptr %1, align 4, !tbaa !5
  %64 = add nsw i32 %63, %62
  store i32 %64, ptr %1, align 4, !tbaa !5
  %65 = getelementptr inbounds %"struct.glm::vec.8", ptr %4, i32 0, i32 2
  %66 = load i8, ptr %65, align 1, !tbaa !9
  %67 = sext i8 %66 to i32
  %68 = icmp eq i32 %67, 63
  %69 = zext i1 %68 to i64
  %70 = select i1 %68, i32 0, i32 1
  %71 = load i32, ptr %1, align 4, !tbaa !5
  %72 = add nsw i32 %71, %70
  store i32 %72, ptr %1, align 4, !tbaa !5
  %73 = getelementptr inbounds %"struct.glm::vec.8", ptr %4, i32 0, i32 3
  %74 = load i8, ptr %73, align 1, !tbaa !9
  %75 = sext i8 %74 to i32
  %76 = icmp eq i32 %75, 127
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 0, i32 1
  %79 = load i32, ptr %1, align 4, !tbaa !5
  %80 = add nsw i32 %79, %78
  store i32 %80, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #5
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %81 = call i64 @_ZN3glm9compScaleItLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %7)
  store i64 %81, ptr %6, align 2
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  %82 = getelementptr inbounds %"struct.glm::vec.13", ptr %6, i32 0, i32 0
  %83 = load i16, ptr %82, align 2, !tbaa !9
  %84 = zext i16 %83 to i32
  %85 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3minEv() #5
  %86 = zext i16 %85 to i32
  %87 = icmp eq i32 %84, %86
  %88 = zext i1 %87 to i64
  %89 = select i1 %87, i32 0, i32 1
  %90 = load i32, ptr %1, align 4, !tbaa !5
  %91 = add nsw i32 %90, %89
  store i32 %91, ptr %1, align 4, !tbaa !5
  %92 = getelementptr inbounds %"struct.glm::vec.13", ptr %6, i32 0, i32 1
  %93 = load i16, ptr %92, align 2, !tbaa !9
  %94 = zext i16 %93 to i32
  %95 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #5
  %96 = zext i16 %95 to i32
  %97 = ashr i32 %96, 2
  %98 = icmp slt i32 %94, %97
  %99 = zext i1 %98 to i64
  %100 = select i1 %98, i32 0, i32 1
  %101 = load i32, ptr %1, align 4, !tbaa !5
  %102 = add nsw i32 %101, %100
  store i32 %102, ptr %1, align 4, !tbaa !5
  %103 = getelementptr inbounds %"struct.glm::vec.13", ptr %6, i32 0, i32 2
  %104 = load i16, ptr %103, align 2, !tbaa !9
  %105 = zext i16 %104 to i32
  %106 = icmp eq i32 %105, 32767
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, i32 0, i32 1
  %109 = load i32, ptr %1, align 4, !tbaa !5
  %110 = add nsw i32 %109, %108
  store i32 %110, ptr %1, align 4, !tbaa !5
  %111 = getelementptr inbounds %"struct.glm::vec.13", ptr %6, i32 0, i32 3
  %112 = load i16, ptr %111, align 2, !tbaa !9
  %113 = zext i16 %112 to i32
  %114 = icmp eq i32 %113, 65535
  %115 = zext i1 %114 to i64
  %116 = select i1 %114, i32 0, i32 1
  %117 = load i32, ptr %1, align 4, !tbaa !5
  %118 = add nsw i32 %117, %116
  store i32 %118, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %119 = call i64 @_ZN3glm9compScaleIsLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %9)
  store i64 %119, ptr %8, align 2
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  %120 = getelementptr inbounds %"struct.glm::vec.18", ptr %8, i32 0, i32 0
  %121 = load i16, ptr %120, align 2, !tbaa !9
  %122 = sext i16 %121 to i32
  %123 = icmp eq i32 %122, 0
  %124 = zext i1 %123 to i64
  %125 = select i1 %123, i32 0, i32 1
  %126 = load i32, ptr %1, align 4, !tbaa !5
  %127 = add nsw i32 %126, %125
  store i32 %127, ptr %1, align 4, !tbaa !5
  %128 = getelementptr inbounds %"struct.glm::vec.18", ptr %8, i32 0, i32 1
  %129 = load i16, ptr %128, align 2, !tbaa !9
  %130 = sext i16 %129 to i32
  %131 = icmp eq i32 %130, -32768
  %132 = zext i1 %131 to i64
  %133 = select i1 %131, i32 0, i32 1
  %134 = load i32, ptr %1, align 4, !tbaa !5
  %135 = add nsw i32 %134, %133
  store i32 %135, ptr %1, align 4, !tbaa !5
  %136 = getelementptr inbounds %"struct.glm::vec.18", ptr %8, i32 0, i32 2
  %137 = load i16, ptr %136, align 2, !tbaa !9
  %138 = sext i16 %137 to i32
  %139 = icmp eq i32 %138, 16383
  %140 = zext i1 %139 to i64
  %141 = select i1 %139, i32 0, i32 1
  %142 = load i32, ptr %1, align 4, !tbaa !5
  %143 = add nsw i32 %142, %141
  store i32 %143, ptr %1, align 4, !tbaa !5
  %144 = getelementptr inbounds %"struct.glm::vec.18", ptr %8, i32 0, i32 3
  %145 = load i16, ptr %144, align 2, !tbaa !9
  %146 = sext i16 %145 to i32
  %147 = icmp eq i32 %146, 32767
  %148 = zext i1 %147 to i64
  %149 = select i1 %147, i32 0, i32 1
  %150 = load i32, ptr %1, align 4, !tbaa !5
  %151 = add nsw i32 %150, %149
  store i32 %151, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %152 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %152
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNSt14numeric_limitsIhE3minEv() #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNSt14numeric_limitsIhE3maxEv() #1 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !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.1, %union.anon.2 }
%union.anon = type { float }
%union.anon.0 = type { float }
%union.anon.1 = type { float }
%union.anon.2 = 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 nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3minEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 17) i32 @_ZN9compScale3runEv() local_unnamed_addr #2 {
  %1 = alloca %"struct.glm::vec", align 4
  %2 = alloca %"struct.glm::vec", align 4
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca %"struct.glm::vec", align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %1, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %5 = call i32 @_ZN3glm9compScaleIhLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %1)
  %.sroa.410.0.extract.shift = lshr i32 %5, 8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #6
  %6 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3minEv() #6
  %7 = trunc i32 %5 to i8
  %8 = icmp ne i8 %6, %7
  %9 = zext i1 %8 to i32
  %10 = and i32 %.sroa.410.0.extract.shift, 255
  %11 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3maxEv() #6
  %12 = lshr i8 %11, 2
  %13 = zext nneg i8 %12 to i32
  %14 = icmp uge i32 %10, %13
  %15 = zext i1 %14 to i32
  %16 = and i32 %5, 16711680
  %17 = icmp ne i32 %16, 8323072
  %18 = zext i1 %17 to i32
  %19 = icmp ult i32 %5, -16777216
  %20 = zext i1 %19 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %2, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %21 = call i32 @_ZN3glm9compScaleIaLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  %22 = insertelement <4 x i32> poison, i32 %21, i64 0
  %23 = shufflevector <4 x i32> %22, <4 x i32> poison, <4 x i32> zeroinitializer
  %24 = and <4 x i32> %23, <i32 255, i32 65280, i32 16711680, i32 -16777216>
  %25 = icmp ne <4 x i32> %24, <i32 0, i32 32768, i32 4128768, i32 2130706432>
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 0x3FC99999A0000000, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %26 = call i64 @_ZN3glm9compScaleItLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %3)
  %27 = trunc i64 %26 to i32
  %28 = lshr i32 %27, 16
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  %29 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3minEv() #6
  %30 = trunc i64 %26 to i16
  %31 = icmp ne i16 %29, %30
  %32 = zext i1 %31 to i32
  %33 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #6
  %34 = lshr i16 %33, 2
  %35 = zext nneg i16 %34 to i32
  %36 = icmp uge i32 %28, %35
  %37 = zext i1 %36 to i32
  %38 = and i64 %26, 281470681743360
  %39 = icmp ne i64 %38, 140733193388032
  %40 = zext i1 %39 to i32
  %41 = icmp ult i64 %26, -281474976710656
  %42 = zext i1 %41 to i32
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN3glm3vecILi4EfLNS_9qualifierE0EEC2Effff(ptr noundef nonnull align 4 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef -1.000000e+00, float noundef 5.000000e-01, float noundef 1.000000e+00)
  %43 = call i64 @_ZN3glm9compScaleIsLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %4)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %sext.mask2930 = and i64 %43, 65535
  %44 = icmp ne i64 %sext.mask2930, 0
  %45 = zext i1 %44 to i32
  %.mask3132 = and i64 %43, 4294901760
  %46 = icmp ne i64 %.mask3132, 2147483648
  %47 = zext i1 %46 to i32
  %48 = and i64 %43, 281470681743360
  %49 = icmp ne i64 %48, 70364449210368
  %50 = zext i1 %49 to i32
  %51 = and i64 %43, -281474976710656
  %52 = icmp ne i64 %51, 9223090561878065152
  %53 = zext i1 %52 to i32
  %54 = bitcast <4 x i1> %25 to i4
  %55 = call range(i4 0, 5) i4 @llvm.ctpop.i4(i4 %54)
  %56 = zext nneg i4 %55 to i32
  %op.rdx = add nuw nsw i32 %56, %18
  %op.rdx37 = add nuw nsw i32 %20, %9
  %op.rdx38 = add nuw nsw i32 %15, %42
  %op.rdx39 = add nuw nsw i32 %40, %32
  %op.rdx40 = add nuw nsw i32 %37, %45
  %op.rdx41 = add nuw nsw i32 %47, %50
  %op.rdx42 = add nuw nsw i32 %op.rdx, %op.rdx37
  %op.rdx43 = add nuw nsw i32 %op.rdx38, %op.rdx39
  %op.rdx44 = add nuw nsw i32 %op.rdx40, %op.rdx41
  %op.rdx45 = add nuw nsw i32 %op.rdx42, %op.rdx43
  %op.rdx46 = add nuw nsw i32 %op.rdx44, %53
  %op.rdx47 = add nuw nsw i32 %op.rdx45, %op.rdx46
  ret i32 %op.rdx47
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNSt14numeric_limitsIhE3minEv() local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i8 @_ZNSt14numeric_limitsIhE3maxEv() local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i4 @llvm.ctpop.i4(i4) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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)"}


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