; 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.358 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.904 = external hidden unnamed_addr constant [22 x i8], align 1
@__const.test_glm_scale_to.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.str.905 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.906 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.907 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.908 = external hidden unnamed_addr constant [24 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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_scale_to() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x float], align 16
  %6 = alloca [3 x float], align 4
  %7 = alloca i32, 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 64, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_glm_scale_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #5
  %9 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %9)
  %10 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 1.300000e+01, ptr %6, align 4, !tbaa !5
  %11 = getelementptr inbounds float, ptr %6, i64 1
  store float 1.100000e+01, ptr %11, align 4, !tbaa !5
  %12 = getelementptr inbounds float, ptr %6, i64 2
  store float 7.000000e+00, ptr %12, align 4, !tbaa !5
  %13 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  %14 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_scale_to(ptr noundef %10, ptr noundef %13, ptr noundef %14)
  %15 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %16 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %17 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %15, ptr noundef %16, ptr noundef %17)
  br label %18

18:                                               ; preds = %0
  %19 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %20 = load float, ptr %19, align 16, !tbaa !5
  %21 = call zeroext i1 @test_eq(float noundef %20, float noundef 1.300000e+01)
  br i1 %21, label %27, label %22

22:                                               ; preds = %18
  %23 = load ptr, ptr @stderr, align 8, !tbaa !9
  %24 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %23, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 168, ptr noundef @.str.904) #5
  %25 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %25, align 8, !tbaa !11
  %26 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %26, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

27:                                               ; preds = %18
  br label %28

28:                                               ; preds = %27
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  %31 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %32 = load float, ptr %31, align 4, !tbaa !5
  %33 = call zeroext i1 @test_eq(float noundef %32, float noundef 2.200000e+01)
  br i1 %33, label %39, label %34

34:                                               ; preds = %30
  %35 = load ptr, ptr @stderr, align 8, !tbaa !9
  %36 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %35, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 169, ptr noundef @.str.905) #5
  %37 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %37, align 8, !tbaa !11
  %38 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %38, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

39:                                               ; preds = %30
  br label %40

40:                                               ; preds = %39
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  %43 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %44 = load float, ptr %43, align 8, !tbaa !5
  %45 = call zeroext i1 @test_eq(float noundef %44, float noundef 2.100000e+01)
  br i1 %45, label %51, label %46

46:                                               ; preds = %42
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 170, ptr noundef @.str.906) #5
  %49 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %49, align 8, !tbaa !11
  %50 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %50, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

51:                                               ; preds = %42
  br label %52

52:                                               ; preds = %51
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = call zeroext i1 @test_eq(float noundef %56, float noundef 1.000000e+00)
  br i1 %57, label %63, label %58

58:                                               ; preds = %54
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 171, ptr noundef @.str.358) #5
  %61 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %61, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %62, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

63:                                               ; preds = %54
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  %66 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %66)
  %67 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %8, align 4, !tbaa !5
  %68 = getelementptr inbounds float, ptr %8, i64 1
  store float -1.000000e+00, ptr %68, align 4, !tbaa !5
  %69 = getelementptr inbounds float, ptr %8, i64 2
  store float -5.000000e+00, ptr %69, align 4, !tbaa !5
  %70 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  %71 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  call void @glm_scale_to(ptr noundef %67, ptr noundef %70, ptr noundef %71)
  %72 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %73 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %74 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %72, ptr noundef %73, ptr noundef %74)
  br label %75

75:                                               ; preds = %65
  %76 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %77 = load float, ptr %76, align 16, !tbaa !5
  %78 = call zeroext i1 @test_eq(float noundef %77, float noundef 1.300000e+01)
  br i1 %78, label %84, label %79

79:                                               ; preds = %75
  %80 = load ptr, ptr @stderr, align 8, !tbaa !9
  %81 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %80, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 177, ptr noundef @.str.904) #5
  %82 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %82, align 8, !tbaa !11
  %83 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %83, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

84:                                               ; preds = %75
  br label %85

85:                                               ; preds = %84
  br label %86

86:                                               ; preds = %85
  br label %87

87:                                               ; preds = %86
  %88 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 1
  %89 = load float, ptr %88, align 4, !tbaa !5
  %90 = call zeroext i1 @test_eq(float noundef %89, float noundef -2.200000e+01)
  br i1 %90, label %96, label %91

91:                                               ; preds = %87
  %92 = load ptr, ptr @stderr, align 8, !tbaa !9
  %93 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %92, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 178, ptr noundef @.str.907) #5
  %94 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %94, align 8, !tbaa !11
  %95 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %95, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

96:                                               ; preds = %87
  br label %97

97:                                               ; preds = %96
  br label %98

98:                                               ; preds = %97
  br label %99

99:                                               ; preds = %98
  %100 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %101 = load float, ptr %100, align 8, !tbaa !5
  %102 = call zeroext i1 @test_eq(float noundef %101, float noundef -1.050000e+02)
  br i1 %102, label %108, label %103

