; 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.895 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.914 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.915 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.916 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.917 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.918 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.919 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.922 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.923 = external hidden unnamed_addr constant [39 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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_decompose_rs() #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 [4 x float]], align 16
  %5 = alloca [3 x float], align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.test_status_t, align 8
  %9 = alloca %struct.test_status_t, align 8
  %10 = alloca [3 x float], align 4
  %11 = alloca %struct.test_status_t, align 8
  %12 = alloca %struct.test_status_t, align 8
  %13 = alloca [3 x float], align 4
  %14 = alloca %struct.test_status_t, align 8
  %15 = 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 64, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %5) #6
  %16 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 7.000000e+00, ptr %6, align 4, !tbaa !5
  %17 = getelementptr inbounds float, ptr %6, i64 1
  store float 8.000000e+00, ptr %17, align 4, !tbaa !5
  %18 = getelementptr inbounds float, ptr %6, i64 2
  store float 9.000000e+00, ptr %18, align 4, !tbaa !5
  %19 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  call void @glm_scale_make(ptr noundef %16, ptr noundef %19)
  %20 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %21 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %22 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_decompose_rs(ptr noundef %20, ptr noundef %21, ptr noundef %22)
  br label %23

23:                                               ; preds = %0
  %24 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %25 = load float, ptr %24, align 4, !tbaa !5
  %26 = call zeroext i1 @test_eq(float noundef %25, float noundef 7.000000e+00)
  br i1 %26, label %32, label %27

27:                                               ; preds = %23
  %28 = load ptr, ptr @stderr, align 8, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 551, ptr noundef @.str.914) #6
  %30 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %30, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %31, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

32:                                               ; preds = %23
  br label %33

33:                                               ; preds = %32
  br label %34

34:                                               ; preds = %33
  br label %35

35:                                               ; preds = %34
  %36 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  %37 = load float, ptr %36, align 4, !tbaa !5
  %38 = call zeroext i1 @test_eq(float noundef %37, float noundef 8.000000e+00)
  br i1 %38, label %44, label %39

39:                                               ; preds = %35
  %40 = load ptr, ptr @stderr, align 8, !tbaa !9
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 552, ptr noundef @.str.915) #6
  %42 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %42, align 8, !tbaa !11
  %43 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %43, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

44:                                               ; preds = %35
  br label %45

45:                                               ; preds = %44
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  %48 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = call zeroext i1 @test_eq(float noundef %49, float noundef 9.000000e+00)
  br i1 %50, label %56, label %51

51:                                               ; preds = %47
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 553, ptr noundef @.str.916) #6
  %54 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %55, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

56:                                               ; preds = %47
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

59:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #6
  %60 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %61 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef %60)
  %62 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  %63 = extractvalue { ptr, i32 } %61, 0
  store ptr %63, ptr %62, align 8
  %64 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 1
  %65 = extractvalue { ptr, i32 } %61, 1
  store i32 %65, ptr %64, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #6
  %66 = getelementptr inbounds %struct.test_status_t, ptr %8, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !14
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %76

69:                                               ; preds = %59
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str.13, ptr noundef @.str.895, i32 noundef 554, ptr noundef @.str.922) #6
  %72 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %73 = getelementptr inbounds %struct.test_status_t, ptr %8, i32 0, i32 0
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  store ptr %74, ptr %72, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %75, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %77

76:                                               ; preds = %59
  store i32 0, ptr %7, align 4
  br label %77

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

79:                                               ; preds = %77
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  %82 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 7.000000e+00, ptr %10, align 4, !tbaa !5
  %83 = getelementptr inbounds float, ptr %10, i64 1
  store float 8.000000e+00, ptr %83, align 4, !tbaa !5
  %84 = getelementptr inbounds float, ptr %10, i64 2
  store float 9.000000e+00, ptr %84, align 4, !tbaa !5
  %85 = getelementptr inbounds [3 x float], ptr %10, i64 0, i64 0
  call void @glm_scale(ptr noundef %82, ptr noundef %85)
  %86 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %87 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %88 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_decompose_rs(ptr noundef %86, ptr noundef %87, ptr noundef %88)
  br label %89

89:                                               ; preds = %81
  %90 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %91 = load float, ptr %90, align 4, !tbaa !5
  %92 = call zeroext i1 @test_eq(float noundef %91, float noundef 4.900000e+01)
  br i1 %92, label %98, label %93

93:                                               ; preds = %89
  %94 = load ptr, ptr @stderr, align 8, !tbaa !9
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %94, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 559, ptr noundef @.str.917) #6
  %96 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %96, align 8, !tbaa !11
  %97 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %97, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

98:                                               ; preds = %89
  br label %99

99:                                               ; preds = %98
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  %102 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  %103 = load float, ptr %102, align 4, !tbaa !5
  %104 = call zeroext i1 @test_eq(float noundef %103, float noundef 6.400000e+01)
  br i1 %104, label %110, label %105

105:                                              ; preds = %101
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 560, ptr noundef @.str.918) #6
  %108 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %108, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %109, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

110:                                              ; preds = %101
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  %115 = load float, ptr %114, align 4, !tbaa !5
  %116 = call zeroext i1 @test_eq(float noundef %115, float noundef 8.100000e+01)
  br i1 %116, label %122, label %117

117:                                              ; preds = %113
  %118 = load ptr, ptr @stderr, align 8, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %118, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 561, ptr noundef @.str.919) #6
  %120 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %120, align 8, !tbaa !11
  %121 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %121, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

122:                                              ; preds = %113
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %126 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %127 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef %126)
  %128 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 0
  %129 = extractvalue { ptr, i32 } %127, 0
  store ptr %129, ptr %128, align 8
  %130 = getelementptr inbounds { ptr, i32 }, ptr %12, i32 0, i32 1
  %131 = extractvalue { ptr, i32 } %127, 1
  store i32 %131, ptr %130, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %12, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %132 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 1
  %133 = load i32, ptr %132, align 8, !tbaa !14
  %134 = icmp ne i32 %133, 1
  br i1 %134, label %135, label %142

135:                                              ; preds = %125
  %136 = load ptr, ptr @stderr, align 8, !tbaa !9
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str.13, ptr noundef @.str.895, i32 noundef 562, ptr noundef @.str.922) #6
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %139 = getelementptr inbounds %struct.test_status_t, ptr %11, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !11
  store ptr %140, ptr %138, align 8, !tbaa !11
  %141 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %141, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %143

142:                                              ; preds = %125
  store i32 0, ptr %7, align 4
  br label %143

143:                                              ; preds = %142, %135
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #6
  %144 = load i32, ptr %7, align 4
  switch i32 %144, label %223 [
    i32 0, label %145
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 2.300000e+01, ptr %13, align 4, !tbaa !5
  %149 = getelementptr inbounds float, ptr %13, i64 1
  store float 4.500000e+01, ptr %149, align 4, !tbaa !5
  %150 = getelementptr inbounds float, ptr %13, i64 2
  store float 6.600000e+01, ptr %150, align 4, !tbaa !5
  %151 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
  call void @glm_rotate(ptr noundef %148, float noundef 0x3FE921FB60000000, ptr noundef %151)
  br label %152

152:                                              ; preds = %147
  %153 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = call zeroext i1 @test_eq(float noundef %154, float noundef 4.900000e+01)
  br i1 %155, label %161, label %156

156:                                              ; preds = %152
  %157 = load ptr, ptr @stderr, align 8, !tbaa !9
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 565, ptr noundef @.str.917) #6
  %159 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %159, align 8, !tbaa !11
  %160 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %160, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

161:                                              ; preds = %152
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  br label %164

164:                                              ; preds = %163
  %165 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 1
  %166 = load float, ptr %165, align 4, !tbaa !5
  %167 = call zeroext i1 @test_eq(float noundef %166, float noundef 6.400000e+01)
  br i1 %167, label %173, label %168

168:                                              ; preds = %164
  %169 = load ptr, ptr @stderr, align 8, !tbaa !9
  %170 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 566, ptr noundef @.str.918) #6
  %171 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %171, align 8, !tbaa !11
  %172 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %172, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

173:                                              ; preds = %164
  br label %174

174:                                              ; preds = %173
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  %177 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 2
  %178 = load float, ptr %177, align 4, !tbaa !5
  %179 = call zeroext i1 @test_eq(float noundef %178, float noundef 8.100000e+01)
  br i1 %179, label %185, label %180

180:                                              ; preds = %176
  %181 = load ptr, ptr @stderr, align 8, !tbaa !9
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 567, ptr noundef @.str.919) #6
  %183 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %183, align 8, !tbaa !11
  %184 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %184, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

185:                                              ; preds = %176
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %189 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %190 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_decompose_rs(ptr noundef %188, ptr noundef %189, ptr noundef %190)
  %191 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %191)
  %192 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %193 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %194 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_mat4_mul(ptr noundef %192, ptr noundef %193, ptr noundef %194)
  %195 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %196 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_scale(ptr noundef %195, ptr noundef %196)
  br label %197

197:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %198 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %199 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %200 = call { ptr, i32 } @test_assert_mat4_eq2(ptr noundef %198, ptr noundef %199, float noundef 0x3EE4F8B580000000)
  %201 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 0
  %202 = extractvalue { ptr, i32 } %200, 0
  store ptr %202, ptr %201, align 8
  %203 = getelementptr inbounds { ptr, i32 }, ptr %15, i32 0, i32 1
  %204 = extractvalue { ptr, i32 } %200, 1
  store i32 %204, ptr %203, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %14, ptr align 8 %15, i64 16, i1 false), !tbaa.struct !15
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %205 = getelementptr inbounds %struct.test_status_t, ptr %14, i32 0, i32 1
  %206 = load i32, ptr %205, align 8, !tbaa !14
  %207 = icmp ne i32 %206, 1
  br i1 %207, label %208, label %215

208:                                              ; preds = %197
  %209 = load ptr, ptr @stderr, align 8, !tbaa !9
  %210 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %209, ptr noundef @.str.13, ptr noundef @.str.895, i32 noundef 574, ptr noundef @.str.923) #6
  %211 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %212 = getelementptr inbounds %struct.test_status_t, ptr %14, i32 0, i32 0
  %213 = load ptr, ptr %212, align 8, !tbaa !11
  store ptr %213, ptr %211, align 8, !tbaa !11
  %214 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %214, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %216

215:                                              ; preds = %197
  store i32 0, ptr %7, align 4
  br label %216

216:                                              ; preds = %215, %208
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #6
  %217 = load i32, ptr %7, align 4
  switch i32 %217, label %223 [
    i32 0, label %218
  ]

218:                                              ; preds = %216
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  %221 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %221, align 8, !tbaa !11
  %222 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %222, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %223

223:                                              ; preds = %220, %216, %180, %168, %156, %143, %117, %105, %93, %77, %51, %39, %27
  call void @llvm.lifetime.end.p0(i64 12, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 64, 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
  %224 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %224
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_decompose_rs(ptr noundef, ptr 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 = !{!"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}
!11 = !{!12, !10, i64 0}
!12 = !{!"test_status_t", !10, i64 0, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}
!15 = !{i64 0, i64 8, !9, i64 8, i64 4, !16}
!16 = !{!13, !13, 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 = external hidden unnamed_addr constant [94 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.914 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.915 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.916 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.917 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.918 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.919 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.922 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.923 = external hidden unnamed_addr constant [39 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: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) local_unnamed_addr #1

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

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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_decompose_rs() local_unnamed_addr #4 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [3 x float], align 4
  %5 = alloca [3 x float], align 8
  %6 = alloca [3 x float], align 8
  %7 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %4) #5
  store <2 x float> <float 7.000000e+00, float 8.000000e+00>, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %5, i64 8
  store float 9.000000e+00, ptr %8, align 8, !tbaa !5
  call void @glm_scale_make(ptr noundef nonnull %1, ptr noundef nonnull %5)
  call void @glm_decompose_rs(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %9 = load float, ptr %4, align 4, !tbaa !5
  %10 = call zeroext i1 @test_eq(float noundef %9, float noundef 7.000000e+00)
  br i1 %10, label %14, label %11

11:                                               ; preds = %0
  %12 = load ptr, ptr @stderr, align 8, !tbaa !9
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 551, ptr noundef nonnull @.str.914) #6
  br label %87

14:                                               ; preds = %0
  %15 = getelementptr inbounds i8, ptr %4, i64 4
  %16 = load float, ptr %15, align 4, !tbaa !5
  %17 = call zeroext i1 @test_eq(float noundef %16, float noundef 8.000000e+00)
  br i1 %17, label %21, label %18

18:                                               ; preds = %14
  %19 = load ptr, ptr @stderr, align 8, !tbaa !9
  %20 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 552, ptr noundef nonnull @.str.915) #6
  br label %87

21:                                               ; preds = %14
  %22 = getelementptr inbounds i8, ptr %4, i64 8
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = call zeroext i1 @test_eq(float noundef %23, float noundef 9.000000e+00)
  br i1 %24, label %28, label %25

25:                                               ; preds = %21
  %26 = load ptr, ptr @stderr, align 8, !tbaa !9
  %27 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %26, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 553, ptr noundef nonnull @.str.916) #6
  br label %87

28:                                               ; preds = %21
  %29 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef nonnull %3) #5
  %30 = extractvalue { ptr, i32 } %29, 1
  %.not = icmp eq i32 %30, 1
  br i1 %.not, label %.critedge, label %31

31:                                               ; preds = %28
  %32 = extractvalue { ptr, i32 } %29, 0
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.895, i32 noundef 554, ptr noundef nonnull @.str.922) #6
  br label %87

.critedge:                                        ; preds = %28
  store <2 x float> <float 7.000000e+00, float 8.000000e+00>, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  store float 9.000000e+00, ptr %35, align 8, !tbaa !5
  call void @glm_scale(ptr noundef nonnull %1, ptr noundef nonnull %6)
  call void @glm_decompose_rs(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %36 = load float, ptr %4, align 4, !tbaa !5
  %37 = call zeroext i1 @test_eq(float noundef %36, float noundef 4.900000e+01)
  br i1 %37, label %41, label %38

38:                                               ; preds = %.critedge
  %39 = load ptr, ptr @stderr, align 8, !tbaa !9
  %40 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %39, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 559, ptr noundef nonnull @.str.917) #6
  br label %87

