#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 main() {
  int age = 69;
  char my_name[] = "Curious George";
  printf("I am %d years old.\n", 19);
  printf("My name is %s.\n", "Hudson");
  printf("My monkey, %s, is %d years old.\n", my_name, age);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x45,-0x8(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x17(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0xf(%rbp)
mov    0xecb(%rip),%ax
mov    %ax,-0xb(%rbp)
mov    0xec3(%rip),%al
mov    %al,-0x9(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x13,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
lea    0xec4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x17(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x6567726f654720,%rax
mov    %rax,0xf(%rsp)
movabs $0x2073756f69727543,%rax
75 73 20
mov    %rax,0x8(%rsp)
lea    0xed6(%rip),%rdi
mov    $0x13,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
lea    0xee0(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x45,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.my_name = [15 x i8] c"Curious George\00"
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [16 x i8] c"My name is %s.\0A\00"
@.str.2 = [7 x i8] c"Hudson\00"
@.str.3 = [33 x i8] c"My monkey, %s, is %d years old.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [15 x i8]
store i32 0, i32* %1
store i32 69, i32* %2
%4 = bitcast [15 x i8]* %3 to i8*
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 19)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%7 = getelementptr inbounds [15 x i8], [15 x i8]* %3, i64 0, i64 0
%8 = load i32, i32* %2
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %7, i32 %8)
ret i32 0
}

LLVM IR (-O2):
@__const.main.my_name = [15 x i8] c"Curious George\00"
@.str = [20 x i8] c"I am %d years old.\0A\00"
@.str.1 = [16 x i8] c"My name is %s.\0A\00"
@.str.2 = [7 x i8] c"Hudson\00"
@.str.3 = [33 x i8] c"My monkey, %s, is %d years old.\0A\00"
define i32 @main() {
%1 = alloca [15 x i8]
%2 = getelementptr inbounds [15 x i8], [15 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 19)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i8* %2, i32 69)
ret i32 0
}