#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*/ link_error();
int /*<<< orphan*/ sinf(float);
int /*<<< orphan*/ tanf(float);
void test2f(float x, float y) {
  if (-tanf(x - y) != tanf(y - x))
    link_error();
  if (-sinf(x - y) != sinf(y - x))
    link_error();
}


x86 assembly (clang, -O0):
<test2f>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
call   1040 <tanf@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0x4(%rbp),%xmm0
call   1040 <tanf@plt>
mov    %eax,%ecx
mov    -0xc(%rbp),%eax
cmp    %ecx,%eax
je     117d <test2f+0x4d>
mov    $0x0,%al
call   1050 <link_error@plt>
movss  -0x4(%rbp),%xmm0
subss  -0x8(%rbp),%xmm0
call   1030 <sinf@plt>
mov    %eax,%ecx
xor    %eax,%eax
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
subss  -0x4(%rbp),%xmm0
call   1030 <sinf@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
cmp    %ecx,%eax
je     11b8 <test2f+0x88>
mov    $0x0,%al
call   1050 <link_error@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test2f>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm1,0x4(%rsp)
movss  %xmm0,0x8(%rsp)
subss  %xmm1,%xmm0
movss  %xmm0,0xc(%rsp)
call   1040 <tanf@plt>
mov    %eax,%ebx
movss  0x4(%rsp),%xmm0
subss  0x8(%rsp),%xmm0
movss  %xmm0,0x4(%rsp)
call   1040 <tanf@plt>
add    %ebx,%eax
je     1174 <test2f+0x44>
xor    %eax,%eax
call   1050 <link_error@plt>
movss  0xc(%rsp),%xmm0
call   1030 <sinf@plt>
mov    %eax,%ebx
movss  0x4(%rsp),%xmm0
call   1030 <sinf@plt>
add    %ebx,%eax
jne    1196 <test2f+0x66>
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
jmp    1050 <link_error@plt>

LLVM IR (-O0):
define void @test2f(float %0, float %1) {
%3 = alloca float
%4 = alloca float
store float %0, float* %3
store float %1, float* %4
%5 = load float, float* %3
%6 = load float, float* %4
%7 = fsub float %5, %6
%8 = call i32 @tanf(float %7)
%9 = sub nsw i32 0, %8
%10 = load float, float* %4
%11 = load float, float* %3
%12 = fsub float %10, %11
%13 = call i32 @tanf(float %12)
%14 = icmp ne i32 %9, %13
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = call i32 (...) @link_error()
br label %17
17: ; preds = %15, %2
%18 = load float, float* %3
%19 = load float, float* %4
%20 = fsub float %18, %19
%21 = call i32 @sinf(float %20)
%22 = sub nsw i32 0, %21
%23 = load float, float* %4
%24 = load float, float* %3
%25 = fsub float %23, %24
%26 = call i32 @sinf(float %25)
%27 = icmp ne i32 %22, %26
br i1 %27, label %28, label %30
28: ; preds = %17
%29 = call i32 (...) @link_error()
br label %30
30: ; preds = %28, %17
ret void
}

LLVM IR (-O2):
define void @test2f(float %0, float %1) {
%3 = fsub float %0, %1
%4 = tail call i32 @tanf(float %3)
%5 = sub nsw i32 0, %4
%6 = fsub float %1, %0
%7 = tail call i32 @tanf(float %6)
%8 = icmp eq i32 %7, %5
br i1 %8, label %11, label %9
9: ; preds = %2
%10 = tail call i32 (...) @link_error()
br label %11
11: ; preds = %9, %2
%12 = tail call i32 @sinf(float %3)
%13 = sub nsw i32 0, %12
%14 = tail call i32 @sinf(float %6)
%15 = icmp eq i32 %14, %13
br i1 %15, label %18, label %16
16: ; preds = %11
%17 = tail call i32 (...) @link_error()
br label %18
18: ; preds = %16, %11
ret void
}