#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 *, float, float, ...);
int main(void) {
  char c = 'a';
  int i = 1000000;
  float f = 2e1;
  printf("c : %c %hhd <- IMPORTANTE! Estudia la diferencia.\n", c, c);
  printf("i : %d |%10d|%-10d|\n", i, i, i);
  printf("f : %f |%10.2f|%+4.2f|\n", f, f, f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x61,-0x5(%rbp)
movl   $0xf4240,-0xc(%rbp)
movl   $0x41a00000,-0x10(%rbp)
movsbl -0x5(%rbp),%eax
cvtsi2ss %eax,%xmm1
movaps %xmm1,%xmm0
lea    0xebd(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
cvtsi2ssl -0xc(%rbp),%xmm0
cvtsi2ssl -0xc(%rbp),%xmm1
mov    -0xc(%rbp),%esi
lea    0xed5(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
movss  -0x10(%rbp),%xmm1
movss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xec9(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf00(%rip),%rdi
movss  0xee0(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
movss  0xecb(%rip),%xmm0
movaps %xmm0,%xmm1
mov    $0xf4240,%esi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
movss  0xeb1(%rip),%xmm0
movsd  0xeb1(%rip),%xmm2
movaps %xmm0,%xmm1
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [51 x i8] c"c : %c %hhd <- IMPORTANTE! Estudia la diferencia.\0A\00"
@.str.1 = [21 x i8] c"i : %d |%10d|%-10d|\0A\00"
@.str.2 = [24 x i8] c"f : %f |%10.2f|%+4.2f|\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i32
%4 = alloca float
store i32 0, i32* %1
store i8 97, i8* %2
store i32 1000000, i32* %3
store float 2.000000e+01, float* %4
%5 = load i8, i8* %2
%6 = sitofp i8 %5 to float
%7 = load i8, i8* %2
%8 = sitofp i8 %7 to float
%9 = call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), float %6, float %8)
%10 = load i32, i32* %3
%11 = sitofp i32 %10 to float
%12 = load i32, i32* %3
%13 = sitofp i32 %12 to float
%14 = load i32, i32* %3
%15 = call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), float %11, float %13, i32 %14)
%16 = load float, float* %4
%17 = load float, float* %4
%18 = load float, float* %4
%19 = fpext float %18 to double
%20 = call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), float %16, float %17, double %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [51 x i8] c"c : %c %hhd <- IMPORTANTE! Estudia la diferencia.\0A\00"
@.str.1 = [21 x i8] c"i : %d |%10d|%-10d|\0A\00"
@.str.2 = [24 x i8] c"f : %f |%10.2f|%+4.2f|\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str, i64 0, i64 0), float 9.700000e+01, float 9.700000e+01)
%2 = tail call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+06, float 1.000000e+06, i32 1000000)
%3 = tail call i32 (i8*, float, float, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), float 2.000000e+01, float 2.000000e+01, double 2.000000e+01)
ret i32 0
}