; LLVM IR from recp/cglm :: test/src (test_bezier)

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

@constinit = external hidden constant [4 x [4 x float]], align 16
@stderr = external global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@constinit.6 = external hidden constant [4 x [4 x float]], align 16
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_bezier() #0 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca float, align 4
  %3 = alloca float, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca [4 x [4 x float]], align 16
  %11 = alloca [4 x float], align 16
  %12 = alloca i32, align 4
  %13 = alloca %struct.test_status_t, align 8
  %14 = alloca %struct.test_status_t, align 8
  %15 = alloca %struct.test_status_t, align 8
  %16 = alloca %struct.test_status_t, align 8
  %17 = alloca [4 x [4 x float]], align 16
  %18 = alloca [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %19 = call float @test_rand()
  store float %19, ptr %2, align 4, !tbaa !5
  %20 = call float @test_rand()
  store float %20, ptr %3, align 4, !tbaa !5
  %21 = call float @test_rand()
  store float %21, ptr %4, align 4, !tbaa !5
  %22 = call float @test_rand()
  store float %22, ptr %5, align 4, !tbaa !5
  %23 = call float @test_rand()
  store float %23, ptr %6, align 4, !tbaa !5
  %24 = load float, ptr %2, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %10, ptr align 16 @constinit, i64 64, i1 false), !tbaa.struct !9
  %25 = getelementptr inbounds [4 x [4 x float]], ptr %10, i64 0, i64 0
  %26 = load float, ptr %3, align 4, !tbaa !5
  store float %26, ptr %11, align 4, !tbaa !5
  %27 = getelementptr inbounds float, ptr %11, i64 1
  %28 = load float, ptr %5, align 4, !tbaa !5
  store float %28, ptr %27, align 4, !tbaa !5
  %29 = getelementptr inbounds float, ptr %11, i64 2
  %30 = load float, ptr %6, align 4, !tbaa !5
  store float %30, ptr %29, align 4, !tbaa !5
  %31 = getelementptr inbounds float, ptr %11, i64 3
  %32 = load float, ptr %4, align 4, !tbaa !5
  store float %32, ptr %31, align 4, !tbaa !5
  %33 = getelementptr inbounds [4 x float], ptr %11, i64 0, i64 0
  %34 = call float @glm_smc(float noundef %24, ptr noundef %25, ptr noundef %33)
  store float %34, ptr %7, align 4, !tbaa !5
  %35 = load float, ptr %2, align 4, !tbaa !5
  %36 = load float, ptr %3, align 4, !tbaa !5
  %37 = load float, ptr %5, align 4, !tbaa !5
  %38 = load float, ptr %6, align 4, !tbaa !5
  %39 = load float, ptr %4, align 4, !tbaa !5
  %40 = call float @glm_bezier(float noundef %35, float noundef %36, float noundef %37, float noundef %38, float noundef %39)
  store float %40, ptr %8, align 4, !tbaa !5
  %41 = load float, ptr %2, align 4, !tbaa !5
  %42 = load float, ptr %3, align 4, !tbaa !5
  %43 = load float, ptr %5, align 4, !tbaa !5
  %44 = load float, ptr %6, align 4, !tbaa !5
  %45 = load float, ptr %4, align 4, !tbaa !5
  %46 = call float @test_bezier_plain(float noundef %41, float noundef %42, float noundef %43, float noundef %44, float noundef %45)
  store float %46, ptr %9, align 4, !tbaa !5
  br label %47

47:                                               ; preds = %0
  %48 = load float, ptr %8, align 4, !tbaa !5
  %49 = load float, ptr %9, align 4, !tbaa !5
  %50 = call zeroext i1 @test_eq(float noundef %48, float noundef %49)
  br i1 %50, label %56, label %51

51:                                               ; preds = %47
  %52 = load ptr, ptr @stderr, align 8, !tbaa !11
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 52, ptr noundef @.str.2) #6
  %54 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %54, align 8, !tbaa !13
  %55 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %55, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %168

56:                                               ; preds = %47
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %59

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

70:                                               ; preds = %59
  %71 = load ptr, ptr @stderr, align 8, !tbaa !11
  %72 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 53, ptr noundef @.str.4) #6
  %73 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %74 = getelementptr inbounds %struct.test_status_t, ptr %13, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !13
  store ptr %75, ptr %73, align 8, !tbaa !13
  %76 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %76, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %78

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

78:                                               ; preds = %77, %70
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #6
  %79 = load i32, ptr %12, align 4
  switch i32 %79, label %168 [
    i32 0, label %80
  ]

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %84 = load float, ptr %8, align 4, !tbaa !5
  %85 = load float, ptr %7, align 4, !tbaa !5
  %86 = call { ptr, i32 } @test_assert_eqf(float noundef %84, float noundef %85)
  %87 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 0
  %88 = extractvalue { ptr, i32 } %86, 0
  store ptr %88, ptr %87, align 8
  %89 = getelementptr inbounds { ptr, i32 }, ptr %16, i32 0, i32 1
  %90 = extractvalue { ptr, i32 } %86, 1
  store i32 %90, ptr %89, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %15, ptr align 8 %16, i64 16, i1 false), !tbaa.struct !17
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  %91 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 1
  %92 = load i32, ptr %91, align 8, !tbaa !16
  %93 = icmp ne i32 %92, 1
  br i1 %93, label %94, label %101

94:                                               ; preds = %83
  %95 = load ptr, ptr @stderr, align 8, !tbaa !11
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %95, ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 54, ptr noundef @.str.5) #6
  %97 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %98 = getelementptr inbounds %struct.test_status_t, ptr %15, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !13
  store ptr %99, ptr %97, align 8, !tbaa !13
  %100 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %100, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %102

101:                                              ; preds = %83
  store i32 0, ptr %12, align 4
  br label %102

102:                                              ; preds = %101, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  %103 = load i32, ptr %12, align 4
  switch i32 %103, label %168 [
    i32 0, label %104
  ]

104:                                              ; preds = %102
  br label %105

105:                                              ; preds = %104
  br label %106

106:                                              ; preds = %105
  %107 = load float, ptr %2, align 4, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %17, ptr align 16 @constinit.6, i64 64, i1 false), !tbaa.struct !9
  %108 = getelementptr inbounds [4 x [4 x float]], ptr %17, i64 0, i64 0
  %109 = load float, ptr %3, align 4, !tbaa !5
  store float %109, ptr %18, align 4, !tbaa !5
  %110 = getelementptr inbounds float, ptr %18, i64 1
  %111 = load float, ptr %4, align 4, !tbaa !5
  store float %111, ptr %110, align 4, !tbaa !5
  %112 = getelementptr inbounds float, ptr %18, i64 2
  %113 = load float, ptr %5, align 4, !tbaa !5
  store float %113, ptr %112, align 4, !tbaa !5
  %114 = getelementptr inbounds float, ptr %18, i64 3
  %115 = load float, ptr %6, align 4, !tbaa !5
  store float %115, ptr %114, align 4, !tbaa !5
  %116 = getelementptr inbounds [4 x float], ptr %18, i64 0, i64 0
  %117 = call float @glm_smc(float noundef %107, ptr noundef %108, ptr noundef %116)
  store float %117, ptr %7, align 4, !tbaa !5
  %118 = load float, ptr %2, align 4, !tbaa !5
  %119 = load float, ptr %3, align 4, !tbaa !5
  %120 = load float, ptr %5, align 4, !tbaa !5
  %121 = load float, ptr %6, align 4, !tbaa !5
  %122 = load float, ptr %4, align 4, !tbaa !5
  %123 = call float @glm_hermite(float noundef %118, float noundef %119, float noundef %120, float noundef %121, float noundef %122)
  store float %123, ptr %8, align 4, !tbaa !5
  %124 = load float, ptr %2, align 4, !tbaa !5
  %125 = load float, ptr %3, align 4, !tbaa !5
  %126 = load float, ptr %5, align 4, !tbaa !5
  %127 = load float, ptr %6, align 4, !tbaa !5
  %128 = load float, ptr %4, align 4, !tbaa !5
  %129 = call float @test_hermite_plain(float noundef %124, float noundef %125, float noundef %126, float noundef %127, float noundef %128)
  store float %129, ptr %9, align 4, !tbaa !5
  br label %130

130:                                              ; preds = %106
  %131 = load float, ptr %8, align 4, !tbaa !5
  %132 = load float, ptr %9, align 4, !tbaa !5
  %133 = call zeroext i1 @test_eq(float noundef %131, float noundef %132)
  br i1 %133, label %139, label %134

134:                                              ; preds = %130
  %135 = load ptr, ptr @stderr, align 8, !tbaa !11
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 61, ptr noundef @.str.2) #6
  %137 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %137, align 8, !tbaa !13
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %138, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %168

139:                                              ; preds = %130
  br label %140

140:                                              ; preds = %139
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  %143 = load float, ptr %7, align 4, !tbaa !5
  %144 = load float, ptr %9, align 4, !tbaa !5
  %145 = call zeroext i1 @test_eq(float noundef %143, float noundef %144)
  br i1 %145, label %151, label %146

146:                                              ; preds = %142
  %147 = load ptr, ptr @stderr, align 8, !tbaa !11
  %148 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %147, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 62, ptr noundef @.str.7) #6
  %149 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %149, align 8, !tbaa !13
  %150 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %150, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %168

151:                                              ; preds = %142
  br label %152

152:                                              ; preds = %151
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  %155 = load float, ptr %8, align 4, !tbaa !5
  %156 = load float, ptr %7, align 4, !tbaa !5
  %157 = call zeroext i1 @test_eq(float noundef %155, float noundef %156)
  br i1 %157, label %163, label %158

158:                                              ; preds = %154
  %159 = load ptr, ptr @stderr, align 8, !tbaa !11
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 63, ptr noundef @.str.8) #6
  %161 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %161, align 8, !tbaa !13
  %162 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %162, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %168

163:                                              ; preds = %154
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  %166 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %166, align 8, !tbaa !13
  %167 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %167, align 8, !tbaa !16
  store i32 1, ptr %12, align 4
  br label %168

168:                                              ; preds = %165, %158, %146, %134, %102, %78, %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #6
  %169 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %169
}

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

declare float @test_rand() #2

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

; 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) #4

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_bezier(float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @test_bezier_plain(float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @test_eq(float noundef, float noundef) #3

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

declare { ptr, i32 } @test_assert_eqf(float noundef, float noundef) #2

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_hermite(float noundef, float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @test_hermite_plain(float noundef, float noundef, float noundef, float noundef, float noundef) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline nounwind uwtable "min-legal-vector-width"="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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #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 = !{i64 0, i64 64, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"test_status_t", !12, i64 0, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{i64 0, i64 8, !11, i64 8, i64 4, !18}
!18 = !{!15, !15, 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"

@constinit = external hidden local_unnamed_addr constant [4 x [4 x float]], align 16
@stderr = external local_unnamed_addr global ptr, align 8
@.str = external hidden unnamed_addr constant [94 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [66 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [25 x i8], align 1
@constinit.6 = external hidden local_unnamed_addr constant [4 x [4 x float]], align 16
@.str.7 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [17 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_bezier() local_unnamed_addr #0 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x float], align 16
  %5 = tail call float @test_rand() #5
  %6 = tail call float @test_rand() #5
  %7 = tail call float @test_rand() #5
  %8 = tail call float @test_rand() #5
  %9 = tail call float @test_rand() #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, ptr noundef nonnull align 16 dereferenceable(64) @constinit, i64 64, i1 false), !tbaa.struct !5
  store float %6, ptr %2, align 16, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %2, i64 4
  store float %8, ptr %10, align 4, !tbaa !9
  %11 = getelementptr inbounds i8, ptr %2, i64 8
  store float %9, ptr %11, align 8, !tbaa !9
  %12 = getelementptr inbounds i8, ptr %2, i64 12
  store float %7, ptr %12, align 4, !tbaa !9
  %13 = call float @glm_smc(float noundef %5, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %14 = call float @glm_bezier(float noundef %5, float noundef %6, float noundef %8, float noundef %9, float noundef %7)
  %15 = call float @test_bezier_plain(float noundef %5, float noundef %6, float noundef %8, float noundef %9, float noundef %7)
  %16 = call zeroext i1 @test_eq(float noundef %14, float noundef %15)
  br i1 %16, label %20, label %17

17:                                               ; preds = %0
  %18 = load ptr, ptr @stderr, align 8, !tbaa !11
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 52, ptr noundef nonnull @.str.2) #6
  br label %54

20:                                               ; preds = %0
  %21 = call { ptr, i32 } @test_assert_eqf(float noundef %13, float noundef %15) #5
  %22 = extractvalue { ptr, i32 } %21, 1
  %.not = icmp eq i32 %22, 1
  br i1 %.not, label %.critedge, label %23

23:                                               ; preds = %20
  %24 = extractvalue { ptr, i32 } %21, 0
  %25 = load ptr, ptr @stderr, align 8, !tbaa !11
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 53, ptr noundef nonnull @.str.4) #6
  br label %54

.critedge:                                        ; preds = %20
  %27 = call { ptr, i32 } @test_assert_eqf(float noundef %14, float noundef %13) #5
  %28 = extractvalue { ptr, i32 } %27, 1
  %.not53 = icmp eq i32 %28, 1
  br i1 %.not53, label %33, label %29

29:                                               ; preds = %.critedge
  %30 = extractvalue { ptr, i32 } %27, 0
  %31 = load ptr, ptr @stderr, align 8, !tbaa !11
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 54, ptr noundef nonnull @.str.5) #6
  br label %54

33:                                               ; preds = %.critedge
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %3, ptr noundef nonnull align 16 dereferenceable(64) @constinit.6, i64 64, i1 false), !tbaa.struct !5
  store float %6, ptr %4, align 16, !tbaa !9
  %34 = getelementptr inbounds i8, ptr %4, i64 4
  store float %7, ptr %34, align 4, !tbaa !9
  %35 = getelementptr inbounds i8, ptr %4, i64 8
  store float %8, ptr %35, align 8, !tbaa !9
  %36 = getelementptr inbounds i8, ptr %4, i64 12
  store float %9, ptr %36, align 4, !tbaa !9
  %37 = call float @glm_smc(float noundef %5, ptr noundef nonnull %3, ptr noundef nonnull %4)
  %38 = call float @glm_hermite(float noundef %5, float noundef %6, float noundef %8, float noundef %9, float noundef %7)
  %39 = call float @test_hermite_plain(float noundef %5, float noundef %6, float noundef %8, float noundef %9, float noundef %7)
  %40 = call zeroext i1 @test_eq(float noundef %38, float noundef %39)
  br i1 %40, label %44, label %41

41:                                               ; preds = %33
  %42 = load ptr, ptr @stderr, align 8, !tbaa !11
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 61, ptr noundef nonnull @.str.2) #6
  br label %54

44:                                               ; preds = %33
  %45 = call zeroext i1 @test_eq(float noundef %37, float noundef %39)
  br i1 %45, label %49, label %46

46:                                               ; preds = %44
  %47 = load ptr, ptr @stderr, align 8, !tbaa !11
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 62, ptr noundef nonnull @.str.7) #6
  br label %54

49:                                               ; preds = %44
  %50 = call zeroext i1 @test_eq(float noundef %38, float noundef %37)
  br i1 %50, label %54, label %51

51:                                               ; preds = %49
  %52 = load ptr, ptr @stderr, align 8, !tbaa !11
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 63, ptr noundef nonnull @.str.8) #6
  br label %54

54:                                               ; preds = %29, %23, %49, %51, %46, %41, %17
  %.sroa.052.2 = phi ptr [ null, %51 ], [ null, %46 ], [ null, %41 ], [ %30, %29 ], [ %24, %23 ], [ null, %17 ], [ null, %49 ]
  %.sroa.8.2 = phi i32 [ 0, %51 ], [ 0, %46 ], [ 0, %41 ], [ 0, %29 ], [ 0, %23 ], [ 0, %17 ], [ 1, %49 ]
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.052.2, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.8.2, 1
  ret { ptr, i32 } %.fca.1.insert
}

declare float @test_rand() local_unnamed_addr #1

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

; 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) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_bezier(float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @test_bezier_plain(float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; 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 #4

declare { ptr, i32 } @test_assert_eqf(float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_hermite(float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @test_hermite_plain(float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { "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 = { 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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { 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 #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 = !{i64 0, i64 64, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}


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