; 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.651 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.652 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.653 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_mat2x4_make.src = external hidden unnamed_addr constant [24 x float], align 16
@.str.664 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [35 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_mat2x4_make() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [24 x float], align 16
  %3 = alloca [3 x [2 x [4 x float]]], align 16
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 96, ptr %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %2, ptr align 16 @__const.test_glm_mat2x4_make.src, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  %9 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 0
  store ptr %9, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %6, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %10

10:                                               ; preds = %210, %0
  %11 = load i32, ptr %5, align 4, !tbaa !9
  %12 = zext i32 %11 to i64
  %13 = icmp ult i64 %12, 24
  br i1 %13, label %14, label %215

14:                                               ; preds = %10
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load i32, ptr %5, align 4, !tbaa !9
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds float, ptr %15, i64 %17
  %19 = load i32, ptr %6, align 4, !tbaa !9
  %20 = zext i32 %19 to i64
  %21 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %20
  %22 = getelementptr inbounds [2 x [4 x float]], ptr %21, i64 0, i64 0
  call void @glm_mat2x4_make(ptr noundef %18, ptr noundef %22)
  br label %23

23:                                               ; preds = %14
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = zext i32 %24 to i64
  %26 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %25
  %27 = load float, ptr %26, align 4, !tbaa !11
  %28 = load i32, ptr %6, align 4, !tbaa !9
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %29
  %31 = load i32, ptr %7, align 4, !tbaa !9
  %32 = zext i32 %31 to i64
  %33 = getelementptr inbounds [2 x [4 x float]], ptr %30, i64 0, i64 %32
  %34 = getelementptr inbounds [4 x float], ptr %33, i64 0, i64 0
  %35 = load float, ptr %34, align 16, !tbaa !11
  %36 = call zeroext i1 @test_eq(float noundef %27, float noundef %35)
  br i1 %36, label %42, label %37

37:                                               ; preds = %23
  %38 = load ptr, ptr @stderr, align 8, !tbaa !5
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 71, ptr noundef @.str.651) #5
  %40 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %40, align 8, !tbaa !13
  %41 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %41, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

42:                                               ; preds = %23
  br label %43

43:                                               ; preds = %42
  br label %44

44:                                               ; preds = %43
  br label %45

45:                                               ; preds = %44
  %46 = load i32, ptr %5, align 4, !tbaa !9
  %47 = add i32 %46, 1
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %48
  %50 = load float, ptr %49, align 4, !tbaa !11
  %51 = load i32, ptr %6, align 4, !tbaa !9
  %52 = zext i32 %51 to i64
  %53 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %52
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = getelementptr inbounds [2 x [4 x float]], ptr %53, i64 0, i64 %55
  %57 = getelementptr inbounds [4 x float], ptr %56, i64 0, i64 1
  %58 = load float, ptr %57, align 4, !tbaa !11
  %59 = call zeroext i1 @test_eq(float noundef %50, float noundef %58)
  br i1 %59, label %65, label %60

60:                                               ; preds = %45
  %61 = load ptr, ptr @stderr, align 8, !tbaa !5
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 72, ptr noundef @.str.652) #5
  %63 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %63, align 8, !tbaa !13
  %64 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %64, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

65:                                               ; preds = %45
  br label %66

66:                                               ; preds = %65
  br label %67

67:                                               ; preds = %66
  br label %68

68:                                               ; preds = %67
  %69 = load i32, ptr %5, align 4, !tbaa !9
  %70 = add i32 %69, 2
  %71 = zext i32 %70 to i64
  %72 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !11
  %74 = load i32, ptr %6, align 4, !tbaa !9
  %75 = zext i32 %74 to i64
  %76 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %75
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds [2 x [4 x float]], ptr %76, i64 0, i64 %78
  %80 = getelementptr inbounds [4 x float], ptr %79, i64 0, i64 2
  %81 = load float, ptr %80, align 8, !tbaa !11
  %82 = call zeroext i1 @test_eq(float noundef %73, float noundef %81)
  br i1 %82, label %88, label %83

83:                                               ; preds = %68
  %84 = load ptr, ptr @stderr, align 8, !tbaa !5
  %85 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %84, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 73, ptr noundef @.str.653) #5
  %86 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %86, align 8, !tbaa !13
  %87 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %87, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

