#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ TESTError_Fail(char *, char const *, int, char const *,
                                  char const *, float const, float const,
                                  float const, float const, float const,
                                  float const, float const, float const);
int /*<<< orphan*/ floatEq(float const, float const);
int AssertEqualFloat4(const float a[], const float b[], int line,
                      const char *file, const char *function, const char *exp) {
  if (!floatEq(a[0], b[0]) || !floatEq(a[1], b[1]) || !floatEq(a[2], b[2]) ||
      !floatEq(a[3], b[3])) {
    TESTError_Fail("%s:%d> %s() FAILED: %s was '(%0.8f,%0.8f,%0.8f,%0.8f)' but "
                   "should be '(%0.8f,%0.8f,%0.8f,%0.8f)'\n",
                   file, line, function, exp, a[0], a[1], a[2], a[3], b[0],
                   b[1], b[2], b[3]);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<AssertEqualFloat4>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm1
call   1030 <floatEq@plt>
cmp    $0x0,%eax
je     11bd <AssertEqualFloat4+0x9d>
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm1
call   1030 <floatEq@plt>
cmp    $0x0,%eax
je     11bd <AssertEqualFloat4+0x9d>
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm1
call   1030 <floatEq@plt>
cmp    $0x0,%eax
je     11bd <AssertEqualFloat4+0x9d>
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm0
mov    -0x18(%rbp),%rax
movss  0xc(%rax),%xmm1
call   1030 <floatEq@plt>
cmp    $0x0,%eax
jne    122a <AssertEqualFloat4+0x10a>
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x10(%rbp),%rax
movss  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movss  0x4(%rax),%xmm1
mov    -0x10(%rbp),%rax
movss  0x8(%rax),%xmm2
mov    -0x10(%rbp),%rax
movss  0xc(%rax),%xmm3
mov    -0x18(%rbp),%rax
movss  (%rax),%xmm4
mov    -0x18(%rbp),%rax
movss  0x4(%rax),%xmm5
mov    -0x18(%rbp),%rax
movss  0x8(%rax),%xmm6
mov    -0x18(%rbp),%rax
movss  0xc(%rax),%xmm7
lea    0xde7(%rip),%rdi
call   1040 <TESTError_Fail@plt>
movl   $0x0,-0x4(%rbp)
jmp    1231 <AssertEqualFloat4+0x111>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AssertEqualFloat4>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r14
mov    %r8,%r15
mov    %rcx,%r12
mov    %edx,%r13d
mov    %rsi,%rbx
mov    %rdi,%rbp
movss  (%rdi),%xmm0
movss  (%rsi),%xmm1
call   1030 <floatEq@plt>
test   %eax,%eax
je     118e <AssertEqualFloat4+0x6e>
movss  0x4(%rbp),%xmm0
movss  0x4(%rbx),%xmm1
call   1030 <floatEq@plt>
test   %eax,%eax
je     118e <AssertEqualFloat4+0x6e>
movss  0x8(%rbp),%xmm0
movss  0x8(%rbx),%xmm1
call   1030 <floatEq@plt>
test   %eax,%eax
je     118e <AssertEqualFloat4+0x6e>
movss  0xc(%rbp),%xmm0
movss  0xc(%rbx),%xmm1
call   1030 <floatEq@plt>
mov    %eax,%ecx
mov    $0x1,%eax
test   %ecx,%ecx
jne    11cf <AssertEqualFloat4+0xaf>
movss  0x0(%rbp),%xmm0
movss  0x4(%rbp),%xmm1
movss  0x8(%rbp),%xmm2
movss  0xc(%rbp),%xmm3
movss  (%rbx),%xmm4
movss  0x4(%rbx),%xmm5
movss  0x8(%rbx),%xmm6
movss  0xc(%rbx),%xmm7
lea    0xe44(%rip),%rdi
mov    %r12,%rsi
mov    %r13d,%edx
mov    %r15,%rcx
mov    %r14,%r8
call   1040 <TESTError_Fail@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [98 x i8] c"%s:%d> %s() FAILED: %s was '(%0.8f,%0.8f,%0.8f,%0.8f)' but should be '(%0.8f,%0.8f,%0.8f,%0.8f)'\0A\00"
define i32 @AssertEqualFloat4(float* %0, float* %1, i32 %2, i8* %3, i8* %4, i8* %5) {
%7 = alloca i32
%8 = alloca float*
%9 = alloca float*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
store float* %0, float** %8
store float* %1, float** %9
store i32 %2, i32* %10
store i8* %3, i8** %11
store i8* %4, i8** %12
store i8* %5, i8** %13
%14 = load float*, float** %8
%15 = getelementptr inbounds float, float* %14, i64 0
%16 = load float, float* %15
%17 = load float*, float** %9
%18 = getelementptr inbounds float, float* %17, i64 0
%19 = load float, float* %18
%20 = call i32 @floatEq(float %16, float %19)
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %49
22: ; preds = %6
%23 = load float*, float** %8
%24 = getelementptr inbounds float, float* %23, i64 1
%25 = load float, float* %24
%26 = load float*, float** %9
%27 = getelementptr inbounds float, float* %26, i64 1
%28 = load float, float* %27
%29 = call i32 @floatEq(float %25, float %28)
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %49
31: ; preds = %22
%32 = load float*, float** %8
%33 = getelementptr inbounds float, float* %32, i64 2
%34 = load float, float* %33
%35 = load float*, float** %9
%36 = getelementptr inbounds float, float* %35, i64 2
%37 = load float, float* %36
%38 = call i32 @floatEq(float %34, float %37)
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %49
40: ; preds = %31
%41 = load float*, float** %8
%42 = getelementptr inbounds float, float* %41, i64 3
%43 = load float, float* %42
%44 = load float*, float** %9
%45 = getelementptr inbounds float, float* %44, i64 3
%46 = load float, float* %45
%47 = call i32 @floatEq(float %43, float %46)
%48 = icmp ne i32 %47, 0
br i1 %48, label %79, label %49
49: ; preds = %40, %31, %22, %6
%50 = load i8*, i8** %11
%51 = load i32, i32* %10
%52 = load i8*, i8** %12
%53 = load i8*, i8** %13
%54 = load float*, float** %8
%55 = getelementptr inbounds float, float* %54, i64 0
%56 = load float, float* %55
%57 = load float*, float** %8
%58 = getelementptr inbounds float, float* %57, i64 1
%59 = load float, float* %58
%60 = load float*, float** %8
%61 = getelementptr inbounds float, float* %60, i64 2
%62 = load float, float* %61
%63 = load float*, float** %8
%64 = getelementptr inbounds float, float* %63, i64 3
%65 = load float, float* %64
%66 = load float*, float** %9
%67 = getelementptr inbounds float, float* %66, i64 0
%68 = load float, float* %67
%69 = load float*, float** %9
%70 = getelementptr inbounds float, float* %69, i64 1
%71 = load float, float* %70
%72 = load float*, float** %9
%73 = getelementptr inbounds float, float* %72, i64 2
%74 = load float, float* %73
%75 = load float*, float** %9
%76 = getelementptr inbounds float, float* %75, i64 3
%77 = load float, float* %76
%78 = call i32 @TESTError_Fail(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str, i64 0, i64 0), i8* %50, i32 %51, i8* %52, i8* %53, float %56, float %59, float %62, float %65, float %68, float %71, float %74, float %77)
store i32 0, i32* %7
br label %80
79: ; preds = %40
store i32 1, i32* %7
br label %80
80: ; preds = %79, %49
%81 = load i32, i32* %7
ret i32 %81
}

LLVM IR (-O2):
@.str = [98 x i8] c"%s:%d> %s() FAILED: %s was '(%0.8f,%0.8f,%0.8f,%0.8f)' but should be '(%0.8f,%0.8f,%0.8f,%0.8f)'\0A\00"
define i32 @AssertEqualFloat4(float* nocapture %0, float* nocapture %1, i32 %2, i8* %3, i8* %4, i8* %5) {
%7 = load float, float* %0
%8 = load float, float* %1
%9 = tail call i32 @floatEq(float %7, float %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %32, label %11
11: ; preds = %6
%12 = getelementptr inbounds float, float* %0, i64 1
%13 = load float, float* %12
%14 = getelementptr inbounds float, float* %1, i64 1
%15 = load float, float* %14
%16 = tail call i32 @floatEq(float %13, float %15)
%17 = icmp eq i32 %16, 0
br i1 %17, label %32, label %18
18: ; preds = %11
%19 = getelementptr inbounds float, float* %0, i64 2
%20 = load float, float* %19
%21 = getelementptr inbounds float, float* %1, i64 2
%22 = load float, float* %21
%23 = tail call i32 @floatEq(float %20, float %22)
%24 = icmp eq i32 %23, 0
br i1 %24, label %32, label %25
25: ; preds = %18
%26 = getelementptr inbounds float, float* %0, i64 3
%27 = load float, float* %26
%28 = getelementptr inbounds float, float* %1, i64 3
%29 = load float, float* %28
%30 = tail call i32 @floatEq(float %27, float %29)
%31 = icmp eq i32 %30, 0
br i1 %31, label %32, label %48
32: ; preds = %25, %18, %11, %6
%33 = load float, float* %0
%34 = getelementptr inbounds float, float* %0, i64 1
%35 = load float, float* %34
%36 = getelementptr inbounds float, float* %0, i64 2
%37 = load float, float* %36
%38 = getelementptr inbounds float, float* %0, i64 3
%39 = load float, float* %38
%40 = load float, float* %1
%41 = getelementptr inbounds float, float* %1, i64 1
%42 = load float, float* %41
%43 = getelementptr inbounds float, float* %1, i64 2
%44 = load float, float* %43
%45 = getelementptr inbounds float, float* %1, i64 3
%46 = load float, float* %45
%47 = tail call i32 @TESTError_Fail(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str, i64 0, i64 0), i8* %3, i32 %2, i8* %4, i8* %5, float %33, float %35, float %37, float %39, float %40, float %42, float %44, float %46)
br label %48
48: ; preds = %25, %32
%49 = phi i32 [ 0, %32 ], [ 1, %25 ]
ret i32 %49
}