#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 = 10;
  int height = 72;
  char quantity = '1';
  char quantities[3] = "10";
  int bros = 5;
  float floaties = 9.99;
  double cheeseburger = 50.52345;
  printf("I am %d years old \n", age);
  printf("I am %d inches tall\n", height);
  printf("I am %c bird.\n", quantity);
  printf("Stop (form) feeding noob!!\f");
  printf("I am %s birds.\n", quantities);
  printf("I am %i brothers deep outchea.\n", bros);
  printf("Alert alert!!\a");
  printf("Return some \r carriages!\n");
  printf("--------------------------------\n");
  printf("Where da \v tabs at\t\n");
  printf("--------------------------------\n");
  printf("My octals are like %o!!\n", bros);
  printf("My hexas are crazy bruh, i'm talking %x, bruh...\n", height);
  printf("I got them floats goin for %f!!!\n", floaties);
  printf("Yo dawg i got these cheeseburgers...%lf a pop...\n", cheeseburger);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0x48,-0xc(%rbp)
movb   $0x31,-0xd(%rbp)
mov    0xed4(%rip),%ax
mov    %ax,-0x10(%rbp)
mov    0xecc(%rip),%al
mov    %al,-0xe(%rbp)
movl   $0x5,-0x14(%rbp)
movss  0xeb4(%rip),%xmm0
movss  %xmm0,-0x18(%rbp)
movsd  0xe9f(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0xd(%rbp),%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x10(%rbp),%rsi
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0xc(%rbp),%esi
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xefb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x20(%rbp),%xmm0
lea    0xf0a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movb   $0x0,0xe(%rsp)
movw   $0x3031,0xc(%rsp)
lea    0xedb(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x31,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xef2(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb3(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
call   1030 <puts@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xec4(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x48,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee9(%rip),%rdi
movsd  0xdf0(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xef5(%rip),%rdi
movsd  0xde2(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.quantities = [3 x i8] c"10\00"
@.str = [20 x i8] c"I am %d years old \0A\00"
@.str.1 = [21 x i8] c"I am %d inches tall\0A\00"
@.str.2 = [15 x i8] c"I am %c bird.\0A\00"
@.str.3 = [28 x i8] c"Stop (form) feeding noob!!\0C\00"
@.str.4 = [16 x i8] c"I am %s birds.\0A\00"
@.str.5 = [32 x i8] c"I am %i brothers deep outchea.\0A\00"
@.str.6 = [15 x i8] c"Alert alert!!\07\00"
@.str.7 = [26 x i8] c"Return some \0D carriages!\0A\00"
@.str.8 = [34 x i8] c"--------------------------------\0A\00"
@.str.9 = [21 x i8] c"Where da \0B tabs at\09\0A\00"
@.str.10 = [25 x i8] c"My octals are like %o!!\0A\00"
@.str.11 = [50 x i8] c"My hexas are crazy bruh, i'm talking %x, bruh...\0A\00"
@.str.12 = [34 x i8] c"I got them floats goin for %f!!!\0A\00"
@.str.13 = [50 x i8] c"Yo dawg i got these cheeseburgers...%lf a pop...\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i8
%5 = alloca [3 x i8]
%6 = alloca i32
%7 = alloca float
%8 = alloca double
store i32 0, i32* %1
store i32 10, i32* %2
store i32 72, i32* %3
store i8 49, i8* %4
%9 = bitcast [3 x i8]* %5 to i8*
store i32 5, i32* %6
store float 0x4023FAE140000000, float* %7
store double 0x4049430068DB8BAC, double* %8
%10 = load i32, i32* %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* %3
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = load i8, i8* %4
%15 = sext i8 %14 to i32
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%18 = getelementptr inbounds [3 x i8], [3 x i8]* %5, i64 0, i64 0
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %18)
%20 = load i32, i32* %6
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.8, i64 0, i64 0))
%27 = load i32, i32* %6
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %27)
%29 = load i32, i32* %3
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0), i32 %29)
%31 = load float, float* %7
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), double %32)
%34 = load double, double* %8
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), double %34)
ret i32 0
}

LLVM IR (-O2):
@__const.main.quantities = [3 x i8] c"10\00"
@.str = [20 x i8] c"I am %d years old \0A\00"
@.str.1 = [21 x i8] c"I am %d inches tall\0A\00"
@.str.2 = [15 x i8] c"I am %c bird.\0A\00"
@.str.3 = [28 x i8] c"Stop (form) feeding noob!!\0C\00"
@.str.4 = [16 x i8] c"I am %s birds.\0A\00"
@.str.5 = [32 x i8] c"I am %i brothers deep outchea.\0A\00"
@.str.6 = [15 x i8] c"Alert alert!!\07\00"
@.str.10 = [25 x i8] c"My octals are like %o!!\0A\00"
@.str.11 = [50 x i8] c"My hexas are crazy bruh, i'm talking %x, bruh...\0A\00"
@.str.12 = [34 x i8] c"I got them floats goin for %f!!!\0A\00"
@.str.13 = [50 x i8] c"Yo dawg i got these cheeseburgers...%lf a pop...\0A\00"
@str = [25 x i8] c"Return some \0D carriages!\00"
@str.15 = [20 x i8] c"Where da \0B tabs at\09\00"
@str.16 = [33 x i8] c"--------------------------------\00"
define i32 @main() {
%1 = alloca [3 x i8]
%2 = getelementptr inbounds [3 x i8], [3 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 10)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i32 72)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 49)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %2)
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i32 5)
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.15, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.16, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 5)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0), i32 72)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.12, i64 0, i64 0), double 0x4023FAE140000000)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.13, i64 0, i64 0), double 0x4049430068DB8BAC)
ret i32 0
}