; 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 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.728 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_mat4.axis2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.863 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.864 = 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: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) #2

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

; 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) #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec3_normalize(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate_make(ptr noundef, float noundef, ptr noundef) #2

declare { ptr, i32 } @test_assert_vec4_eq(ptr noundef, ptr noundef) #4

declare { ptr, i32 } @test_assert_mat4_eq(ptr noundef, ptr noundef) #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat(ptr noundef, float noundef, float noundef, float noundef, float noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_axis(ptr noundef, ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_angle(ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_mat4(ptr noundef, ptr noundef) #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_quat(ptr noundef, ptr noundef) #2

declare { ptr, i32 } @test_assert_mat4_eq2(ptr noundef, ptr noundef, float noundef) #4

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_mat4() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [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
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca %struct.test_status_t, align 8
  %12 = alloca %struct.test_status_t, align 8
  %13 = alloca %struct.test_status_t, align 8
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca %struct.test_status_t, align 8
  %16 = alloca %struct.test_status_t, align 8
  %17 = alloca %struct.test_status_t, align 8
  %18 = alloca %struct.test_status_t, align 8
  %19 = alloca %struct.test_status_t, align 8
  %20 = alloca %struct.test_status_t, align 8
  %21 = alloca %struct.test_status_t, align 8
  %22 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %8) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %8, ptr align 4 @__const.test_glm_quat_mat4.axis2, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %23 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_quat(ptr noundef %23, float noundef 0x3FE921FB60000000, float noundef 0x3FFE666660000000, float noundef 0x4002666660000000, float noundef 4.500000e+00)
  %24 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %25 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_quat_mat4(ptr noundef %24, ptr noundef %25)
  %26 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %27 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_mat4_quat(ptr noundef %26, ptr noundef %27)
  %28 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %29 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_rotate_make(ptr noundef %28, float noundef 0x3FE921FB60000000, ptr noundef %29)
  %30 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %31 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  call void @glm_mat4_quat(ptr noundef %30, ptr noundef %31)
  %32 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %33 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  call void @glm_quat_axis(ptr noundef %32, ptr noundef %33)
  %34 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  call void @glm_vec3_normalize(ptr noundef %34)
  %35 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_vec3_normalize(ptr noundef %35)
  br label %36

36:                                               ; preds = %0
  %37 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %38 = call float @glm_quat_angle(ptr noundef %37)
  %39 = call zeroext i1 @test_eq(float noundef %38, float noundef 0x3FE921FB60000000)
  br i1 %39, label %45, label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !5
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str, ptr noundef @.str.787, i32 noundef 524, ptr noundef @.str.681) #6
  %43 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %43, align 8, !tbaa !9
  %44 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %44, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %209

45:                                               ; preds = %36
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %49 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  %50 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %51 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef %49, ptr noundef %50)
  %52 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %53 = extractvalue { ptr, i32 } %51, 0
  store ptr %53, ptr %52, align 8
  %54 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %55 = extractvalue { ptr, i32 } %51, 1
  store i32 %55, ptr %54, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %56 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !12
  %58 = icmp ne i32 %57, 1
  br i1 %58, label %59, label %66

59:                                               ; preds = %48
  %60 = load ptr, ptr @stderr, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 525, ptr noundef @.str.682) #6
  %62 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %63 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  store ptr %64, ptr %62, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %65, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %67

66:                                               ; preds = %48
  store i32 0, ptr %10, align 4
  br label %67

67:                                               ; preds = %66, %59
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %68 = load i32, ptr %10, align 4
  switch i32 %68, label %209 [
    i32 0, label %69
  ]

69:                                               ; preds = %67
  br label %70

70:                                               ; preds = %69
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  %73 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %74 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %75 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %73, ptr noundef %74)
  %76 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 0
  %77 = extractvalue { ptr, i32 } %75, 0
  store ptr %77, ptr %76, align 8
  %78 = getelementptr inbounds { ptr, i32 }, ptr %14, i32 0, i32 1
  %79 = extractvalue { ptr, i32 } %75, 1
  store i32 %79, ptr %78, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %14, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %80 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 1
  %81 = load i32, ptr %80, align 8, !tbaa !12
  %82 = icmp ne i32 %81, 1
  br i1 %82, label %83, label %90

83:                                               ; preds = %72
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 526, ptr noundef @.str.683) #6
  %86 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %87 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %88 = load ptr, ptr %87, align 8, !tbaa !9
  store ptr %88, ptr %86, align 8, !tbaa !9
  %89 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %89, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %91

90:                                               ; preds = %72
  store i32 0, ptr %10, align 4
  br label %91

91:                                               ; preds = %90, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %92 = load i32, ptr %10, align 4
  switch i32 %92, label %209 [
    i32 0, label %93
  ]

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %97 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %98 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %99 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef %97, ptr noundef %98)
  %100 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %101 = extractvalue { ptr, i32 } %99, 0
  store ptr %101, ptr %100, align 8
  %102 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %103 = extractvalue { ptr, i32 } %99, 1
  store i32 %103, ptr %102, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  %104 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 1
  %105 = load i32, ptr %104, align 8, !tbaa !12
  %106 = icmp ne i32 %105, 1
  br i1 %106, label %107, label %114

107:                                              ; preds = %96
  %108 = load ptr, ptr @stderr, align 8, !tbaa !5
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %108, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 527, ptr noundef @.str.728) #6
  %110 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %111 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 0
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  store ptr %112, ptr %110, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %113, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %115

114:                                              ; preds = %96
  store i32 0, ptr %10, align 4
  br label %115

115:                                              ; preds = %114, %107
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %116 = load i32, ptr %10, align 4
  switch i32 %116, label %209 [
    i32 0, label %117
  ]

117:                                              ; preds = %115
  br label %118

118:                                              ; preds = %117
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %121 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %122 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %123 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef %121, ptr noundef %122)
  %124 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %125 = extractvalue { ptr, i32 } %123, 0
  store ptr %125, ptr %124, align 8
  %126 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %127 = extractvalue { ptr, i32 } %123, 1
  store i32 %127, ptr %126, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  %128 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 1
  %129 = load i32, ptr %128, align 8, !tbaa !12
  %130 = icmp ne i32 %129, 1
  br i1 %130, label %131, label %138

131:                                              ; preds = %120
  %132 = load ptr, ptr @stderr, align 8, !tbaa !5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %132, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 528, ptr noundef @.str.685) #6
  %134 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %135 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 0
  %136 = load ptr, ptr %135, align 8, !tbaa !9
  store ptr %136, ptr %134, align 8, !tbaa !9
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %137, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %139

138:                                              ; preds = %120
  store i32 0, ptr %10, align 4
  br label %139

139:                                              ; preds = %138, %131
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %140 = load i32, ptr %10, align 4
  switch i32 %140, label %209 [
    i32 0, label %141
  ]

141:                                              ; preds = %139
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  store i32 0, ptr %9, align 4, !tbaa !14
  br label %144

144:                                              ; preds = %203, %143
  %145 = load i32, ptr %9, align 4, !tbaa !14
  %146 = icmp slt i32 %145, 1000
  br i1 %146, label %147, label %206

147:                                              ; preds = %144
  %148 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @test_rand_quat(ptr noundef %148)
  %149 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %150 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_quat_mat4(ptr noundef %149, ptr noundef %150)
  %151 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %152 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_mat4_quat(ptr noundef %151, ptr noundef %152)
  %153 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %154 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_quat_mat4(ptr noundef %153, ptr noundef %154)
  br label %155

155:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #6
  %156 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %157 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %158 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef %156, ptr noundef %157)
  %159 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 0
  %160 = extractvalue { ptr, i32 } %158, 0
  store ptr %160, ptr %159, align 8
  %161 = getelementptr inbounds { ptr, i32 }, ptr %20, i32 0, i32 1
  %162 = extractvalue { ptr, i32 } %158, 1
  store i32 %162, ptr %161, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %20, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #6
  %163 = getelementptr inbounds %struct.test_status_t, ptr %19, i32 0, i32 1
  %164 = load i32, ptr %163, align 8, !tbaa !12
  %165 = icmp ne i32 %164, 1
  br i1 %165, label %166, label %173

166:                                              ; preds = %155
  %167 = load ptr, ptr @stderr, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 539, ptr noundef @.str.863) #6
  %169 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %170 = getelementptr inbounds %struct.test_status_t, ptr %19, i32 0, i32 0
  %171 = load ptr, ptr %170, align 8, !tbaa !9
  store ptr %171, ptr %169, align 8, !tbaa !9
  %172 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %172, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %174

173:                                              ; preds = %155
  store i32 0, ptr %10, align 4
  br label %174

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

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  br label %179

179:                                              ; preds = %178
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  %180 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %181 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %182 = call { ptr, i32 } @test_assert_mat4_eq2(ptr noundef %180, ptr noundef %181, float noundef 0x3EE2DFD6A0000000)
  %183 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 0
  %184 = extractvalue { ptr, i32 } %182, 0
  store ptr %184, ptr %183, align 8
  %185 = getelementptr inbounds { ptr, i32 }, ptr %22, i32 0, i32 1
  %186 = extractvalue { ptr, i32 } %182, 1
  store i32 %186, ptr %185, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %22, i64 16, i1 false), !tbaa.struct !13
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %187 = getelementptr inbounds %struct.test_status_t, ptr %21, i32 0, i32 1
  %188 = load i32, ptr %187, align 8, !tbaa !12
  %189 = icmp ne i32 %188, 1
  br i1 %189, label %190, label %197

190:                                              ; preds = %179
  %191 = load ptr, ptr @stderr, align 8, !tbaa !5
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.13, ptr noundef @.str.787, i32 noundef 543, ptr noundef @.str.864) #6
  %193 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %194 = getelementptr inbounds %struct.test_status_t, ptr %21, i32 0, i32 0
  %195 = load ptr, ptr %194, align 8, !tbaa !9
  store ptr %195, ptr %193, align 8, !tbaa !9
  %196 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %196, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %198

197:                                              ; preds = %179
  store i32 0, ptr %10, align 4
  br label %198

198:                                              ; preds = %197, %190
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #6
  %199 = load i32, ptr %10, align 4
  switch i32 %199, label %209 [
    i32 0, label %200
  ]

200:                                              ; preds = %198
  br label %201

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %9, align 4, !tbaa !14
  %205 = add nsw i32 %204, 1
  store i32 %205, ptr %9, align 4, !tbaa !14
  br label %144, !llvm.loop !15

206:                                              ; preds = %144
  %207 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %207, align 8, !tbaa !9
  %208 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %208, align 8, !tbaa !12
  store i32 1, ptr %10, align 4
  br label %209

209:                                              ; preds = %206, %198, %174, %139, %115, %91, %67, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #6
  %210 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %210
}

declare void @test_rand_quat(ptr noundef) #4

declare { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef, ptr noundef) #4

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


; 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 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.681 = external hidden unnamed_addr constant [77 x i8], align 1
@.str.682 = external hidden unnamed_addr constant [34 x i8], align 1
@.str.683 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.685 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.728 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.787 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_quat_mat4.axis2 = external hidden unnamed_addr constant [3 x float], align 4
@.str.863 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.864 = 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: 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) #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) local_unnamed_addr #2

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

; 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 #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_vec3_normalize(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_rotate_make(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #2

declare { ptr, i32 } @test_assert_vec4_eq(ptr noundef, ptr noundef) local_unnamed_addr #4

declare { ptr, i32 } @test_assert_mat4_eq(ptr noundef, ptr noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat(ptr noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_axis(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_quat_angle(ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_quat_mat4(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_quat(ptr noundef, ptr noundef) local_unnamed_addr #2

declare { ptr, i32 } @test_assert_mat4_eq2(ptr noundef, ptr noundef, float noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_quat_mat4() local_unnamed_addr #5 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x [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 [3 x float], align 4
  %7 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_quat_mat4.axis2, i64 12, i1 false)
  call void @glm_quat(ptr noundef nonnull %3, float noundef 0x3FE921FB60000000, float noundef 0x3FFE666660000000, float noundef 0x4002666660000000, float noundef 4.500000e+00)
  call void @glm_quat_mat4(ptr noundef nonnull %3, ptr noundef nonnull %1)
  call void @glm_mat4_quat(ptr noundef nonnull %1, ptr noundef nonnull %4)
  call void @glm_rotate_make(ptr noundef nonnull %2, float noundef 0x3FE921FB60000000, ptr noundef nonnull %7)
  call void @glm_mat4_quat(ptr noundef nonnull %1, ptr noundef nonnull %5)
  call void @glm_quat_axis(ptr noundef nonnull %5, ptr noundef nonnull %6)
  call void @glm_vec3_normalize(ptr noundef nonnull %6)
  call void @glm_vec3_normalize(ptr noundef nonnull %7)
  %8 = call float @glm_quat_angle(ptr noundef nonnull %5)
  %9 = call zeroext i1 @test_eq(float noundef %8, float noundef 0x3FE921FB60000000)
  br i1 %9, label %13, label %10

10:                                               ; preds = %0
  %11 = load ptr, ptr @stderr, align 8, !tbaa !5
  %12 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %11, ptr noundef nonnull @.str, ptr noundef nonnull @.str.787, i32 noundef 524, ptr noundef nonnull @.str.681) #7
  br label %.loopexit

13:                                               ; preds = %0
  %14 = call { ptr, i32 } @test_assert_vec3_eq(ptr noundef nonnull %6, ptr noundef nonnull %7) #6
  %15 = extractvalue { ptr, i32 } %14, 1
  %.not = icmp eq i32 %15, 1
  br i1 %.not, label %.critedge, label %16

16:                                               ; preds = %13
  %17 = extractvalue { ptr, i32 } %14, 0
  %18 = load ptr, ptr @stderr, align 8, !tbaa !5
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 525, ptr noundef nonnull @.str.682) #7
  br label %.loopexit

.critedge:                                        ; preds = %13
  %20 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %21 = extractvalue { ptr, i32 } %20, 1
  %.not47 = icmp eq i32 %21, 1
  br i1 %.not47, label %26, label %22

22:                                               ; preds = %.critedge
  %23 = extractvalue { ptr, i32 } %20, 0
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 526, ptr noundef nonnull @.str.683) #7
  br label %.loopexit

26:                                               ; preds = %.critedge
  %27 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #6
  %28 = extractvalue { ptr, i32 } %27, 1
  %.not48 = icmp eq i32 %28, 1
  br i1 %.not48, label %33, label %29

29:                                               ; preds = %26
  %30 = extractvalue { ptr, i32 } %27, 0
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 527, ptr noundef nonnull @.str.728) #7
  br label %.loopexit

33:                                               ; preds = %26
  %34 = call { ptr, i32 } @test_assert_vec4_eq(ptr noundef nonnull %3, ptr noundef nonnull %5) #6
  %35 = extractvalue { ptr, i32 } %34, 1
  %.not49 = icmp eq i32 %35, 1
  br i1 %.not49, label %.preheader, label %.thread57

.thread57:                                        ; preds = %33
  %36 = extractvalue { ptr, i32 } %34, 0
  %37 = load ptr, ptr @stderr, align 8, !tbaa !5
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 528, ptr noundef nonnull @.str.685) #7
  br label %.loopexit

39:                                               ; preds = %47
  %40 = add nuw nsw i32 %.067, 1
  %exitcond.not = icmp eq i32 %40, 1000
  br i1 %exitcond.not, label %.loopexit, label %.preheader, !llvm.loop !9

.preheader:                                       ; preds = %33, %39
  %.067 = phi i32 [ %40, %39 ], [ 0, %33 ]
  call void @test_rand_quat(ptr noundef nonnull %3) #6
  call void @glm_quat_mat4(ptr noundef nonnull %3, ptr noundef nonnull %1)
  call void @glm_mat4_quat(ptr noundef nonnull %1, ptr noundef nonnull %4)
  call void @glm_quat_mat4(ptr noundef nonnull %4, ptr noundef nonnull %2)
  %41 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef nonnull %3, ptr noundef nonnull %4) #6
  %42 = extractvalue { ptr, i32 } %41, 1
  %.not50 = icmp eq i32 %42, 1
  br i1 %.not50, label %47, label %43

43:                                               ; preds = %.preheader
  %44 = extractvalue { ptr, i32 } %41, 0
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 539, ptr noundef nonnull @.str.863) #7
  br label %.loopexit

47:                                               ; preds = %.preheader
  %48 = call { ptr, i32 } @test_assert_mat4_eq2(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3EE2DFD6A0000000) #6
  %49 = extractvalue { ptr, i32 } %48, 1
  %.not51 = icmp eq i32 %49, 1
  br i1 %.not51, label %39, label %50

50:                                               ; preds = %47
  %51 = extractvalue { ptr, i32 } %48, 0
  %52 = load ptr, ptr @stderr, align 8, !tbaa !5
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.787, i32 noundef 543, ptr noundef nonnull @.str.864) #7
  br label %.loopexit

.loopexit:                                        ; preds = %39, %50, %43, %.thread57, %29, %22, %16, %10
  %.sroa.045.7 = phi ptr [ %51, %50 ], [ %44, %43 ], [ %30, %29 ], [ %23, %22 ], [ %17, %16 ], [ null, %10 ], [ %36, %.thread57 ], [ null, %39 ]
  %.sroa.9.7 = phi i32 [ 0, %50 ], [ 0, %43 ], [ 0, %29 ], [ 0, %22 ], [ 0, %16 ], [ 0, %10 ], [ 0, %.thread57 ], [ 1, %39 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.045.7, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.9.7, 1
  ret { ptr, i32 } %.fca.1.insert
}

declare void @test_rand_quat(ptr noundef) local_unnamed_addr #4

declare { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { "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 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 }
attributes #7 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass