; 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.687 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.727 = external hidden unnamed_addr constant [64 x i8], align 1

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

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

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare void @test_rand_mat4(ptr noundef) #5

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat4_det() #6 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [6 x float], align 16
  %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 float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca i32, 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)
  %23 = getelementptr inbounds [4 x [4 x float]], ptr %2, 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 %2, 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 %2, 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 %2, 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 24, ptr %3) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %31 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  call void @test_rand_mat4(ptr noundef %31)
  %32 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %33 = getelementptr inbounds [4 x float], ptr %32, i64 0, i64 0
  %34 = load float, ptr %33, align 16, !tbaa !5
  store float %34, ptr %4, align 4, !tbaa !5
  %35 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %36 = getelementptr inbounds [4 x float], ptr %35, i64 0, i64 1
  %37 = load float, ptr %36, align 4, !tbaa !5
  store float %37, ptr %5, align 4, !tbaa !5
  %38 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %39 = getelementptr inbounds [4 x float], ptr %38, i64 0, i64 2
  %40 = load float, ptr %39, align 8, !tbaa !5
  store float %40, ptr %6, align 4, !tbaa !5
  %41 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %42 = getelementptr inbounds [4 x float], ptr %41, i64 0, i64 3
  %43 = load float, ptr %42, align 4, !tbaa !5
  store float %43, ptr %7, align 4, !tbaa !5
  %44 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 1
  %45 = getelementptr inbounds [4 x float], ptr %44, i64 0, i64 0
  %46 = load float, ptr %45, align 16, !tbaa !5
  store float %46, ptr %8, align 4, !tbaa !5
  %47 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 1
  %48 = getelementptr inbounds [4 x float], ptr %47, i64 0, i64 1
  %49 = load float, ptr %48, align 4, !tbaa !5
  store float %49, ptr %9, align 4, !tbaa !5
  %50 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 1
  %51 = getelementptr inbounds [4 x float], ptr %50, i64 0, i64 2
  %52 = load float, ptr %51, align 8, !tbaa !5
  store float %52, ptr %10, align 4, !tbaa !5
  %53 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 1
  %54 = getelementptr inbounds [4 x float], ptr %53, i64 0, i64 3
  %55 = load float, ptr %54, align 4, !tbaa !5
  store float %55, ptr %11, align 4, !tbaa !5
  %56 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 2
  %57 = getelementptr inbounds [4 x float], ptr %56, i64 0, i64 0
  %58 = load float, ptr %57, align 16, !tbaa !5
  store float %58, ptr %12, align 4, !tbaa !5
  %59 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 2
  %60 = getelementptr inbounds [4 x float], ptr %59, i64 0, i64 1
  %61 = load float, ptr %60, align 4, !tbaa !5
  store float %61, ptr %13, align 4, !tbaa !5
  %62 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 2
  %63 = getelementptr inbounds [4 x float], ptr %62, i64 0, i64 2
  %64 = load float, ptr %63, align 8, !tbaa !5
  store float %64, ptr %14, align 4, !tbaa !5
  %65 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 2
  %66 = getelementptr inbounds [4 x float], ptr %65, i64 0, i64 3
  %67 = load float, ptr %66, align 4, !tbaa !5
  store float %67, ptr %15, align 4, !tbaa !5
  %68 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 3
  %69 = getelementptr inbounds [4 x float], ptr %68, i64 0, i64 0
  %70 = load float, ptr %69, align 16, !tbaa !5
  store float %70, ptr %16, align 4, !tbaa !5
  %71 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 3
  %72 = getelementptr inbounds [4 x float], ptr %71, i64 0, i64 1
  %73 = load float, ptr %72, align 4, !tbaa !5
  store float %73, ptr %17, align 4, !tbaa !5
  %74 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 3
  %75 = getelementptr inbounds [4 x float], ptr %74, i64 0, i64 2
  %76 = load float, ptr %75, align 8, !tbaa !5
  store float %76, ptr %18, align 4, !tbaa !5
  %77 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 3
  %78 = getelementptr inbounds [4 x float], ptr %77, i64 0, i64 3
  %79 = load float, ptr %78, align 4, !tbaa !5
  store float %79, ptr %19, align 4, !tbaa !5
  %80 = load float, ptr %14, align 4, !tbaa !5
  %81 = load float, ptr %19, align 4, !tbaa !5
  %82 = load float, ptr %18, align 4, !tbaa !5
  %83 = load float, ptr %15, align 4, !tbaa !5
  %84 = fmul float %82, %83
  %85 = fneg float %84
  %86 = call float @llvm.fmuladd.f32(float %80, float %81, float %85)
  %87 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 0
  store float %86, ptr %87, align 16, !tbaa !5
  %88 = load float, ptr %13, align 4, !tbaa !5
  %89 = load float, ptr %19, align 4, !tbaa !5
  %90 = load float, ptr %17, align 4, !tbaa !5
  %91 = load float, ptr %15, align 4, !tbaa !5
  %92 = fmul float %90, %91
  %93 = fneg float %92
  %94 = call float @llvm.fmuladd.f32(float %88, float %89, float %93)
  %95 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 1
  store float %94, ptr %95, align 4, !tbaa !5
  %96 = load float, ptr %13, align 4, !tbaa !5
  %97 = load float, ptr %18, align 4, !tbaa !5
  %98 = load float, ptr %17, align 4, !tbaa !5
  %99 = load float, ptr %14, align 4, !tbaa !5
  %100 = fmul float %98, %99
  %101 = fneg float %100
  %102 = call float @llvm.fmuladd.f32(float %96, float %97, float %101)
  %103 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 2
  store float %102, ptr %103, align 8, !tbaa !5
  %104 = load float, ptr %12, align 4, !tbaa !5
  %105 = load float, ptr %19, align 4, !tbaa !5
  %106 = load float, ptr %16, align 4, !tbaa !5
  %107 = load float, ptr %15, align 4, !tbaa !5
  %108 = fmul float %106, %107
  %109 = fneg float %108
  %110 = call float @llvm.fmuladd.f32(float %104, float %105, float %109)
  %111 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 3
  store float %110, ptr %111, align 4, !tbaa !5
  %112 = load float, ptr %12, align 4, !tbaa !5
  %113 = load float, ptr %18, align 4, !tbaa !5
  %114 = load float, ptr %16, align 4, !tbaa !5
  %115 = load float, ptr %14, align 4, !tbaa !5
  %116 = fmul float %114, %115
  %117 = fneg float %116
  %118 = call float @llvm.fmuladd.f32(float %112, float %113, float %117)
  %119 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 4
  store float %118, ptr %119, align 16, !tbaa !5
  %120 = load float, ptr %12, align 4, !tbaa !5
  %121 = load float, ptr %17, align 4, !tbaa !5
  %122 = load float, ptr %16, align 4, !tbaa !5
  %123 = load float, ptr %13, align 4, !tbaa !5
  %124 = fmul float %122, %123
  %125 = fneg float %124
  %126 = call float @llvm.fmuladd.f32(float %120, float %121, float %125)
  %127 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 5
  store float %126, ptr %127, align 4, !tbaa !5
  %128 = load float, ptr %4, align 4, !tbaa !5
  %129 = load float, ptr %9, align 4, !tbaa !5
  %130 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 0
  %131 = load float, ptr %130, align 16, !tbaa !5
  %132 = load float, ptr %10, align 4, !tbaa !5
  %133 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 1
  %134 = load float, ptr %133, align 4, !tbaa !5
  %135 = fmul float %132, %134
  %136 = fneg float %135
  %137 = call float @llvm.fmuladd.f32(float %129, float %131, float %136)
  %138 = load float, ptr %11, align 4, !tbaa !5
  %139 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 2
  %140 = load float, ptr %139, align 8, !tbaa !5
  %141 = call float @llvm.fmuladd.f32(float %138, float %140, float %137)
  %142 = load float, ptr %5, align 4, !tbaa !5
  %143 = load float, ptr %8, align 4, !tbaa !5
  %144 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 0
  %145 = load float, ptr %144, align 16, !tbaa !5
  %146 = load float, ptr %10, align 4, !tbaa !5
  %147 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 3
  %148 = load float, ptr %147, align 4, !tbaa !5
  %149 = fmul float %146, %148
  %150 = fneg float %149
  %151 = call float @llvm.fmuladd.f32(float %143, float %145, float %150)
  %152 = load float, ptr %11, align 4, !tbaa !5
  %153 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 4
  %154 = load float, ptr %153, align 16, !tbaa !5
  %155 = call float @llvm.fmuladd.f32(float %152, float %154, float %151)
  %156 = fmul float %142, %155
  %157 = fneg float %156
  %158 = call float @llvm.fmuladd.f32(float %128, float %141, float %157)
  %159 = load float, ptr %6, align 4, !tbaa !5
  %160 = load float, ptr %8, align 4, !tbaa !5
  %161 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 1
  %162 = load float, ptr %161, align 4, !tbaa !5
  %163 = load float, ptr %9, align 4, !tbaa !5
  %164 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 3
  %165 = load float, ptr %164, align 4, !tbaa !5
  %166 = fmul float %163, %165
  %167 = fneg float %166
  %168 = call float @llvm.fmuladd.f32(float %160, float %162, float %167)
  %169 = load float, ptr %11, align 4, !tbaa !5
  %170 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 5
  %171 = load float, ptr %170, align 4, !tbaa !5
  %172 = call float @llvm.fmuladd.f32(float %169, float %171, float %168)
  %173 = call float @llvm.fmuladd.f32(float %159, float %172, float %158)
  %174 = load float, ptr %7, align 4, !tbaa !5
  %175 = load float, ptr %8, align 4, !tbaa !5
  %176 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 2
  %177 = load float, ptr %176, align 8, !tbaa !5
  %178 = load float, ptr %9, align 4, !tbaa !5
  %179 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 4
  %180 = load float, ptr %179, align 16, !tbaa !5
  %181 = fmul float %178, %180
  %182 = fneg float %181
  %183 = call float @llvm.fmuladd.f32(float %175, float %177, float %182)
  %184 = load float, ptr %10, align 4, !tbaa !5
  %185 = getelementptr inbounds [6 x float], ptr %3, i64 0, i64 5
  %186 = load float, ptr %185, align 4, !tbaa !5
  %187 = call float @llvm.fmuladd.f32(float %184, float %186, float %183)
  %188 = fneg float %174
  %189 = call float @llvm.fmuladd.f32(float %188, float %187, float %173)
  store float %189, ptr %20, align 4, !tbaa !5
  %190 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %191 = call float @glm_mat4_det(ptr noundef %190)
  store float %191, ptr %21, align 4, !tbaa !5
  br label %192

192:                                              ; preds = %0
  %193 = load float, ptr %20, align 4, !tbaa !5
  %194 = load float, ptr %21, align 4, !tbaa !5
  %195 = call zeroext i1 @test_eq(float noundef %193, float noundef %194)
  br i1 %195, label %201, label %196

196:                                              ; preds = %192
  %197 = load ptr, ptr @stderr, align 8, !tbaa !9
  %198 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str, ptr noundef @.str.727, i32 noundef 362, ptr noundef @.str.687) #7
  %199 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %199, align 8, !tbaa !11
  %200 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %200, align 8, !tbaa !14
  store i32 1, ptr %22, align 4
  br label %206

201:                                              ; preds = %192
  br label %202

202:                                              ; preds = %201
  br label %203

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

206:                                              ; preds = %203, %196
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #7
  %207 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %207
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!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.687 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.727 = external hidden unnamed_addr constant [64 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

declare void @test_rand_mat4(ptr noundef) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat4_det() local_unnamed_addr #6 {
  %1 = alloca [4 x [4 x float]], align 16
  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
  %2 = getelementptr inbounds i8, ptr %1, i64 16
  %3 = getelementptr inbounds i8, ptr %1, i64 20
  store float 1.000000e+00, ptr %3, align 4
  %4 = getelementptr inbounds i8, ptr %1, i64 32
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  store float 1.000000e+00, ptr %5, align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 48
  %7 = getelementptr inbounds i8, ptr %1, i64 60
  store float 1.000000e+00, ptr %7, align 4
  call void @test_rand_mat4(ptr noundef nonnull %1) #7
  %8 = load float, ptr %1, align 16, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %1, i64 4
  %10 = load float, ptr %9, align 4, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 8
  %12 = load float, ptr %11, align 8, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %1, i64 12
  %14 = load float, ptr %13, align 4, !tbaa !5
  %15 = load float, ptr %2, align 16, !tbaa !5
  %16 = load float, ptr %3, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %1, i64 24
  %18 = load float, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %1, i64 28
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = load float, ptr %4, align 16, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %1, i64 36
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = load float, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %1, i64 44
  %26 = load float, ptr %25, align 4, !tbaa !5
  %27 = load float, ptr %6, align 16, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %1, i64 52
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %1, i64 56
  %31 = load float, ptr %30, align 8, !tbaa !5
  %32 = load float, ptr %7, align 4, !tbaa !5
  %33 = fneg float %31
  %34 = fmul float %26, %33
  %35 = call float @llvm.fmuladd.f32(float %24, float %32, float %34)
  %36 = fneg float %29
  %37 = fmul float %26, %36
  %38 = call float @llvm.fmuladd.f32(float %23, float %32, float %37)
  %39 = fmul float %24, %36
  %40 = call float @llvm.fmuladd.f32(float %23, float %31, float %39)
  %41 = fneg float %27
  %42 = fmul float %26, %41
  %43 = call float @llvm.fmuladd.f32(float %21, float %32, float %42)
  %44 = fmul float %24, %41
  %45 = call float @llvm.fmuladd.f32(float %21, float %31, float %44)
  %46 = fmul float %23, %41
  %47 = call float @llvm.fmuladd.f32(float %21, float %29, float %46)
  %48 = fneg float %18
  %49 = fmul float %38, %48
  %50 = call float @llvm.fmuladd.f32(float %16, float %35, float %49)
  %51 = call float @llvm.fmuladd.f32(float %20, float %40, float %50)
  %52 = fmul float %43, %48
  %53 = call float @llvm.fmuladd.f32(float %15, float %35, float %52)
  %54 = call float @llvm.fmuladd.f32(float %20, float %45, float %53)
  %55 = fneg float %10
  %56 = fmul float %54, %55
  %57 = call float @llvm.fmuladd.f32(float %8, float %51, float %56)
  %58 = fneg float %16
  %59 = fmul float %43, %58
  %60 = call float @llvm.fmuladd.f32(float %15, float %38, float %59)
  %61 = call float @llvm.fmuladd.f32(float %20, float %47, float %60)
  %62 = call float @llvm.fmuladd.f32(float %12, float %61, float %57)
  %63 = fmul float %45, %58
  %64 = call float @llvm.fmuladd.f32(float %15, float %40, float %63)
  %65 = call float @llvm.fmuladd.f32(float %18, float %47, float %64)
  %66 = fneg float %14
  %67 = call float @llvm.fmuladd.f32(float %66, float %65, float %62)
  %68 = call float @glm_mat4_det(ptr noundef nonnull %1)
  %69 = call zeroext i1 @test_eq(float noundef %67, float noundef %68)
  br i1 %69, label %73, label %70

70:                                               ; preds = %0
  %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.727, i32 noundef 362, ptr noundef nonnull @.str.687) #8
  br label %73

73:                                               ; preds = %0, %70
  %.sroa.3.0 = phi i32 [ 0, %70 ], [ 1, %0 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #7
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.3.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden float @glm_mat4_det(ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass