#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 *, char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  int age = 33;
  char name[50] = "Old Man Withers";
  printf("My name is %s and my age is %d.\n", "Aaron Rodriguez", 33);
  printf("My name is %s and my age is %d.\n\n", name, age);
  strcpy(name, "Like a Boss!!!");
  age = 290;
  while (age > 0) {
    printf("My name is %s and my age is %d.\n", name, age);
    age--;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x21,-0x8(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xeaf(%rip),%rsi
mov    $0x32,%edx
call   1050 <memcpy@plt>
lea    0xed0(%rip),%rdi
lea    0xeea(%rip),%rsi
mov    $0x21,%edx
call   1040 <printf@plt>
lea    -0x40(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xee2(%rip),%rdi
call   1040 <printf@plt>
lea    -0x40(%rbp),%rdi
lea    0xef4(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x122,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    11c8 <main+0x98>
lea    -0x40(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xe7d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x8(%rbp)
jmp    119d <main+0x6d>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x40,%rsp
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeb9(%rip),%xmm0
movaps %xmm0,(%rsp)
movw   $0x0,0x30(%rsp)
lea    0xed9(%rip),%r14
lea    0xef3(%rip),%rsi
mov    %r14,%rdi
mov    $0x21,%edx
call   1040 <printf@plt>
lea    0xeef(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
mov    $0x21,%edx
call   1040 <printf@plt>
lea    0xefa(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    $0x123,%ebp
nopl   0x0(%rax,%rax,1)
add    $0xffffffff,%ebp
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
call   1040 <printf@plt>
cmp    $0x1,%ebp
ja     11a0 <main+0x80>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.name = [50 x i8] c"Old Man Withers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [33 x i8] c"My name is %s and my age is %d.\0A\00"
@.str.1 = [16 x i8] c"Aaron Rodriguez\00"
@.str.2 = [34 x i8] c"My name is %s and my age is %d.\0A\0A\00"
@.str.3 = [15 x i8] c"Like a Boss!!!\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [50 x i8]
store i32 0, i32* %1
store i32 33, i32* %2
%4 = bitcast [50 x i8]* %3 to i8*
%5 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 33)
%6 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %6, i32 %7)
%9 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%10 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
store i32 290, i32* %2
br label %11
11: ; preds = %14, %0
%12 = load i32, i32* %2
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %11
%15 = getelementptr inbounds [50 x i8], [50 x i8]* %3, i64 0, i64 0
%16 = load i32, i32* %2
%17 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %15, i32 %16)
%18 = load i32, i32* %2
%19 = add nsw i32 %18, -1
store i32 %19, i32* %2
br label %11
20: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@__const.main.name = [50 x i8] c"Old Man Withers\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@.str = [33 x i8] c"My name is %s and my age is %d.\0A\00"
@.str.1 = [16 x i8] c"Aaron Rodriguez\00"
@.str.2 = [34 x i8] c"My name is %s and my age is %d.\0A\0A\00"
@.str.3 = [15 x i8] c"Like a Boss!!!\00"
define i32 @main() {
%1 = alloca [50 x i8]
%2 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 33)
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* %2, i32 33)
%5 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %6
6: ; preds = %0, %6
%7 = phi i32 [ 290, %0 ], [ %9, %6 ]
%8 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0), i8* %2, i32 %7)
%9 = add nsw i32 %7, -1
%10 = icmp ugt i32 %7, 1
br i1 %10, label %6, label %11
11: ; preds = %6
ret i32 0
}