88:                                               ; preds = %68
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = add i32 %92, 3
  %94 = zext i32 %93 to i64
  %95 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %94
  %96 = load float, ptr %95, align 4, !tbaa !11
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %98
  %100 = load i32, ptr %7, align 4, !tbaa !9
  %101 = zext i32 %100 to i64
  %102 = getelementptr inbounds [2 x [4 x float]], ptr %99, i64 0, i64 %101
  %103 = getelementptr inbounds [4 x float], ptr %102, i64 0, i64 3
  %104 = load float, ptr %103, align 4, !tbaa !11
  %105 = call zeroext i1 @test_eq(float noundef %96, float noundef %104)
  br i1 %105, label %111, label %106

106:                                              ; preds = %91
  %107 = load ptr, ptr @stderr, align 8, !tbaa !5
  %108 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %107, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 74, ptr noundef @.str.664) #5
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %109, align 8, !tbaa !13
  %110 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %110, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

111:                                              ; preds = %91
  br label %112

112:                                              ; preds = %111
  br label %113

113:                                              ; preds = %112
  br label %114

114:                                              ; preds = %113
  %115 = load i32, ptr %5, align 4, !tbaa !9
  %116 = add i32 %115, 4
  %117 = zext i32 %116 to i64
  %118 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !11
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = zext i32 %120 to i64
  %122 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %121
  %123 = load i32, ptr %7, align 4, !tbaa !9
  %124 = add i32 %123, 1
  %125 = zext i32 %124 to i64
  %126 = getelementptr inbounds [2 x [4 x float]], ptr %122, i64 0, i64 %125
  %127 = getelementptr inbounds [4 x float], ptr %126, i64 0, i64 0
  %128 = load float, ptr %127, align 16, !tbaa !11
  %129 = call zeroext i1 @test_eq(float noundef %119, float noundef %128)
  br i1 %129, label %135, label %130

130:                                              ; preds = %114
  %131 = load ptr, ptr @stderr, align 8, !tbaa !5
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 76, ptr noundef @.str.665) #5
  %133 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %133, align 8, !tbaa !13
  %134 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %134, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

135:                                              ; preds = %114
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137
  %139 = load i32, ptr %5, align 4, !tbaa !9
  %140 = add i32 %139, 5
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %141
  %143 = load float, ptr %142, align 4, !tbaa !11
  %144 = load i32, ptr %6, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %145
  %147 = load i32, ptr %7, align 4, !tbaa !9
  %148 = add i32 %147, 1
  %149 = zext i32 %148 to i64
  %150 = getelementptr inbounds [2 x [4 x float]], ptr %146, i64 0, i64 %149
  %151 = getelementptr inbounds [4 x float], ptr %150, i64 0, i64 1
  %152 = load float, ptr %151, align 4, !tbaa !11
  %153 = call zeroext i1 @test_eq(float noundef %143, float noundef %152)
  br i1 %153, label %159, label %154

154:                                              ; preds = %138
  %155 = load ptr, ptr @stderr, align 8, !tbaa !5
  %156 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %155, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 77, ptr noundef @.str.666) #5
  %157 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %157, align 8, !tbaa !13
  %158 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %158, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

159:                                              ; preds = %138
  br label %160

160:                                              ; preds = %159
  br label %161

161:                                              ; preds = %160
  br label %162

162:                                              ; preds = %161
  %163 = load i32, ptr %5, align 4, !tbaa !9
  %164 = add i32 %163, 6
  %165 = zext i32 %164 to i64
  %166 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %165
  %167 = load float, ptr %166, align 4, !tbaa !11
  %168 = load i32, ptr %6, align 4, !tbaa !9
  %169 = zext i32 %168 to i64
  %170 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %169
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = add i32 %171, 1
  %173 = zext i32 %172 to i64
  %174 = getelementptr inbounds [2 x [4 x float]], ptr %170, i64 0, i64 %173
  %175 = getelementptr inbounds [4 x float], ptr %174, i64 0, i64 2
  %176 = load float, ptr %175, align 8, !tbaa !11
  %177 = call zeroext i1 @test_eq(float noundef %167, float noundef %176)
  br i1 %177, label %183, label %178

178:                                              ; preds = %162
  %179 = load ptr, ptr @stderr, align 8, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 78, ptr noundef @.str.667) #5
  %181 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %181, align 8, !tbaa !13
  %182 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %182, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

183:                                              ; preds = %162
  br label %184

184:                                              ; preds = %183
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  %187 = load i32, ptr %5, align 4, !tbaa !9
  %188 = add i32 %187, 7
  %189 = zext i32 %188 to i64
  %190 = getelementptr inbounds [24 x float], ptr %2, i64 0, i64 %189
  %191 = load float, ptr %190, align 4, !tbaa !11
  %192 = load i32, ptr %6, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds [3 x [2 x [4 x float]]], ptr %3, i64 0, i64 %193
  %195 = load i32, ptr %7, align 4, !tbaa !9
  %196 = add i32 %195, 1
  %197 = zext i32 %196 to i64
  %198 = getelementptr inbounds [2 x [4 x float]], ptr %194, i64 0, i64 %197
  %199 = getelementptr inbounds [4 x float], ptr %198, i64 0, i64 3
  %200 = load float, ptr %199, align 4, !tbaa !11
  %201 = call zeroext i1 @test_eq(float noundef %191, float noundef %200)
  br i1 %201, label %207, label %202

202:                                              ; preds = %186
  %203 = load ptr, ptr @stderr, align 8, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str, ptr noundef @.str.660, i32 noundef 79, ptr noundef @.str.668) #5
  %205 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %205, align 8, !tbaa !13
  %206 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %206, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

207:                                              ; preds = %186
  br label %208

208:                                              ; preds = %207
  br label %209

209:                                              ; preds = %208
  br label %210

210:                                              ; preds = %209
  %211 = load i32, ptr %5, align 4, !tbaa !9
  %212 = add i32 %211, 8
  store i32 %212, ptr %5, align 4, !tbaa !9
  %213 = load i32, ptr %6, align 4, !tbaa !9
  %214 = add i32 %213, 1
  store i32 %214, ptr %6, align 4, !tbaa !9
  br label %10, !llvm.loop !16

215:                                              ; preds = %10
  %216 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %216, align 8, !tbaa !13
  %217 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %217, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %218

218:                                              ; preds = %215, %202, %178, %154, %130, %106, %83, %60, %37
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr %2) #5
  %219 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %219
}

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

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

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


; 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.651 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.652 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.653 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.660 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_mat2x4_make.src = external hidden unnamed_addr constant [24 x float], align 16
@.str.664 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.665 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.666 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.667 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.668 = external hidden unnamed_addr constant [35 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat2x4_make() local_unnamed_addr #4 {
  %1 = alloca [24 x float], align 16
  %2 = alloca [3 x [2 x [4 x float]]], align 16
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %1) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(96) %1, ptr noundef nonnull align 16 dereferenceable(96) @__const.test_glm_mat2x4_make.src, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %2) #5
  call void @glm_mat2x4_make(ptr noundef nonnull %1, ptr noundef nonnull %2)
  %3 = load float, ptr %1, align 16, !tbaa !5
  %4 = load float, ptr %2, align 16, !tbaa !5
  %5 = call zeroext i1 @test_eq(float noundef %3, float noundef %4)
  br i1 %5, label %9, label %6

6:                                                ; preds = %120, %72, %0
  %7 = load ptr, ptr @stderr, align 8, !tbaa !9
  %8 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %7, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 71, ptr noundef nonnull @.str.651) #6
  br label %.loopexit

9:                                                ; preds = %0
  %10 = getelementptr inbounds i8, ptr %1, i64 4
  %11 = load float, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %2, i64 4
  %13 = load float, ptr %12, align 4, !tbaa !5
  %14 = call zeroext i1 @test_eq(float noundef %11, float noundef %13)
  br i1 %14, label %18, label %15

15:                                               ; preds = %126, %78, %9
  %16 = load ptr, ptr @stderr, align 8, !tbaa !9
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 72, ptr noundef nonnull @.str.652) #6
  br label %.loopexit

18:                                               ; preds = %9
  %19 = getelementptr inbounds i8, ptr %1, i64 8
  %20 = load float, ptr %19, align 8, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %2, i64 8
  %22 = load float, ptr %21, align 8, !tbaa !5
  %23 = call zeroext i1 @test_eq(float noundef %20, float noundef %22)
  br i1 %23, label %27, label %24

24:                                               ; preds = %132, %84, %18
  %25 = load ptr, ptr @stderr, align 8, !tbaa !9
  %26 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %25, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 73, ptr noundef nonnull @.str.653) #6
  br label %.loopexit

27:                                               ; preds = %18
  %28 = getelementptr inbounds i8, ptr %1, i64 12
  %29 = load float, ptr %28, align 4, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %2, i64 12
  %31 = load float, ptr %30, align 4, !tbaa !5
  %32 = call zeroext i1 @test_eq(float noundef %29, float noundef %31)
  br i1 %32, label %36, label %33

33:                                               ; preds = %138, %90, %27
  %34 = load ptr, ptr @stderr, align 8, !tbaa !9
  %35 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %34, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 74, ptr noundef nonnull @.str.664) #6
  br label %.loopexit

36:                                               ; preds = %27
  %37 = getelementptr inbounds i8, ptr %1, i64 16
  %38 = load float, ptr %37, align 16, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %2, i64 16
  %40 = load float, ptr %39, align 16, !tbaa !5
  %41 = call zeroext i1 @test_eq(float noundef %38, float noundef %40)
  br i1 %41, label %45, label %42

42:                                               ; preds = %144, %96, %36
  %43 = load ptr, ptr @stderr, align 8, !tbaa !9
  %44 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %43, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 76, ptr noundef nonnull @.str.665) #6
  br label %.loopexit

45:                                               ; preds = %36
  %46 = getelementptr inbounds i8, ptr %1, i64 20
  %47 = load float, ptr %46, align 4, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %2, i64 20
  %49 = load float, ptr %48, align 4, !tbaa !5
  %50 = call zeroext i1 @test_eq(float noundef %47, float noundef %49)
  br i1 %50, label %54, label %51

51:                                               ; preds = %150, %102, %45
  %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.660, i32 noundef 77, ptr noundef nonnull @.str.666) #6
  br label %.loopexit

54:                                               ; preds = %45
  %55 = getelementptr inbounds i8, ptr %1, i64 24
  %56 = load float, ptr %55, align 8, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %2, i64 24
  %58 = load float, ptr %57, align 8, !tbaa !5
  %59 = call zeroext i1 @test_eq(float noundef %56, float noundef %58)
  br i1 %59, label %63, label %60

60:                                               ; preds = %156, %108, %54
  %61 = load ptr, ptr @stderr, align 8, !tbaa !9
  %62 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %61, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 78, ptr noundef nonnull @.str.667) #6
  br label %.loopexit

63:                                               ; preds = %54
  %64 = getelementptr inbounds i8, ptr %1, i64 28
  %65 = load float, ptr %64, align 4, !tbaa !5
  %66 = getelementptr inbounds i8, ptr %2, i64 28
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = call zeroext i1 @test_eq(float noundef %65, float noundef %67)
  br i1 %68, label %72, label %69

69:                                               ; preds = %162, %114, %63
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef nonnull @.str, ptr noundef nonnull @.str.660, i32 noundef 79, ptr noundef nonnull @.str.668) #6
  br label %.loopexit

72:                                               ; preds = %63
  %73 = getelementptr inbounds i8, ptr %1, i64 32
  %74 = getelementptr inbounds i8, ptr %2, i64 32
  call void @glm_mat2x4_make(ptr noundef nonnull %73, ptr noundef nonnull %74)
  %75 = load float, ptr %73, align 16, !tbaa !5
  %76 = load float, ptr %74, align 16, !tbaa !5
  %77 = call zeroext i1 @test_eq(float noundef %75, float noundef %76)
  br i1 %77, label %78, label %6

78:                                               ; preds = %72
  %79 = getelementptr inbounds i8, ptr %1, i64 36
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %2, i64 36
  %82 = load float, ptr %81, align 4, !tbaa !5
  %83 = call zeroext i1 @test_eq(float noundef %80, float noundef %82)
  br i1 %83, label %84, label %15

84:                                               ; preds = %78
  %85 = getelementptr inbounds i8, ptr %1, i64 40
  %86 = load float, ptr %85, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %2, i64 40
  %88 = load float, ptr %87, align 8, !tbaa !5
  %89 = call zeroext i1 @test_eq(float noundef %86, float noundef %88)
  br i1 %89, label %90, label %24

90:                                               ; preds = %84
  %91 = getelementptr inbounds i8, ptr %1, i64 44
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %2, i64 44
  %94 = load float, ptr %93, align 4, !tbaa !5
  %95 = call zeroext i1 @test_eq(float noundef %92, float noundef %94)
  br i1 %95, label %96, label %33

96:                                               ; preds = %90
  %97 = getelementptr inbounds i8, ptr %1, i64 48
  %98 = load float, ptr %97, align 16, !tbaa !5
  %99 = getelementptr inbounds i8, ptr %2, i64 48
  %100 = load float, ptr %99, align 16, !tbaa !5
  %101 = call zeroext i1 @test_eq(float noundef %98, float noundef %100)
  br i1 %101, label %102, label %42

102:                                              ; preds = %96
  %103 = getelementptr inbounds i8, ptr %1, i64 52
  %104 = load float, ptr %103, align 4, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %2, i64 52
  %106 = load float, ptr %105, align 4, !tbaa !5
  %107 = call zeroext i1 @test_eq(float noundef %104, float noundef %106)
  br i1 %107, label %108, label %51

108:                                              ; preds = %102
  %109 = getelementptr inbounds i8, ptr %1, i64 56
  %110 = load float, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds i8, ptr %2, i64 56
  %112 = load float, ptr %111, align 8, !tbaa !5
  %113 = call zeroext i1 @test_eq(float noundef %110, float noundef %112)
  br i1 %113, label %114, label %60

114:                                              ; preds = %108
  %115 = getelementptr inbounds i8, ptr %1, i64 60
  %116 = load float, ptr %115, align 4, !tbaa !5
  %117 = getelementptr inbounds i8, ptr %2, i64 60
  %118 = load float, ptr %117, align 4, !tbaa !5
  %119 = call zeroext i1 @test_eq(float noundef %116, float noundef %118)
  br i1 %119, label %120, label %69

120:                                              ; preds = %114
  %121 = getelementptr inbounds i8, ptr %1, i64 64
  %122 = getelementptr inbounds i8, ptr %2, i64 64
  call void @glm_mat2x4_make(ptr noundef nonnull %121, ptr noundef nonnull %122)
  %123 = load float, ptr %121, align 16, !tbaa !5
  %124 = load float, ptr %122, align 16, !tbaa !5
  %125 = call zeroext i1 @test_eq(float noundef %123, float noundef %124)
  br i1 %125, label %126, label %6

126:                                              ; preds = %120
  %127 = getelementptr inbounds i8, ptr %1, i64 68
  %128 = load float, ptr %127, align 4, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %2, i64 68
  %130 = load float, ptr %129, align 4, !tbaa !5
  %131 = call zeroext i1 @test_eq(float noundef %128, float noundef %130)
  br i1 %131, label %132, label %15

132:                                              ; preds = %126
  %133 = getelementptr inbounds i8, ptr %1, i64 72
  %134 = load float, ptr %133, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %2, i64 72
  %136 = load float, ptr %135, align 8, !tbaa !5
  %137 = call zeroext i1 @test_eq(float noundef %134, float noundef %136)
  br i1 %137, label %138, label %24

138:                                              ; preds = %132
  %139 = getelementptr inbounds i8, ptr %1, i64 76
  %140 = load float, ptr %139, align 4, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %2, i64 76
  %142 = load float, ptr %141, align 4, !tbaa !5
  %143 = call zeroext i1 @test_eq(float noundef %140, float noundef %142)
  br i1 %143, label %144, label %33

144:                                              ; preds = %138
  %145 = getelementptr inbounds i8, ptr %1, i64 80
  %146 = load float, ptr %145, align 16, !tbaa !5
  %147 = getelementptr inbounds i8, ptr %2, i64 80
  %148 = load float, ptr %147, align 16, !tbaa !5
  %149 = call zeroext i1 @test_eq(float noundef %146, float noundef %148)
  br i1 %149, label %150, label %42

150:                                              ; preds = %144
  %151 = getelementptr inbounds i8, ptr %1, i64 84
  %152 = load float, ptr %151, align 4, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %2, i64 84
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = call zeroext i1 @test_eq(float noundef %152, float noundef %154)
  br i1 %155, label %156, label %51

156:                                              ; preds = %150
  %157 = getelementptr inbounds i8, ptr %1, i64 88
  %158 = load float, ptr %157, align 8, !tbaa !5
  %159 = getelementptr inbounds i8, ptr %2, i64 88
  %160 = load float, ptr %159, align 8, !tbaa !5
  %161 = call zeroext i1 @test_eq(float noundef %158, float noundef %160)
  br i1 %161, label %162, label %60

162:                                              ; preds = %156
  %163 = getelementptr inbounds i8, ptr %1, i64 92
  %164 = load float, ptr %163, align 4, !tbaa !5
  %165 = getelementptr inbounds i8, ptr %2, i64 92
  %166 = load float, ptr %165, align 4, !tbaa !5
  %167 = call zeroext i1 @test_eq(float noundef %164, float noundef %166)
  br i1 %167, label %.loopexit, label %69

.loopexit:                                        ; preds = %162, %69, %60, %51, %42, %33, %24, %15, %6
  %.sroa.10.0 = phi i32 [ 0, %69 ], [ 0, %60 ], [ 0, %51 ], [ 0, %42 ], [ 0, %33 ], [ 0, %24 ], [ 0, %15 ], [ 0, %6 ], [ 1, %162 ]
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %1) #5
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.10.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { cold nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass