; 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.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
@.str.119 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec3_refract.N = external hidden unnamed_addr constant [3 x float], align 4
@.str.295 = external hidden unnamed_addr constant [54 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_vec3_refract() #3 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  %4 = alloca [3 x float], align 4
  %5 = alloca float, align 4
  %6 = alloca i8, align 1
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 12, 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
  %12 = getelementptr inbounds float, ptr %2, i64 2
  store float 0.000000e+00, ptr %12, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %3, ptr align 4 @__const.test_glm_vec3_refract.N, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  store float 0x3FF547AE20000000, ptr %5, align 4, !tbaa !5
  %13 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %14 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %15 = load float, ptr %5, align 4, !tbaa !5
  %16 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %17 = call zeroext i1 @glm_vec3_refract(ptr noundef %13, ptr noundef %14, float noundef %15, ptr noundef %16)
  %18 = zext i1 %17 to i8
  store i8 %18, ptr %6, align 1, !tbaa !9
  %19 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %20 = load float, ptr %19, align 4, !tbaa !5
  %21 = fcmp oeq float %20, 0.000000e+00
  br i1 %21, label %22, label %30

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

26:                                               ; preds = %22
  %27 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = fcmp oeq float %28, 0.000000e+00
  br i1 %29, label %56, label %30

30:                                               ; preds = %26, %22, %0
  br label %31

31:                                               ; preds = %30
  %32 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = fcmp olt float %33, 0xBFD3333340000000
  br i1 %34, label %40, label %35

35:                                               ; preds = %31
  %36 = load ptr, ptr @stderr, align 8, !tbaa !11
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 1996, ptr noundef @.str.113) #5
  %38 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %38, align 8, !tbaa !13
  %39 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %39, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

40:                                               ; preds = %31
  br label %41

41:                                               ; preds = %40
  br label %42

42:                                               ; preds = %41
  br label %43

43:                                               ; preds = %42
  %44 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %45 = trunc i8 %44 to i1
  %46 = zext i1 %45 to i32
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %53, label %48

48:                                               ; preds = %43
  %49 = load ptr, ptr @stderr, align 8, !tbaa !11
  %50 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %49, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 1997, ptr noundef @.str.114) #5
  %51 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %51, align 8, !tbaa !13
  %52 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %52, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

53:                                               ; preds = %43
  br label %54

54:                                               ; preds = %53
  br label %55

55:                                               ; preds = %54
  br label %90

56:                                               ; preds = %26
  br label %57

57:                                               ; preds = %56
  %58 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %59 = load float, ptr %58, align 4, !tbaa !5
  %60 = fcmp oeq float %59, 0.000000e+00
  br i1 %60, label %61, label %69

61:                                               ; preds = %57
  %62 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fcmp oeq float %63, 0.000000e+00
  br i1 %64, label %65, label %69

65:                                               ; preds = %61
  %66 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = fcmp oeq float %67, 0.000000e+00
  br i1 %68, label %74, label %69

69:                                               ; preds = %65, %61, %57
  %70 = load ptr, ptr @stderr, align 8, !tbaa !11
  %71 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %70, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 1999, ptr noundef @.str.295) #5
  %72 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %72, align 8, !tbaa !13
  %73 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %73, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

74:                                               ; preds = %65
  br label %75

75:                                               ; preds = %74
  br label %76

76:                                               ; preds = %75
  br label %77

77:                                               ; preds = %76
  %78 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %79 = trunc i8 %78 to i1
  %80 = zext i1 %79 to i32
  %81 = icmp eq i32 %80, 0
  br i1 %81, label %87, label %82

82:                                               ; preds = %77
  %83 = load ptr, ptr @stderr, align 8, !tbaa !11
  %84 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %83, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2000, ptr noundef @.str.116) #5
  %85 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %85, align 8, !tbaa !13
  %86 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %86, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

87:                                               ; preds = %77
  br label %88

88:                                               ; preds = %87
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89, %55
  store float 0x3FE5555560000000, ptr %5, align 4, !tbaa !5
  %91 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %92 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %93 = load float, ptr %5, align 4, !tbaa !5
  %94 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %95 = call zeroext i1 @glm_vec3_refract(ptr noundef %91, ptr noundef %92, float noundef %93, ptr noundef %94)
  %96 = zext i1 %95 to i8
  store i8 %96, ptr %6, align 1, !tbaa !9
  br label %97

97:                                               ; preds = %90
  %98 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %99 = trunc i8 %98 to i1
  %100 = zext i1 %99 to i32
  %101 = icmp eq i32 %100, 1
  br i1 %101, label %107, label %102

102:                                              ; preds = %97
  %103 = load ptr, ptr @stderr, align 8, !tbaa !11
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %103, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2008, ptr noundef @.str.114) #5
  %105 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %105, align 8, !tbaa !13
  %106 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %106, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

107:                                              ; preds = %97
  br label %108

108:                                              ; preds = %107
  br label %109

109:                                              ; preds = %108
  br label %110

110:                                              ; preds = %109
  %111 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %112 = load float, ptr %111, align 4, !tbaa !5
  %113 = call float @sqrtf(float noundef 5.000000e-01) #5
  %114 = fneg float %113
  %115 = fcmp olt float %112, %114
  br i1 %115, label %121, label %116

116:                                              ; preds = %110
  %117 = load ptr, ptr @stderr, align 8, !tbaa !11
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2009, ptr noundef @.str.117) #5
  %119 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %119, align 8, !tbaa !13
  %120 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %120, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

121:                                              ; preds = %110
  br label %122

122:                                              ; preds = %121
  br label %123

123:                                              ; preds = %122
  store float 0x3FF20B8C80000000, ptr %5, align 4, !tbaa !5
  %124 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %125 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %126 = load float, ptr %5, align 4, !tbaa !5
  %127 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %128 = call zeroext i1 @glm_vec3_refract(ptr noundef %124, ptr noundef %125, float noundef %126, ptr noundef %127)
  %129 = zext i1 %128 to i8
  store i8 %129, ptr %6, align 1, !tbaa !9
  br label %130

130:                                              ; preds = %123
  %131 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %132 = trunc i8 %131 to i1
  %133 = zext i1 %132 to i32
  %134 = icmp eq i32 %133, 1
  br i1 %134, label %140, label %135

135:                                              ; preds = %130
  %136 = load ptr, ptr @stderr, align 8, !tbaa !11
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %136, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2016, ptr noundef @.str.114) #5
  %138 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %138, align 8, !tbaa !13
  %139 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %139, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

140:                                              ; preds = %130
  br label %141

141:                                              ; preds = %140
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  %144 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %145 = load float, ptr %144, align 4, !tbaa !5
  %146 = fcmp olt float %145, 0xBFE3333340000000
  br i1 %146, label %152, label %147

147:                                              ; preds = %143
  %148 = load ptr, ptr @stderr, align 8, !tbaa !11
  %149 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %148, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2017, ptr noundef @.str.118) #5
  %150 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %150, align 8, !tbaa !13
  %151 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %151, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

152:                                              ; preds = %143
  br label %153

153:                                              ; preds = %152
  br label %154

154:                                              ; preds = %153
  store float 0x40035C2900000000, ptr %5, align 4, !tbaa !5
  %155 = getelementptr inbounds [3 x float], ptr %2, i64 0, i64 0
  %156 = getelementptr inbounds [3 x float], ptr %3, i64 0, i64 0
  %157 = load float, ptr %5, align 4, !tbaa !5
  %158 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %159 = call zeroext i1 @glm_vec3_refract(ptr noundef %155, ptr noundef %156, float noundef %157, ptr noundef %158)
  %160 = zext i1 %159 to i8
  store i8 %160, ptr %6, align 1, !tbaa !9
  %161 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %162 = load float, ptr %161, align 4, !tbaa !5
  %163 = fcmp oeq float %162, 0.000000e+00
  br i1 %163, label %164, label %172

164:                                              ; preds = %154
  %165 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %166 = load float, ptr %165, align 4, !tbaa !5
  %167 = fcmp oeq float %166, 0.000000e+00
  br i1 %167, label %168, label %172

168:                                              ; preds = %164
  %169 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %170 = load float, ptr %169, align 4, !tbaa !5
  %171 = fcmp oeq float %170, 0.000000e+00
  br i1 %171, label %200, label %172

172:                                              ; preds = %168, %164, %154
  br label %173

173:                                              ; preds = %172
  %174 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %175 = load float, ptr %174, align 4, !tbaa !5
  %176 = call float @sqrtf(float noundef 5.000000e-01) #5
  %177 = fneg float %176
  %178 = fcmp olt float %175, %177
  br i1 %178, label %184, label %179

179:                                              ; preds = %173
  %180 = load ptr, ptr @stderr, align 8, !tbaa !11
  %181 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %180, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2024, ptr noundef @.str.117) #5
  %182 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %182, align 8, !tbaa !13
  %183 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %183, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

184:                                              ; preds = %173
  br label %185

185:                                              ; preds = %184
  br label %186

186:                                              ; preds = %185
  br label %187

187:                                              ; preds = %186
  %188 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %189 = trunc i8 %188 to i1
  %190 = zext i1 %189 to i32
  %191 = icmp eq i32 %190, 1
  br i1 %191, label %197, label %192

192:                                              ; preds = %187
  %193 = load ptr, ptr @stderr, align 8, !tbaa !11
  %194 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2025, ptr noundef @.str.114) #5
  %195 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %195, align 8, !tbaa !13
  %196 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %196, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

197:                                              ; preds = %187
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  br label %234

200:                                              ; preds = %168
  br label %201

201:                                              ; preds = %200
  %202 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 0
  %203 = load float, ptr %202, align 4, !tbaa !5
  %204 = fcmp oeq float %203, 0.000000e+00
  br i1 %204, label %205, label %213

205:                                              ; preds = %201
  %206 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 1
  %207 = load float, ptr %206, align 4, !tbaa !5
  %208 = fcmp oeq float %207, 0.000000e+00
  br i1 %208, label %209, label %213

209:                                              ; preds = %205
  %210 = getelementptr inbounds [3 x float], ptr %4, i64 0, i64 2
  %211 = load float, ptr %210, align 4, !tbaa !5
  %212 = fcmp oeq float %211, 0.000000e+00
  br i1 %212, label %218, label %213

213:                                              ; preds = %209, %205, %201
  %214 = load ptr, ptr @stderr, align 8, !tbaa !11
  %215 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %214, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2027, ptr noundef @.str.295) #5
  %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 0, ptr %217, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

218:                                              ; preds = %209
  br label %219

219:                                              ; preds = %218
  br label %220

220:                                              ; preds = %219
  br label %221

221:                                              ; preds = %220
  %222 = load i8, ptr %6, align 1, !tbaa !9, !range !17, !noundef !18
  %223 = trunc i8 %222 to i1
  %224 = zext i1 %223 to i32
  %225 = icmp eq i32 %224, 0
  br i1 %225, label %231, label %226

226:                                              ; preds = %221
  %227 = load ptr, ptr @stderr, align 8, !tbaa !11
  %228 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %227, ptr noundef @.str, ptr noundef @.str.119, i32 noundef 2028, ptr noundef @.str.116) #5
  %229 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %229, align 8, !tbaa !13
  %230 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %230, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

231:                                              ; preds = %221
  br label %232

232:                                              ; preds = %231
  br label %233

233:                                              ; preds = %232
  br label %234

234:                                              ; preds = %233, %199
  %235 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %235, align 8, !tbaa !13
  %236 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %236, align 8, !tbaa !16
  store i32 1, ptr %7, align 4
  br label %237

237:                                              ; preds = %234, %226, %213, %192, %179, %147, %135, %116, %102, %82, %69, %48, %35
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr %2) #5
  %238 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %238
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @glm_vec3_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 = !{!"_Bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"test_status_t", !12, i64 0, !15, i64 8}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 8}
!17 = !{i8 0, i8 2}
!18 = !{}


; 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.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
@.str.119 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec3_refract.N = external hidden unnamed_addr constant [3 x float], align 4

; 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: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_vec3_refract() local_unnamed_addr #3 {
  %1 = alloca [3 x float], align 8
  %2 = alloca [3 x float], align 4
  %3 = alloca [3 x float], align 4
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %1) #5
  store <2 x float> <float 0x3FE6A09E60000000, float 0xBFE6A09E60000000>, ptr %1, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %1, i64 8
  store float 0.000000e+00, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %2, ptr noundef nonnull align 4 dereferenceable(12) @__const.test_glm_vec3_refract.N, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %3) #5
  %5 = call zeroext i1 @glm_vec3_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
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = load float, ptr %11, align 4
  %13 = fcmp oeq float %12, 0.000000e+00
  %or.cond5 = select i1 %or.cond, i1 %13, i1 false
  br i1 %or.cond5, label %23, label %14

14:                                               ; preds = %0
  %15 = fcmp olt float %9, 0xBFD3333340000000
  br i1 %15, label %19, label %16

16:                                               ; preds = %14
  %17 = load ptr, ptr @stderr, align 8, !tbaa !9
  %18 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 1996, ptr noundef nonnull @.str.113) #6
  br label %70

19:                                               ; preds = %14
  br i1 %5, label %27, label %20

20:                                               ; preds = %19
  %21 = load ptr, ptr @stderr, align 8, !tbaa !9
  %22 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 1997, ptr noundef nonnull @.str.114) #6
  br label %70

23:                                               ; preds = %0
  br i1 %5, label %24, label %27

24:                                               ; preds = %23
  %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.119, i32 noundef 2000, ptr noundef nonnull @.str.116) #6
  br label %70

27:                                               ; preds = %23, %19
  %28 = call zeroext i1 @glm_vec3_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FE5555560000000, ptr noundef nonnull %3)
  br i1 %28, label %32, label %29

29:                                               ; preds = %27
  %30 = load ptr, ptr @stderr, align 8, !tbaa !9
  %31 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %30, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2008, ptr noundef nonnull @.str.114) #6
  br label %70

32:                                               ; preds = %27
  %33 = load float, ptr %8, align 4, !tbaa !5
  %34 = fcmp olt float %33, 0xBFE6A09E60000000
  br i1 %34, label %38, label %35

35:                                               ; preds = %32
  %36 = load ptr, ptr @stderr, align 8, !tbaa !9
  %37 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %36, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2009, ptr noundef nonnull @.str.117) #6
  br label %70

38:                                               ; preds = %32
  %39 = call zeroext i1 @glm_vec3_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FF20B8C80000000, ptr noundef nonnull %3)
  br i1 %39, label %43, label %40

40:                                               ; preds = %38
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2016, ptr noundef nonnull @.str.114) #6
  br label %70

43:                                               ; preds = %38
  %44 = load float, ptr %8, align 4, !tbaa !5
  %45 = fcmp olt float %44, 0xBFE3333340000000
  br i1 %45, label %49, label %46

46:                                               ; preds = %43
  %47 = load ptr, ptr @stderr, align 8, !tbaa !9
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %47, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2017, ptr noundef nonnull @.str.118) #6
  br label %70

49:                                               ; preds = %43
  %50 = call zeroext i1 @glm_vec3_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x40035C2900000000, ptr noundef nonnull %3)
  %51 = load float, ptr %3, align 4, !tbaa !5
  %52 = fcmp oeq float %51, 0.000000e+00
  %53 = load float, ptr %8, align 4
  %54 = fcmp oeq float %53, 0.000000e+00
  %or.cond14 = select i1 %52, i1 %54, i1 false
  %55 = load float, ptr %11, align 4
  %56 = fcmp oeq float %55, 0.000000e+00
  %or.cond17 = select i1 %or.cond14, i1 %56, i1 false
  br i1 %or.cond17, label %66, label %57

57:                                               ; preds = %49
  %58 = fcmp olt float %53, 0xBFE6A09E60000000
  br i1 %58, label %62, label %59

59:                                               ; preds = %57
  %60 = load ptr, ptr @stderr, align 8, !tbaa !9
  %61 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %60, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2024, ptr noundef nonnull @.str.117) #6
  br label %70

62:                                               ; preds = %57
  br i1 %50, label %70, label %63

63:                                               ; preds = %62
  %64 = load ptr, ptr @stderr, align 8, !tbaa !9
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2025, ptr noundef nonnull @.str.114) #6
  br label %70

66:                                               ; preds = %49
  br i1 %50, label %67, label %70

67:                                               ; preds = %66
  %68 = load ptr, ptr @stderr, align 8, !tbaa !9
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %68, ptr noundef nonnull @.str, ptr noundef nonnull @.str.119, i32 noundef 2028, ptr noundef nonnull @.str.116) #6
  br label %70

70:                                               ; preds = %62, %66, %67, %63, %59, %46, %40, %35, %29, %24, %20, %16
  %.sroa.14.0 = phi i32 [ 0, %67 ], [ 0, %63 ], [ 0, %59 ], [ 0, %46 ], [ 0, %40 ], [ 0, %35 ], [ 0, %29 ], [ 0, %24 ], [ 0, %20 ], [ 0, %16 ], [ 1, %66 ], [ 1, %62 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %1) #5
  %.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_vec3_refract(ptr noundef, ptr noundef, float noundef, ptr noundef) local_unnamed_addr #4

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