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

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

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

31:                                               ; preds = %27
  %32 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %33 = load float, ptr %32, align 4, !tbaa !5
  %34 = fcmp oeq float %33, 0.000000e+00
  br i1 %34, label %59, label %35

35:                                               ; preds = %31, %27, %23, %0
  br label %36

36:                                               ; preds = %35
  %37 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %38 = load float, ptr %37, align 4, !tbaa !5
  %39 = fcmp olt float %38, 0xBFD3333340000000
  br i1 %39, label %45, label %40

40:                                               ; preds = %36
  %41 = load ptr, ptr @stderr, align 8, !tbaa !9
  %42 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %41, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1673, ptr noundef @.str.113) #5
  %43 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %43, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %44, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

45:                                               ; preds = %36
  br label %46

46:                                               ; preds = %45
  br label %47

47:                                               ; preds = %46
  br label %48

48:                                               ; preds = %47
  %49 = load float, ptr %6, align 4, !tbaa !5
  %50 = fcmp oeq float %49, 1.000000e+00
  br i1 %50, label %56, label %51

51:                                               ; preds = %48
  %52 = load ptr, ptr @stderr, align 8, !tbaa !9
  %53 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %52, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1674, ptr noundef @.str.114) #5
  %54 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %54, align 8, !tbaa !11
  %55 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %55, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

56:                                               ; preds = %48
  br label %57

57:                                               ; preds = %56
  br label %58

58:                                               ; preds = %57
  br label %95

59:                                               ; preds = %31
  br label %60

60:                                               ; preds = %59
  %61 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %62 = load float, ptr %61, align 16, !tbaa !5
  %63 = fcmp oeq float %62, 0.000000e+00
  br i1 %63, label %64, label %76

64:                                               ; preds = %60
  %65 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %66 = load float, ptr %65, align 4, !tbaa !5
  %67 = fcmp oeq float %66, 0.000000e+00
  br i1 %67, label %68, label %76

68:                                               ; preds = %64
  %69 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %70 = load float, ptr %69, align 8, !tbaa !5
  %71 = fcmp oeq float %70, 0.000000e+00
  br i1 %71, label %72, label %76

72:                                               ; preds = %68
  %73 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %74 = load float, ptr %73, align 4, !tbaa !5
  %75 = fcmp oeq float %74, 0.000000e+00
  br i1 %75, label %81, label %76

76:                                               ; preds = %72, %68, %64, %60
  %77 = load ptr, ptr @stderr, align 8, !tbaa !9
  %78 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %77, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1676, ptr noundef @.str.440) #5
  %79 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %79, align 8, !tbaa !11
  %80 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %80, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

81:                                               ; preds = %72
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  %85 = load float, ptr %6, align 4, !tbaa !5
  %86 = fcmp oeq float %85, 0.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.296, i32 noundef 1677, ptr noundef @.str.116) #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 %242

92:                                               ; preds = %84
  br label %93

93:                                               ; preds = %92
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94, %58
  store float 0x3FE5555560000000, ptr %5, align 4, !tbaa !5
  %96 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %97 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %98 = load float, ptr %5, align 4, !tbaa !5
  %99 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %100 = call zeroext i1 @glm_vec4_refract(ptr noundef %96, ptr noundef %97, float noundef %98, ptr noundef %99)
  %101 = uitofp i1 %100 to float
  store float %101, ptr %6, align 4, !tbaa !5
  br label %102

102:                                              ; preds = %95
  %103 = load float, ptr %6, align 4, !tbaa !5
  %104 = fcmp oeq float %103, 1.000000e+00
  br i1 %104, label %110, label %105

105:                                              ; preds = %102
  %106 = load ptr, ptr @stderr, align 8, !tbaa !9
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1683, ptr noundef @.str.114) #5
  %108 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %108, align 8, !tbaa !11
  %109 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %109, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

110:                                              ; preds = %102
  br label %111

111:                                              ; preds = %110
  br label %112

112:                                              ; preds = %111
  br label %113

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

119:                                              ; preds = %113
  %120 = load ptr, ptr @stderr, align 8, !tbaa !9
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %120, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1684, ptr noundef @.str.117) #5
  %122 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %122, align 8, !tbaa !11
  %123 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %123, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

124:                                              ; preds = %113
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  store float 0x3FF20B8C80000000, ptr %5, align 4, !tbaa !5
  %127 = getelementptr inbounds [4 x float], ptr %2, i64 0, i64 0
  %128 = getelementptr inbounds [4 x float], ptr %3, i64 0, i64 0
  %129 = load float, ptr %5, align 4, !tbaa !5
  %130 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %131 = call zeroext i1 @glm_vec4_refract(ptr noundef %127, ptr noundef %128, float noundef %129, ptr noundef %130)
  %132 = uitofp i1 %131 to float
  store float %132, ptr %6, align 4, !tbaa !5
  br label %133

133:                                              ; preds = %126
  %134 = load float, ptr %6, align 4, !tbaa !5
  %135 = fcmp oeq float %134, 1.000000e+00
  br i1 %135, label %141, label %136

136:                                              ; preds = %133
  %137 = load ptr, ptr @stderr, align 8, !tbaa !9
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1689, ptr noundef @.str.114) #5
  %139 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %139, align 8, !tbaa !11
  %140 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %140, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

141:                                              ; preds = %133
  br label %142

142:                                              ; preds = %141
  br label %143

143:                                              ; preds = %142
  br label %144

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

148:                                              ; preds = %144
  %149 = load ptr, ptr @stderr, align 8, !tbaa !9
  %150 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %149, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1690, ptr noundef @.str.118) #5
  %151 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %151, align 8, !tbaa !11
  %152 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %152, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

153:                                              ; preds = %144
  br label %154

154:                                              ; preds = %153
  br label %155

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

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

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

173:                                              ; preds = %169
  %174 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %175 = load float, ptr %174, align 4, !tbaa !5
  %176 = fcmp oeq float %175, 0.000000e+00
  br i1 %176, label %203, label %177

177:                                              ; preds = %173, %169, %165, %155
  br label %178

178:                                              ; preds = %177
  %179 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %180 = load float, ptr %179, align 4, !tbaa !5
  %181 = call float @sqrtf(float noundef 5.000000e-01) #5
  %182 = fneg float %181
  %183 = fcmp olt float %180, %182
  br i1 %183, label %189, label %184

184:                                              ; preds = %178
  %185 = load ptr, ptr @stderr, align 8, !tbaa !9
  %186 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %185, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1697, ptr noundef @.str.117) #5
  %187 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %187, align 8, !tbaa !11
  %188 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %188, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

189:                                              ; preds = %178
  br label %190

190:                                              ; preds = %189
  br label %191

191:                                              ; preds = %190
  br label %192

192:                                              ; preds = %191
  %193 = load float, ptr %6, align 4, !tbaa !5
  %194 = fcmp oeq float %193, 1.000000e+00
  br i1 %194, label %200, label %195

195:                                              ; preds = %192
  %196 = load ptr, ptr @stderr, align 8, !tbaa !9
  %197 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %196, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1698, ptr noundef @.str.114) #5
  %198 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %198, align 8, !tbaa !11
  %199 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %199, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

200:                                              ; preds = %192
  br label %201

201:                                              ; preds = %200
  br label %202

202:                                              ; preds = %201
  br label %239

203:                                              ; preds = %173
  br label %204

204:                                              ; preds = %203
  %205 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 0
  %206 = load float, ptr %205, align 16, !tbaa !5
  %207 = fcmp oeq float %206, 0.000000e+00
  br i1 %207, label %208, label %220

208:                                              ; preds = %204
  %209 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 1
  %210 = load float, ptr %209, align 4, !tbaa !5
  %211 = fcmp oeq float %210, 0.000000e+00
  br i1 %211, label %212, label %220

212:                                              ; preds = %208
  %213 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 2
  %214 = load float, ptr %213, align 8, !tbaa !5
  %215 = fcmp oeq float %214, 0.000000e+00
  br i1 %215, label %216, label %220

216:                                              ; preds = %212
  %217 = getelementptr inbounds [4 x float], ptr %4, i64 0, i64 3
  %218 = load float, ptr %217, align 4, !tbaa !5
  %219 = fcmp oeq float %218, 0.000000e+00
  br i1 %219, label %225, label %220

220:                                              ; preds = %216, %212, %208, %204
  %221 = load ptr, ptr @stderr, align 8, !tbaa !9
  %222 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %221, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1700, ptr noundef @.str.440) #5
  %223 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %223, align 8, !tbaa !11
  %224 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %224, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

225:                                              ; preds = %216
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  br label %228

228:                                              ; preds = %227
  %229 = load float, ptr %6, align 4, !tbaa !5
  %230 = fcmp oeq float %229, 0.000000e+00
  br i1 %230, label %236, label %231

231:                                              ; preds = %228
  %232 = load ptr, ptr @stderr, align 8, !tbaa !9
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str, ptr noundef @.str.296, i32 noundef 1701, ptr noundef @.str.116) #5
  %234 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %234, align 8, !tbaa !11
  %235 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %235, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

236:                                              ; preds = %228
  br label %237

237:                                              ; preds = %236
  br label %238

238:                                              ; preds = %237
  br label %239

239:                                              ; preds = %238, %202
  %240 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %240, align 8, !tbaa !11
  %241 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %241, align 8, !tbaa !14
  store i32 1, ptr %7, align 4
  br label %242

242:                                              ; preds = %239, %231, %220, %195, %184, %148, %136, %119, %105, %87, %76, %51, %40
  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 16, ptr %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %2) #5
  %243 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %243
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden zeroext i1 @glm_vec4_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.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.296 = external hidden unnamed_addr constant [64 x i8], align 1
@__const.test_glm_vec4_refract.N = external hidden unnamed_addr constant [4 x float], align 16

; 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_vec4_refract() local_unnamed_addr #3 {
  %1 = alloca [4 x float], align 16
  %2 = alloca [4 x float], align 16
  %3 = alloca [4 x float], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %1) #5
  store <4 x float> <float 0x3FE6A09E60000000, float 0xBFE6A09E60000000, float 0.000000e+00, float 0.000000e+00>, ptr %1, align 16, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %2, ptr noundef nonnull align 16 dereferenceable(16) @__const.test_glm_vec4_refract.N, i64 16, i1 false)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  %4 = call zeroext i1 @glm_vec4_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x3FF547AE20000000, ptr noundef nonnull %3)
  %5 = getelementptr inbounds i8, ptr %3, i64 4
  %6 = load <4 x float>, ptr %3, align 16
  %.fr = freeze <4 x float> %6
  %7 = fcmp une <4 x float> %.fr, zeroinitializer
  %8 = bitcast <4 x i1> %7 to i4
  %9 = icmp eq i4 %8, 0
  br i1 %9, label %20, label %10

10:                                               ; preds = %0
  %11 = extractelement <4 x float> %.fr, i64 1
  %12 = fcmp olt float %11, 0xBFD3333340000000
  br i1 %12, label %16, label %13

13:                                               ; preds = %10
  %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.296, i32 noundef 1673, ptr noundef nonnull @.str.113) #6
  br label %66

16:                                               ; preds = %10
  br i1 %4, 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.296, i32 noundef 1674, ptr noundef nonnull @.str.114) #6
  br label %66

20:                                               ; preds = %0
  br i1 %4, 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.296, i32 noundef 1677, ptr noundef nonnull @.str.116) #6
  br label %66

24:                                               ; preds = %20, %16
  %25 = call zeroext i1 @glm_vec4_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.296, i32 noundef 1683, ptr noundef nonnull @.str.114) #6
  br label %66

29:                                               ; preds = %24
  %30 = load float, ptr %5, 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.296, i32 noundef 1684, ptr noundef nonnull @.str.117) #6
  br label %66

35:                                               ; preds = %29
  %36 = call zeroext i1 @glm_vec4_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.296, i32 noundef 1689, ptr noundef nonnull @.str.114) #6
  br label %66

40:                                               ; preds = %35
  %41 = load float, ptr %5, 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.296, i32 noundef 1690, ptr noundef nonnull @.str.118) #6
  br label %66

46:                                               ; preds = %40
  %47 = call zeroext i1 @glm_vec4_refract(ptr noundef nonnull %1, ptr noundef nonnull %2, float noundef 0x40035C2900000000, ptr noundef nonnull %3)
  %48 = load <4 x float>, ptr %3, align 16
  %.fr45 = freeze <4 x float> %48
  %49 = fcmp une <4 x float> %.fr45, zeroinitializer
  %50 = bitcast <4 x i1> %49 to i4
  %51 = icmp eq i4 %50, 0
  br i1 %51, label %62, label %52

52:                                               ; preds = %46
  %53 = extractelement <4 x float> %.fr45, i64 1
  %54 = fcmp olt float %53, 0xBFE6A09E60000000
  br i1 %54, label %58, label %55

55:                                               ; preds = %52
  %56 = load ptr, ptr @stderr, align 8, !tbaa !9
  %57 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %56, ptr noundef nonnull @.str, ptr noundef nonnull @.str.296, i32 noundef 1697, ptr noundef nonnull @.str.117) #6
  br label %66

58:                                               ; preds = %52
  br i1 %47, label %66, label %59

59:                                               ; preds = %58
  %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.296, i32 noundef 1698, ptr noundef nonnull @.str.114) #6
  br label %66

62:                                               ; preds = %46
  br i1 %47, label %63, label %66

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.296, i32 noundef 1701, ptr noundef nonnull @.str.116) #6
  br label %66

66:                                               ; preds = %58, %62, %63, %59, %55, %43, %37, %32, %26, %21, %17, %13
  %.sroa.14.0 = phi i32 [ 0, %63 ], [ 0, %59 ], [ 0, %55 ], [ 0, %43 ], [ 0, %37 ], [ 0, %32 ], [ 0, %26 ], [ 0, %21 ], [ 0, %17 ], [ 0, %13 ], [ 1, %62 ], [ 1, %58 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 16, 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_vec4_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,GlobalDCEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass