; 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.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_glm_vec4_cubic.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_vec4_cubic.v2 = external hidden unnamed_addr constant [4 x float], align 16
@.str.366 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.367 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.368 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.369 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.370 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.371 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [21 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: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec4_cubic() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  %4 = alloca [4 x float], align 16
  %5 = alloca [4 x float], align 16
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr %2) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_vec4_cubic.v1, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %3, ptr align 16 @__const.test_glm_vec4_cubic.v2, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #6
  br label %7

7:                                                ; preds = %0
  %8 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %9 = load float, ptr %8, align 16, !tbaa !5
  %10 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %11 = load float, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %13 = load float, ptr %12, align 8, !tbaa !5
  %14 = fmul float %11, %13
  %15 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %16 = load float, ptr %15, align 8, !tbaa !5
  %17 = fmul float %14, %16
  %18 = call zeroext i1 @test_eq(float noundef %9, float noundef %17)
  br i1 %18, label %24, label %19

19:                                               ; preds = %7
  %20 = load ptr, ptr @stderr, align 8, !tbaa !9
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1194, ptr noundef @.str.366) #6
  %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 %6, align 4
  br label %209

24:                                               ; preds = %7
  br label %25

25:                                               ; preds = %24
  br label %26

26:                                               ; preds = %25
  br label %27

27:                                               ; preds = %26
  %28 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 1
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %31 = load float, ptr %30, align 8, !tbaa !5
  %32 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 2
  %33 = load float, ptr %32, align 8, !tbaa !5
  %34 = fmul float %31, %33
  %35 = call zeroext i1 @test_eq(float noundef %29, float noundef %34)
  br i1 %35, label %41, label %36

36:                                               ; preds = %27
  %37 = load ptr, ptr @stderr, align 8, !tbaa !9
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1195, ptr noundef @.str.367) #6
  %39 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %39, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %40, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

41:                                               ; preds = %27
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  %45 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 3
  %46 = load float, ptr %45, align 4, !tbaa !5
  %47 = call zeroext i1 @test_eq(float noundef %46, float noundef 1.000000e+00)
  br i1 %47, label %53, label %48

48:                                               ; preds = %44
  %49 = load ptr, ptr @stderr, align 8, !tbaa !9
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1196, ptr noundef @.str.368) #6
  %51 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %51, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %52, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

53:                                               ; preds = %44
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %56

56:                                               ; preds = %55
  %57 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %58 = load float, ptr %57, align 16, !tbaa !5
  %59 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %60 = load float, ptr %59, align 8, !tbaa !5
  %61 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %62 = load float, ptr %61, align 8, !tbaa !5
  %63 = fmul float %60, %62
  %64 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %65 = load float, ptr %64, align 8, !tbaa !5
  %66 = fmul float %63, %65
  %67 = call zeroext i1 @test_eq(float noundef %58, float noundef %66)
  br i1 %67, label %73, label %68

68:                                               ; preds = %56
  %69 = load ptr, ptr @stderr, align 8, !tbaa !9
  %70 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %69, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1198, ptr noundef @.str.369) #6
  %71 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %71, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %72, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

73:                                               ; preds = %56
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  %77 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 1
  %78 = load float, ptr %77, align 4, !tbaa !5
  %79 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %80 = load float, ptr %79, align 8, !tbaa !5
  %81 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 2
  %82 = load float, ptr %81, align 8, !tbaa !5
  %83 = fmul float %80, %82
  %84 = call zeroext i1 @test_eq(float noundef %78, float noundef %83)
  br i1 %84, label %90, label %85

85:                                               ; preds = %76
  %86 = load ptr, ptr @stderr, align 8, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1199, ptr noundef @.str.370) #6
  %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 %6, align 4
  br label %209

90:                                               ; preds = %76
  br label %91

91:                                               ; preds = %90
  br label %92

92:                                               ; preds = %91
  br label %93

93:                                               ; preds = %92
  %94 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 3
  %95 = load float, ptr %94, align 4, !tbaa !5
  %96 = call zeroext i1 @test_eq(float noundef %95, float noundef 1.000000e+00)
  br i1 %96, label %102, label %97

97:                                               ; preds = %93
  %98 = load ptr, ptr @stderr, align 8, !tbaa !9
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1200, ptr noundef @.str.358) #6
  %100 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %100, align 8, !tbaa !11
  %101 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %101, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

102:                                              ; preds = %93
  br label %103

103:                                              ; preds = %102
  br label %104

104:                                              ; preds = %103
  %105 = call float @test_rand()
  %106 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  call void @glm_vec4_cubic(float noundef %105, ptr noundef %106)
  br label %107

107:                                              ; preds = %104
  %108 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %109 = load float, ptr %108, align 16, !tbaa !5
  %110 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %111 = load float, ptr %110, align 8, !tbaa !5
  %112 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %113 = load float, ptr %112, align 8, !tbaa !5
  %114 = fmul float %111, %113
  %115 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %116 = load float, ptr %115, align 8, !tbaa !5
  %117 = fmul float %114, %116
  %118 = call zeroext i1 @test_eq(float noundef %109, float noundef %117)
  br i1 %118, label %124, label %119

119:                                              ; preds = %107
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1203, ptr noundef @.str.371) #6
  %122 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %122, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %123, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

124:                                              ; preds = %107
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  %128 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %129 = load float, ptr %128, align 4, !tbaa !5
  %130 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %131 = load float, ptr %130, align 8, !tbaa !5
  %132 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %133 = load float, ptr %132, align 8, !tbaa !5
  %134 = fmul float %131, %133
  %135 = call zeroext i1 @test_eq(float noundef %129, float noundef %134)
  br i1 %135, label %141, label %136

136:                                              ; preds = %127
  %137 = load ptr, ptr @stderr, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1204, ptr noundef @.str.372) #6
  %139 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %139, align 8, !tbaa !11
  %140 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %140, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

141:                                              ; preds = %127
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  br label %144

144:                                              ; preds = %143
  %145 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %146 = load float, ptr %145, align 4, !tbaa !5
  %147 = call zeroext i1 @test_eq(float noundef %146, float noundef 1.000000e+00)
  br i1 %147, label %153, label %148

148:                                              ; preds = %144
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1205, ptr noundef @.str.373) #6
  %151 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %151, align 8, !tbaa !11
  %152 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %152, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

153:                                              ; preds = %144
  br label %154

154:                                              ; preds = %153
  br label %155

155:                                              ; preds = %154
  %156 = call float @test_rand()
  %157 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  call void @glm_vec4_cubic(float noundef %156, ptr noundef %157)
  br label %158

158:                                              ; preds = %155
  %159 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 0
  %160 = load float, ptr %159, align 16, !tbaa !5
  %161 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %162 = load float, ptr %161, align 8, !tbaa !5
  %163 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %164 = load float, ptr %163, align 8, !tbaa !5
  %165 = fmul float %162, %164
  %166 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %167 = load float, ptr %166, align 8, !tbaa !5
  %168 = fmul float %165, %167
  %169 = call zeroext i1 @test_eq(float noundef %160, float noundef %168)
  br i1 %169, label %175, label %170

170:                                              ; preds = %158
  %171 = load ptr, ptr @stderr, align 8, !tbaa !9
  %172 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %171, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1208, ptr noundef @.str.374) #6
  %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 0, ptr %174, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

175:                                              ; preds = %158
  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 %5, i64 0, i64 1
  %180 = load float, ptr %179, align 4, !tbaa !5
  %181 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %182 = load float, ptr %181, align 8, !tbaa !5
  %183 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 2
  %184 = load float, ptr %183, align 8, !tbaa !5
  %185 = fmul float %182, %184
  %186 = call zeroext i1 @test_eq(float noundef %180, float noundef %185)
  br i1 %186, label %192, label %187

187:                                              ; preds = %178
  %188 = load ptr, ptr @stderr, align 8, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %188, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1209, ptr noundef @.str.375) #6
  %190 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %190, align 8, !tbaa !11
  %191 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %191, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

192:                                              ; preds = %178
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  br label %195

195:                                              ; preds = %194
  %196 = getelementptr inbounds [4 x float], ptr %5, i64 0, i64 3
  %197 = load float, ptr %196, align 4, !tbaa !5
  %198 = call zeroext i1 @test_eq(float noundef %197, float noundef 1.000000e+00)
  br i1 %198, label %204, label %199

199:                                              ; preds = %195
  %200 = load ptr, ptr @stderr, align 8, !tbaa !9
  %201 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %200, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1210, ptr noundef @.str.376) #6
  %202 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %202, align 8, !tbaa !11
  %203 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %203, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

204:                                              ; preds = %195
  br label %205

205:                                              ; preds = %204
  br label %206

206:                                              ; preds = %205
  %207 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %207, align 8, !tbaa !11
  %208 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %208, align 8, !tbaa !14
  store i32 1, ptr %6, align 4
  br label %209

209:                                              ; preds = %206, %199, %187, %170, %148, %136, %119, %97, %85, %68, %48, %36, %19
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #6
  %210 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %210
}

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

declare float @test_rand() #5

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"test_status_t", !10, i64 0, !13, i64 8}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 8}


; 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.296 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.358 = external hidden unnamed_addr constant [21 x i8], align 1
@__const.test_glm_vec4_cubic.v1 = external hidden unnamed_addr constant [4 x float], align 16
@__const.test_glm_vec4_cubic.v2 = external hidden unnamed_addr constant [4 x float], align 16
@.str.366 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.367 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.368 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.369 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.370 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.371 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.372 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.373 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.374 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.375 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.376 = external hidden unnamed_addr constant [21 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: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec4_cubic() local_unnamed_addr #3 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  %.sroa.05.0.copyload = load float, ptr @__const.test_glm_vec4_cubic.v1, align 16
  %.sroa.46.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v1, i64 4), align 4
  %.sroa.57.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v1, i64 8), align 8
  %.sroa.1012.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v1, i64 12), align 4
  %.sroa.0.0.copyload = load float, ptr @__const.test_glm_vec4_cubic.v2, align 16
  %.sroa.4.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v2, i64 4), align 4
  %.sroa.5.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v2, i64 8), align 8
  %.sroa.10.0.copyload = load float, ptr getelementptr inbounds (i8, ptr @__const.test_glm_vec4_cubic.v2, i64 12), align 4
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  %3 = fmul float %.sroa.57.0.copyload, %.sroa.57.0.copyload
  %4 = fmul float %.sroa.57.0.copyload, %3
  %5 = tail call zeroext i1 @test_eq(float noundef %.sroa.05.0.copyload, float noundef %4)
  br i1 %5, label %9, label %6

6:                                                ; preds = %0
  %7 = load ptr, ptr @stderr, align 8, !tbaa !5
  %8 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1194, ptr noundef nonnull @.str.366) #6
  br label %90

9:                                                ; preds = %0
  %10 = tail call zeroext i1 @test_eq(float noundef %.sroa.46.0.copyload, float noundef %3)
  br i1 %10, label %14, label %11

11:                                               ; preds = %9
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1195, ptr noundef nonnull @.str.367) #6
  br label %90

14:                                               ; preds = %9
  %15 = tail call zeroext i1 @test_eq(float noundef %.sroa.1012.0.copyload, float noundef 1.000000e+00)
  br i1 %15, label %19, label %16

16:                                               ; preds = %14
  %17 = load ptr, ptr @stderr, align 8, !tbaa !5
  %18 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1196, ptr noundef nonnull @.str.368) #6
  br label %90

19:                                               ; preds = %14
  %20 = fmul float %.sroa.5.0.copyload, %.sroa.5.0.copyload
  %21 = fmul float %.sroa.5.0.copyload, %20
  %22 = tail call zeroext i1 @test_eq(float noundef %.sroa.0.0.copyload, float noundef %21)
  br i1 %22, label %26, label %23

23:                                               ; preds = %19
  %24 = load ptr, ptr @stderr, align 8, !tbaa !5
  %25 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %24, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1198, ptr noundef nonnull @.str.369) #6
  br label %90

26:                                               ; preds = %19
  %27 = tail call zeroext i1 @test_eq(float noundef %.sroa.4.0.copyload, float noundef %20)
  br i1 %27, label %31, label %28

28:                                               ; preds = %26
  %29 = load ptr, ptr @stderr, align 8, !tbaa !5
  %30 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %29, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1199, ptr noundef nonnull @.str.370) #6
  br label %90

31:                                               ; preds = %26
  %32 = tail call zeroext i1 @test_eq(float noundef %.sroa.10.0.copyload, float noundef 1.000000e+00)
  br i1 %32, label %36, label %33

33:                                               ; preds = %31
  %34 = load ptr, ptr @stderr, align 8, !tbaa !5
  %35 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1200, ptr noundef nonnull @.str.358) #6
  br label %90

