#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 */
typedef int /*<<< orphan*/ ui;
typedef int /*<<< orphan*/ s;
typedef int /*<<< orphan*/ l;
typedef int /*<<< orphan*/ i;
typedef int /*<<< orphan*/ f;
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ c;

/* Variables and functions */
int CHAR_MAX;
int CHAR_MIN;
int INT_MAX;
int INT_MIN;
int LONG_MAX;
int LONG_MIN;
int SHRT_MAX;
int SHRT_MIN;
int UINT_MAX;
int /*<<< orphan*/ printf(char *, int, int, ...);
int main() {
  int i;
  unsigned int ui;
  i = 10;
  ui = -4;
  printf("Eu sou o tipo int, tenho %d bytes e posso variar entre %d e %d, "
         "estou guardando o valor %d\n",
         sizeof(i), INT_MIN, INT_MAX, i);
  printf("Eu sou o tipo unsigned int, tenho %d bytes e posso variar entre %u e "
         "%u, estou guardando o valor %u\n",
         sizeof(ui), 0, UINT_MAX, ui);
  short s;
  s = 10;
  printf("Eu sou o tipo short, tenho %d bytes e posso variar entre %d e %d, "
         "estou guardando o valor %d\n",
         sizeof(s), SHRT_MIN, SHRT_MAX, s);
  long l;
  l = 2147483;
  printf("Eu sou o tipo long, tenho %d bytes e posso variar entre %ld e %ld, "
         "estou guardando o valor %ld\n",
         sizeof(l), LONG_MIN, LONG_MAX, l);
  float f;
  f = 1.3;
  printf("Eu sou o tipo float, tenho %d bytes e estou guardando o valor %f\n",
         sizeof(f), f);
  double d;
  d = 1.3;
  printf("Eu sou o tipo double, tenho %d bytes e estou guardando o valor %lf\n",
         sizeof(d), d);
  char c;
  c = 'A';
  printf("Eu sou o tipo char, tenho %d bytes e posso variar entre %d e %d, "
         "estou guardando o valor %c\n",
         sizeof(c), CHAR_MIN, CHAR_MAX, c);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movl   $0xfffffffc,-0xc(%rbp)
mov    0x2e8c(%rip),%rax
mov    (%rax),%edx
mov    0x2e9b(%rip),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%r8d
lea    0xec2(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e73(%rip),%rax
mov    (%rax),%ecx
mov    -0xc(%rbp),%r8d
lea    0xefe(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <printf@plt>
movw   $0xa,-0xe(%rbp)
mov    0x2e23(%rip),%rax
mov    (%rax),%edx
mov    0x2e12(%rip),%rax
mov    (%rax),%ecx
movswl -0xe(%rbp),%r8d
lea    0xf31(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movq   $0x20c49b,-0x18(%rbp)
mov    0x2e11(%rip),%rax
mov    (%rax),%edx
mov    0x2df0(%rip),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%r8
lea    0xf5e(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movss  0xe27(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
cvttss2si -0x1c(%rbp),%edx
lea    0xf99(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  0xdfa(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
cvttsd2si -0x28(%rbp),%edx
lea    0xfb6(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x41,-0x29(%rbp)
mov    0x2db2(%rip),%rax
mov    (%rax),%edx
mov    0x2db1(%rip),%rax
mov    (%rax),%ecx
movsbl -0x29(%rbp),%r8d
lea    0xfcc(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ea8(%rip),%rax
mov    (%rax),%edx
mov    0x2eb7(%rip),%rax
mov    (%rax),%ecx
lea    0xed6(%rip),%rdi
mov    $0x4,%esi
mov    $0xa,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%ecx
lea    0xf10(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
mov    $0xfffffffc,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e41(%rip),%rax
mov    (%rax),%edx
mov    0x2e30(%rip),%rax
mov    (%rax),%ecx
lea    0xf48(%rip),%rdi
mov    $0x2,%esi
mov    $0xa,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edx
mov    0x2e15(%rip),%rax
mov    (%rax),%ecx
lea    0xf7b(%rip),%rdi
mov    $0x20c49b,%r8d
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfc2(%rip),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
mov    0x2df2(%rip),%rax
mov    (%rax),%ecx
lea    0x1006(%rip),%rdi
mov    $0x1,%esi
mov    $0x41,%r8d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [92 x i8] c"Eu sou o tipo int, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.1 = [101 x i8] c"Eu sou o tipo unsigned int, tenho %d bytes e posso variar entre %u e %u, estou guardando o valor %u\0A\00"
@UINT_MAX = global i32 0
@.str.2 = [94 x i8] c"Eu sou o tipo short, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [96 x i8] c"Eu sou o tipo long, tenho %d bytes e posso variar entre %ld e %ld, estou guardando o valor %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.4 = [66 x i8] c"Eu sou o tipo float, tenho %d bytes e estou guardando o valor %f\0A\00"
@.str.5 = [68 x i8] c"Eu sou o tipo double, tenho %d bytes e estou guardando o valor %lf\0A\00"
@.str.6 = [93 x i8] c"Eu sou o tipo char, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %c\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i16
%5 = alloca i64
%6 = alloca float
%7 = alloca double
%8 = alloca i8
store i32 0, i32* %1
store i32 10, i32* %2
store i32 -4, i32* %3
%9 = load i32, i32* @INT_MIN
%10 = load i32, i32* @INT_MAX
%11 = load i32, i32* %2
%12 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i32 4, i32 %9, i32 %10, i32 %11)
%13 = load i32, i32* @UINT_MAX
%14 = load i32, i32* %3
%15 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 0, i32 %13, i32 %14)
store i16 10, i16* %4
%16 = load i32, i32* @SHRT_MIN
%17 = load i32, i32* @SHRT_MAX
%18 = load i16, i16* %4
%19 = sext i16 %18 to i32
%20 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 %16, i32 %17, i32 %19)
store i64 2147483, i64* %5
%21 = load i32, i32* @LONG_MIN
%22 = load i32, i32* @LONG_MAX
%23 = load i64, i64* %5
%24 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 %21, i32 %22, i64 %23)
store float 0x3FF4CCCCC0000000, float* %6
%25 = load float, float* %6
%26 = fptosi float %25 to i32
%27 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i32 4, i32 %26)
store double 1.300000e+00, double* %7
%28 = load double, double* %7
%29 = fptosi double %28 to i32
%30 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), i32 8, i32 %29)
store i8 65, i8* %8
%31 = load i32, i32* @CHAR_MIN
%32 = load i32, i32* @CHAR_MAX
%33 = load i8, i8* %8
%34 = sext i8 %33 to i32
%35 = call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 %31, i32 %32, i32 %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [92 x i8] c"Eu sou o tipo int, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %d\0A\00"
@INT_MIN = global i32 0
@INT_MAX = global i32 0
@.str.1 = [101 x i8] c"Eu sou o tipo unsigned int, tenho %d bytes e posso variar entre %u e %u, estou guardando o valor %u\0A\00"
@UINT_MAX = global i32 0
@.str.2 = [94 x i8] c"Eu sou o tipo short, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %d\0A\00"
@SHRT_MIN = global i32 0
@SHRT_MAX = global i32 0
@.str.3 = [96 x i8] c"Eu sou o tipo long, tenho %d bytes e posso variar entre %ld e %ld, estou guardando o valor %ld\0A\00"
@LONG_MIN = global i32 0
@LONG_MAX = global i32 0
@.str.4 = [66 x i8] c"Eu sou o tipo float, tenho %d bytes e estou guardando o valor %f\0A\00"
@.str.5 = [68 x i8] c"Eu sou o tipo double, tenho %d bytes e estou guardando o valor %lf\0A\00"
@.str.6 = [93 x i8] c"Eu sou o tipo char, tenho %d bytes e posso variar entre %d e %d, estou guardando o valor %c\0A\00"
@CHAR_MIN = global i32 0
@CHAR_MAX = global i32 0
define i32 @main() {
%1 = load i32, i32* @INT_MIN
%2 = load i32, i32* @INT_MAX
%3 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i32 4, i32 %1, i32 %2, i32 10)
%4 = load i32, i32* @UINT_MAX
%5 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.1, i64 0, i64 0), i32 4, i32 0, i32 %4, i32 -4)
%6 = load i32, i32* @SHRT_MIN
%7 = load i32, i32* @SHRT_MAX
%8 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.2, i64 0, i64 0), i32 2, i32 %6, i32 %7, i32 10)
%9 = load i32, i32* @LONG_MIN
%10 = load i32, i32* @LONG_MAX
%11 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 %9, i32 %10, i64 2147483)
%12 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.4, i64 0, i64 0), i32 4, i32 1)
%13 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.5, i64 0, i64 0), i32 8, i32 1)
%14 = load i32, i32* @CHAR_MIN
%15 = load i32, i32* @CHAR_MAX
%16 = tail call i32 (i8*, i32, i32, ...) @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 %14, i32 %15, i32 65)
ret i32 0
}