#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 *, ...);
int /*<<< orphan*/ scanf(char *, unsigned char *);
int main() {
  unsigned char n;
  printf("Please enter an integer (1 < n < 100): ");
  scanf("%u", &n);
  int i;
  long double result = 1;
  for (i = 2; i <= n; i++) {
    result = (result * (n + i)) / i;
  }
  printf("%.0llf", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    -0x5(%rbp),%rsi
call   1040 <scanf@plt>
fld1
fstpt  -0x20(%rbp)
movl   $0x2,-0xc(%rbp)
mov    -0xc(%rbp),%eax
movzbl -0x5(%rbp),%ecx
cmp    %ecx,%eax
jg     1195 <main+0x75>
fldt   -0x20(%rbp)
movzbl -0x5(%rbp),%ecx
mov    -0xc(%rbp),%eax
add    %eax,%ecx
mov    %ecx,-0x24(%rbp)
fildl  -0x24(%rbp)
fmulp  %st,%st(1)
mov    %eax,-0x28(%rbp)
fildl  -0x28(%rbp)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1159 <main+0x39>
fldt   -0x20(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe87(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
lea    0xed9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
lea    0x13(%rsp),%rsi
call   1040 <scanf@plt>
movzbl 0x13(%rsp),%r9d
fld1
cmp    $0x2,%r9d
fldz
jb     1207 <main+0xe7>
fstp   %st(1)
fstp   %st(0)
lea    -0x1(%r9),%r8d
mov    $0x2,%ecx
fld1
fldz
cmp    $0x2,%r9b
fldz
je     11e5 <main+0xc5>
fstp   %st(1)
fstp   %st(0)
fstp   %st(0)
lea    0x3(%r9),%edx
mov    %r8d,%esi
and    $0xfffffffe,%esi
neg    %esi
mov    $0x2,%edi
flds   0xe73(%rip)
fld1
fldz
fxch   %st(2)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
fstp   %st(2)
lea    -0x1(%rdx),%ecx
mov    %ecx,0x20(%rsp)
fimull 0x20(%rsp)
fdiv   %st(1),%st
lea    0x1(%rdi),%ecx
mov    %edx,0x1c(%rsp)
fimull 0x1c(%rsp)
mov    %ecx,0x24(%rsp)
fidivl 0x24(%rsp)
fxch   %st(1)
fadds  0xe36(%rip)
add    $0x2,%edx
mov    %edi,%ecx
add    $0x2,%ecx
lea    (%rsi,%rdi,1),%eax
add    $0x2,%eax
mov    %ecx,%edi
fld    %st(1)
cmp    $0x2,%eax
fxch   %st(2)
fxch   %st(1)
jne    11a0 <main+0x80>
fstp   %st(0)
test   $0x1,%r8b
fxch   %st(1)
je     1207 <main+0xe7>
fstp   %st(1)
add    %ecx,%r9d
mov    %r9d,0x18(%rsp)
fimull 0x18(%rsp)
mov    %ecx,0x14(%rsp)
fidivl 0x14(%rsp)
fldz
fstp   %st(0)
fstpt  (%rsp)
lea    0xe1c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [40 x i8] c"Please enter an integer (1 < n < 100): \00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [7 x i8] c"%.0llf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca x86_fp80
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %2)
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %4
store i32 2, i32* %3
br label %7
7: ; preds = %23, %0
%8 = load i32, i32* %3
%9 = load i8, i8* %2
%10 = zext i8 %9 to i32
%11 = icmp sle i32 %8, %10
br i1 %11, label %12, label %26
12: ; preds = %7
%13 = load x86_fp80, x86_fp80* %4
%14 = load i8, i8* %2
%15 = zext i8 %14 to i32
%16 = load i32, i32* %3
%17 = add nsw i32 %15, %16
%18 = sitofp i32 %17 to x86_fp80
%19 = fmul x86_fp80 %13, %18
%20 = load i32, i32* %3
%21 = sitofp i32 %20 to x86_fp80
%22 = fdiv x86_fp80 %19, %21
store x86_fp80 %22, x86_fp80* %4
br label %23
23: ; preds = %12
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %7
26: ; preds = %7
%27 = load x86_fp80, x86_fp80* %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), x86_fp80 %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [40 x i8] c"Please enter an integer (1 < n < 100): \00"
@.str.1 = [3 x i8] c"%u\00"
@.str.2 = [7 x i8] c"%.0llf\00"
define i32 @main() {
%1 = alloca i8
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%4 = load i8, i8* %1
%5 = zext i8 %4 to i32
%6 = icmp ult i8 %4, 2
br i1 %6, label %42, label %7
7: ; preds = %0
%8 = add nsw i32 %5, -1
%9 = and i32 %8, 1
%10 = icmp eq i8 %4, 2
br i1 %10, label %31, label %11
11: ; preds = %7
%12 = and i32 %8, -2
br label %13
13: ; preds = %13, %11
%14 = phi x86_fp80 [ 0xK3FFF8000000000000000, %11 ], [ %27, %13 ]
%15 = phi i32 [ 2, %11 ], [ %28, %13 ]
%16 = phi i32 [ 0, %11 ], [ %29, %13 ]
%17 = add nuw nsw i32 %15, %5
%18 = sitofp i32 %17 to x86_fp80
%19 = fmul x86_fp80 %14, %18
%20 = sitofp i32 %15 to x86_fp80
%21 = fdiv x86_fp80 %19, %20
%22 = or i32 %15, 1
%23 = add nuw nsw i32 %22, %5
%24 = sitofp i32 %23 to x86_fp80
%25 = fmul x86_fp80 %21, %24
%26 = sitofp i32 %22 to x86_fp80
%27 = fdiv x86_fp80 %25, %26
%28 = add nuw nsw i32 %15, 2
%29 = add i32 %16, 2
%30 = icmp eq i32 %29, %12
br i1 %30, label %31, label %13
31: ; preds = %13, %7
%32 = phi x86_fp80 [ undef, %7 ], [ %27, %13 ]
%33 = phi x86_fp80 [ 0xK3FFF8000000000000000, %7 ], [ %27, %13 ]
%34 = phi i32 [ 2, %7 ], [ %28, %13 ]
%35 = icmp eq i32 %9, 0
br i1 %35, label %42, label %36
36: ; preds = %31
%37 = add nuw nsw i32 %34, %5
%38 = sitofp i32 %37 to x86_fp80
%39 = fmul x86_fp80 %33, %38
%40 = sitofp i32 %34 to x86_fp80
%41 = fdiv x86_fp80 %39, %40
br label %42
42: ; preds = %36, %31, %0
%43 = phi x86_fp80 [ 0xK3FFF8000000000000000, %0 ], [ %32, %31 ], [ %41, %36 ]
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), x86_fp80 %43)
ret i32 0
}