; LLVM IR from recp/cglm :: test/src (tests)

; 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.test_status_t = type { ptr, i32 }

@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [40 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

declare { ptr, i32 } @test_assert_vec3_eq(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec3_swizzle() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x float], align 4
  %3 = alloca %struct.test_status_t, align 8
  %4 = alloca %struct.test_status_t, align 8
  %5 = alloca [3 x float], align 4
  %6 = alloca i32, align 4
  %7 = alloca %struct.test_status_t, align 8
  %8 = alloca %struct.test_status_t, align 8
  %9 = alloca [3 x float], align 4
  %10 = alloca %struct.test_status_t, align 8
  %11 = alloca %struct.test_status_t, align 8
  %12 = alloca [3 x float], align 4
  %13 = alloca %struct.test_status_t, align 8
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  %16 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %16, align 4, !tbaa !5
  %17 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %20 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_swizzle(ptr noundef %19, i32 noundef 6, ptr noundef %20)
  br label %21

21:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  %22 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 3.000000e+00, ptr %5, align 4, !tbaa !5
  %23 = getelementptr inbounds float, ptr %5, i64 1
  store float 2.000000e+00, ptr %23, align 4, !tbaa !5
  %24 = getelementptr inbounds float, ptr %5, i64 2
  store float 1.000000e+00, ptr %24, align 4, !tbaa !5
  %25 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %26 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %22, ptr noundef %25)
  %27 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  %28 = extractvalue { ptr, i32 } %26, 0
  store ptr %28, ptr %27, align 8
  %29 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  %30 = extractvalue { ptr, i32 } %26, 1
  store i32 %30, ptr %29, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %3, ptr align 8 %4, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  %31 = getelementptr inbounds %struct.test_status_t, ptr %3, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !14
  %33 = icmp ne i32 %32, 1
  br i1 %33, label %34, label %41

34:                                               ; preds = %21
  %35 = load ptr, ptr @stderr, align 8, !tbaa !10
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str.13, ptr noundef @.str.119, i32 noundef 1578, ptr noundef @.str.227) #6
  %37 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %38 = getelementptr inbounds %struct.test_status_t, ptr %3, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !16
  store ptr %39, ptr %37, align 8, !tbaa !16
  %40 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %40, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %42

41:                                               ; preds = %21
  store i32 0, ptr %6, align 4
  br label %42

42:                                               ; preds = %41, %34
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  %43 = load i32, ptr %6, align 4
  switch i32 %43, label %139 [
    i32 0, label %44
  ]

44:                                               ; preds = %42
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  %47 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %48 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_swizzle(ptr noundef %47, i32 noundef 0, ptr noundef %48)
  br label %49

49:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %50 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 3.000000e+00, ptr %9, align 4, !tbaa !5
  %51 = getelementptr inbounds float, ptr %9, i64 1
  store float 3.000000e+00, ptr %51, align 4, !tbaa !5
  %52 = getelementptr inbounds float, ptr %9, i64 2
  store float 3.000000e+00, ptr %52, align 4, !tbaa !5
  %53 = getelementptr inbounds [3 x float], ptr %9, i64 0, i64 0
  %54 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %50, ptr noundef %53)
  %55 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %56 = extractvalue { ptr, i32 } %54, 0
  store ptr %56, ptr %55, align 8
  %57 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %58 = extractvalue { ptr, i32 } %54, 1
  store i32 %58, ptr %57, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %7, ptr align 8 %8, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  %59 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !14
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %69

62:                                               ; preds = %49
  %63 = load ptr, ptr @stderr, align 8, !tbaa !10
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.13, ptr noundef @.str.119, i32 noundef 1581, ptr noundef @.str.228) #6
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %66 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !16
  store ptr %67, ptr %65, align 8, !tbaa !16
  %68 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %68, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %70

69:                                               ; preds = %49
  store i32 0, ptr %6, align 4
  br label %70

70:                                               ; preds = %69, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %71 = load i32, ptr %6, align 4
  switch i32 %71, label %139 [
    i32 0, label %72
  ]

72:                                               ; preds = %70
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  %75 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %75, align 4, !tbaa !5
  %76 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %76, align 4, !tbaa !5
  %77 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %77, align 4, !tbaa !5
  %78 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %79 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_swizzle(ptr noundef %78, i32 noundef 21, ptr noundef %79)
  br label %80

80:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %81 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 2.000000e+00, ptr %12, align 4, !tbaa !5
  %82 = getelementptr inbounds float, ptr %12, i64 1
  store float 2.000000e+00, ptr %82, align 4, !tbaa !5
  %83 = getelementptr inbounds float, ptr %12, i64 2
  store float 2.000000e+00, ptr %83, align 4, !tbaa !5
  %84 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
  %85 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %81, ptr noundef %84)
  %86 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 0
  %87 = extractvalue { ptr, i32 } %85, 0
  store ptr %87, ptr %86, align 8
  %88 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 1
  %89 = extractvalue { ptr, i32 } %85, 1
  store i32 %89, ptr %88, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %90 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 1
  %91 = load i32, ptr %90, align 8, !tbaa !14
  %92 = icmp ne i32 %91, 1
  br i1 %92, label %93, label %100

93:                                               ; preds = %80
  %94 = load ptr, ptr @stderr, align 8, !tbaa !10
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str.13, ptr noundef @.str.119, i32 noundef 1588, ptr noundef @.str.229) #6
  %96 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %97 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !16
  store ptr %98, ptr %96, align 8, !tbaa !16
  %99 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %99, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %101

100:                                              ; preds = %80
  store i32 0, ptr %6, align 4
  br label %101

101:                                              ; preds = %100, %93
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %102 = load i32, ptr %6, align 4
  switch i32 %102, label %139 [
    i32 0, label %103
  ]

103:                                              ; preds = %101
  br label %104

104:                                              ; preds = %103
  br label %105

105:                                              ; preds = %104
  %106 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %106, align 4, !tbaa !5
  %107 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %107, align 4, !tbaa !5
  %108 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %108, align 4, !tbaa !5
  %109 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %110 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_vec3_swizzle(ptr noundef %109, i32 noundef 42, ptr noundef %110)
  br label %111

111:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %112 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  store float 3.000000e+00, ptr %15, align 4, !tbaa !5
  %113 = getelementptr inbounds float, ptr %15, i64 1
  store float 3.000000e+00, ptr %113, align 4, !tbaa !5
  %114 = getelementptr inbounds float, ptr %15, i64 2
  store float 3.000000e+00, ptr %114, align 4, !tbaa !5
  %115 = getelementptr inbounds [3 x float], ptr %15, i64 0, i64 0
  %116 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %112, ptr noundef %115)
  %117 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %118 = extractvalue { ptr, i32 } %116, 0
  store ptr %118, ptr %117, align 8
  %119 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %120 = extractvalue { ptr, i32 } %116, 1
  store i32 %120, ptr %119, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %121 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 1
  %122 = load i32, ptr %121, align 8, !tbaa !14
  %123 = icmp ne i32 %122, 1
  br i1 %123, label %124, label %131

124:                                              ; preds = %111
  %125 = load ptr, ptr @stderr, align 8, !tbaa !10
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef @.str.13, ptr noundef @.str.119, i32 noundef 1595, ptr noundef @.str.228) #6
  %127 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %128 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !16
  store ptr %129, ptr %127, align 8, !tbaa !16
  %130 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %130, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %132

131:                                              ; preds = %111
  store i32 0, ptr %6, align 4
  br label %132

132:                                              ; preds = %131, %124
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %133 = load i32, ptr %6, align 4
  switch i32 %133, label %139 [
    i32 0, label %134
  ]

134:                                              ; preds = %132
  br label %135

135:                                              ; preds = %134
  br label %136

136:                                              ; preds = %135
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %137, align 8, !tbaa !16
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %138, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %139

139:                                              ; preds = %136, %132, %101, %70, %42
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  %140 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %140
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec3_swizzle(ptr noundef, i32 noundef, ptr noundef) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nounwind "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 = { "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 = { 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 = { alwaysinline 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 #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)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{i64 0, i64 8, !10, i64 8, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"test_status_t", !11, i64 0, !13, i64 8}
!16 = !{!15, !11, 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"

@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.227 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.228 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.229 = external hidden unnamed_addr constant [40 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare { ptr, i32 } @test_assert_vec3_eq(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec3_swizzle() local_unnamed_addr #3 {
  %1 = alloca [3 x float], align 8
  %2 = alloca [3 x float], align 8
  %3 = alloca [3 x float], align 8
  %4 = alloca [3 x float], align 8
  %5 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #5
  store <2 x float> <float 1.000000e+00, float 2.000000e+00>, ptr %1, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %1, i64 8
  store float 3.000000e+00, ptr %6, align 8, !tbaa !5
  call void @glm_vec3_swizzle(ptr noundef nonnull %1, i32 noundef 6, ptr noundef nonnull %1)
  store <2 x float> <float 3.000000e+00, float 2.000000e+00>, ptr %2, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  store float 1.000000e+00, ptr %7, align 8, !tbaa !5
  %8 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #5
  %9 = extractvalue { ptr, i32 } %8, 1
  %.not = icmp eq i32 %9, 1
  br i1 %.not, label %.critedge, label %10

10:                                               ; preds = %0
  %11 = extractvalue { ptr, i32 } %8, 0
  %12 = load ptr, ptr @stderr, align 8, !tbaa !9
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.119, i32 noundef 1578, ptr noundef nonnull @.str.227) #6
  br label %38

.critedge:                                        ; preds = %0
  call void @glm_vec3_swizzle(ptr noundef nonnull %1, i32 noundef 0, ptr noundef nonnull %1)
  store <2 x float> <float 3.000000e+00, float 3.000000e+00>, ptr %3, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %3, i64 8
  store float 3.000000e+00, ptr %14, align 8, !tbaa !5
  %15 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %1, ptr noundef nonnull %3) #5
  %16 = extractvalue { ptr, i32 } %15, 1
  %.not29 = icmp eq i32 %16, 1
  br i1 %.not29, label %21, label %17

17:                                               ; preds = %.critedge
  %18 = extractvalue { ptr, i32 } %15, 0
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.119, i32 noundef 1581, ptr noundef nonnull @.str.228) #6
  br label %38

21:                                               ; preds = %.critedge
  store <2 x float> <float 1.000000e+00, float 2.000000e+00>, ptr %1, align 8, !tbaa !5
  store float 3.000000e+00, ptr %6, align 8, !tbaa !5
  call void @glm_vec3_swizzle(ptr noundef nonnull %1, i32 noundef 21, ptr noundef nonnull %1)
  store <2 x float> <float 2.000000e+00, float 2.000000e+00>, ptr %4, align 8, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  store float 2.000000e+00, ptr %22, align 8, !tbaa !5
  %23 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %1, ptr noundef nonnull %4) #5
  %24 = extractvalue { ptr, i32 } %23, 1
  %.not30 = icmp eq i32 %24, 1
  br i1 %.not30, label %29, label %25

25:                                               ; preds = %21
  %26 = extractvalue { ptr, i32 } %23, 0
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.119, i32 noundef 1588, ptr noundef nonnull @.str.229) #6
  br label %38

29:                                               ; preds = %21
  store <2 x float> <float 1.000000e+00, float 2.000000e+00>, ptr %1, align 8, !tbaa !5
  store float 3.000000e+00, ptr %6, align 8, !tbaa !5
  call void @glm_vec3_swizzle(ptr noundef nonnull %1, i32 noundef 42, ptr noundef nonnull %1)
  store <2 x float> <float 3.000000e+00, float 3.000000e+00>, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %5, i64 8
  store float 3.000000e+00, ptr %30, align 8, !tbaa !5
  %31 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %1, ptr noundef nonnull %5) #5
  %32 = extractvalue { ptr, i32 } %31, 1
  %.not31 = icmp eq i32 %32, 1
  br i1 %.not31, label %37, label %33

33:                                               ; preds = %29
  %34 = extractvalue { ptr, i32 } %31, 0
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.119, i32 noundef 1595, ptr noundef nonnull @.str.228) #6
  br label %37

37:                                               ; preds = %29, %33
  %spec.select = phi ptr [ %34, %33 ], [ null, %29 ]
  %spec.select32 = zext i1 %.not31 to i32
  br label %38

38:                                               ; preds = %25, %17, %37, %10
  %.sroa.027.4 = phi ptr [ %26, %25 ], [ %18, %17 ], [ %11, %10 ], [ %spec.select, %37 ]
  %.sroa.628.4 = phi i32 [ 0, %25 ], [ 0, %17 ], [ 0, %10 ], [ %spec.select32, %37 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #5
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.027.4, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.628.4, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec3_swizzle(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #4

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass