; 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.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.728 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_rotate.v1 = external hidden unnamed_addr constant [4 x float], align 16

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; 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: alwaysinline nounwind uwtable
declare hidden void @glm_rotate(ptr noundef, float noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_rotate() #6 {
  %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 [3 x float], align 4
  %6 = alloca [3 x float], align 4
  %7 = alloca [3 x float], align 4
  %8 = alloca [3 x float], align 4
  %9 = alloca %struct.test_status_t, align 8
  %10 = alloca %struct.test_status_t, align 8
  %11 = alloca i32, align 4
  %12 = alloca [3 x float], align 4
  %13 = alloca [3 x float], align 4
  %14 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #7
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 64, i1 false)
  %15 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 0
  %16 = getelementptr inbounds [4 x float], ptr %15, i32 0, i32 0
  store float 1.000000e+00, ptr %16, align 16
  %17 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 1
  %18 = getelementptr inbounds [4 x float], ptr %17, i32 0, i32 1
  store float 1.000000e+00, ptr %18, align 4
  %19 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 2
  %20 = getelementptr inbounds [4 x float], ptr %19, i32 0, i32 2
  store float 1.000000e+00, ptr %20, align 8
  %21 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 3
  %22 = getelementptr inbounds [4 x float], ptr %21, i32 0, i32 3
  store float 1.000000e+00, ptr %22, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #7
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 64, i1 false)
  %23 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 0
  %24 = getelementptr inbounds [4 x float], ptr %23, i32 0, i32 0
  store float 1.000000e+00, ptr %24, align 16
  %25 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 1
  %26 = getelementptr inbounds [4 x float], ptr %25, i32 0, i32 1
  store float 1.000000e+00, ptr %26, align 4
  %27 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 2
  %28 = getelementptr inbounds [4 x float], ptr %27, i32 0, i32 2
  store float 1.000000e+00, ptr %28, align 8
  %29 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 3
  %30 = getelementptr inbounds [4 x float], ptr %29, i32 0, i32 3
  store float 1.000000e+00, ptr %30, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %4, ptr align 16 @__const.test_glm_rotate.v1, i64 16, i1 false)
  %31 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %5, align 4, !tbaa !5
  %32 = getelementptr inbounds float, ptr %5, i64 1
  store float 1.000000e+00, ptr %32, align 4, !tbaa !5
  %33 = getelementptr inbounds float, ptr %5, i64 2
  store float 0.000000e+00, ptr %33, align 4, !tbaa !5
  %34 = getelementptr inbounds [3 x float], ptr %5, i64 0, i64 0
  call void @glm_rotate(ptr noundef %31, float noundef 0x3FF921FB60000000, ptr noundef %34)
  %35 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %6, align 4, !tbaa !5
  %36 = getelementptr inbounds float, ptr %6, i64 1
  store float 1.000000e+00, ptr %36, align 4, !tbaa !5
  %37 = getelementptr inbounds float, ptr %6, i64 2
  store float 0.000000e+00, ptr %37, align 4, !tbaa !5
  %38 = getelementptr inbounds [3 x float], ptr %6, i64 0, i64 0
  call void @glm_rotate(ptr noundef %35, float noundef 0x3FF921FB60000000, ptr noundef %38)
  %39 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %7, align 4, !tbaa !5
  %40 = getelementptr inbounds float, ptr %7, i64 1
  store float 1.000000e+00, ptr %40, align 4, !tbaa !5
  %41 = getelementptr inbounds float, ptr %7, i64 2
  store float 0.000000e+00, ptr %41, align 4, !tbaa !5
  %42 = getelementptr inbounds [3 x float], ptr %7, i64 0, i64 0
  call void @glm_rotate(ptr noundef %39, float noundef 0x3FF921FB60000000, ptr noundef %42)
  %43 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %8, align 4, !tbaa !5
  %44 = getelementptr inbounds float, ptr %8, i64 1
  store float 1.000000e+00, ptr %44, align 4, !tbaa !5
  %45 = getelementptr inbounds float, ptr %8, i64 2
  store float 0.000000e+00, ptr %45, align 4, !tbaa !5
  %46 = getelementptr inbounds [3 x float], ptr %8, i64 0, i64 0
  call void @glm_rotate(ptr noundef %43, float noundef 0x3FF921FB60000000, ptr noundef %46)
  br label %47

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

