; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/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.2" = type { %union.anon.3 }
%union.anon.3 = type { %struct.anon.4 }
%struct.anon.4 = type { i8, i8, i8, i8 }
%"struct.glm::vec" = type { %union.anon }
%union.anon = type { %struct.anon }
%struct.anon = type { float, float, float, float }
%"struct.glm::vec.7" = type { %union.anon.8 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { i8, i8, i8, i8 }
%"struct.glm::vec.12" = type { %union.anon.13 }
%union.anon.13 = type { %struct.anon.14 }
%struct.anon.14 = type { i16, i16, i16, i16 }
%"struct.glm::vec.17" = type { %union.anon.18 }
%union.anon.18 = type { %struct.anon.19 }
%struct.anon.19 = type { i16, i16, i16, 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.2", align 1
  %3 = alloca %"struct.glm::vec", align 4
  %4 = alloca %"struct.glm::vec.7", align 1
  %5 = alloca %"struct.glm::vec", align 4
  %6 = alloca %"struct.glm::vec.12", align 2
  %7 = alloca %"struct.glm::vec", align 4
  %8 = alloca %"struct.glm::vec.17", 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)
  %11 = getelementptr inbounds %"struct.glm::vec.2", ptr %2, i32 0, i32 0
  %12 = getelementptr inbounds %union.anon.3, ptr %11, i32 0, i32 0
  store i32 %10, ptr %12, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  %13 = getelementptr inbounds %"struct.glm::vec.2", ptr %2, i32 0, i32 0
  %14 = getelementptr inbounds %struct.anon.4, ptr %13, i32 0, i32 0
  %15 = load i8, ptr %14, align 1, !tbaa !9
  %16 = zext i8 %15 to i32
  %17 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3minEv() #5
  %18 = zext i8 %17 to i32
  %19 = icmp eq i32 %16, %18
  %20 = zext i1 %19 to i64
  %21 = select i1 %19, i32 0, i32 1
  %22 = load i32, ptr %1, align 4, !tbaa !5
  %23 = add nsw i32 %22, %21
  store i32 %23, ptr %1, align 4, !tbaa !5
  %24 = getelementptr inbounds %"struct.glm::vec.2", ptr %2, i32 0, i32 0
  %25 = getelementptr inbounds %struct.anon.4, ptr %24, i32 0, i32 1
  %26 = load i8, ptr %25, align 1, !tbaa !9
  %27 = zext i8 %26 to i32
  %28 = call noundef zeroext i8 @_ZNSt14numeric_limitsIhE3maxEv() #5
  %29 = zext i8 %28 to i32
  %30 = ashr i32 %29, 2
  %31 = icmp slt i32 %27, %30
  %32 = zext i1 %31 to i64
  %33 = select i1 %31, i32 0, i32 1
  %34 = load i32, ptr %1, align 4, !tbaa !5
  %35 = add nsw i32 %34, %33
  store i32 %35, ptr %1, align 4, !tbaa !5
  %36 = getelementptr inbounds %"struct.glm::vec.2", ptr %2, i32 0, i32 0
  %37 = getelementptr inbounds %struct.anon.4, ptr %36, i32 0, i32 2
  %38 = load i8, ptr %37, align 1, !tbaa !9
  %39 = zext i8 %38 to i32
  %40 = icmp eq i32 %39, 127
  %41 = zext i1 %40 to i64
  %42 = select i1 %40, i32 0, i32 1
  %43 = load i32, ptr %1, align 4, !tbaa !5
  %44 = add nsw i32 %43, %42
  store i32 %44, ptr %1, align 4, !tbaa !5
  %45 = getelementptr inbounds %"struct.glm::vec.2", ptr %2, i32 0, i32 0
  %46 = getelementptr inbounds %struct.anon.4, ptr %45, i32 0, i32 3
  %47 = load i8, ptr %46, align 1, !tbaa !9
  %48 = zext i8 %47 to i32
  %49 = icmp eq i32 %48, 255
  %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 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)
  %54 = call i32 @_ZN3glm9compScaleIaLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %5)
  %55 = getelementptr inbounds %"struct.glm::vec.7", ptr %4, i32 0, i32 0
  %56 = getelementptr inbounds %union.anon.8, ptr %55, i32 0, i32 0
  store i32 %54, ptr %56, align 1
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  %57 = getelementptr inbounds %"struct.glm::vec.7", ptr %4, i32 0, i32 0
  %58 = getelementptr inbounds %struct.anon.9, ptr %57, i32 0, i32 0
  %59 = load i8, ptr %58, align 1, !tbaa !9
  %60 = sext i8 %59 to i32
  %61 = icmp eq i32 %60, 0
  %62 = zext i1 %61 to i64
  %63 = select i1 %61, i32 0, i32 1
  %64 = load i32, ptr %1, align 4, !tbaa !5
  %65 = add nsw i32 %64, %63
  store i32 %65, ptr %1, align 4, !tbaa !5
  %66 = getelementptr inbounds %"struct.glm::vec.7", ptr %4, i32 0, i32 0
  %67 = getelementptr inbounds %struct.anon.9, ptr %66, i32 0, i32 1
  %68 = load i8, ptr %67, align 1, !tbaa !9
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 %69, -128
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 0, i32 1
  %73 = load i32, ptr %1, align 4, !tbaa !5
  %74 = add nsw i32 %73, %72
  store i32 %74, ptr %1, align 4, !tbaa !5
  %75 = getelementptr inbounds %"struct.glm::vec.7", ptr %4, i32 0, i32 0
  %76 = getelementptr inbounds %struct.anon.9, ptr %75, i32 0, i32 2
  %77 = load i8, ptr %76, align 1, !tbaa !9
  %78 = sext i8 %77 to i32
  %79 = icmp eq i32 %78, 63
  %80 = zext i1 %79 to i64
  %81 = select i1 %79, i32 0, i32 1
  %82 = load i32, ptr %1, align 4, !tbaa !5
  %83 = add nsw i32 %82, %81
  store i32 %83, ptr %1, align 4, !tbaa !5
  %84 = getelementptr inbounds %"struct.glm::vec.7", ptr %4, i32 0, i32 0
  %85 = getelementptr inbounds %struct.anon.9, ptr %84, i32 0, i32 3
  %86 = load i8, ptr %85, align 1, !tbaa !9
  %87 = sext i8 %86 to i32
  %88 = icmp eq i32 %87, 127
  %89 = zext i1 %88 to i64
  %90 = select i1 %88, i32 0, i32 1
  %91 = load i32, ptr %1, align 4, !tbaa !5
  %92 = add nsw i32 %91, %90
  store i32 %92, 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)
  %93 = call i64 @_ZN3glm9compScaleItLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %7)
  %94 = getelementptr inbounds %"struct.glm::vec.12", ptr %6, i32 0, i32 0
  %95 = getelementptr inbounds %union.anon.13, ptr %94, i32 0, i32 0
  store i64 %93, ptr %95, align 2
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #5
  %96 = getelementptr inbounds %"struct.glm::vec.12", ptr %6, i32 0, i32 0
  %97 = getelementptr inbounds %struct.anon.14, ptr %96, i32 0, i32 0
  %98 = load i16, ptr %97, align 2, !tbaa !9
  %99 = zext i16 %98 to i32
  %100 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3minEv() #5
  %101 = zext i16 %100 to i32
  %102 = icmp eq i32 %99, %101
  %103 = zext i1 %102 to i64
  %104 = select i1 %102, i32 0, i32 1
  %105 = load i32, ptr %1, align 4, !tbaa !5
  %106 = add nsw i32 %105, %104
  store i32 %106, ptr %1, align 4, !tbaa !5
  %107 = getelementptr inbounds %"struct.glm::vec.12", ptr %6, i32 0, i32 0
  %108 = getelementptr inbounds %struct.anon.14, ptr %107, i32 0, i32 1
  %109 = load i16, ptr %108, align 2, !tbaa !9
  %110 = zext i16 %109 to i32
  %111 = call noundef zeroext i16 @_ZNSt14numeric_limitsItE3maxEv() #5
  %112 = zext i16 %111 to i32
  %113 = ashr i32 %112, 2
  %114 = icmp slt i32 %110, %113
  %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
  %119 = getelementptr inbounds %"struct.glm::vec.12", ptr %6, i32 0, i32 0
  %120 = getelementptr inbounds %struct.anon.14, ptr %119, i32 0, i32 2
  %121 = load i16, ptr %120, align 2, !tbaa !9
  %122 = zext i16 %121 to i32
  %123 = icmp eq i32 %122, 32767
  %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.12", ptr %6, i32 0, i32 0
  %129 = getelementptr inbounds %struct.anon.14, ptr %128, i32 0, i32 3
  %130 = load i16, ptr %129, align 2, !tbaa !9
  %131 = zext i16 %130 to i32
  %132 = icmp eq i32 %131, 65535
  %133 = zext i1 %132 to i64
  %134 = select i1 %132, i32 0, i32 1
  %135 = load i32, ptr %1, align 4, !tbaa !5
  %136 = add nsw i32 %135, %134
  store i32 %136, 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)
  %137 = call i64 @_ZN3glm9compScaleIsLi4EfLNS_9qualifierE0EEENS_3vecIXT0_ET_XT2_EEERKNS2_IXT0_ET1_XT2_EEE(ptr noundef nonnull align 4 dereferenceable(16) %9)
  %138 = getelementptr inbounds %"struct.glm::vec.17", ptr %8, i32 0, i32 0
  %139 = getelementptr inbounds %union.anon.18, ptr %138, i32 0, i32 0
  store i64 %137, ptr %139, align 2
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  %140 = getelementptr inbounds %"struct.glm::vec.17", ptr %8, i32 0, i32 0
  %141 = getelementptr inbounds %struct.anon.19, ptr %140, i32 0, i32 0
  %142 = load i16, ptr %141, align 2, !tbaa !9
  %143 = sext i16 %142 to i32
  %144 = icmp eq i32 %143, 0
  %145 = zext i1 %144 to i64
  %146 = select i1 %144, i32 0, i32 1
  %147 = load i32, ptr %1, align 4, !tbaa !5
  %148 = add nsw i32 %147, %146
  store i32 %148, ptr %1, align 4, !tbaa !5
  %149 = getelementptr inbounds %"struct.glm::vec.17", ptr %8, i32 0, i32 0
  %150 = getelementptr inbounds %struct.anon.19, ptr %149, i32 0, i32 1
  %151 = load i16, ptr %150, align 2, !tbaa !9
  %152 = sext i16 %151 to i32
  %153 = icmp eq i32 %152, -32768
  %154 = zext i1 %153 to i64
  %155 = select i1 %153, i32 0, i32 1
  %156 = load i32, ptr %1, align 4, !tbaa !5
  %157 = add nsw i32 %156, %155
  store i32 %157, ptr %1, align 4, !tbaa !5
  %158 = getelementptr inbounds %"struct.glm::vec.17", ptr %8, i32 0, i32 0
  %159 = getelementptr inbounds %struct.anon.19, ptr %158, i32 0, i32 2
  %160 = load i16, ptr %159, align 2, !tbaa !9
  %161 = sext i16 %160 to i32
  %162 = icmp eq i32 %161, 16383
  %163 = zext i1 %162 to i64
  %164 = select i1 %162, i32 0, i32 1
  %165 = load i32, ptr %1, align 4, !tbaa !5
  %166 = add nsw i32 %165, %164
  store i32 %166, ptr %1, align 4, !tbaa !5
  %167 = getelementptr inbounds %"struct.glm::vec.17", ptr %8, i32 0, i32 0
  %168 = getelementptr inbounds %struct.anon.19, ptr %167, i32 0, i32 3
  %169 = load i16, ptr %168, align 2, !tbaa !9
  %170 = sext i16 %169 to i32
  %171 = icmp eq i32 %170, 32767
  %172 = zext i1 %171 to i64
  %173 = select i1 %171, i32 0, i32 1
  %174 = load i32, ptr %1, align 4, !tbaa !5
  %175 = add nsw i32 %174, %173
  store i32 %175, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %176 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %176
}

; 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 = type { %struct.anon }
%struct.anon = type { float, float, float, 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