36:                                               ; preds = %31
  %37 = tail call float @test_rand() #5
  call void @glm_vec4_cubic(float noundef %37, ptr noundef nonnull %1)
  %38 = load float, ptr %1, align 16, !tbaa !9
  %39 = getelementptr inbounds i8, ptr %1, i64 8
  %40 = load float, ptr %39, align 8, !tbaa !9
  %41 = fmul float %40, %40
  %42 = fmul float %40, %41
  %43 = call zeroext i1 @test_eq(float noundef %38, float noundef %42)
  br i1 %43, label %47, label %44

44:                                               ; preds = %36
  %45 = load ptr, ptr @stderr, align 8, !tbaa !5
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %45, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1203, ptr noundef nonnull @.str.371) #6
  br label %90

47:                                               ; preds = %36
  %48 = getelementptr inbounds i8, ptr %1, i64 4
  %49 = load float, ptr %48, align 4, !tbaa !9
  %50 = load float, ptr %39, align 8, !tbaa !9
  %51 = fmul float %50, %50
  %52 = call zeroext i1 @test_eq(float noundef %49, float noundef %51)
  br i1 %52, label %56, label %53

53:                                               ; preds = %47
  %54 = load ptr, ptr @stderr, align 8, !tbaa !5
  %55 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %54, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1204, ptr noundef nonnull @.str.372) #6
  br label %90

56:                                               ; preds = %47
  %57 = getelementptr inbounds i8, ptr %1, i64 12
  %58 = load float, ptr %57, align 4, !tbaa !9
  %59 = call zeroext i1 @test_eq(float noundef %58, float noundef 1.000000e+00)
  br i1 %59, label %63, label %60

60:                                               ; preds = %56
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1205, ptr noundef nonnull @.str.373) #6
  br label %90

63:                                               ; preds = %56
  %64 = call float @test_rand() #5
  call void @glm_vec4_cubic(float noundef %64, ptr noundef nonnull %2)
  %65 = load float, ptr %2, align 16, !tbaa !9
  %66 = getelementptr inbounds i8, ptr %2, i64 8
  %67 = load float, ptr %66, align 8, !tbaa !9
  %68 = fmul float %67, %67
  %69 = fmul float %67, %68
  %70 = call zeroext i1 @test_eq(float noundef %65, float noundef %69)
  br i1 %70, label %74, label %71

71:                                               ; preds = %63
  %72 = load ptr, ptr @stderr, align 8, !tbaa !5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %72, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1208, ptr noundef nonnull @.str.374) #6
  br label %90

74:                                               ; preds = %63
  %75 = getelementptr inbounds i8, ptr %2, i64 4
  %76 = load float, ptr %75, align 4, !tbaa !9
  %77 = load float, ptr %66, align 8, !tbaa !9
  %78 = fmul float %77, %77
  %79 = call zeroext i1 @test_eq(float noundef %76, float noundef %78)
  br i1 %79, label %83, label %80

80:                                               ; preds = %74
  %81 = load ptr, ptr @stderr, align 8, !tbaa !5
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %81, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1209, ptr noundef nonnull @.str.375) #6
  br label %90

83:                                               ; preds = %74
  %84 = getelementptr inbounds i8, ptr %2, i64 12
  %85 = load float, ptr %84, align 4, !tbaa !9
  %86 = call zeroext i1 @test_eq(float noundef %85, float noundef 1.000000e+00)
  br i1 %86, label %90, label %87

87:                                               ; preds = %83
  %88 = load ptr, ptr @stderr, align 8, !tbaa !5
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1210, ptr noundef nonnull @.str.376) #6
  br label %90

90:                                               ; preds = %83, %87, %80, %71, %60, %53, %44, %33, %28, %23, %16, %11, %6
  %.sroa.14.0 = phi i32 [ 0, %87 ], [ 0, %80 ], [ 0, %71 ], [ 0, %60 ], [ 0, %53 ], [ 0, %44 ], [ 0, %33 ], [ 0, %28 ], [ 0, %23 ], [ 0, %16 ], [ 0, %11 ], [ 0, %6 ], [ 1, %83 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, 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_vec4_cubic(float noundef, ptr noundef) local_unnamed_addr #1

declare float @test_rand() local_unnamed_addr #4

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass