; 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.1 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec2_refract.N = external hidden unnamed_addr constant [2 x float], align 4
@.str.113 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [16 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: 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: nounwind
declare float @sqrtf(float noundef) #2

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec2_refract() #3 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [2 x float], align 4
  %3 = alloca [2 x float], align 4
  %4 = alloca [2 x float], align 4
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #5
  %8 = call float @sqrtf(float noundef 5.000000e-01) #5
  store float %8, ptr %2, align 4, !tbaa !5
  %9 = getelementptr inbounds float, ptr %2, i64 1
  %10 = call float @sqrtf(float noundef 5.000000e-01) #5
  %11 = fneg float %10
  store float %11, ptr %9, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_vec2_refract.N, i64 8, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store float 0x3FF547AE20000000, ptr %5, align 4, !tbaa !5
  %12 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %13 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
  %14 = load float, ptr %5, align 4, !tbaa !5
  %15 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %16 = call zeroext i1 @glm_vec2_refract(ptr noundef %12, ptr noundef %13, float noundef %14, ptr noundef %15)
  %17 = uitofp i1 %16 to float
  store float %17, ptr %6, align 4, !tbaa !5
  %18 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %19 = load float, ptr %18, align 4, !tbaa !5
  %20 = fcmp oeq float %19, 0.000000e+00
  br i1 %20, label %21, label %25

21:                                               ; preds = %0
  %22 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %23 = load float, ptr %22, align 4, !tbaa !5
  %24 = fcmp oeq float %23, 0.000000e+00
  br i1 %24, label %49, label %25

25:                                               ; preds = %21, %0
  br label %26

26:                                               ; preds = %25
  %27 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = fcmp olt float %28, 0xBFD3333340000000
  br i1 %29, label %35, label %30

30:                                               ; preds = %26
  %31 = load ptr, ptr @stderr, align 8, !tbaa !9
  %32 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 919, ptr noundef @.str.113) #5
  %33 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %33, align 8, !tbaa !11
  %34 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %34, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

35:                                               ; preds = %26
  br label %36

36:                                               ; preds = %35
  br label %37

37:                                               ; preds = %36
  br label %38

38:                                               ; preds = %37
  %39 = load float, ptr %6, align 4, !tbaa !5
  %40 = fcmp oeq float %39, 1.000000e+00
  br i1 %40, label %46, label %41

41:                                               ; preds = %38
  %42 = load ptr, ptr @stderr, align 8, !tbaa !9
  %43 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %42, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 920, ptr noundef @.str.114) #5
  %44 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %44, align 8, !tbaa !11
  %45 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %45, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

46:                                               ; preds = %38
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  br label %77

49:                                               ; preds = %21
  br label %50

50:                                               ; preds = %49
  %51 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = fcmp oeq float %52, 0.000000e+00
  br i1 %53, label %54, label %58

54:                                               ; preds = %50
  %55 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = fcmp oeq float %56, 0.000000e+00
  br i1 %57, label %63, label %58

58:                                               ; preds = %54, %50
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 922, ptr noundef @.str.115) #5
  %61 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %61, align 8, !tbaa !11
  %62 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %62, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

63:                                               ; preds = %54
  br label %64

64:                                               ; preds = %63
  br label %65

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65
  %67 = load float, ptr %6, align 4, !tbaa !5
  %68 = fcmp oeq float %67, 0.000000e+00
  br i1 %68, label %74, label %69

69:                                               ; preds = %66
  %70 = load ptr, ptr @stderr, align 8, !tbaa !9
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 923, ptr noundef @.str.116) #5
  %72 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %72, align 8, !tbaa !11
  %73 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %73, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

74:                                               ; preds = %66
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76, %48
  store float 0x3FE5555560000000, ptr %5, align 4, !tbaa !5
  %78 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %79 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
  %80 = load float, ptr %5, align 4, !tbaa !5
  %81 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %82 = call zeroext i1 @glm_vec2_refract(ptr noundef %78, ptr noundef %79, float noundef %80, ptr noundef %81)
  %83 = uitofp i1 %82 to float
  store float %83, ptr %6, align 4, !tbaa !5
  br label %84

84:                                               ; preds = %77
  %85 = load float, ptr %6, align 4, !tbaa !5
  %86 = fcmp oeq float %85, 1.000000e+00
  br i1 %86, label %92, label %87

87:                                               ; preds = %84
  %88 = load ptr, ptr @stderr, align 8, !tbaa !9
  %89 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %88, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 929, ptr noundef @.str.114) #5
  %90 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %90, align 8, !tbaa !11
  %91 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %91, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

92:                                               ; preds = %84
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  %96 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %97 = load float, ptr %96, align 4, !tbaa !5
  %98 = call float @sqrtf(float noundef 5.000000e-01) #5
  %99 = fneg float %98
  %100 = fcmp olt float %97, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %95
  %102 = load ptr, ptr @stderr, align 8, !tbaa !9
  %103 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 930, ptr noundef @.str.117) #5
  %104 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %104, align 8, !tbaa !11
  %105 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %105, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

106:                                              ; preds = %95
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  store float 0x3FF20B8C80000000, ptr %5, align 4, !tbaa !5
  %109 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %110 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
  %111 = load float, ptr %5, align 4, !tbaa !5
  %112 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %113 = call zeroext i1 @glm_vec2_refract(ptr noundef %109, ptr noundef %110, float noundef %111, ptr noundef %112)
  %114 = uitofp i1 %113 to float
  store float %114, ptr %6, align 4, !tbaa !5
  br label %115

115:                                              ; preds = %108
  %116 = load float, ptr %6, align 4, !tbaa !5
  %117 = fcmp oeq float %116, 1.000000e+00
  br i1 %117, label %123, label %118

118:                                              ; preds = %115
  %119 = load ptr, ptr @stderr, align 8, !tbaa !9
  %120 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %119, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 935, ptr noundef @.str.114) #5
  %121 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %121, align 8, !tbaa !11
  %122 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %122, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

123:                                              ; preds = %115
  br label %124

124:                                              ; preds = %123
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  %127 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %128 = load float, ptr %127, align 4, !tbaa !5
  %129 = fcmp olt float %128, 0xBFE3333340000000
  br i1 %129, label %135, label %130

130:                                              ; preds = %126
  %131 = load ptr, ptr @stderr, align 8, !tbaa !9
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %131, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 936, ptr noundef @.str.118) #5
  %133 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %133, align 8, !tbaa !11
  %134 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %134, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

135:                                              ; preds = %126
  br label %136

136:                                              ; preds = %135
  br label %137

137:                                              ; preds = %136
  store float 0x40035C2900000000, ptr %5, align 4, !tbaa !5
  %138 = getelementptr inbounds [2 x float], ptr %2, i64 0, i64 0
  %139 = getelementptr inbounds [2 x float], ptr %3, i64 0, i64 0
  %140 = load float, ptr %5, align 4, !tbaa !5
  %141 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %142 = call zeroext i1 @glm_vec2_refract(ptr noundef %138, ptr noundef %139, float noundef %140, ptr noundef %141)
  %143 = uitofp i1 %142 to float
  store float %143, ptr %6, align 4, !tbaa !5
  %144 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %145 = load float, ptr %144, align 4, !tbaa !5
  %146 = fcmp oeq float %145, 0.000000e+00
  br i1 %146, label %147, label %151

147:                                              ; preds = %137
  %148 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %149 = load float, ptr %148, align 4, !tbaa !5
  %150 = fcmp oeq float %149, 0.000000e+00
  br i1 %150, label %177, label %151

151:                                              ; preds = %147, %137
  br label %152

152:                                              ; preds = %151
  %153 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %154 = load float, ptr %153, align 4, !tbaa !5
  %155 = call float @sqrtf(float noundef 5.000000e-01) #5
  %156 = fneg float %155
  %157 = fcmp olt float %154, %156
  br i1 %157, label %163, label %158

158:                                              ; preds = %152
  %159 = load ptr, ptr @stderr, align 8, !tbaa !9
  %160 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %159, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 943, ptr noundef @.str.117) #5
  %161 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %161, align 8, !tbaa !11
  %162 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %162, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

163:                                              ; preds = %152
  br label %164

164:                                              ; preds = %163
  br label %165

165:                                              ; preds = %164
  br label %166

166:                                              ; preds = %165
  %167 = load float, ptr %6, align 4, !tbaa !5
  %168 = fcmp oeq float %167, 1.000000e+00
  br i1 %168, label %174, label %169

169:                                              ; preds = %166
  %170 = load ptr, ptr @stderr, align 8, !tbaa !9
  %171 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %170, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 944, ptr noundef @.str.114) #5
  %172 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %172, align 8, !tbaa !11
  %173 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %173, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

174:                                              ; preds = %166
  br label %175

175:                                              ; preds = %174
  br label %176

176:                                              ; preds = %175
  br label %205

177:                                              ; preds = %147
  br label %178

178:                                              ; preds = %177
  %179 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 0
  %180 = load float, ptr %179, align 4, !tbaa !5
  %181 = fcmp oeq float %180, 0.000000e+00
  br i1 %181, label %182, label %186

182:                                              ; preds = %178
  %183 = getelementptr inbounds [2 x float], ptr %4, i64 0, i64 1
  %184 = load float, ptr %183, align 4, !tbaa !5
  %185 = fcmp oeq float %184, 0.000000e+00
  br i1 %185, label %191, label %186

186:                                              ; preds = %182, %178
  %187 = load ptr, ptr @stderr, align 8, !tbaa !9
  %188 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %187, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 946, ptr noundef @.str.115) #5
  %189 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %189, align 8, !tbaa !11
  %190 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %190, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

191:                                              ; preds = %182
  br label %192

192:                                              ; preds = %191
  br label %193

193:                                              ; preds = %192
  br label %194

194:                                              ; preds = %193
  %195 = load float, ptr %6, align 4, !tbaa !5
  %196 = fcmp oeq float %195, 0.000000e+00
  br i1 %196, label %202, label %197

197:                                              ; preds = %194
  %198 = load ptr, ptr @stderr, align 8, !tbaa !9
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %198, ptr noundef @.str, ptr noundef @.str.1, i32 noundef 947, ptr noundef @.str.116) #5
  %200 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %200, align 8, !tbaa !11
  %201 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %201, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %208

202:                                              ; preds = %194
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  br label %205

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

208:                                              ; preds = %205, %197, %186, %169, %158, %130, %118, %101, %87, %69, %58, %41, %30
  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 8, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #5
  %209 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %209
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @glm_vec2_refract(ptr noundef, ptr noundef, float noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #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 = !{!"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.1 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec2_refract.N = external hidden unnamed_addr constant [2 x float], align 4
@.str.113 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [16 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; 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_vec2_refract() local_unnamed_addr #2 {
  %1 = alloca [2 x float], align 8
  %2 = alloca [2 x float], align 8
  %3 = alloca [2 x float], align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store <2 x float> <float 0x3FE6A09E60000000, float 0xBFE6A09E60000000>, ptr %1, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %4 = load i64, ptr @__const.test_glm_vec2_refract.N, align 4
  store i64 %4, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %5 = call zeroext i1 @glm_vec2_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FF547AE20000000, ptr noundef nonnull %3)
  %6 = load float, ptr %3, align 4, !tbaa !5
  %7 = fcmp oeq float %6, 0.000000e+00
  %8 = getelementptr inbounds i8, ptr %3, i64 4
  %9 = load float, ptr %8, align 4
  %10 = fcmp oeq float %9, 0.000000e+00
  %or.cond = select i1 %7, i1 %10, i1 false
  br i1 %or.cond, label %20, label %11

11:                                               ; preds = %0
  %12 = fcmp olt float %9, 0xBFD3333340000000
  br i1 %12, label %16, label %13

13:                                               ; preds = %11
  %14 = load ptr, ptr @stderr, align 8, !tbaa !9
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 919, ptr noundef nonnull @.str.113) #5
  br label %65

16:                                               ; preds = %11
  br i1 %5, label %24, label %17

17:                                               ; preds = %16
  %18 = load ptr, ptr @stderr, align 8, !tbaa !9
  %19 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 920, ptr noundef nonnull @.str.114) #5
  br label %65

20:                                               ; preds = %0
  br i1 %5, label %21, label %24

21:                                               ; preds = %20
  %22 = load ptr, ptr @stderr, align 8, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %22, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 923, ptr noundef nonnull @.str.116) #5
  br label %65

24:                                               ; preds = %20, %16
  %25 = call zeroext i1 @glm_vec2_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FE5555560000000, ptr noundef nonnull %3)
  br i1 %25, label %29, label %26

26:                                               ; preds = %24
  %27 = load ptr, ptr @stderr, align 8, !tbaa !9
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 929, ptr noundef nonnull @.str.114) #5
  br label %65

29:                                               ; preds = %24
  %30 = load float, ptr %8, align 4, !tbaa !5
  %31 = fcmp olt float %30, 0xBFE6A09E60000000
  br i1 %31, label %35, label %32

32:                                               ; preds = %29
  %33 = load ptr, ptr @stderr, align 8, !tbaa !9
  %34 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %33, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 930, ptr noundef nonnull @.str.117) #5
  br label %65

35:                                               ; preds = %29
  %36 = call zeroext i1 @glm_vec2_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FF20B8C80000000, ptr noundef nonnull %3)
  br i1 %36, label %40, label %37

37:                                               ; preds = %35
  %38 = load ptr, ptr @stderr, align 8, !tbaa !9
  %39 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %38, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 935, ptr noundef nonnull @.str.114) #5
  br label %65

40:                                               ; preds = %35
  %41 = load float, ptr %8, align 4, !tbaa !5
  %42 = fcmp olt float %41, 0xBFE3333340000000
  br i1 %42, label %46, label %43

43:                                               ; preds = %40
  %44 = load ptr, ptr @stderr, align 8, !tbaa !9
  %45 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 936, ptr noundef nonnull @.str.118) #5
  br label %65

46:                                               ; preds = %40
  %47 = call zeroext i1 @glm_vec2_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x40035C2900000000, ptr noundef nonnull %3)
  %48 = load float, ptr %3, align 4, !tbaa !5
  %49 = fcmp oeq float %48, 0.000000e+00
  %50 = load float, ptr %8, align 4
  %51 = fcmp oeq float %50, 0.000000e+00
  %or.cond8 = select i1 %49, i1 %51, i1 false
  br i1 %or.cond8, label %61, label %52

52:                                               ; preds = %46
  %53 = fcmp olt float %50, 0xBFE6A09E60000000
  br i1 %53, label %57, label %54

54:                                               ; preds = %52
  %55 = load ptr, ptr @stderr, align 8, !tbaa !9
  %56 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %55, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 943, ptr noundef nonnull @.str.117) #5
  br label %65

57:                                               ; preds = %52
  br i1 %47, label %65, label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr @stderr, align 8, !tbaa !9
  %60 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %59, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 944, ptr noundef nonnull @.str.114) #5
  br label %65

61:                                               ; preds = %46
  br i1 %47, label %62, label %65

62:                                               ; preds = %61
  %63 = load ptr, ptr @stderr, align 8, !tbaa !9
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 947, ptr noundef nonnull @.str.116) #5
  br label %65

65:                                               ; preds = %57, %61, %62, %58, %54, %43, %37, %32, %26, %21, %17, %13
  %.sroa.14.0 = phi i32 [ 0, %62 ], [ 0, %58 ], [ 0, %54 ], [ 0, %43 ], [ 0, %37 ], [ 0, %32 ], [ 0, %26 ], [ 0, %21 ], [ 0, %17 ], [ 0, %13 ], [ 1, %61 ], [ 1, %57 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  %.fca.1.insert = insertvalue { ptr, i32 } { ptr null, i32 poison }, i32 %.sroa.14.0, 1
  ret { ptr, i32 } %.fca.1.insert
}

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

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