; 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
@__const.test_glm_euler_xyz_quat_rh.axis_x = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_euler_xyz_quat_rh.axis_y = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_euler_xyz_quat_rh.axis_z = external hidden unnamed_addr constant [3 x float], align 4
@.str.1005 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1006 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1007 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1008 = external hidden unnamed_addr constant [42 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 void @test_rand_vec3(ptr noundef) #4

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_euler_xyz_quat_rh() #5 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 4
  %6 = alloca [4 x float], align 16
  %7 = alloca [4 x float], align 16
  %8 = alloca [4 x float], align 16
  %9 = alloca [4 x float], align 16
  %10 = alloca [4 x float], align 16
  %11 = alloca [4 x float], align 16
  %12 = alloca [4 x [4 x float]], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %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 float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %struct.test_status_t, align 8
  %23 = alloca %struct.test_status_t, align 8
  %24 = alloca %struct.test_status_t, align 8
  %25 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 12, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %2, ptr align 4 @__const.test_glm_euler_xyz_quat_rh.axis_x, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_euler_xyz_quat_rh.axis_y, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %4, ptr align 4 @__const.test_glm_euler_xyz_quat_rh.axis_z, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %126, %0
  %27 = load i32, ptr %13, align 4, !tbaa !5
  %28 = icmp slt i32 %27, 100
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 2, ptr %14, align 4
  br label %129

30:                                               ; preds = %26
  %31 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @test_rand_vec3(ptr noundef %31)
  %32 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %33 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %34 = load float, ptr %33, align 4, !tbaa !9
  %35 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_quatv(ptr noundef %32, float noundef %34, ptr noundef %35)
  %36 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %37 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  %38 = load float, ptr %37, align 4, !tbaa !9
  %39 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_quatv(ptr noundef %36, float noundef %38, ptr noundef %39)
  %40 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  %41 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  %42 = load float, ptr %41, align 4, !tbaa !9
  %43 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_quatv(ptr noundef %40, float noundef %42, ptr noundef %43)
  %44 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_identity(ptr noundef %44)
  %45 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %46 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %45, ptr noundef %46)
  %47 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %48 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %49 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %47, ptr noundef %48, ptr noundef %49)
  %50 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %51 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %50, ptr noundef %51)
  %52 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %53 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %54 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %52, ptr noundef %53, ptr noundef %54)
  %55 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %56 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %55, ptr noundef %56)
  %57 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %58 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  %59 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %57, ptr noundef %58, ptr noundef %59)
  %60 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %61 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  call void @glm_euler_xyz_quat_rh(ptr noundef %60, ptr noundef %61)
  br label %62

62:                                               ; preds = %30
  %63 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  %64 = call float @glm_quat_norm(ptr noundef %63)
  %65 = call zeroext i1 @test_eq(float noundef %64, float noundef 1.000000e+00)
  br i1 %65, label %71, label %66

66:                                               ; preds = %62
  %67 = load ptr, ptr @stderr, align 8, !tbaa !11
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %67, ptr noundef @.str, ptr noundef @.str.1005, i32 noundef 50, ptr noundef @.str.1006) #6
  %69 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %69, align 8, !tbaa !13
  %70 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %70, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %129

71:                                               ; preds = %62
  br label %72

72:                                               ; preds = %71
  br label %73

73:                                               ; preds = %72
  br label %74

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

85:                                               ; preds = %74
  %86 = load ptr, ptr @stderr, align 8, !tbaa !11
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.13, ptr noundef @.str.1005, i32 noundef 53, ptr noundef @.str.1007) #6
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %89 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !13
  store ptr %90, ptr %88, align 8, !tbaa !13
  %91 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %91, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %93

92:                                               ; preds = %74
  store i32 0, ptr %14, align 4
  br label %93

93:                                               ; preds = %92, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %94 = load i32, ptr %14, align 4
  switch i32 %94, label %129 [
    i32 0, label %95
  ]

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %99 = getelementptr inbounds [4 x [4 x float]], ptr %12, i64 0, i64 0
  call void @glm_euler_by_order(ptr noundef %98, i32 noundef 36, ptr noundef %99)
  %100 = getelementptr inbounds [4 x [4 x float]], ptr %12, i64 0, i64 0
  %101 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_mat4_quat(ptr noundef %100, ptr noundef %101)
  br label %102

102:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #6
  %103 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  %104 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %105 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef %103, ptr noundef %104)
  %106 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 0
  %107 = extractvalue { ptr, i32 } %105, 0
  store ptr %107, ptr %106, align 8
  %108 = getelementptr inbounds { ptr, i32 }, ptr %18, i32 0, i32 1
  %109 = extractvalue { ptr, i32 } %105, 1
  store i32 %109, ptr %108, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 %18, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #6
  %110 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 1
  %111 = load i32, ptr %110, align 8, !tbaa !15
  %112 = icmp ne i32 %111, 1
  br i1 %112, label %113, label %120

113:                                              ; preds = %102
  %114 = load ptr, ptr @stderr, align 8, !tbaa !11
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.13, ptr noundef @.str.1005, i32 noundef 59, ptr noundef @.str.1008) #6
  %116 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %117 = getelementptr inbounds %struct.test_status_t, ptr %17, i32 0, i32 0
  %118 = load ptr, ptr %117, align 8, !tbaa !13
  store ptr %118, ptr %116, align 8, !tbaa !13
  %119 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %119, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %121

120:                                              ; preds = %102
  store i32 0, ptr %14, align 4
  br label %121

121:                                              ; preds = %120, %113
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #6
  %122 = load i32, ptr %14, align 4
  switch i32 %122, label %129 [
    i32 0, label %123
  ]

123:                                              ; preds = %121
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %13, align 4, !tbaa !5
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %13, align 4, !tbaa !5
  br label %26, !llvm.loop !17

129:                                              ; preds = %121, %93, %66, %29
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %130 = load i32, ptr %14, align 4
  switch i32 %130, label %267 [
    i32 2, label %131
  ]

131:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store float -9.000000e+01, ptr %19, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %259, %131
  %133 = load float, ptr %19, align 4, !tbaa !9
  %134 = fcmp ole float %133, 9.000000e+01
  br i1 %134, label %136, label %135

135:                                              ; preds = %132
  store i32 11, ptr %14, align 4
  br label %262

136:                                              ; preds = %132
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store float -9.000000e+01, ptr %20, align 4, !tbaa !9
  br label %137

137:                                              ; preds = %253, %136
  %138 = load float, ptr %20, align 4, !tbaa !9
  %139 = fcmp ole float %138, 9.000000e+01
  br i1 %139, label %141, label %140

140:                                              ; preds = %137
  store i32 14, ptr %14, align 4
  br label %256

141:                                              ; preds = %137
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float -9.000000e+01, ptr %21, align 4, !tbaa !9
  br label %142

142:                                              ; preds = %247, %141
  %143 = load float, ptr %21, align 4, !tbaa !9
  %144 = fcmp ole float %143, 9.000000e+01
  br i1 %144, label %146, label %145

145:                                              ; preds = %142
  store i32 17, ptr %14, align 4
  br label %250

146:                                              ; preds = %142
  %147 = load float, ptr %19, align 4, !tbaa !9
  %148 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  store float %147, ptr %148, align 4, !tbaa !9
  %149 = load float, ptr %20, align 4, !tbaa !9
  %150 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  store float %149, ptr %150, align 4, !tbaa !9
  %151 = load float, ptr %21, align 4, !tbaa !9
  %152 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  store float %151, ptr %152, align 4, !tbaa !9
  %153 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %154 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %155 = load float, ptr %154, align 4, !tbaa !9
  %156 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  call void @glm_quatv(ptr noundef %153, float noundef %155, ptr noundef %156)
  %157 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %158 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  %159 = load float, ptr %158, align 4, !tbaa !9
  %160 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_quatv(ptr noundef %157, float noundef %159, ptr noundef %160)
  %161 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  %162 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  %163 = load float, ptr %162, align 4, !tbaa !9
  %164 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_quatv(ptr noundef %161, float noundef %163, ptr noundef %164)
  %165 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_identity(ptr noundef %165)
  %166 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %167 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %166, ptr noundef %167)
  %168 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %169 = getelementptr inbounds [4 x float], ptr %6, i64 0, i64 0
  %170 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %168, ptr noundef %169, ptr noundef %170)
  %171 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %172 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %171, ptr noundef %172)
  %173 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %174 = getelementptr inbounds [4 x float], ptr %7, i64 0, i64 0
  %175 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %173, ptr noundef %174, ptr noundef %175)
  %176 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %177 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  call void @glm_quat_copy(ptr noundef %176, ptr noundef %177)
  %178 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %179 = getelementptr inbounds [4 x float], ptr %8, i64 0, i64 0
  %180 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_quat_mul(ptr noundef %178, ptr noundef %179, ptr noundef %180)
  %181 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %182 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  call void @glm_euler_xyz_quat_rh(ptr noundef %181, ptr noundef %182)
  br label %183

