; 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.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

; Function Attrs: 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) #1

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_decompose_scalev() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca i32, align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #5
  %9 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 7.000000e+00, ptr %4, align 4, !tbaa !5
  %10 = getelementptr inbounds float, ptr %4, i64 1
  store float 8.000000e+00, ptr %10, align 4, !tbaa !5
  %11 = getelementptr inbounds float, ptr %4, i64 2
  store float 9.000000e+00, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  call void @glm_scale_make(ptr noundef %9, ptr noundef %12)
  %13 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %14 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_decompose_scalev(ptr noundef %13, ptr noundef %14)
  br label %15

15:                                               ; preds = %0
  %16 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %17 = load float, ptr %16, align 4, !tbaa !5
  %18 = call zeroext i1 @test_eq(float noundef %17, float noundef 7.000000e+00)
  br i1 %18, label %24, label %19

19:                                               ; preds = %15
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 502, ptr noundef @.str.914) #5
  %22 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %22, align 8, !tbaa !11
  %23 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %23, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

24:                                               ; preds = %15
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call zeroext i1 @test_eq(float noundef %29, float noundef 8.000000e+00)
  br i1 %30, label %36, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 503, ptr noundef @.str.915) #5
  %34 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %34, align 8, !tbaa !11
  %35 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %35, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

36:                                               ; preds = %27
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  br label %39

39:                                               ; preds = %38
  %40 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %41 = load float, ptr %40, align 4, !tbaa !5
  %42 = call zeroext i1 @test_eq(float noundef %41, float noundef 9.000000e+00)
  br i1 %42, label %48, label %43

43:                                               ; preds = %39
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 504, ptr noundef @.str.916) #5
  %46 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %46, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %47, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

48:                                               ; preds = %39
  br label %49

49:                                               ; preds = %48
  br label %50

50:                                               ; preds = %49
  %51 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 7.000000e+00, ptr %6, align 4, !tbaa !5
  %52 = getelementptr inbounds float, ptr %6, i64 1
  store float 8.000000e+00, ptr %52, align 4, !tbaa !5
  %53 = getelementptr inbounds float, ptr %6, i64 2
  store float 9.000000e+00, ptr %53, align 4, !tbaa !5
  %54 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  call void @glm_scale(ptr noundef %51, ptr noundef %54)
  %55 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %56 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  call void @glm_decompose_scalev(ptr noundef %55, ptr noundef %56)
  br label %57

57:                                               ; preds = %50
  %58 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = call zeroext i1 @test_eq(float noundef %59, float noundef 4.900000e+01)
  br i1 %60, label %66, label %61

61:                                               ; preds = %57
  %62 = load ptr, ptr @stderr, align 8, !tbaa !9
  %63 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %62, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 509, ptr noundef @.str.917) #5
  %64 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %64, align 8, !tbaa !11
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %65, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

66:                                               ; preds = %57
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  br label %69

69:                                               ; preds = %68
  %70 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %71 = load float, ptr %70, align 4, !tbaa !5
  %72 = call zeroext i1 @test_eq(float noundef %71, float noundef 6.400000e+01)
  br i1 %72, label %78, label %73

73:                                               ; preds = %69
  %74 = load ptr, ptr @stderr, align 8, !tbaa !9
  %75 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %74, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 510, ptr noundef @.str.918) #5
  %76 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %76, align 8, !tbaa !11
  %77 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %77, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

78:                                               ; preds = %69
  br label %79

79:                                               ; preds = %78
  br label %80

80:                                               ; preds = %79
  br label %81

81:                                               ; preds = %80
  %82 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %83 = load float, ptr %82, align 4, !tbaa !5
  %84 = call zeroext i1 @test_eq(float noundef %83, float noundef 8.100000e+01)
  br i1 %84, label %90, label %85

85:                                               ; preds = %81
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 511, ptr noundef @.str.919) #5
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %88, align 8, !tbaa !11
  %89 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %89, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

90:                                               ; preds = %81
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  %93 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 2.300000e+01, ptr %7, align 4, !tbaa !5
  %94 = getelementptr inbounds float, ptr %7, i64 1
  store float 4.500000e+01, ptr %94, align 4, !tbaa !5
  %95 = getelementptr inbounds float, ptr %7, i64 2
  store float 6.600000e+01, ptr %95, align 4, !tbaa !5
  %96 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  call void @glm_rotate(ptr noundef %93, float noundef 0x3FE921FB60000000, ptr noundef %96)
  br label %97

97:                                               ; preds = %92
  %98 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %99 = load float, ptr %98, align 4, !tbaa !5
  %100 = call zeroext i1 @test_eq(float noundef %99, float noundef 4.900000e+01)
  br i1 %100, label %106, label %101

