#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 */
float acos(float);
int pow(float, int);
float dota(float x, float y) {
  (x + y - 2) / (pow(x, 2) + pow(x, 2) - 4) * acos(x + y);
  return (x + y - 2) / (pow(x, 2) + pow(x, 2) - 4) * acos(x + y);
}


x86 assembly (clang, -O0):
<dota>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x4(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
call   1030 <acos@plt>
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  0xe8f(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x4(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,-0x10(%rbp)
movss  -0x4(%rbp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  -0x14(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x10(%rbp),%eax
add    %ecx,%eax
sub    $0x4,%eax
cvtsi2ss %eax,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x4(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
call   1030 <acos@plt>
movaps %xmm0,%xmm1
movss  -0xc(%rbp),%xmm0
mulss  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dota>:
push   %rbx
sub    $0x10,%rsp
movss  %xmm0,0xc(%rsp)
addss  %xmm0,%xmm1
movss  %xmm1,0x4(%rsp)
mov    $0x2,%edi
call   1040 <pow@plt>
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
movss  0xea9(%rip),%xmm0
movss  0x4(%rsp),%xmm1
ucomiss %xmm1,%xmm0
ja     11d5 <dota+0xb5>
movaps %xmm1,%xmm0
ucomiss 0xe98(%rip),%xmm1
ja     11d5 <dota+0xb5>
movss  0xe92(%rip),%xmm1
addss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
mov    %eax,%ebx
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1040 <pow@plt>
add    %ebx,%eax
add    $0xfffffffc,%eax
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x8(%rsp),%xmm1
divss  %xmm0,%xmm1
movss  %xmm1,0x8(%rsp)
movss  0x4(%rsp),%xmm0
call   1030 <acos@plt>
mulss  0x8(%rsp),%xmm0
add    $0x10,%rsp
pop    %rbx
ret
movss  0x4(%rsp),%xmm0
call   1030 <acos@plt>
movss  0x4(%rsp),%xmm0
jmp    116e <dota+0x4e>

LLVM IR (-O0):
define float @dota(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 = fadd float %5, %6
%8 = fsub float %7, 2.000000e+00
%9 = load float, float* %3
%10 = call i32 @pow(float %9, i32 2)
%11 = load float, float* %3
%12 = call i32 @pow(float %11, i32 2)
%13 = add nsw i32 %10, %12
%14 = sub nsw i32 %13, 4
%15 = sitofp i32 %14 to float
%16 = fdiv float %8, %15
%17 = load float, float* %3
%18 = load float, float* %4
%19 = fadd float %17, %18
%20 = call float @acos(float %19)
%21 = fmul float %16, %20
%22 = load float, float* %3
%23 = load float, float* %4
%24 = fadd float %22, %23
%25 = fsub float %24, 2.000000e+00
%26 = load float, float* %3
%27 = call i32 @pow(float %26, i32 2)
%28 = load float, float* %3
%29 = call i32 @pow(float %28, i32 2)
%30 = add nsw i32 %27, %29
%31 = sub nsw i32 %30, 4
%32 = sitofp i32 %31 to float
%33 = fdiv float %25, %32
%34 = load float, float* %3
%35 = load float, float* %4
%36 = fadd float %34, %35
%37 = call float @acos(float %36)
%38 = fmul float %33, %37
ret float %38
}

LLVM IR (-O2):
define float @dota(float %0, float %1) {
%3 = fadd float %0, %1
%4 = tail call i32 @pow(float %0, i32 2)
%5 = tail call i32 @pow(float %0, i32 2)
%6 = fcmp ogt float %3, 1.000000e+00
%7 = fcmp olt float %3, -1.000000e+00
%8 = or i1 %7, %6
br i1 %8, label %9, label %11
9: ; preds = %2
%10 = tail call float @acos(float %3)
br label %11
11: ; preds = %2, %9
%12 = fadd float %3, -2.000000e+00
%13 = tail call i32 @pow(float %0, i32 2)
%14 = tail call i32 @pow(float %0, i32 2)
%15 = add i32 %13, -4
%16 = add i32 %15, %14
%17 = sitofp i32 %16 to float
%18 = fdiv float %12, %17
%19 = tail call float @acos(float %3)
%20 = fmul float %19, %18
ret float %20
}