; LLVM IR from Dovyski/opengl-demos :: libs/glm-0.9.9.3/test/core/core_type_vec3.ll (Z20test_vec3_swizzle3_3v)

; 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.1419" = type { %union.anon.1420 }
%union.anon.1420 = type { %struct.anon.1421 }
%struct.anon.1421 = type { i32, i32, i32 }
%struct.anon.1500 = type { %"struct.glm::detail::_swizzle.1501" }
%"struct.glm::detail::_swizzle.1501" = type { %"struct.glm::detail::_swizzle_base2.1502" }
%"struct.glm::detail::_swizzle_base2.1502" = type { %"struct.glm::detail::_swizzle_base1.1503" }
%"struct.glm::detail::_swizzle_base1.1503" = type { %"struct.glm::detail::_swizzle_base0.1483" }
%"struct.glm::detail::_swizzle_base0.1483" = type { [1 x i8] }
%struct.anon.1564 = type { %"struct.glm::detail::_swizzle.1565" }
%"struct.glm::detail::_swizzle.1565" = type { %"struct.glm::detail::_swizzle_base2.1566" }
%"struct.glm::detail::_swizzle_base2.1566" = type { %"struct.glm::detail::_swizzle_base1.1567" }
%"struct.glm::detail::_swizzle_base1.1567" = type { %"struct.glm::detail::_swizzle_base0.1483" }
%struct.anon.1593 = type { %"struct.glm::detail::_swizzle.1501" }
%struct.anon.1609 = type { %"struct.glm::detail::_swizzle.1565" }
%struct.anon.1620 = type { %"struct.glm::detail::_swizzle.1501" }
%struct.anon.1636 = type { %"struct.glm::detail::_swizzle.1565" }

; 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 nounwind uwtable
declare dso_local void @_ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z20test_vec3_swizzle3_3v() #3 {
  %1 = alloca i32, align 4
  %2 = alloca %"struct.glm::vec.1419", align 4
  %3 = alloca %"struct.glm::vec.1419", align 4
  %4 = alloca %"struct.glm::vec.1419", align 4
  %5 = alloca { i64, i32 }, align 8
  %6 = alloca %"struct.glm::vec.1419", align 4
  %7 = alloca { i64, i32 }, align 8
  %8 = alloca %"struct.glm::vec.1419", align 4
  %9 = alloca { i64, i32 }, align 8
  %10 = alloca %"struct.glm::vec.1419", align 4
  %11 = alloca { i64, i32 }, align 8
  %12 = alloca %"struct.glm::vec.1419", align 4
  %13 = alloca { i64, i32 }, align 8
  %14 = alloca %"struct.glm::vec.1419", align 4
  %15 = alloca { i64, i32 }, 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 12, ptr %2) #5
  call void @_ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %2, i32 noundef 1, i32 noundef 2, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %2, i64 12, i1 false), !tbaa.struct !9
  %16 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %17 = getelementptr inbounds %struct.anon.1421, ptr %16, i32 0, i32 0
  %18 = load i32, ptr %17, align 4, !tbaa !10
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %20, label %30

20:                                               ; preds = %0
  %21 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %22 = getelementptr inbounds %struct.anon.1421, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 4, !tbaa !10
  %24 = icmp eq i32 %23, 2
  br i1 %24, label %25, label %30

25:                                               ; preds = %20
  %26 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %27 = getelementptr inbounds %struct.anon.1421, ptr %26, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !10
  %29 = icmp eq i32 %28, 3
  br label %30

30:                                               ; preds = %25, %20, %0
  %31 = phi i1 [ false, %20 ], [ false, %0 ], [ %29, %25 ]
  %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
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  %36 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %37 = getelementptr inbounds %struct.anon.1500, ptr %36, i32 0, i32 0
  %38 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %37)
  %39 = getelementptr inbounds %"struct.glm::vec.1419", ptr %4, i32 0, i32 0
  %40 = getelementptr inbounds %union.anon.1420, ptr %39, i32 0, i32 0
  store { i64, i32 } %38, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %40, ptr align 8 %5, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %4, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  %41 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %42 = getelementptr inbounds %struct.anon.1421, ptr %41, i32 0, i32 0
  %43 = load i32, ptr %42, align 4, !tbaa !10
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %55