101:                                              ; preds = %97
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 514, ptr noundef @.str.917) #5
  %104 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %104, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %105, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

106:                                              ; preds = %97
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  %110 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %111 = load float, ptr %110, align 4, !tbaa !5
  %112 = call zeroext i1 @test_eq(float noundef %111, float noundef 6.400000e+01)
  br i1 %112, label %118, label %113

113:                                              ; preds = %109
  %114 = load ptr, ptr @stderr, align 8, !tbaa !9
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 515, ptr noundef @.str.918) #5
  %116 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %116, align 8, !tbaa !11
  %117 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %117, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

118:                                              ; preds = %109
  br label %119

119:                                              ; preds = %118
  br label %120

120:                                              ; preds = %119
  br label %121

121:                                              ; preds = %120
  %122 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %123 = load float, ptr %122, align 4, !tbaa !5
  %124 = call zeroext i1 @test_eq(float noundef %123, float noundef 8.100000e+01)
  br i1 %124, label %130, label %125

125:                                              ; preds = %121
  %126 = load ptr, ptr @stderr, align 8, !tbaa !9
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %126, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 516, ptr noundef @.str.919) #5
  %128 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %128, align 8, !tbaa !11
  %129 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %129, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

130:                                              ; preds = %121
  br label %131

131:                                              ; preds = %130
  br label %132

132:                                              ; preds = %131
  %133 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 4.000000e+00, ptr %8, align 4, !tbaa !5
  %134 = getelementptr inbounds float, ptr %8, i64 1
  store float 5.000000e+00, ptr %134, align 4, !tbaa !5
  %135 = getelementptr inbounds float, ptr %8, i64 2
  store float 6.000000e+00, ptr %135, align 4, !tbaa !5
  %136 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_translate(ptr noundef %133, ptr noundef %136)
  br label %137

137:                                              ; preds = %132
  %138 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %139 = load float, ptr %138, align 4, !tbaa !5
  %140 = call zeroext i1 @test_eq(float noundef %139, float noundef 4.900000e+01)
  br i1 %140, label %146, label %141

141:                                              ; preds = %137
  %142 = load ptr, ptr @stderr, align 8, !tbaa !9
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %142, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 519, ptr noundef @.str.917) #5
  %144 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %144, align 8, !tbaa !11
  %145 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %145, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

146:                                              ; preds = %137
  br label %147

147:                                              ; preds = %146
  br label %148

148:                                              ; preds = %147
  br label %149

149:                                              ; preds = %148
  %150 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 1
  %151 = load float, ptr %150, align 4, !tbaa !5
  %152 = call zeroext i1 @test_eq(float noundef %151, float noundef 6.400000e+01)
  br i1 %152, label %158, label %153

153:                                              ; preds = %149
  %154 = load ptr, ptr @stderr, align 8, !tbaa !9
  %155 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 520, ptr noundef @.str.918) #5
  %156 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %156, align 8, !tbaa !11
  %157 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %157, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

158:                                              ; preds = %149
  br label %159

159:                                              ; preds = %158
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  %162 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 2
  %163 = load float, ptr %162, align 4, !tbaa !5
  %164 = call zeroext i1 @test_eq(float noundef %163, float noundef 8.100000e+01)
  br i1 %164, label %170, label %165

165:                                              ; preds = %161
  %166 = load ptr, ptr @stderr, align 8, !tbaa !9
  %167 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %166, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 521, ptr noundef @.str.919) #5
  %168 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %168, align 8, !tbaa !11
  %169 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %169, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

170:                                              ; preds = %161
  br label %171

171:                                              ; preds = %170
  br label %172

172:                                              ; preds = %171
  %173 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %173, align 8, !tbaa !11
  %174 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %174, align 8, !tbaa !14
  store i32 1, ptr %5, align 4
  br label %175

175:                                              ; preds = %172, %165, %153, %141, %125, %113, %101, %85, %73, %61, %43, %31, %19
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #5
  %176 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %176
}

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

attributes #0 = { 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 = { 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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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 }

!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}


; 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.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

; 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_rotate(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #1

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

; 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_scalev() local_unnamed_addr #4 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 8
  %4 = alloca [3 x float], align 8
  %5 = alloca [3 x float], align 8
  %6 = 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 12, ptr nonnull %2) #5
  store <2 x float> <float 7.000000e+00, float 8.000000e+00>, ptr %3, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %3, i64 8
  store float 9.000000e+00, ptr %7, align 8, !tbaa !5
  call void @glm_scale_make(ptr noundef nonnull %1, ptr noundef nonnull %3)
  call void @glm_decompose_scalev(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %8 = load float, ptr %2, align 4, !tbaa !5
  %9 = call zeroext i1 @test_eq(float noundef %8, float noundef 7.000000e+00)
  br i1 %9, label %13, label %10

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

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

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

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

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

27:                                               ; preds = %20
  store <2 x float> <float 7.000000e+00, float 8.000000e+00>, ptr %4, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %4, i64 8
  store float 9.000000e+00, ptr %28, align 8, !tbaa !5
  call void @glm_scale(ptr noundef nonnull %1, ptr noundef nonnull %4)
  call void @glm_decompose_scalev(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %29 = load float, ptr %2, align 4, !tbaa !5
  %30 = call zeroext i1 @test_eq(float noundef %29, float noundef 4.900000e+01)
  br i1 %30, label %34, label %31

31:                                               ; preds = %27
  %32 = load ptr, ptr @stderr, align 8, !tbaa !9
  %33 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %32, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 509, ptr noundef nonnull @.str.917) #6
  br label %84

34:                                               ; preds = %27
  %35 = load float, ptr %14, align 4, !tbaa !5
  %36 = call zeroext i1 @test_eq(float noundef %35, float noundef 6.400000e+01)
  br i1 %36, label %40, label %37

37:                                               ; preds = %34
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 510, ptr noundef nonnull @.str.918) #6
  br label %84

40:                                               ; preds = %34
  %41 = load float, ptr %21, align 4, !tbaa !5
  %42 = call zeroext i1 @test_eq(float noundef %41, float noundef 8.100000e+01)
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 511, ptr noundef nonnull @.str.919) #6
  br label %84

46:                                               ; preds = %40
  store <2 x float> <float 2.300000e+01, float 4.500000e+01>, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %5, i64 8
  store float 6.600000e+01, ptr %47, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FE921FB60000000, ptr noundef nonnull %5)
  %48 = load float, ptr %2, align 4, !tbaa !5
  %49 = call zeroext i1 @test_eq(float noundef %48, float noundef 4.900000e+01)
  br i1 %49, label %53, label %50

50:                                               ; preds = %46
  %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 514, ptr noundef nonnull @.str.917) #6
  br label %84

53:                                               ; preds = %46
  %54 = load float, ptr %14, align 4, !tbaa !5
  %55 = call zeroext i1 @test_eq(float noundef %54, float noundef 6.400000e+01)
  br i1 %55, label %59, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr @stderr, align 8, !tbaa !9
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %57, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 515, ptr noundef nonnull @.str.918) #6
  br label %84

59:                                               ; preds = %53
  %60 = load float, ptr %21, align 4, !tbaa !5
  %61 = call zeroext i1 @test_eq(float noundef %60, float noundef 8.100000e+01)
  br i1 %61, label %65, label %62

62:                                               ; preds = %59
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 516, ptr noundef nonnull @.str.919) #6
  br label %84

65:                                               ; preds = %59
  store <2 x float> <float 4.000000e+00, float 5.000000e+00>, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %6, i64 8
  store float 6.000000e+00, ptr %66, align 8, !tbaa !5
  call void @glm_translate(ptr noundef nonnull %1, ptr noundef nonnull %6)
  %67 = load float, ptr %2, align 4, !tbaa !5
  %68 = call zeroext i1 @test_eq(float noundef %67, float noundef 4.900000e+01)
  br i1 %68, label %72, label %69

69:                                               ; preds = %65
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 519, ptr noundef nonnull @.str.917) #6
  br label %84

72:                                               ; preds = %65
  %73 = load float, ptr %14, align 4, !tbaa !5
  %74 = call zeroext i1 @test_eq(float noundef %73, float noundef 6.400000e+01)
  br i1 %74, label %78, label %75

75:                                               ; preds = %72
  %76 = load ptr, ptr @stderr, align 8, !tbaa !9
  %77 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %76, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 520, ptr noundef nonnull @.str.918) #6
  br label %84

78:                                               ; preds = %72
  %79 = load float, ptr %21, align 4, !tbaa !5
  %80 = call zeroext i1 @test_eq(float noundef %79, float noundef 8.100000e+01)
  br i1 %80, label %84, label %81

81:                                               ; preds = %78
  %82 = load ptr, ptr @stderr, align 8, !tbaa !9
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %82, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 521, ptr noundef nonnull @.str.919) #6
  br label %84

84:                                               ; preds = %78, %81, %75, %69, %62, %56, %50, %43, %37, %31, %24, %17, %10
  %.sroa.14.0 = phi i32 [ 0, %81 ], [ 0, %75 ], [ 0, %69 ], [ 0, %62 ], [ 0, %56 ], [ 0, %50 ], [ 0, %43 ], [ 0, %37 ], [ 0, %31 ], [ 0, %24 ], [ 0, %17 ], [ 0, %10 ], [ 1, %78 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #5
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.14.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_decompose_scalev(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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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,SLPVectorizerPass,SROAPass,SimplifyCFGPass