41:                                               ; preds = %.critedge
  %42 = load float, ptr %15, align 4, !tbaa !5
  %43 = call zeroext i1 @test_eq(float noundef %42, float noundef 6.400000e+01)
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr @stderr, align 8, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 560, ptr noundef nonnull @.str.918) #6
  br label %87

47:                                               ; preds = %41
  %48 = load float, ptr %22, align 4, !tbaa !5
  %49 = call zeroext i1 @test_eq(float noundef %48, float noundef 8.100000e+01)
  br i1 %49, label %53, label %50

50:                                               ; preds = %47
  %51 = load ptr, ptr @stderr, align 8, !tbaa !9
  %52 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %51, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 561, ptr noundef nonnull @.str.919) #6
  br label %87

53:                                               ; preds = %47
  %54 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef nonnull %3) #5
  %55 = extractvalue { ptr, i32 } %54, 1
  %.not20 = icmp eq i32 %55, 1
  br i1 %.not20, label %60, label %56

56:                                               ; preds = %53
  %57 = extractvalue { ptr, i32 } %54, 0
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.895, i32 noundef 562, ptr noundef nonnull @.str.922) #6
  br label %87

60:                                               ; preds = %53
  store <2 x float> <float 2.300000e+01, float 4.500000e+01>, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds i8, ptr %7, i64 8
  store float 6.600000e+01, ptr %61, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FE921FB60000000, ptr noundef nonnull %7)
  %62 = load float, ptr %4, align 4, !tbaa !5
  %63 = call zeroext i1 @test_eq(float noundef %62, float noundef 4.900000e+01)
  br i1 %63, label %67, label %64

64:                                               ; preds = %60
  %65 = load ptr, ptr @stderr, align 8, !tbaa !9
  %66 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %65, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 565, ptr noundef nonnull @.str.917) #6
  br label %87

67:                                               ; preds = %60
  %68 = load float, ptr %15, align 4, !tbaa !5
  %69 = call zeroext i1 @test_eq(float noundef %68, float noundef 6.400000e+01)
  br i1 %69, label %73, label %70

70:                                               ; preds = %67
  %71 = load ptr, ptr @stderr, align 8, !tbaa !9
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 566, ptr noundef nonnull @.str.918) #6
  br label %87

73:                                               ; preds = %67
  %74 = load float, ptr %22, align 4, !tbaa !5
  %75 = call zeroext i1 @test_eq(float noundef %74, float noundef 8.100000e+01)
  br i1 %75, label %79, label %76

76:                                               ; preds = %73
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 567, ptr noundef nonnull @.str.919) #6
  br label %87

79:                                               ; preds = %73
  call void @glm_decompose_rs(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %4)
  call void @glm_mat4_identity(ptr noundef nonnull %2)
  call void @glm_mat4_mul(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %2)
  call void @glm_scale(ptr noundef nonnull %2, ptr noundef nonnull %4)
  %80 = call { ptr, i32 } @test_assert_mat4_eq2(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3EE4F8B580000000) #5
  %81 = extractvalue { ptr, i32 } %80, 1
  %.not21 = icmp eq i32 %81, 1
  br i1 %.not21, label %86, label %82

82:                                               ; preds = %79
  %83 = extractvalue { ptr, i32 } %80, 0
  %84 = load ptr, ptr @stderr, align 8, !tbaa !9
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.895, i32 noundef 574, ptr noundef nonnull @.str.923) #6
  br label %86

86:                                               ; preds = %79, %82
  %spec.select = phi ptr [ %83, %82 ], [ null, %79 ]
  %spec.select22 = zext i1 %.not21 to i32
  br label %87

87:                                               ; preds = %56, %86, %31, %76, %70, %64, %50, %44, %38, %25, %18, %11
  %.sroa.019.3 = phi ptr [ null, %76 ], [ null, %70 ], [ null, %64 ], [ %57, %56 ], [ null, %50 ], [ null, %44 ], [ null, %38 ], [ %32, %31 ], [ null, %25 ], [ null, %18 ], [ null, %11 ], [ %spec.select, %86 ]
  %.sroa.14.3 = phi i32 [ 0, %76 ], [ 0, %70 ], [ 0, %64 ], [ 0, %56 ], [ 0, %50 ], [ 0, %44 ], [ 0, %38 ], [ 0, %31 ], [ 0, %25 ], [ 0, %18 ], [ 0, %11 ], [ %spec.select22, %86 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #5
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.019.3, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.14.3, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #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 = { 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