45:                                               ; preds = %30
  %46 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %47 = getelementptr inbounds %struct.anon.1421, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !10
  %49 = icmp eq i32 %48, 2
  br i1 %49, label %50, label %55

50:                                               ; preds = %45
  %51 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %52 = getelementptr inbounds %struct.anon.1421, ptr %51, i32 0, i32 2
  %53 = load i32, ptr %52, align 4, !tbaa !10
  %54 = icmp eq i32 %53, 3
  br label %55

55:                                               ; preds = %50, %45, %30
  %56 = phi i1 [ false, %45 ], [ false, %30 ], [ %54, %50 ]
  %57 = zext i1 %56 to i64
  %58 = select i1 %56, i32 0, i32 1
  %59 = load i32, ptr %1, align 4, !tbaa !5
  %60 = add nsw i32 %59, %58
  store i32 %60, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #5
  %61 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %62 = getelementptr inbounds %struct.anon.1564, ptr %61, i32 0, i32 0
  %63 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %62)
  %64 = getelementptr inbounds %"struct.glm::vec.1419", ptr %6, i32 0, i32 0
  %65 = getelementptr inbounds %union.anon.1420, ptr %64, i32 0, i32 0
  store { i64, i32 } %63, ptr %7, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %65, ptr align 8 %7, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %6, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #5
  %66 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %67 = getelementptr inbounds %struct.anon.1421, ptr %66, i32 0, i32 0
  %68 = load i32, ptr %67, align 4, !tbaa !10
  %69 = icmp eq i32 %68, 3
  br i1 %69, label %70, label %80

70:                                               ; preds = %55
  %71 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %72 = getelementptr inbounds %struct.anon.1421, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !10
  %74 = icmp eq i32 %73, 2
  br i1 %74, label %75, label %80

75:                                               ; preds = %70
  %76 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %77 = getelementptr inbounds %struct.anon.1421, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 4, !tbaa !10
  %79 = icmp eq i32 %78, 1
  br label %80

80:                                               ; preds = %75, %70, %55
  %81 = phi i1 [ false, %70 ], [ false, %55 ], [ %79, %75 ]
  %82 = zext i1 %81 to i64
  %83 = select i1 %81, i32 0, i32 1
  %84 = load i32, ptr %1, align 4, !tbaa !5
  %85 = add nsw i32 %84, %83
  store i32 %85, ptr %1, align 4, !tbaa !5
  %86 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %87 = getelementptr inbounds %struct.anon.1564, ptr %86, i32 0, i32 0
  %88 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %87, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %89 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %90 = getelementptr inbounds %struct.anon.1421, ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 4, !tbaa !10
  %92 = icmp eq i32 %91, 3
  br i1 %92, label %93, label %103

93:                                               ; preds = %80
  %94 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %95 = getelementptr inbounds %struct.anon.1421, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !10
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %98, label %103

98:                                               ; preds = %93
  %99 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %100 = getelementptr inbounds %struct.anon.1421, ptr %99, i32 0, i32 2
  %101 = load i32, ptr %100, align 4, !tbaa !10
  %102 = icmp eq i32 %101, 1
  br label %103

103:                                              ; preds = %98, %93, %80
  %104 = phi i1 [ false, %93 ], [ false, %80 ], [ %102, %98 ]
  %105 = zext i1 %104 to i64
  %106 = select i1 %104, i32 0, i32 1
  %107 = load i32, ptr %1, align 4, !tbaa !5
  %108 = add nsw i32 %107, %106
  store i32 %108, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #5
  %109 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %110 = getelementptr inbounds %struct.anon.1593, ptr %109, i32 0, i32 0
  %111 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %110)
  %112 = getelementptr inbounds %"struct.glm::vec.1419", ptr %8, i32 0, i32 0
  %113 = getelementptr inbounds %union.anon.1420, ptr %112, i32 0, i32 0
  store { i64, i32 } %111, ptr %9, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %113, ptr align 8 %9, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %8, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #5
  %114 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %115 = getelementptr inbounds %struct.anon.1421, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 4, !tbaa !10
  %117 = icmp eq i32 %116, 1
  br i1 %117, label %118, label %128

118:                                              ; preds = %103
  %119 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %120 = getelementptr inbounds %struct.anon.1421, ptr %119, i32 0, i32 1
  %121 = load i32, ptr %120, align 4, !tbaa !10
  %122 = icmp eq i32 %121, 2
  br i1 %122, label %123, label %128

123:                                              ; preds = %118
  %124 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %125 = getelementptr inbounds %struct.anon.1421, ptr %124, i32 0, i32 2
  %126 = load i32, ptr %125, align 4, !tbaa !10
  %127 = icmp eq i32 %126, 3
  br label %128

128:                                              ; preds = %123, %118, %103
  %129 = phi i1 [ false, %118 ], [ false, %103 ], [ %127, %123 ]
  %130 = zext i1 %129 to i64
  %131 = select i1 %129, i32 0, i32 1
  %132 = load i32, ptr %1, align 4, !tbaa !5
  %133 = add nsw i32 %132, %131
  store i32 %133, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #5
  %134 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %135 = getelementptr inbounds %struct.anon.1609, ptr %134, i32 0, i32 0
  %136 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %135)
  %137 = getelementptr inbounds %"struct.glm::vec.1419", ptr %10, i32 0, i32 0
  %138 = getelementptr inbounds %union.anon.1420, ptr %137, i32 0, i32 0
  store { i64, i32 } %136, ptr %11, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %138, ptr align 8 %11, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #5
  %139 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %140 = getelementptr inbounds %struct.anon.1421, ptr %139, i32 0, i32 0
  %141 = load i32, ptr %140, align 4, !tbaa !10
  %142 = icmp eq i32 %141, 3
  br i1 %142, label %143, label %153

143:                                              ; preds = %128
  %144 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %145 = getelementptr inbounds %struct.anon.1421, ptr %144, i32 0, i32 1
  %146 = load i32, ptr %145, align 4, !tbaa !10
  %147 = icmp eq i32 %146, 2
  br i1 %147, label %148, label %153

148:                                              ; preds = %143
  %149 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %150 = getelementptr inbounds %struct.anon.1421, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 4, !tbaa !10
  %152 = icmp eq i32 %151, 1
  br label %153

153:                                              ; preds = %148, %143, %128
  %154 = phi i1 [ false, %143 ], [ false, %128 ], [ %152, %148 ]
  %155 = zext i1 %154 to i64
  %156 = select i1 %154, i32 0, i32 1
  %157 = load i32, ptr %1, align 4, !tbaa !5
  %158 = add nsw i32 %157, %156
  store i32 %158, ptr %1, align 4, !tbaa !5
  %159 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %160 = getelementptr inbounds %struct.anon.1609, ptr %159, i32 0, i32 0
  %161 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %160, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %162 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %163 = getelementptr inbounds %struct.anon.1421, ptr %162, i32 0, i32 0
  %164 = load i32, ptr %163, align 4, !tbaa !10
  %165 = icmp eq i32 %164, 3
  br i1 %165, label %166, label %176

166:                                              ; preds = %153
  %167 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %168 = getelementptr inbounds %struct.anon.1421, ptr %167, i32 0, i32 1
  %169 = load i32, ptr %168, align 4, !tbaa !10
  %170 = icmp eq i32 %169, 2
  br i1 %170, label %171, label %176

171:                                              ; preds = %166
  %172 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %173 = getelementptr inbounds %struct.anon.1421, ptr %172, i32 0, i32 2
  %174 = load i32, ptr %173, align 4, !tbaa !10
  %175 = icmp eq i32 %174, 1
  br label %176

