; 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.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [43 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_vec4_eq(ptr noundef, ptr noundef) #3

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

25:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  %26 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 4.000000e+00, ptr %5, align 4, !tbaa !5
  %27 = getelementptr inbounds float, ptr %5, i64 1
  store float 3.000000e+00, ptr %27, align 4, !tbaa !5
  %28 = getelementptr inbounds float, ptr %5, i64 2
  store float 2.000000e+00, ptr %28, align 4, !tbaa !5
  %29 = getelementptr inbounds float, ptr %5, i64 3
  store float 1.000000e+00, ptr %29, align 4, !tbaa !5
  %30 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %31 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %26, ptr noundef %30)
  %32 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 0
  %33 = extractvalue { ptr, i32 } %31, 0
  store ptr %33, ptr %32, align 8
  %34 = getelementptr inbounds { ptr, i32 }, ptr %4, i32 0, i32 1
  %35 = extractvalue { ptr, i32 } %31, 1
  store i32 %35, ptr %34, 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
  %36 = getelementptr inbounds %struct.test_status_t, ptr %3, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !14
  %38 = icmp ne i32 %37, 1
  br i1 %38, label %39, label %46

39:                                               ; preds = %25
  %40 = load ptr, ptr @stderr, align 8, !tbaa !10
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 1225, ptr noundef @.str.377) #6
  %42 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %43 = getelementptr inbounds %struct.test_status_t, ptr %3, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !16
  store ptr %44, ptr %42, align 8, !tbaa !16
  %45 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %45, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %47

46:                                               ; preds = %25
  store i32 0, ptr %6, align 4
  br label %47

47:                                               ; preds = %46, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  %48 = load i32, ptr %6, align 4
  switch i32 %48, label %182 [
    i32 0, label %49
  ]

49:                                               ; preds = %47
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  %52 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %53 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_swizzle(ptr noundef %52, i32 noundef 0, ptr noundef %53)
  br label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  %55 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 4.000000e+00, ptr %9, align 4, !tbaa !5
  %56 = getelementptr inbounds float, ptr %9, i64 1
  store float 4.000000e+00, ptr %56, align 4, !tbaa !5
  %57 = getelementptr inbounds float, ptr %9, i64 2
  store float 4.000000e+00, ptr %57, align 4, !tbaa !5
  %58 = getelementptr inbounds float, ptr %9, i64 3
  store float 4.000000e+00, ptr %58, align 4, !tbaa !5
  %59 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %60 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %55, ptr noundef %59)
  %61 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 0
  %62 = extractvalue { ptr, i32 } %60, 0
  store ptr %62, ptr %61, align 8
  %63 = getelementptr inbounds { ptr, i32 }, ptr %8, i32 0, i32 1
  %64 = extractvalue { ptr, i32 } %60, 1
  store i32 %64, ptr %63, 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
  %65 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 1
  %66 = load i32, ptr %65, align 8, !tbaa !14
  %67 = icmp ne i32 %66, 1
  br i1 %67, label %68, label %75

68:                                               ; preds = %54
  %69 = load ptr, ptr @stderr, align 8, !tbaa !10
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 1228, ptr noundef @.str.378) #6
  %71 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %72 = getelementptr inbounds %struct.test_status_t, ptr %7, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  store ptr %73, ptr %71, align 8, !tbaa !16
  %74 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %74, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %76

75:                                               ; preds = %54
  store i32 0, ptr %6, align 4
  br label %76

76:                                               ; preds = %75, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  %77 = load i32, ptr %6, align 4
  switch i32 %77, label %182 [
    i32 0, label %78
  ]

78:                                               ; preds = %76
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  %81 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %81, align 16, !tbaa !5
  %82 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %82, align 4, !tbaa !5
  %83 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %83, align 8, !tbaa !5
  %84 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  store float 4.000000e+00, ptr %84, align 4, !tbaa !5
  %85 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %86 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_swizzle(ptr noundef %85, i32 noundef 85, ptr noundef %86)
  br label %87

87:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  %88 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 2.000000e+00, ptr %12, align 4, !tbaa !5
  %89 = getelementptr inbounds float, ptr %12, i64 1
  store float 2.000000e+00, ptr %89, align 4, !tbaa !5
  %90 = getelementptr inbounds float, ptr %12, i64 2
  store float 2.000000e+00, ptr %90, align 4, !tbaa !5
  %91 = getelementptr inbounds float, ptr %12, i64 3
  store float 2.000000e+00, ptr %91, align 4, !tbaa !5
  %92 = getelementptr inbounds [4 x float], ptr %12, i64 0, i64 0
  %93 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %88, ptr noundef %92)
  %94 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 0
  %95 = extractvalue { ptr, i32 } %93, 0
  store ptr %95, ptr %94, align 8
  %96 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 1
  %97 = extractvalue { ptr, i32 } %93, 1
  store i32 %97, ptr %96, 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
  %98 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 1
  %99 = load i32, ptr %98, align 8, !tbaa !14
  %100 = icmp ne i32 %99, 1
  br i1 %100, label %101, label %108

