#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*/ printf(char *, double);
double scanf(char *, double *, double *);
main() {
  double a, b, c;
  for (; scanf("%lf%lf", &a, &b), a += b; printf("%.0f\n", c))
    for (c = 1, b = a - b > b ? b : a - b; b; c *= a-- / b--)
      ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x18(%rbp),%xmm0
addsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    116a <main+0x4a>
jp     116a <main+0x4a>
jmp    1236 <main+0x116>
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
ucomisd -0x18(%rbp),%xmm0
jbe    119b <main+0x7b>
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
jmp    11aa <main+0x8a>
movsd  -0x10(%rbp),%xmm0
subsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11d1 <main+0xb1>
jp     11d1 <main+0xb1>
jmp    121b <main+0xfb>
jmp    11d6 <main+0xb6>
movsd  -0x10(%rbp),%xmm0
movsd  0xe25(%rip),%xmm2
movaps %xmm0,%xmm1
addsd  %xmm2,%xmm1
movsd  %xmm1,-0x10(%rbp)
movsd  -0x18(%rbp),%xmm1
movsd  0xe0c(%rip),%xmm3
movaps %xmm1,%xmm2
addsd  %xmm3,%xmm2
movsd  %xmm2,-0x18(%rbp)
divsd  %xmm1,%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    11b4 <main+0x94>
jmp    1220 <main+0x100>
movsd  -0x20(%rbp),%xmm0
lea    0xdeb(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xede(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x10(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
xorpd  %xmm4,%xmm4
ucomisd %xmm4,%xmm2
jne    1167 <main+0x47>
jnp    122d <main+0x10d>
movsd  0xe99(%rip),%xmm5
lea    0xea1(%rip),%r14
lea    0xe93(%rip),%r15
lea    0x8(%rsp),%r12
lea    0x10(%rsp),%rbx
jmp    11d0 <main+0xb0>
nopl   0x0(%rax)
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
movsd  0xe5a(%rip),%xmm5
xorpd  %xmm4,%xmm4
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x8(%rsp)
ucomisd %xmm4,%xmm2
jne    11d0 <main+0xb0>
jnp    122d <main+0x10d>
movapd %xmm2,%xmm0
subsd  %xmm1,%xmm0
minsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
ucomisd %xmm4,%xmm1
movsd  0xe12(%rip),%xmm0
jne    11f2 <main+0xd2>
jnp    1190 <main+0x70>
movsd  0xe06(%rip),%xmm0
nopw   0x0(%rax,%rax,1)
movapd %xmm2,%xmm3
addsd  %xmm5,%xmm2
divsd  %xmm1,%xmm3
addsd  %xmm5,%xmm1
mulsd  %xmm3,%xmm0
ucomisd %xmm4,%xmm1
jne    1200 <main+0xe0>
jp     1200 <main+0xe0>
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x10(%rsp)
jmp    1190 <main+0x70>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [6 x i8] c"%.0f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
store i32 0, i32* %1
br label %5
5: ; preds = %38, %0
%6 = call double @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%7 = load double, double* %3
%8 = load double, double* %2
%9 = fadd double %8, %7
store double %9, double* %2
%10 = fcmp une double %9, 0.000000e+00
br i1 %10, label %11, label %41
11: ; preds = %5
store double 1.000000e+00, double* %4
%12 = load double, double* %2
%13 = load double, double* %3
%14 = fsub double %12, %13
%15 = load double, double* %3
%16 = fcmp ogt double %14, %15
br i1 %16, label %17, label %19
17: ; preds = %11
%18 = load double, double* %3
br label %23
19: ; preds = %11
%20 = load double, double* %2
%21 = load double, double* %3
%22 = fsub double %20, %21
br label %23
23: ; preds = %19, %17
%24 = phi double [ %18, %17 ], [ %22, %19 ]
store double %24, double* %3
br label %25
25: ; preds = %29, %23
%26 = load double, double* %3
%27 = fcmp une double %26, 0.000000e+00
br i1 %27, label %28, label %37
28: ; preds = %25
br label %29
29: ; preds = %28
%30 = load double, double* %2
%31 = fadd double %30, -1.000000e+00
store double %31, double* %2
%32 = load double, double* %3
%33 = fadd double %32, -1.000000e+00
store double %33, double* %3
%34 = fdiv double %30, %32
%35 = load double, double* %4
%36 = fmul double %35, %34
store double %36, double* %4
br label %25
37: ; preds = %25
br label %38
38: ; preds = %37
%39 = load double, double* %4
%40 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %39)
br label %5
41: ; preds = %5
%42 = load i32, i32* %1
ret i32 %42
}

LLVM IR (-O2):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [6 x i8] c"%.0f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call double @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %2
%7 = load double, double* %1
%8 = fadd double %6, %7
store double %8, double* %1
%9 = fcmp une double %8, 0.000000e+00
br i1 %9, label %10, label %35
10: ; preds = %0, %27
%11 = phi double [ %33, %27 ], [ %8, %0 ]
%12 = phi double [ %31, %27 ], [ %6, %0 ]
%13 = fsub double %11, %12
%14 = fcmp ogt double %13, %12
%15 = select i1 %14, double %12, double %13
store double %15, double* %2
%16 = fcmp une double %15, 0.000000e+00
br i1 %16, label %17, label %27
17: ; preds = %10, %17
%18 = phi double [ %24, %17 ], [ 1.000000e+00, %10 ]
%19 = phi double [ %22, %17 ], [ %15, %10 ]
%20 = phi double [ %21, %17 ], [ %11, %10 ]
%21 = fadd double %20, -1.000000e+00
%22 = fadd double %19, -1.000000e+00
%23 = fdiv double %20, %19
%24 = fmul double %18, %23
%25 = fcmp une double %22, 0.000000e+00
br i1 %25, label %17, label %26
26: ; preds = %17
store double %21, double* %1
store double %22, double* %2
br label %27
27: ; preds = %26, %10
%28 = phi double [ %24, %26 ], [ 1.000000e+00, %10 ]
%29 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %28)
%30 = call double @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%31 = load double, double* %2
%32 = load double, double* %1
%33 = fadd double %31, %32
store double %33, double* %1
%34 = fcmp une double %33, 0.000000e+00
br i1 %34, label %10, label %35
35: ; preds = %27, %0
ret i32 0
}