58:                                               ; preds = %47
  %59 = load ptr, ptr @stderr, align 8, !tbaa !10
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str.13, ptr noundef @.str.895, i32 noundef 394, ptr noundef @.str.728) #7
  %61 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %62 = getelementptr inbounds %struct.test_status_t, ptr %9, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !16
  store ptr %63, ptr %61, align 8, !tbaa !16
  %64 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %64, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %66

65:                                               ; preds = %47
  store i32 0, ptr %11, align 4
  br label %66

66:                                               ; preds = %65, %58
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  %67 = load i32, ptr %11, align 4
  switch i32 %67, label %204 [
    i32 0, label %68
  ]

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68
  br label %70

70:                                               ; preds = %69
  %71 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 0.000000e+00, ptr %12, align 4, !tbaa !5
  %72 = getelementptr inbounds float, ptr %12, i64 1
  store float 1.000000e+00, ptr %72, align 4, !tbaa !5
  %73 = getelementptr inbounds float, ptr %12, i64 2
  store float 0.000000e+00, ptr %73, align 4, !tbaa !5
  %74 = getelementptr inbounds [3 x float], ptr %12, i64 0, i64 0
  call void @glm_rotate(ptr noundef %71, float noundef 0x3FF921FB60000000, ptr noundef %74)
  %75 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %76 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %77 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %75, ptr noundef %76, ptr noundef %77)
  br label %78

78:                                               ; preds = %70
  %79 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %80 = load float, ptr %79, align 16, !tbaa !5
  %81 = call zeroext i1 @test_eq(float noundef %80, float noundef 0.000000e+00)
  br i1 %81, label %87, label %82

82:                                               ; preds = %78
  %83 = load ptr, ptr @stderr, align 8, !tbaa !10
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 400, ptr noundef @.str.27) #7
  %85 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %85, align 8, !tbaa !16
  %86 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %86, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

87:                                               ; preds = %78
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  %91 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = call zeroext i1 @test_eq(float noundef %92, float noundef 0.000000e+00)
  br i1 %93, label %99, label %94

94:                                               ; preds = %90
  %95 = load ptr, ptr @stderr, align 8, !tbaa !10
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 401, ptr noundef @.str.28) #7
  %97 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %97, align 8, !tbaa !16
  %98 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %98, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

99:                                               ; preds = %90
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %104 = load float, ptr %103, align 8, !tbaa !5
  %105 = call zeroext i1 @test_eq(float noundef %104, float noundef -1.000000e+00)
  br i1 %105, label %111, label %106

106:                                              ; preds = %102
  %107 = load ptr, ptr @stderr, align 8, !tbaa !10
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 402, ptr noundef @.str.177) #7
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %109, align 8, !tbaa !16
  %110 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %110, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

111:                                              ; preds = %102
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  %114 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %114)
  %115 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %13, align 4, !tbaa !5
  %116 = getelementptr inbounds float, ptr %13, i64 1
  store float 0.000000e+00, ptr %116, align 4, !tbaa !5
  %117 = getelementptr inbounds float, ptr %13, i64 2
  store float 0.000000e+00, ptr %117, align 4, !tbaa !5
  %118 = getelementptr inbounds [3 x float], ptr %13, i64 0, i64 0
  call void @glm_rotate(ptr noundef %115, float noundef 0x3FF921FB60000000, ptr noundef %118)
  %119 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %120 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %121 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %119, ptr noundef %120, ptr noundef %121)
  br label %122

122:                                              ; preds = %113
  %123 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %124 = load float, ptr %123, align 16, !tbaa !5
  %125 = call zeroext i1 @test_eq(float noundef %124, float noundef 0.000000e+00)
  br i1 %125, label %131, label %126

126:                                              ; preds = %122
  %127 = load ptr, ptr @stderr, align 8, !tbaa !10
  %128 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %127, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 410, ptr noundef @.str.27) #7
  %129 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %129, align 8, !tbaa !16
  %130 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %130, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

131:                                              ; preds = %122
  br label %132

132:                                              ; preds = %131
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  %135 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %136 = load float, ptr %135, align 4, !tbaa !5
  %137 = call zeroext i1 @test_eq(float noundef %136, float noundef 1.000000e+00)
  br i1 %137, label %143, label %138

138:                                              ; preds = %134
  %139 = load ptr, ptr @stderr, align 8, !tbaa !10
  %140 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 411, ptr noundef @.str.63) #7
  %141 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %141, align 8, !tbaa !16
  %142 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %142, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

143:                                              ; preds = %134
  br label %144

144:                                              ; preds = %143
  br label %145

145:                                              ; preds = %144
  br label %146

146:                                              ; preds = %145
  %147 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %148 = load float, ptr %147, align 8, !tbaa !5
  %149 = call zeroext i1 @test_eq(float noundef %148, float noundef 0.000000e+00)
  br i1 %149, label %155, label %150

150:                                              ; preds = %146
  %151 = load ptr, ptr @stderr, align 8, !tbaa !10
  %152 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %151, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 412, ptr noundef @.str.154) #7
  %153 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %153, align 8, !tbaa !16
  %154 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %154, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

155:                                              ; preds = %146
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  %158 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %158)
  %159 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  store float 1.000000e+00, ptr %14, align 4, !tbaa !5
  %160 = getelementptr inbounds float, ptr %14, i64 1
  store float 0.000000e+00, ptr %160, align 4, !tbaa !5
  %161 = getelementptr inbounds float, ptr %14, i64 2
  store float 0.000000e+00, ptr %161, align 4, !tbaa !5
  %162 = getelementptr inbounds [3 x float], ptr %14, i64 0, i64 0
  call void @glm_rotate(ptr noundef %159, float noundef 0x3FF921FB60000000, ptr noundef %162)
  %163 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %164 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %165 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_mat4_mulv(ptr noundef %163, ptr noundef %164, ptr noundef %165)
  br label %166

166:                                              ; preds = %157
  %167 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %168 = load float, ptr %167, align 16, !tbaa !5
  %169 = call zeroext i1 @test_eq(float noundef %168, float noundef 0.000000e+00)
  br i1 %169, label %175, label %170

170:                                              ; preds = %166
  %171 = load ptr, ptr @stderr, align 8, !tbaa !10
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 420, ptr noundef @.str.27) #7
  %173 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %173, align 8, !tbaa !16
  %174 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %174, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

175:                                              ; preds = %166
  br label %176

176:                                              ; preds = %175
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  %179 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %180 = load float, ptr %179, align 4, !tbaa !5
  %181 = call zeroext i1 @test_eq(float noundef %180, float noundef 0.000000e+00)
  br i1 %181, label %187, label %182

182:                                              ; preds = %178
  %183 = load ptr, ptr @stderr, align 8, !tbaa !10
  %184 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %183, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 421, ptr noundef @.str.28) #7
  %185 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %185, align 8, !tbaa !16
  %186 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %186, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

187:                                              ; preds = %178
  br label %188

188:                                              ; preds = %187
  br label %189

189:                                              ; preds = %188
  br label %190

190:                                              ; preds = %189
  %191 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %192 = load float, ptr %191, align 8, !tbaa !5
  %193 = call zeroext i1 @test_eq(float noundef %192, float noundef 1.000000e+00)
  br i1 %193, label %199, label %194

194:                                              ; preds = %190
  %195 = load ptr, ptr @stderr, align 8, !tbaa !10
  %196 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %195, ptr noundef @.str, ptr noundef @.str.895, i32 noundef 422, ptr noundef @.str.870) #7
  %197 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %197, align 8, !tbaa !16
  %198 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %198, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

199:                                              ; preds = %190
  br label %200

200:                                              ; preds = %199
  br label %201

201:                                              ; preds = %200
  %202 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %202, align 8, !tbaa !16
  %203 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %203, align 8, !tbaa !14
  store i32 1, ptr %11, align 4
  br label %204

204:                                              ; preds = %201, %194, %182, %170, %150, %138, %126, %106, %94, %82, %66
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #7
  %205 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %205
}

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 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 #7 = { 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 = !{i64 0, i64 8, !10, i64 8, i64 4, !12}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"test_status_t", !11, i64 0, !13, i64 8}
!16 = !{!15, !11, 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.27 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.63 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.177 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.728 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.870 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.895 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_rotate.v1 = external hidden unnamed_addr constant [4 x float], align 16

; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

; 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: alwaysinline nounwind uwtable
declare hidden void @glm_rotate(ptr noundef, float noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_rotate() local_unnamed_addr #6 {
  %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 [3 x float], align 8
  %5 = alloca [3 x float], align 8
  %6 = alloca [3 x float], align 8
  %7 = alloca [3 x float], align 8
  %8 = alloca [3 x float], align 8
  %9 = alloca [3 x float], align 8
  %10 = alloca [3 x float], align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %1, align 16
  %11 = getelementptr inbounds i8, ptr %1, i64 20
  store float 1.000000e+00, ptr %11, align 4
  %12 = getelementptr inbounds i8, ptr %1, i64 40
  store float 1.000000e+00, ptr %12, align 8
  %13 = getelementptr inbounds i8, ptr %1, i64 60
  store float 1.000000e+00, ptr %13, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %2, align 16
  %14 = getelementptr inbounds i8, ptr %2, i64 20
  store float 1.000000e+00, ptr %14, align 4
  %15 = getelementptr inbounds i8, ptr %2, i64 40
  store float 1.000000e+00, ptr %15, align 8
  %16 = getelementptr inbounds i8, ptr %2, i64 60
  store float 1.000000e+00, ptr %16, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  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_rotate.v1, i64 16, i1 false)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %4, i64 8
  store float 0.000000e+00, ptr %17, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %4)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %5, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %5, i64 8
  store float 0.000000e+00, ptr %18, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %5)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %6, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  store float 0.000000e+00, ptr %19, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %6)
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %7, i64 8
  store float 0.000000e+00, ptr %20, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %7)
  %21 = call { ptr, i32 } @test_assert_mat4_eq(ptr noundef nonnull %1, ptr noundef nonnull %2) #7
  %22 = extractvalue { ptr, i32 } %21, 1
  %.not = icmp eq i32 %22, 1
  br i1 %.not, label %.critedge, label %23

23:                                               ; preds = %0
  %24 = extractvalue { ptr, i32 } %21, 0
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.895, i32 noundef 394, ptr noundef nonnull @.str.728) #8
  br label %85

.critedge:                                        ; preds = %0
  store <2 x float> <float 0.000000e+00, float 1.000000e+00>, ptr %8, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  store float 0.000000e+00, ptr %27, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %8)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %28 = load float, ptr %3, align 16, !tbaa !5
  %29 = call zeroext i1 @test_eq(float noundef %28, float noundef 0.000000e+00)
  br i1 %29, label %33, label %30

30:                                               ; preds = %.critedge
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 400, ptr noundef nonnull @.str.27) #8
  br label %85

33:                                               ; preds = %.critedge
  %34 = getelementptr inbounds i8, ptr %3, i64 4
  %35 = load float, ptr %34, align 4, !tbaa !5
  %36 = call zeroext i1 @test_eq(float noundef %35, float noundef 0.000000e+00)
  br i1 %36, label %40, label %37

37:                                               ; preds = %33
  %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 401, ptr noundef nonnull @.str.28) #8
  br label %85

40:                                               ; preds = %33
  %41 = getelementptr inbounds i8, ptr %3, i64 8
  %42 = load float, ptr %41, align 8, !tbaa !5
  %43 = call zeroext i1 @test_eq(float noundef %42, float noundef -1.000000e+00)
  br i1 %43, label %47, label %44

44:                                               ; preds = %40
  %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 402, ptr noundef nonnull @.str.177) #8
  br label %85

47:                                               ; preds = %40
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %9, align 8, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %9, i64 8
  store float 0.000000e+00, ptr %48, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %9)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %49 = load float, ptr %3, align 16, !tbaa !5
  %50 = call zeroext i1 @test_eq(float noundef %49, float noundef 0.000000e+00)
  br i1 %50, label %54, 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 nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 410, ptr noundef nonnull @.str.27) #8
  br label %85

54:                                               ; preds = %47
  %55 = load float, ptr %34, align 4, !tbaa !5
  %56 = call zeroext i1 @test_eq(float noundef %55, float noundef 1.000000e+00)
  br i1 %56, label %60, label %57

57:                                               ; preds = %54
  %58 = load ptr, ptr @stderr, align 8, !tbaa !9
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %58, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 411, ptr noundef nonnull @.str.63) #8
  br label %85

60:                                               ; preds = %54
  %61 = load float, ptr %41, align 8, !tbaa !5
  %62 = call zeroext i1 @test_eq(float noundef %61, float noundef 0.000000e+00)
  br i1 %62, label %66, label %63

63:                                               ; preds = %60
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 412, ptr noundef nonnull @.str.154) #8
  br label %85

66:                                               ; preds = %60
  call void @glm_mat4_identity(ptr noundef nonnull %1)
  store <2 x float> <float 1.000000e+00, float 0.000000e+00>, ptr %10, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %10, i64 8
  store float 0.000000e+00, ptr %67, align 8, !tbaa !5
  call void @glm_rotate(ptr noundef nonnull %1, float noundef 0x3FF921FB60000000, ptr noundef nonnull %10)
  call void @glm_mat4_mulv(ptr noundef nonnull %1, ptr noundef nonnull %3, ptr noundef nonnull %3)
  %68 = load float, ptr %3, align 16, !tbaa !5
  %69 = call zeroext i1 @test_eq(float noundef %68, float noundef 0.000000e+00)
  br i1 %69, label %73, label %70

70:                                               ; preds = %66
  %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 420, ptr noundef nonnull @.str.27) #8
  br label %85

73:                                               ; preds = %66
  %74 = load float, ptr %34, align 4, !tbaa !5
  %75 = call zeroext i1 @test_eq(float noundef %74, float noundef 0.000000e+00)
  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 421, ptr noundef nonnull @.str.28) #8
  br label %85

79:                                               ; preds = %73
  %80 = load float, ptr %41, align 8, !tbaa !5
  %81 = call zeroext i1 @test_eq(float noundef %80, float noundef 1.000000e+00)
  br i1 %81, label %85, label %82

82:                                               ; preds = %79
  %83 = load ptr, ptr @stderr, align 8, !tbaa !9
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef nonnull @.str, ptr noundef nonnull @.str.895, i32 noundef 422, ptr noundef nonnull @.str.870) #8
  br label %85

85:                                               ; preds = %23, %79, %82, %76, %70, %63, %57, %51, %44, %37, %30
  %.sroa.03.1 = phi ptr [ null, %82 ], [ null, %76 ], [ null, %70 ], [ null, %63 ], [ null, %57 ], [ null, %51 ], [ null, %44 ], [ null, %37 ], [ null, %30 ], [ %24, %23 ], [ null, %79 ]
  %.sroa.12.1 = phi i32 [ 0, %82 ], [ 0, %76 ], [ 0, %70 ], [ 0, %63 ], [ 0, %57 ], [ 0, %51 ], [ 0, %44 ], [ 0, %37 ], [ 0, %30 ], [ 0, %23 ], [ 1, %79 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.03.1, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.12.1, 1
  ret { ptr, i32 } %.fca.1.insert
}

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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { "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 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 #7 = { nounwind }
attributes #8 = { 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