183:                                              ; preds = %146
  %184 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  %185 = call float @glm_quat_norm(ptr noundef %184)
  %186 = call zeroext i1 @test_eq(float noundef %185, float noundef 1.000000e+00)
  br i1 %186, label %192, label %187

187:                                              ; preds = %183
  %188 = load ptr, ptr @stderr, align 8, !tbaa !11
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str, ptr noundef @.str.1005, i32 noundef 90, ptr noundef @.str.1006) #6
  %190 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %190, align 8, !tbaa !13
  %191 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %191, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %250

192:                                              ; preds = %183
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #6
  %196 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  %197 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %198 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef %196, ptr noundef %197)
  %199 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 0
  %200 = extractvalue { ptr, i32 } %198, 0
  store ptr %200, ptr %199, align 8
  %201 = getelementptr inbounds { ptr, i32 }, ptr %23, i32 0, i32 1
  %202 = extractvalue { ptr, i32 } %198, 1
  store i32 %202, ptr %201, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %22, ptr align 8 %23, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #6
  %203 = getelementptr inbounds %struct.test_status_t, ptr %22, i32 0, i32 1
  %204 = load i32, ptr %203, align 8, !tbaa !15
  %205 = icmp ne i32 %204, 1
  br i1 %205, label %206, label %213

206:                                              ; preds = %195
  %207 = load ptr, ptr @stderr, align 8, !tbaa !11
  %208 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %207, ptr noundef @.str.13, ptr noundef @.str.1005, i32 noundef 92, ptr noundef @.str.1007) #6
  %209 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %210 = getelementptr inbounds %struct.test_status_t, ptr %22, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !13
  store ptr %211, ptr %209, align 8, !tbaa !13
  %212 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %212, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %214

213:                                              ; preds = %195
  store i32 0, ptr %14, align 4
  br label %214

214:                                              ; preds = %213, %206
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #6
  %215 = load i32, ptr %14, align 4
  switch i32 %215, label %250 [
    i32 0, label %216
  ]

216:                                              ; preds = %214
  br label %217

217:                                              ; preds = %216
  br label %218

218:                                              ; preds = %217
  %219 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %220 = getelementptr inbounds [4 x [4 x float]], ptr %12, i64 0, i64 0
  call void @glm_euler_by_order(ptr noundef %219, i32 noundef 36, ptr noundef %220)
  %221 = getelementptr inbounds [4 x [4 x float]], ptr %12, i64 0, i64 0
  %222 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  call void @glm_mat4_quat(ptr noundef %221, ptr noundef %222)
  br label %223

223:                                              ; preds = %218
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #6
  %224 = getelementptr inbounds [4 x float], ptr %10, i64 0, i64 0
  %225 = getelementptr inbounds [4 x float], ptr %9, i64 0, i64 0
  %226 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef %224, ptr noundef %225)
  %227 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 0
  %228 = extractvalue { ptr, i32 } %226, 0
  store ptr %228, ptr %227, align 8
  %229 = getelementptr inbounds { ptr, i32 }, ptr %25, i32 0, i32 1
  %230 = extractvalue { ptr, i32 } %226, 1
  store i32 %230, ptr %229, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %24, ptr align 8 %25, i64 16, i1 false), !tbaa.struct !16
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #6
  %231 = getelementptr inbounds %struct.test_status_t, ptr %24, i32 0, i32 1
  %232 = load i32, ptr %231, align 8, !tbaa !15
  %233 = icmp ne i32 %232, 1
  br i1 %233, label %234, label %241

234:                                              ; preds = %223
  %235 = load ptr, ptr @stderr, align 8, !tbaa !11
  %236 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.13, ptr noundef @.str.1005, i32 noundef 98, ptr noundef @.str.1008) #6
  %237 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %238 = getelementptr inbounds %struct.test_status_t, ptr %24, i32 0, i32 0
  %239 = load ptr, ptr %238, align 8, !tbaa !13
  store ptr %239, ptr %237, align 8, !tbaa !13
  %240 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %240, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %242

241:                                              ; preds = %223
  store i32 0, ptr %14, align 4
  br label %242

242:                                              ; preds = %241, %234
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #6
  %243 = load i32, ptr %14, align 4
  switch i32 %243, label %250 [
    i32 0, label %244
  ]

244:                                              ; preds = %242
  br label %245

245:                                              ; preds = %244
  br label %246

246:                                              ; preds = %245
  br label %247

247:                                              ; preds = %246
  %248 = load float, ptr %21, align 4, !tbaa !9
  %249 = fadd float %248, 9.000000e+01
  store float %249, ptr %21, align 4, !tbaa !9
  br label %142, !llvm.loop !19

250:                                              ; preds = %242, %214, %187, %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %251 = load i32, ptr %14, align 4
  switch i32 %251, label %256 [
    i32 17, label %252
  ]

252:                                              ; preds = %250
  br label %253

253:                                              ; preds = %252
  %254 = load float, ptr %20, align 4, !tbaa !9
  %255 = fadd float %254, 9.000000e+01
  store float %255, ptr %20, align 4, !tbaa !9
  br label %137, !llvm.loop !20

256:                                              ; preds = %250, %140
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  %257 = load i32, ptr %14, align 4
  switch i32 %257, label %262 [
    i32 14, label %258
  ]

258:                                              ; preds = %256
  br label %259

259:                                              ; preds = %258
  %260 = load float, ptr %19, align 4, !tbaa !9
  %261 = fadd float %260, 9.000000e+01
  store float %261, ptr %19, align 4, !tbaa !9
  br label %132, !llvm.loop !21

262:                                              ; preds = %256, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %263 = load i32, ptr %14, align 4
  switch i32 %263, label %267 [
    i32 11, label %264
  ]

264:                                              ; preds = %262
  %265 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %265, align 8, !tbaa !13
  %266 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %266, align 8, !tbaa !15
  store i32 1, ptr %14, align 4
  br label %267

267:                                              ; preds = %264, %262, %129
  call void @llvm.lifetime.end.p0(i64 64, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #6
  %268 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %268
}

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

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

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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"test_status_t", !12, i64 0, !6, i64 8}
!15 = !{!14, !6, i64 8}
!16 = !{i64 0, i64 8, !11, i64 8, i64 4, !5}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = distinct !{!21, !18}


; 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
@__const.test_glm_euler_xyz_quat_rh.axis_x = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_euler_xyz_quat_rh.axis_y = external hidden unnamed_addr constant [3 x float], align 4
@__const.test_glm_euler_xyz_quat_rh.axis_z = external hidden unnamed_addr constant [3 x float], align 4
@.str.1005 = external hidden unnamed_addr constant [76 x i8], align 1
@.str.1006 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1007 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.1008 = external hidden unnamed_addr constant [42 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 void @test_rand_vec3(ptr noundef) local_unnamed_addr #4

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_euler_xyz_quat_rh() local_unnamed_addr #5 {
  %1 = alloca [3 x float], align 4
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca [4 x float], align 16
  %6 = alloca [4 x float], align 16
  %7 = alloca [4 x float], align 16
  %8 = alloca [4 x float], align 16
  %9 = alloca [4 x float], align 16
  %10 = alloca [4 x float], align 16
  %11 = alloca [4 x [4 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %1, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_euler_xyz_quat_rh.axis_x, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_euler_xyz_quat_rh.axis_y, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %3, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_euler_xyz_quat_rh.axis_z, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %11) #6
  %12 = getelementptr inbounds i8, ptr %4, i64 4
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  br label %16

14:                                               ; preds = %32
  %15 = add nuw nsw i32 %.087, 1
  %exitcond = icmp eq i32 %15, 100
  br i1 %exitcond, label %.preheader74, label %16, !llvm.loop !5

16:                                               ; preds = %0, %14
  %.087 = phi i32 [ 0, %0 ], [ %15, %14 ]
  call void @test_rand_vec3(ptr noundef nonnull %4) #6
  %17 = load float, ptr %4, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %5, float noundef %17, ptr noundef nonnull %1)
  %18 = load float, ptr %12, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %6, float noundef %18, ptr noundef nonnull %2)
  %19 = load float, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %7, float noundef %19, ptr noundef nonnull %3)
  call void @glm_quat_identity(ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @glm_euler_xyz_quat_rh(ptr noundef nonnull %4, ptr noundef nonnull %9)
  %20 = call float @glm_quat_norm(ptr noundef nonnull %9)
  %21 = call zeroext i1 @test_eq(float noundef %20, float noundef 1.000000e+00)
  br i1 %21, label %25, label %22

22:                                               ; preds = %16
  %23 = load ptr, ptr @stderr, align 8, !tbaa !11
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1005, i32 noundef 50, ptr noundef nonnull @.str.1006) #7
  br label %.thread58

