; 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.713 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.716 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.769 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_mat4x2_make.src = external hidden unnamed_addr constant [24 x float], align 16
@.str.773 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.774 = 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_mat4x2_make() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [24 x float], align 16
  %3 = alloca [3 x [4 x [2 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_mat4x2_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 = %212, %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 %217

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 [4 x [2 x float]]], ptr %3, i64 0, i64 %20
  %22 = getelementptr inbounds [4 x [2 x float]], ptr %21, i64 0, i64 0
  call void @glm_mat4x2_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 [4 x [2 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 [4 x [2 x float]], ptr %30, i64 0, i64 %32
  %34 = getelementptr inbounds [2 x float], ptr %33, i64 0, i64 0
  %35 = load float, ptr %34, align 8, !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.769, i32 noundef 70, 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 %220

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 [4 x [2 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 [4 x [2 x float]], ptr %53, i64 0, i64 %55
  %57 = getelementptr inbounds [2 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.769, i32 noundef 71, 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 %220

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 [4 x [2 x float]]], ptr %3, i64 0, i64 %75
  %77 = load i32, ptr %7, align 4, !tbaa !9
  %78 = add i32 %77, 1
  %79 = zext i32 %78 to i64
  %80 = getelementptr inbounds [4 x [2 x float]], ptr %76, i64 0, i64 %79
  %81 = getelementptr inbounds [2 x float], ptr %80, i64 0, i64 0
  %82 = load float, ptr %81, align 8, !tbaa !11
  %83 = call zeroext i1 @test_eq(float noundef %73, float noundef %82)
  br i1 %83, label %89, label %84

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

89:                                               ; preds = %68
  br label %90

90:                                               ; preds = %89
  br label %91

91:                                               ; preds = %90
  br label %92

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

108:                                              ; preds = %92
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef @.str, ptr noundef @.str.769, i32 noundef 74, ptr noundef @.str.714) #5
  %111 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %111, align 8, !tbaa !13
  %112 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %112, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %220

113:                                              ; preds = %92
  br label %114

114:                                              ; preds = %113
  br label %115

115:                                              ; preds = %114
  br label %116

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

132:                                              ; preds = %116
  %133 = load ptr, ptr @stderr, align 8, !tbaa !5
  %134 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %133, ptr noundef @.str, ptr noundef @.str.769, i32 noundef 76, ptr noundef @.str.715) #5
  %135 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %135, align 8, !tbaa !13
  %136 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %136, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %220

137:                                              ; preds = %116
  br label %138

138:                                              ; preds = %137
  br label %139

139:                                              ; preds = %138
  br label %140

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

156:                                              ; preds = %140
  %157 = load ptr, ptr @stderr, align 8, !tbaa !5
  %158 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %157, ptr noundef @.str, ptr noundef @.str.769, i32 noundef 77, ptr noundef @.str.716) #5
  %159 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %159, align 8, !tbaa !13
  %160 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %160, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %220

161:                                              ; preds = %140
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  br label %164

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

180:                                              ; preds = %164
  %181 = load ptr, ptr @stderr, align 8, !tbaa !5
  %182 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str, ptr noundef @.str.769, i32 noundef 79, ptr noundef @.str.773) #5
  %183 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %183, align 8, !tbaa !13
  %184 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %184, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %220

185:                                              ; preds = %164
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  br label %188

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

204:                                              ; preds = %188
  %205 = load ptr, ptr @stderr, align 8, !tbaa !5
  %206 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str, ptr noundef @.str.769, i32 noundef 80, ptr noundef @.str.774) #5
  %207 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %207, align 8, !tbaa !13
  %208 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %208, align 8, !tbaa !15
  store i32 1, ptr %8, align 4
  br label %220

209:                                              ; preds = %188
  br label %210

210:                                              ; preds = %209
  br label %211

211:                                              ; preds = %210
  br label %212

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

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

220:                                              ; preds = %217, %204, %180, %156, %132, %108, %84, %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
  %221 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %221
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4x2_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.713 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.714 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.715 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.716 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.769 = external hidden unnamed_addr constant [66 x i8], align 1
@__const.test_glm_mat4x2_make.src = external hidden unnamed_addr constant [24 x float], align 16
@.str.773 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.774 = 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_mat4x2_make() local_unnamed_addr #4 {
  %1 = alloca [24 x float], align 16
  %2 = alloca [3 x [4 x [2 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_mat4x2_make.src, i64 96, i1 false)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %2) #5
  call void @glm_mat4x2_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.769, i32 noundef 70, 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.769, i32 noundef 71, 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.769, i32 noundef 73, ptr noundef nonnull @.str.713) #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.769, i32 noundef 74, ptr noundef nonnull @.str.714) #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.769, i32 noundef 76, ptr noundef nonnull @.str.715) #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.769, i32 noundef 77, ptr noundef nonnull @.str.716) #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.769, i32 noundef 79, ptr noundef nonnull @.str.773) #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.769, i32 noundef 80, ptr noundef nonnull @.str.774) #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_mat4x2_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_mat4x2_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_mat4x2_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