#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 C(int, int);
int CR(int, int);
int P(int, int);
int PR(int, int);
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  printf("PR(3, 2) = %d\n", PR(3, 2));
  printf("P(3, 2)  = %d\n", P(3, 2));
  printf("CR(3, 2) = %d\n", CR(3, 2));
  printf("C(3, 2)  = %d\n", C(3, 2));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x3,%edi
mov    $0x2,%esi
call   1050 <PR@plt>
mov    %eax,%esi
lea    0xe89(%rip),%rdi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <P@plt>
mov    %eax,%esi
lea    0xe7b(%rip),%rdi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1040 <CR@plt>
mov    %eax,%esi
lea    0xe6d(%rip),%rdi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1070 <C@plt>
mov    %eax,%esi
lea    0xe5f(%rip),%rdi
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x3,%edi
mov    $0x2,%esi
call   1050 <PR@plt>
lea    0xe99(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1030 <P@plt>
lea    0xe8b(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1040 <CR@plt>
lea    0xe7d(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
mov    $0x3,%edi
mov    $0x2,%esi
call   1070 <C@plt>
lea    0xe6f(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"PR(3, 2) = %d\0A\00"
@.str.1 = [15 x i8] c"P(3, 2) = %d\0A\00"
@.str.2 = [15 x i8] c"CR(3, 2) = %d\0A\00"
@.str.3 = [15 x i8] c"C(3, 2) = %d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @PR(i32 3, i32 2)
%3 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = call i32 @P(i32 3, i32 2)
%5 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%6 = call i32 @CR(i32 3, i32 2)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = call i32 @C(i32 3, i32 2)
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %8)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"PR(3, 2) = %d\0A\00"
@.str.1 = [15 x i8] c"P(3, 2) = %d\0A\00"
@.str.2 = [15 x i8] c"CR(3, 2) = %d\0A\00"
@.str.3 = [15 x i8] c"C(3, 2) = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @PR(i32 3, i32 2)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @P(i32 3, i32 2)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @CR(i32 3, i32 2)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @C(i32 3, i32 2)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %7)
ret i32 0
}