25:                                               ; preds = %16
  %26 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %27 = extractvalue { ptr, i32 } %26, 1
  %.not = icmp eq i32 %27, 1
  br i1 %.not, label %32, label %28

28:                                               ; preds = %25
  %29 = extractvalue { ptr, i32 } %26, 0
  %30 = load ptr, ptr @stderr, align 8, !tbaa !11
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1005, i32 noundef 53, ptr noundef nonnull @.str.1007) #7
  br label %.thread58

32:                                               ; preds = %25
  call void @glm_euler_by_order(ptr noundef nonnull %4, i32 noundef 36, ptr noundef nonnull %11)
  call void @glm_mat4_quat(ptr noundef nonnull %11, ptr noundef nonnull %8)
  %33 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %34 = extractvalue { ptr, i32 } %33, 1
  %.not50 = icmp eq i32 %34, 1
  br i1 %.not50, label %14, label %35

35:                                               ; preds = %32
  %36 = extractvalue { ptr, i32 } %33, 0
  %37 = load ptr, ptr @stderr, align 8, !tbaa !11
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1005, i32 noundef 59, ptr noundef nonnull @.str.1008) #7
  br label %.thread58

.preheader74:                                     ; preds = %14, %.thread69
  %.04790 = phi float [ %85, %.thread69 ], [ -9.000000e+01, %14 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader74, %82
  %.04889 = phi float [ -9.000000e+01, %.preheader74 ], [ %83, %82 ]
  store float %.04790, ptr %4, align 4, !tbaa !7
  store float %.04889, ptr %12, align 4, !tbaa !7
  store float -9.000000e+01, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %5, float noundef %.04790, ptr noundef nonnull %1)
  %39 = load float, ptr %12, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %6, float noundef %39, ptr noundef nonnull %2)
  %40 = load float, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %7, float noundef %40, ptr noundef nonnull %3)
  call void @glm_quat_identity(ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @glm_euler_xyz_quat_rh(ptr noundef nonnull %4, ptr noundef nonnull %9)
  %41 = call float @glm_quat_norm(ptr noundef nonnull %9)
  %42 = call zeroext i1 @test_eq(float noundef %41, float noundef 1.000000e+00)
  br i1 %42, label %46, label %43

43:                                               ; preds = %71, %60, %.preheader
  %44 = load ptr, ptr @stderr, align 8, !tbaa !11
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1005, i32 noundef 90, ptr noundef nonnull @.str.1006) #7
  br label %.thread58

46:                                               ; preds = %.preheader
  %47 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %48 = extractvalue { ptr, i32 } %47, 1
  %.not51 = icmp eq i32 %48, 1
  br i1 %.not51, label %53, label %49

49:                                               ; preds = %76, %65, %46
  %.lcssa = phi { ptr, i32 } [ %47, %46 ], [ %66, %65 ], [ %77, %76 ]
  %50 = extractvalue { ptr, i32 } %.lcssa, 0
  %51 = load ptr, ptr @stderr, align 8, !tbaa !11
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1005, i32 noundef 92, ptr noundef nonnull @.str.1007) #7
  br label %.thread58

53:                                               ; preds = %46
  call void @glm_euler_by_order(ptr noundef nonnull %4, i32 noundef 36, ptr noundef nonnull %11)
  call void @glm_mat4_quat(ptr noundef nonnull %11, ptr noundef nonnull %8)
  %54 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %55 = extractvalue { ptr, i32 } %54, 1
  %.not52 = icmp eq i32 %55, 1
  br i1 %.not52, label %60, label %56

56:                                               ; preds = %79, %68, %53
  %.lcssa94 = phi { ptr, i32 } [ %54, %53 ], [ %69, %68 ], [ %80, %79 ]
  %57 = extractvalue { ptr, i32 } %.lcssa94, 0
  %58 = load ptr, ptr @stderr, align 8, !tbaa !11
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.1005, i32 noundef 98, ptr noundef nonnull @.str.1008) #7
  br label %.thread58

60:                                               ; preds = %53
  store float %.04790, ptr %4, align 4, !tbaa !7
  store float %.04889, ptr %12, align 4, !tbaa !7
  store float 0.000000e+00, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %5, float noundef %.04790, ptr noundef nonnull %1)
  %61 = load float, ptr %12, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %6, float noundef %61, ptr noundef nonnull %2)
  %62 = load float, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %7, float noundef %62, ptr noundef nonnull %3)
  call void @glm_quat_identity(ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @glm_euler_xyz_quat_rh(ptr noundef nonnull %4, ptr noundef nonnull %9)
  %63 = call float @glm_quat_norm(ptr noundef nonnull %9)
  %64 = call zeroext i1 @test_eq(float noundef %63, float noundef 1.000000e+00)
  br i1 %64, label %65, label %43

65:                                               ; preds = %60
  %66 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %67 = extractvalue { ptr, i32 } %66, 1
  %.not51.1 = icmp eq i32 %67, 1
  br i1 %.not51.1, label %68, label %49

68:                                               ; preds = %65
  call void @glm_euler_by_order(ptr noundef nonnull %4, i32 noundef 36, ptr noundef nonnull %11)
  call void @glm_mat4_quat(ptr noundef nonnull %11, ptr noundef nonnull %8)
  %69 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %70 = extractvalue { ptr, i32 } %69, 1
  %.not52.1 = icmp eq i32 %70, 1
  br i1 %.not52.1, label %71, label %56

71:                                               ; preds = %68
  store float %.04790, ptr %4, align 4, !tbaa !7
  store float %.04889, ptr %12, align 4, !tbaa !7
  store float 9.000000e+01, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %5, float noundef %.04790, ptr noundef nonnull %1)
  %72 = load float, ptr %12, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %6, float noundef %72, ptr noundef nonnull %2)
  %73 = load float, ptr %13, align 4, !tbaa !7
  call void @glm_quatv(ptr noundef nonnull %7, float noundef %73, ptr noundef nonnull %3)
  call void @glm_quat_identity(ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %5, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %8)
  call void @glm_quat_copy(ptr noundef nonnull %8, ptr noundef nonnull %10)
  call void @glm_quat_mul(ptr noundef nonnull %10, ptr noundef nonnull %7, ptr noundef nonnull %8)
  call void @glm_euler_xyz_quat_rh(ptr noundef nonnull %4, ptr noundef nonnull %9)
  %74 = call float @glm_quat_norm(ptr noundef nonnull %9)
  %75 = call zeroext i1 @test_eq(float noundef %74, float noundef 1.000000e+00)
  br i1 %75, label %76, label %43

76:                                               ; preds = %71
  %77 = call { ptr, i32 } @test_assert_quat_eq(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %78 = extractvalue { ptr, i32 } %77, 1
  %.not51.2 = icmp eq i32 %78, 1
  br i1 %.not51.2, label %79, label %49

79:                                               ; preds = %76
  call void @glm_euler_by_order(ptr noundef nonnull %4, i32 noundef 36, ptr noundef nonnull %11)
  call void @glm_mat4_quat(ptr noundef nonnull %11, ptr noundef nonnull %8)
  %80 = call { ptr, i32 } @test_assert_quat_eq_abs(ptr noundef nonnull %9, ptr noundef nonnull %8) #6
  %81 = extractvalue { ptr, i32 } %80, 1
  %.not52.2 = icmp eq i32 %81, 1
  br i1 %.not52.2, label %82, label %56

82:                                               ; preds = %79
  %83 = fadd float %.04889, 9.000000e+01
  %84 = fcmp ugt float %83, 9.000000e+01
  br i1 %84, label %.thread69, label %.preheader, !llvm.loop !13

.thread69:                                        ; preds = %82
  %85 = fadd float %.04790, 9.000000e+01
  %86 = fcmp ugt float %85, 9.000000e+01
  br i1 %86, label %.thread58, label %.preheader74, !llvm.loop !14

.thread58:                                        ; preds = %.thread69, %56, %49, %43, %22, %28, %35
  %.sroa.045.12 = phi ptr [ null, %22 ], [ %29, %28 ], [ %36, %35 ], [ null, %43 ], [ %50, %49 ], [ %57, %56 ], [ null, %.thread69 ]
  %.sroa.8.12 = phi i32 [ 0, %22 ], [ 0, %28 ], [ 0, %35 ], [ 0, %43 ], [ 0, %49 ], [ 0, %56 ], [ 1, %.thread69 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #6
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.045.12, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.8.12, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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

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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}


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