176:                                              ; preds = %171, %166, %153
  %177 = phi i1 [ false, %166 ], [ false, %153 ], [ %175, %171 ]
  %178 = zext i1 %177 to i64
  %179 = select i1 %177, i32 0, i32 1
  %180 = load i32, ptr %1, align 4, !tbaa !5
  %181 = add nsw i32 %180, %179
  store i32 %181, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %12) #5
  %182 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %183 = getelementptr inbounds %struct.anon.1620, ptr %182, i32 0, i32 0
  %184 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %183)
  %185 = getelementptr inbounds %"struct.glm::vec.1419", ptr %12, i32 0, i32 0
  %186 = getelementptr inbounds %union.anon.1420, ptr %185, i32 0, i32 0
  store { i64, i32 } %184, ptr %13, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %186, ptr align 8 %13, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %12, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %12) #5
  %187 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %188 = getelementptr inbounds %struct.anon.1421, ptr %187, i32 0, i32 0
  %189 = load i32, ptr %188, align 4, !tbaa !10
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %201

191:                                              ; preds = %176
  %192 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %193 = getelementptr inbounds %struct.anon.1421, ptr %192, i32 0, i32 1
  %194 = load i32, ptr %193, align 4, !tbaa !10
  %195 = icmp eq i32 %194, 2
  br i1 %195, label %196, label %201

196:                                              ; preds = %191
  %197 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %198 = getelementptr inbounds %struct.anon.1421, ptr %197, i32 0, i32 2
  %199 = load i32, ptr %198, align 4, !tbaa !10
  %200 = icmp eq i32 %199, 3
  br label %201

201:                                              ; preds = %196, %191, %176
  %202 = phi i1 [ false, %191 ], [ false, %176 ], [ %200, %196 ]
  %203 = zext i1 %202 to i64
  %204 = select i1 %202, i32 0, i32 1
  %205 = load i32, ptr %1, align 4, !tbaa !5
  %206 = add nsw i32 %205, %204
  store i32 %206, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %14) #5
  %207 = getelementptr inbounds %"struct.glm::vec.1419", ptr %2, i32 0, i32 0
  %208 = getelementptr inbounds %struct.anon.1636, ptr %207, i32 0, i32 0
  %209 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %208)
  %210 = getelementptr inbounds %"struct.glm::vec.1419", ptr %14, i32 0, i32 0
  %211 = getelementptr inbounds %union.anon.1420, ptr %210, i32 0, i32 0
  store { i64, i32 } %209, ptr %15, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %211, ptr align 8 %15, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 %14, i64 12, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 12, ptr %14) #5
  %212 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %213 = getelementptr inbounds %struct.anon.1421, ptr %212, i32 0, i32 0
  %214 = load i32, ptr %213, align 4, !tbaa !10
  %215 = icmp eq i32 %214, 3
  br i1 %215, label %216, label %226

216:                                              ; preds = %201
  %217 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %218 = getelementptr inbounds %struct.anon.1421, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 4, !tbaa !10
  %220 = icmp eq i32 %219, 2
  br i1 %220, label %221, label %226

221:                                              ; preds = %216
  %222 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %223 = getelementptr inbounds %struct.anon.1421, ptr %222, i32 0, i32 2
  %224 = load i32, ptr %223, align 4, !tbaa !10
  %225 = icmp eq i32 %224, 1
  br label %226

226:                                              ; preds = %221, %216, %201
  %227 = phi i1 [ false, %216 ], [ false, %201 ], [ %225, %221 ]
  %228 = zext i1 %227 to i64
  %229 = select i1 %227, i32 0, i32 1
  %230 = load i32, ptr %1, align 4, !tbaa !5
  %231 = add nsw i32 %230, %229
  store i32 %231, ptr %1, align 4, !tbaa !5
  %232 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %233 = getelementptr inbounds %struct.anon.1636, ptr %232, i32 0, i32 0
  %234 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %233, ptr noundef nonnull align 4 dereferenceable(12) %2)
  %235 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %236 = getelementptr inbounds %struct.anon.1421, ptr %235, i32 0, i32 0
  %237 = load i32, ptr %236, align 4, !tbaa !10
  %238 = icmp eq i32 %237, 3
  br i1 %238, label %239, label %249

239:                                              ; preds = %226
  %240 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %241 = getelementptr inbounds %struct.anon.1421, ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 4, !tbaa !10
  %243 = icmp eq i32 %242, 2
  br i1 %243, label %244, label %249

244:                                              ; preds = %239
  %245 = getelementptr inbounds %"struct.glm::vec.1419", ptr %3, i32 0, i32 0
  %246 = getelementptr inbounds %struct.anon.1421, ptr %245, i32 0, i32 2
  %247 = load i32, ptr %246, align 4, !tbaa !10
  %248 = icmp eq i32 %247, 1
  br label %249

249:                                              ; preds = %244, %239, %226
  %250 = phi i1 [ false, %239 ], [ false, %226 ], [ %248, %244 ]
  %251 = zext i1 %250 to i64
  %252 = select i1 %250, i32 0, i32 1
  %253 = load i32, ptr %1, align 4, !tbaa !5
  %254 = add nsw i32 %253, %252
  store i32 %254, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #5
  %255 = load i32, ptr %1, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #5
  ret i32 %255
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1)) #4 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 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 = !{i64 0, i64 12, !10}
!10 = !{!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.1419" = type { %union.anon.1420 }
%union.anon.1420 = type { %struct.anon.1421 }
%struct.anon.1421 = type { i32, i32, i32 }

; 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 nounwind uwtable
declare dso_local void @_ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12), i32 noundef, i32 noundef, i32 noundef) unnamed_addr #1 align 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) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i32 0, 11) i32 @_Z20test_vec3_swizzle3_3v() local_unnamed_addr #3 {
  %1 = alloca %"struct.glm::vec.1419", align 4
  %2 = alloca %"struct.glm::vec.1419", align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #5
  call void @_ZN3glm3vecILi3EiLNS_9qualifierE0EEC2Eiii(ptr noundef nonnull align 4 dereferenceable(12) %1, i32 noundef 1, i32 noundef 2, i32 noundef 3)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) %1, i64 12, i1 false), !tbaa.struct !5
  %3 = load i32, ptr %2, align 8, !tbaa !6
  %4 = icmp ne i32 %3, 1
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = load i32, ptr %5, align 4
  %7 = icmp ne i32 %6, 2
  %or.cond.not = select i1 %4, i1 true, i1 %7
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = load i32, ptr %8, align 8
  %10 = icmp ne i32 %9, 3
  %narrow = select i1 %or.cond.not, i1 true, i1 %10
  %not. = zext i1 %narrow to i32
  %11 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract65 = extractvalue { i64, i32 } %11, 0
  %.fca.1.extract66 = extractvalue { i64, i32 } %11, 1
  %or.cond7.not = icmp ne i64 %.fca.0.extract65, 8589934593
  %12 = icmp ne i32 %.fca.1.extract66, 3
  %narrow91 = select i1 %or.cond7.not, i1 true, i1 %12
  %not.81 = zext i1 %narrow91 to i32
  %13 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract59 = extractvalue { i64, i32 } %13, 0
  %.fca.1.extract60 = extractvalue { i64, i32 } %13, 1
  store i64 %.fca.0.extract59, ptr %2, align 8
  store i32 %.fca.1.extract60, ptr %8, align 8, !tbaa !6
  %or.cond11.not = icmp ne i64 %.fca.0.extract59, 8589934595
  %14 = icmp ne i32 %.fca.1.extract60, 1
  %narrow93 = select i1 %or.cond11.not, i1 true, i1 %14
  %not.82 = zext i1 %narrow93 to i32
  %15 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %16 = load i32, ptr %2, align 8, !tbaa !6
  %17 = icmp ne i32 %16, 3
  %18 = load i32, ptr %5, align 4
  %19 = icmp ne i32 %18, 2
  %or.cond15.not = select i1 %17, i1 true, i1 %19
  %20 = load i32, ptr %8, align 8
  %21 = icmp ne i32 %20, 1
  %narrow95 = select i1 %or.cond15.not, i1 true, i1 %21
  %not.83 = zext i1 %narrow95 to i32
  %22 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract53 = extractvalue { i64, i32 } %22, 0
  %.fca.1.extract54 = extractvalue { i64, i32 } %22, 1
  store i64 %.fca.0.extract53, ptr %2, align 8
  store i32 %.fca.1.extract54, ptr %8, align 8, !tbaa !6
  %or.cond19.not = icmp ne i64 %.fca.0.extract53, 8589934593
  %23 = icmp ne i32 %.fca.1.extract54, 3
  %narrow97 = select i1 %or.cond19.not, i1 true, i1 %23
  %not.84 = zext i1 %narrow97 to i32
  %24 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract47 = extractvalue { i64, i32 } %24, 0
  %.fca.1.extract48 = extractvalue { i64, i32 } %24, 1
  store i64 %.fca.0.extract47, ptr %2, align 8
  store i32 %.fca.1.extract48, ptr %8, align 8, !tbaa !6
  %or.cond23.not = icmp ne i64 %.fca.0.extract47, 8589934595
  %25 = icmp ne i32 %.fca.1.extract48, 1
  %narrow99 = select i1 %or.cond23.not, i1 true, i1 %25
  %not.85 = zext i1 %narrow99 to i32
  %26 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %27 = load i32, ptr %2, align 8, !tbaa !6
  %28 = icmp ne i32 %27, 3
  %29 = load i32, ptr %5, align 4
  %30 = icmp ne i32 %29, 2
  %or.cond27.not = select i1 %28, i1 true, i1 %30
  %31 = load i32, ptr %8, align 8
  %32 = icmp ne i32 %31, 1
  %narrow101 = select i1 %or.cond27.not, i1 true, i1 %32
  %not.86 = zext i1 %narrow101 to i32
  %33 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract41 = extractvalue { i64, i32 } %33, 0
  %.fca.1.extract42 = extractvalue { i64, i32 } %33, 1
  store i64 %.fca.0.extract41, ptr %2, align 8
  store i32 %.fca.1.extract42, ptr %8, align 8, !tbaa !6
  %or.cond31.not = icmp ne i64 %.fca.0.extract41, 8589934593
  %34 = icmp ne i32 %.fca.1.extract42, 3
  %narrow103 = select i1 %or.cond31.not, i1 true, i1 %34
  %not.87 = zext i1 %narrow103 to i32
  %35 = call { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1) %1)
  %.fca.0.extract = extractvalue { i64, i32 } %35, 0
  %.fca.1.extract = extractvalue { i64, i32 } %35, 1
  store i64 %.fca.0.extract, ptr %2, align 8
  store i32 %.fca.1.extract, ptr %8, align 8, !tbaa !6
  %or.cond35.not = icmp ne i64 %.fca.0.extract, 8589934595
  %36 = icmp ne i32 %.fca.1.extract, 1
  %narrow105 = select i1 %or.cond35.not, i1 true, i1 %36
  %not.88 = zext i1 %narrow105 to i32
  %37 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN3glm6detail14_swizzle_base2ILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1ELi0EEaSERKNS_3vecILi3EiLS2_0EEE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 4 dereferenceable(12) %1)
  %38 = load i32, ptr %2, align 8, !tbaa !6
  %39 = icmp ne i32 %38, 3
  %40 = load i32, ptr %5, align 4
  %41 = icmp ne i32 %40, 2
  %or.cond39.not = select i1 %39, i1 true, i1 %41
  %42 = load i32, ptr %8, align 8
  %43 = icmp ne i32 %42, 1
  %narrow107 = select i1 %or.cond39.not, i1 true, i1 %43
  %not.89 = zext i1 %narrow107 to i32
  %44 = add nuw nsw i32 %not.81, %not.
  %45 = add nuw nsw i32 %44, %not.82
  %46 = add nuw nsw i32 %45, %not.83
  %47 = add nuw nsw i32 %46, %not.84
  %48 = add nuw nsw i32 %47, %not.85
  %49 = add nuw nsw i32 %48, %not.86
  %50 = add nuw nsw i32 %49, %not.87
  %51 = add nuw nsw i32 %50, %not.88
  %52 = add nuw nsw i32 %51, %not.89
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #5
  ret i32 %52
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi0ELi1ELi2ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { i64, i32 } @_ZNK3glm6detail8_swizzleILi3EiLNS_9qualifierE0ELi2ELi1ELi0ELin1EEcvNS_3vecILi3EiLS2_0EEEEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #4 align 2

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

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


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass