int main(int argc, char *argv[]) {
  int distance = 100;
  float power = 2.345;
  double super_power = 56789;
  char initial = 'A';
  char first_name[] = "Zed";
  char last_name[] = "Shaw";
  printf("You are %d miles away.\n", distance + 10);
  printf("You have %f levels of power.\n", power + 20);
  printf("You have %f awesome super powers.\n", super_power);
  printf("I have an initial %c.\n", initial);
  printf("I have a first name %s.\n", first_name);
  printf("I have a last name %s. \n", last_name);
  printf("My whole name is %s %c. %s.\n", first_name, initial, last_name);
  int bugs = 100;
  double bug_rate = 1.2;
  printf("You have %d bugs at the imaginary rate of %f.\n", bugs * 2, bug_rate);
  unsigned long universe_of_defects =
      2048L * 1024L * 1024L * 1024L * 1024L * 1024L;
  printf("The entire universe has %ld bugs.\n", universe_of_defects);
  double expected_bugs = bugs * bug_rate;
  printf("You are expected to have %f bugs.\n", expected_bugs);
  double part_of_universe = expected_bugs / universe_of_defects;
  printf("That is only a %e portion of the universe.\n", part_of_universe);
  char nul_byte = '\0';
  int care_percentage = bugs * nul_byte;
  printf("Which means you should care %d%%.\n", care_percentage);
  printf("Take a byte out of crime, you %s.\n", nul_byte);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x64,-0x14(%rbp)
movl   $0x4016147b,-0x18(%rbp)
movabs $0x40ebbaa000000000,%rax
ba eb 40
mov    %rax,-0x20(%rbp)
movb   $0x41,-0x21(%rbp)
movl   $0x64655a,-0x28(%rbp)
movb   $0x0,-0x2c(%rbp)
movl   $0x77616853,-0x30(%rbp)
mov    -0x14(%rbp),%esi
add    $0xa,%esi
lea    0xed1(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x62(%rbp)
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
movss  0xe81(%rip),%xmm1
addss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec3(%rip),%rdi
mov    $0x1,%al
mov    %al,-0x61(%rbp)
call   1030 <printf@plt>
mov    -0x61(%rbp),%al
movsd  -0x20(%rbp),%xmm0
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x62(%rbp),%al
movsbl -0x21(%rbp),%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x62(%rbp),%al
lea    0xee0(%rip),%rdi
lea    -0x28(%rbp),%rsi
mov    %rsi,-0x78(%rbp)
call   1030 <printf@plt>
mov    -0x62(%rbp),%al
lea    0xee2(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    %rsi,-0x70(%rbp)
call   1030 <printf@plt>
mov    -0x78(%rbp),%rsi
mov    -0x70(%rbp),%rcx
mov    -0x62(%rbp),%al
movsbl -0x21(%rbp),%edx
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    -0x61(%rbp),%al
movl   $0x64,-0x34(%rbp)
movabs $0x3ff3333333333333,%rcx
33 f3 3f
mov    %rcx,-0x40(%rbp)
mov    -0x34(%rbp),%esi
add    %esi,%esi
movsd  -0x40(%rbp),%xmm0
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x62(%rbp),%al
movabs $0x2000000000000000,%rcx
mov    %rcx,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x61(%rbp),%al
cvtsi2sdl -0x34(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x50(%rbp),%xmm0
movaps 0xd86(%rip),%xmm2
movq   -0x48(%rbp),%xmm1
punpckldq %xmm2,%xmm1
movapd 0xd85(%rip),%xmm2
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
lea    0xeae(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movb   $0x0,-0x59(%rbp)
mov    -0x34(%rbp),%eax
movsbl -0x59(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%esi
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x59(%rbp),%esi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movl   $0x64655a,0x14(%rsp)
movb   $0x0,0x10(%rsp)
movl   $0x77616853,0xc(%rsp)
77
lea    0xefa(%rip),%rdi
mov    $0x6e,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeff(%rip),%rdi
movsd  0xeb2(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
movsd  0xea4(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf18(%rip),%rdi
lea    0x14(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
lea    0xc(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
mov    %r14,%rsi
mov    $0x41,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
movsd  0xe3e(%rip),%xmm0
mov    $0xc8,%esi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
movabs $0x2000000000000000,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
movsd  0xe13(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf4e(%rip),%rdi
movsd  0xe05(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.first_name = [4 x i8] c"Zed\00"
@__const.main.last_name = [5 x i8] c"Shaw\00"
@.str = [24 x i8] c"You are %d miles away.\0A\00"
@.str.1 = [30 x i8] c"You have %f levels of power.\0A\00"
@.str.2 = [35 x i8] c"You have %f awesome super powers.\0A\00"
@.str.3 = [23 x i8] c"I have an initial %c.\0A\00"
@.str.4 = [25 x i8] c"I have a first name %s.\0A\00"
@.str.5 = [25 x i8] c"I have a last name %s. \0A\00"
@.str.6 = [29 x i8] c"My whole name is %s %c. %s.\0A\00"
@.str.7 = [47 x i8] c"You have %d bugs at the imaginary rate of %f.\0A\00"
@.str.8 = [35 x i8] c"The entire universe has %ld bugs.\0A\00"
@.str.9 = [35 x i8] c"You are expected to have %f bugs.\0A\00"
@.str.10 = [44 x i8] c"That is only a %e portion of the universe.\0A\00"
@.str.11 = [35 x i8] c"Which means you should care %d%%.\0A\00"
@.str.12 = [35 x i8] c"Take a byte out of crime, you %s.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca float
%8 = alloca double
%9 = alloca i8
%10 = alloca [4 x i8]
%11 = alloca [5 x i8]
%12 = alloca i32
%13 = alloca double
%14 = alloca i64
%15 = alloca double
%16 = alloca double
%17 = alloca i8
%18 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 100, i32* %6
store float 0x4002C28F60000000, float* %7
store double 5.678900e+04, double* %8
store i8 65, i8* %9
%19 = bitcast [4 x i8]* %10 to i8*
%20 = bitcast [5 x i8]* %11 to i8*
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 10
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 %22)
%24 = load float, float* %7
%25 = fadd float %24, 2.000000e+01
%26 = fpext float %25 to double
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), double %26)
%28 = load double, double* %8
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), double %28)
%30 = load i8, i8* %9
%31 = sext i8 %30 to i32
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 %31)
%33 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %35)
%37 = getelementptr inbounds [4 x i8], [4 x i8]* %10, i64 0, i64 0
%38 = load i8, i8* %9
%39 = sext i8 %38 to i32
%40 = getelementptr inbounds [5 x i8], [5 x i8]* %11, i64 0, i64 0
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i8* %37, i32 %39, i8* %40)
store i32 100, i32* %12
store double 1.200000e+00, double* %13
%42 = load i32, i32* %12
%43 = mul nsw i32 %42, 2
%44 = load double, double* %13
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i32 %43, double %44)
store i64 2305843009213693952, i64* %14
%46 = load i64, i64* %14
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i64 %46)
%48 = load i32, i32* %12
%49 = sitofp i32 %48 to double
%50 = load double, double* %13
%51 = fmul double %49, %50
store double %51, double* %15
%52 = load double, double* %15
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), double %52)
%54 = load double, double* %15
%55 = load i64, i64* %14
%56 = uitofp i64 %55 to double
%57 = fdiv double %54, %56
store double %57, double* %16
%58 = load double, double* %16
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double %58)
store i8 0, i8* %17
%60 = load i32, i32* %12
%61 = load i8, i8* %17
%62 = sext i8 %61 to i32
%63 = mul nsw i32 %60, %62
store i32 %63, i32* %18
%64 = load i32, i32* %18
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32 %64)
%66 = load i8, i8* %17
%67 = sext i8 %66 to i32
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 %67)
ret i32 0
}

LLVM IR (-O2):
@__const.main.last_name = [5 x i8] c"Shaw\00"
@.str = [24 x i8] c"You are %d miles away.\0A\00"
@.str.1 = [30 x i8] c"You have %f levels of power.\0A\00"
@.str.2 = [35 x i8] c"You have %f awesome super powers.\0A\00"
@.str.3 = [23 x i8] c"I have an initial %c.\0A\00"
@.str.4 = [25 x i8] c"I have a first name %s.\0A\00"
@.str.5 = [25 x i8] c"I have a last name %s. \0A\00"
@.str.6 = [29 x i8] c"My whole name is %s %c. %s.\0A\00"
@.str.7 = [47 x i8] c"You have %d bugs at the imaginary rate of %f.\0A\00"
@.str.8 = [35 x i8] c"The entire universe has %ld bugs.\0A\00"
@.str.9 = [35 x i8] c"You are expected to have %f bugs.\0A\00"
@.str.10 = [44 x i8] c"That is only a %e portion of the universe.\0A\00"
@.str.11 = [35 x i8] c"Which means you should care %d%%.\0A\00"
@.str.12 = [35 x i8] c"Take a byte out of crime, you %s.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [5 x i8]
%5 = bitcast i32* %3 to i8*
store i32 6579546, i32* %3
%6 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i32 110)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), double 0x40365851E0000000)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0), double 5.678900e+04)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0), i32 65)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32* %3)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32* %3, i32 65, i8* %6)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0), i32 200, double 1.200000e+00)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0), i64 2305843009213693952)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), double 1.200000e+02)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double 0x3C8E000000000000)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32 0)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0), i32 0)
ret i32 0
}