103:                                              ; preds = %99
  %104 = load ptr, ptr @stderr, align 8, !tbaa !9
  %105 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %104, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 179, ptr noundef @.str.908) #5
  %106 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %106, align 8, !tbaa !11
  %107 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %107, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

108:                                              ; preds = %99
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  br label %111

111:                                              ; preds = %110
  %112 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %113 = load float, ptr %112, align 4, !tbaa !5
  %114 = call zeroext i1 @test_eq(float noundef %113, float noundef 1.000000e+00)
  br i1 %114, label %120, label %115

115:                                              ; preds = %111
  %116 = load ptr, ptr @stderr, align 8, !tbaa !9
  %117 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %116, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 180, ptr noundef @.str.358) #5
  %118 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %118, align 8, !tbaa !11
  %119 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %119, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

120:                                              ; preds = %111
  br label %121

121:                                              ; preds = %120
  br label %122

122:                                              ; preds = %121
  %123 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %123, align 8, !tbaa !11
  %124 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %124, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %125

125:                                              ; preds = %122, %115, %103, %91, %79, %58, %46, %34, %22
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #5
  %126 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %126
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_scale_to(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 = { 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.358 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.904 = external hidden unnamed_addr constant [22 x i8], align 1
@__const.test_glm_scale_to.v1 = external hidden unnamed_addr constant [4 x float], align 16
@.str.905 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.906 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.907 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.908 = external hidden unnamed_addr constant [24 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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_scale_to() 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 float], align 16
  %4 = alloca [4 x float], align 16
  %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 64, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %3, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_scale_to.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  store <2 x float> <float 1.300000e+01, float 1.100000e+01>, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %5, i64 8
  store float 7.000000e+00, ptr %7, align 8, !tbaa !5
  call void @glm_scale_to(ptr noundef nonnull %1, ptr noundef nonnull %5, ptr noundef nonnull %2)
  call void @glm_mat4_mulv(ptr noundef nonnull %2, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %8 = load float, ptr %4, align 16, !tbaa !5
  %9 = call zeroext i1 @test_eq(float noundef %8, float noundef 1.300000e+01)
  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 168, ptr noundef nonnull @.str.904) #6
  br label %59

13:                                               ; preds = %0
  %14 = getelementptr inbounds i8, ptr %4, i64 4
  %15 = load float, ptr %14, align 4, !tbaa !5
  %16 = call zeroext i1 @test_eq(float noundef %15, float noundef 2.200000e+01)
  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 169, ptr noundef nonnull @.str.905) #6
  br label %59

20:                                               ; preds = %13
  %21 = getelementptr inbounds i8, ptr %4, i64 8
  %22 = load float, ptr %21, align 8, !tbaa !5
  %23 = call zeroext i1 @test_eq(float noundef %22, float noundef 2.100000e+01)
  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 170, ptr noundef nonnull @.str.906) #6
  br label %59

27:                                               ; preds = %20
  %28 = getelementptr inbounds i8, ptr %4, i64 12
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = call zeroext i1 @test_eq(float noundef %29, float noundef 1.000000e+00)
  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 171, ptr noundef nonnull @.str.358) #6
  br label %59

34:                                               ; preds = %27
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  store <2 x float> <float 1.000000e+00, float -1.000000e+00>, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %6, i64 8
  store float -5.000000e+00, ptr %35, align 8, !tbaa !5
  call void @glm_scale_to(ptr noundef nonnull %1, ptr noundef nonnull %6, ptr noundef nonnull %2)
  call void @glm_mat4_mulv(ptr noundef nonnull %2, ptr noundef nonnull %4, ptr noundef nonnull %4)
  %36 = load float, ptr %4, align 16, !tbaa !5
  %37 = call zeroext i1 @test_eq(float noundef %36, float noundef 1.300000e+01)
  br i1 %37, label %41, label %38

38:                                               ; preds = %34
  %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 177, ptr noundef nonnull @.str.904) #6
  br label %59

41:                                               ; preds = %34
  %42 = load float, ptr %14, align 4, !tbaa !5
  %43 = call zeroext i1 @test_eq(float noundef %42, float noundef -2.200000e+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 178, ptr noundef nonnull @.str.907) #6
  br label %59

47:                                               ; preds = %41
  %48 = load float, ptr %21, align 8, !tbaa !5
  %49 = call zeroext i1 @test_eq(float noundef %48, float noundef -1.050000e+02)
  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 179, ptr noundef nonnull @.str.908) #6
  br label %59

53:                                               ; preds = %47
  %54 = load float, ptr %28, align 4, !tbaa !5
  %55 = call zeroext i1 @test_eq(float noundef %54, float noundef 1.000000e+00)
  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 180, ptr noundef nonnull @.str.358) #6
  br label %59

59:                                               ; preds = %53, %56, %50, %44, %38, %31, %24, %17, %10
  %.sroa.10.0 = phi i32 [ 0, %56 ], [ 0, %50 ], [ 0, %44 ], [ 0, %38 ], [ 0, %31 ], [ 0, %24 ], [ 0, %17 ], [ 0, %10 ], [ 1, %53 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, 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.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.10.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_scale_to(ptr noundef, ptr 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 = { 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