101:                                              ; preds = %87
  %102 = load ptr, ptr @stderr, align 8, !tbaa !10
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 1236, ptr noundef @.str.379) #6
  %104 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %105 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !16
  store ptr %106, ptr %104, align 8, !tbaa !16
  %107 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %107, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %109

108:                                              ; preds = %87
  store i32 0, ptr %6, align 4
  br label %109

109:                                              ; preds = %108, %101
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  %110 = load i32, ptr %6, align 4
  switch i32 %110, label %182 [
    i32 0, label %111
  ]

111:                                              ; preds = %109
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %114, align 16, !tbaa !5
  %115 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %115, align 4, !tbaa !5
  %116 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %116, align 8, !tbaa !5
  %117 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  store float 4.000000e+00, ptr %117, align 4, !tbaa !5
  %118 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %119 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_swizzle(ptr noundef %118, i32 noundef 170, ptr noundef %119)
  br label %120

120:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %121 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 3.000000e+00, ptr %15, align 4, !tbaa !5
  %122 = getelementptr inbounds float, ptr %15, i64 1
  store float 3.000000e+00, ptr %122, align 4, !tbaa !5
  %123 = getelementptr inbounds float, ptr %15, i64 2
  store float 3.000000e+00, ptr %123, align 4, !tbaa !5
  %124 = getelementptr inbounds float, ptr %15, i64 3
  store float 3.000000e+00, ptr %124, align 4, !tbaa !5
  %125 = getelementptr inbounds [4 x float], ptr %15, i64 0, i64 0
  %126 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %121, ptr noundef %125)
  %127 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %128 = extractvalue { ptr, i32 } %126, 0
  store ptr %128, ptr %127, align 8
  %129 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %130 = extractvalue { ptr, i32 } %126, 1
  store i32 %130, ptr %129, 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
  %131 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 1
  %132 = load i32, ptr %131, align 8, !tbaa !14
  %133 = icmp ne i32 %132, 1
  br i1 %133, label %134, label %141

134:                                              ; preds = %120
  %135 = load ptr, ptr @stderr, align 8, !tbaa !10
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 1244, ptr noundef @.str.380) #6
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %138 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %139 = load ptr, ptr %138, align 8, !tbaa !16
  store ptr %139, ptr %137, align 8, !tbaa !16
  %140 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %140, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %142

141:                                              ; preds = %120
  store i32 0, ptr %6, align 4
  br label %142

142:                                              ; preds = %141, %134
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %143 = load i32, ptr %6, align 4
  switch i32 %143, label %182 [
    i32 0, label %144
  ]

144:                                              ; preds = %142
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %147, align 16, !tbaa !5
  %148 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  store float 2.000000e+00, ptr %148, align 4, !tbaa !5
  %149 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  store float 3.000000e+00, ptr %149, align 8, !tbaa !5
  %150 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  store float 4.000000e+00, ptr %150, align 4, !tbaa !5
  %151 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %152 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  call void @glm_vec4_swizzle(ptr noundef %151, i32 noundef 255, ptr noundef %152)
  br label %153

153:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  %154 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  store float 4.000000e+00, ptr %18, align 4, !tbaa !5
  %155 = getelementptr inbounds float, ptr %18, i64 1
  store float 4.000000e+00, ptr %155, align 4, !tbaa !5
  %156 = getelementptr inbounds float, ptr %18, i64 2
  store float 4.000000e+00, ptr %156, align 4, !tbaa !5
  %157 = getelementptr inbounds float, ptr %18, i64 3
  store float 4.000000e+00, ptr %157, align 4, !tbaa !5
  %158 = getelementptr inbounds [4 x float], ptr %18, i64 0, i64 0
  %159 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %154, ptr noundef %158)
  %160 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 0
  %161 = extractvalue { ptr, i32 } %159, 0
  store ptr %161, ptr %160, align 8
  %162 = getelementptr inbounds { ptr, i32 }, ptr %17, i32 0, i32 1
  %163 = extractvalue { ptr, i32 } %159, 1
  store i32 %163, ptr %162, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %16, ptr align 8 %17, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %164 = getelementptr inbounds %struct.test_status_t, ptr %16, i32 0, i32 1
  %165 = load i32, ptr %164, align 8, !tbaa !14
  %166 = icmp ne i32 %165, 1
  br i1 %166, label %167, label %174

167:                                              ; preds = %153
  %168 = load ptr, ptr @stderr, align 8, !tbaa !10
  %169 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %168, ptr noundef @.str.13, ptr noundef @.str.296, i32 noundef 1252, ptr noundef @.str.378) #6
  %170 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %171 = getelementptr inbounds %struct.test_status_t, ptr %16, i32 0, i32 0
  %172 = load ptr, ptr %171, align 8, !tbaa !16
  store ptr %172, ptr %170, align 8, !tbaa !16
  %173 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %173, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %175

174:                                              ; preds = %153
  store i32 0, ptr %6, align 4
  br label %175

175:                                              ; preds = %174, %167
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  %176 = load i32, ptr %6, align 4
  switch i32 %176, label %182 [
    i32 0, label %177
  ]

177:                                              ; preds = %175
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  %180 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %180, align 8, !tbaa !16
  %181 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %181, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %182

182:                                              ; preds = %179, %175, %142, %109, %76, %47
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  %183 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %183
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec4_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.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.377 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.378 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.379 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.380 = external hidden unnamed_addr constant [43 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_vec4_eq(ptr noundef, ptr noundef) local_unnamed_addr #2

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

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

.critedge:                                        ; preds = %0
  call void @glm_vec4_swizzle(ptr noundef nonnull %1, i32 noundef 0, ptr noundef nonnull %1)
  store <4 x float> <float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00>, ptr %3, align 16, !tbaa !5
  %13 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %3) #5
  %14 = extractvalue { ptr, i32 } %13, 1
  %.not36 = icmp eq i32 %14, 1
  br i1 %.not36, label %19, label %15

15:                                               ; preds = %.critedge
  %16 = extractvalue { ptr, i32 } %13, 0
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 1228, ptr noundef nonnull @.str.378) #6
  br label %41

19:                                               ; preds = %.critedge
  store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, ptr %1, align 16, !tbaa !5
  call void @glm_vec4_swizzle(ptr noundef nonnull %1, i32 noundef 85, ptr noundef nonnull %1)
  store <4 x float> <float 2.000000e+00, float 2.000000e+00, float 2.000000e+00, float 2.000000e+00>, ptr %4, align 16, !tbaa !5
  %20 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %4) #5
  %21 = extractvalue { ptr, i32 } %20, 1
  %.not37 = icmp eq i32 %21, 1
  br i1 %.not37, label %26, label %22

22:                                               ; preds = %19
  %23 = extractvalue { ptr, i32 } %20, 0
  %24 = load ptr, ptr @stderr, align 8, !tbaa !9
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 1236, ptr noundef nonnull @.str.379) #6
  br label %41

26:                                               ; preds = %19
  store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, ptr %1, align 16, !tbaa !5
  call void @glm_vec4_swizzle(ptr noundef nonnull %1, i32 noundef 170, ptr noundef nonnull %1)
  store <4 x float> <float 3.000000e+00, float 3.000000e+00, float 3.000000e+00, float 3.000000e+00>, ptr %5, align 16, !tbaa !5
  %27 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %5) #5
  %28 = extractvalue { ptr, i32 } %27, 1
  %.not38 = icmp eq i32 %28, 1
  br i1 %.not38, label %33, label %29

29:                                               ; preds = %26
  %30 = extractvalue { ptr, i32 } %27, 0
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 1244, ptr noundef nonnull @.str.380) #6
  br label %41

33:                                               ; preds = %26
  store <4 x float> <float 1.000000e+00, float 2.000000e+00, float 3.000000e+00, float 4.000000e+00>, ptr %1, align 16, !tbaa !5
  call void @glm_vec4_swizzle(ptr noundef nonnull %1, i32 noundef 255, ptr noundef nonnull %1)
  store <4 x float> <float 4.000000e+00, float 4.000000e+00, float 4.000000e+00, float 4.000000e+00>, ptr %6, align 16, !tbaa !5
  %34 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %1, ptr noundef nonnull %6) #5
  %35 = extractvalue { ptr, i32 } %34, 1
  %.not39 = icmp eq i32 %35, 1
  br i1 %.not39, label %40, label %36

36:                                               ; preds = %33
  %37 = extractvalue { ptr, i32 } %34, 0
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.296, i32 noundef 1252, ptr noundef nonnull @.str.378) #6
  br label %40

40:                                               ; preds = %33, %36
  %spec.select = phi ptr [ %37, %36 ], [ null, %33 ]
  %spec.select40 = zext i1 %.not39 to i32
  br label %41

41:                                               ; preds = %29, %22, %15, %40, %9
  %.sroa.035.5 = phi ptr [ %30, %29 ], [ %23, %22 ], [ %16, %15 ], [ %10, %9 ], [ %spec.select, %40 ]
  %.sroa.7.5 = phi i32 [ 0, %29 ], [ 0, %22 ], [ 0, %15 ], [ 0, %9 ], [ %spec.select40, %40 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %1) #5
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.035.5, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.7.5, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec4_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