#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*/ C(double, double);
int /*<<< orphan*/ printf(char *, int /*<<< orphan*/);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double m, n;
  while (1) {
    scanf("%lf%lf", &m, &n);
    if (m == 0 && n == 0)
      break;
    printf("%.0lf\n", m < n ? C(m + n, m) : C(m + n, n));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1050 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1188 <main+0x58>
jp     1188 <main+0x58>
movsd  -0x18(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1188 <main+0x58>
jp     1188 <main+0x58>
jmp    11e3 <main+0xb3>
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    11b8 <main+0x88>
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
call   1040 <C@plt>
mov    %eax,-0x1c(%rbp)
jmp    11cf <main+0x9f>
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
call   1040 <C@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe2e(%rip),%rdi
call   1030 <printf@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xebe(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
movsd  0x10(%rsp),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm2
jne    1171 <main+0x41>
jp     1171 <main+0x41>
ucomisd %xmm0,%xmm2
jne    1171 <main+0x41>
jnp    11d9 <main+0xa9>
lea    0xe8f(%rip),%r14
lea    0xe81(%rip),%r15
lea    0x10(%rsp),%r12
lea    0x8(%rsp),%rbx
nopl   0x0(%rax)
movapd %xmm1,%xmm0
addsd  %xmm2,%xmm0
minsd  %xmm2,%xmm1
call   1040 <C@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1050 <scanf@plt>
xorpd  %xmm0,%xmm0
movsd  0x10(%rsp),%xmm1
ucomisd %xmm0,%xmm1
movsd  0x8(%rsp),%xmm2
jne    1190 <main+0x60>
jp     1190 <main+0x60>
ucomisd %xmm0,%xmm2
jne    1190 <main+0x60>
jp     1190 <main+0x60>
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 = [7 x i8] c"%.0lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
br label %4
4: ; preds = %0, %28
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%6 = load double, double* %2
%7 = fcmp oeq double %6, 0.000000e+00
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = load double, double* %3
%10 = fcmp oeq double %9, 0.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %8
br label %31
12: ; preds = %8, %4
%13 = load double, double* %2
%14 = load double, double* %3
%15 = fcmp olt double %13, %14
br i1 %15, label %16, label %22
16: ; preds = %12
%17 = load double, double* %2
%18 = load double, double* %3
%19 = fadd double %17, %18
%20 = load double, double* %2
%21 = call i32 @C(double %19, double %20)
br label %28
22: ; preds = %12
%23 = load double, double* %2
%24 = load double, double* %3
%25 = fadd double %23, %24
%26 = load double, double* %3
%27 = call i32 @C(double %25, double %26)
br label %28
28: ; preds = %22, %16
%29 = phi i32 [ %21, %16 ], [ %27, %22 ]
%30 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %29)
br label %4
31: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [7 x i8] c"%.0lf\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 i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fcmp oeq double %6, 0.000000e+00
%8 = load double, double* %2
%9 = fcmp oeq double %8, 0.000000e+00
%10 = select i1 %7, i1 %9, i1 false
br i1 %10, label %25, label %11
11: ; preds = %0, %11
%12 = phi double [ %22, %11 ], [ %8, %0 ]
%13 = phi double [ %20, %11 ], [ %6, %0 ]
%14 = fcmp olt double %13, %12
%15 = fadd double %13, %12
%16 = select i1 %14, double %13, double %12
%17 = call i32 @C(double %15, double %16)
%18 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%19 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%20 = load double, double* %1
%21 = fcmp oeq double %20, 0.000000e+00
%22 = load double, double* %2
%23 = fcmp oeq double %22, 0.000000e+00
%24 = select i1 %21, i1 %23, i1 false
br i1 %24, label %25, label %11
25: ; preds = %11, %0
ret i32 0
}