#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() {
  printf("Size of character (signed or unsigned) variable is \t\t%d bytes \n",
         sizeof(char));
  printf(
      "Size of short integer (signed or unsigned) variable is \t\t%d bytes \n",
      sizeof(short int));
  printf("Size of integer (signed or unsigned) variable is \t\t%d bytes \n",
         sizeof(int));
  printf(
      "Size of long integer (signed or unsigned) variable is \t\t%d bytes \n",
      sizeof(long int));
  printf(
      "Size of floating point (signed or unsigned) variable is \t%d bytes \n",
      sizeof(float));
  printf("Size of double (always signed) variable is \t\t\t%d bytes \n",
         sizeof(double));
  printf("Size of long double (always signed) variable is \t\t%d bytes \n",
         sizeof(long double));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf47(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfa6(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xfd9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0x1001(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf77(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xfdc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [64 x i8] c"Size of character (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.1 = [68 x i8] c"Size of short integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.2 = [62 x i8] c"Size of integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.3 = [67 x i8] c"Size of long integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.4 = [68 x i8] c"Size of floating point (signed or unsigned) variable is \09%d bytes \0A\00"
@.str.5 = [57 x i8] c"Size of double (always signed) variable is \09\09\09%d bytes \0A\00"
@.str.6 = [61 x i8] c"Size of long double (always signed) variable is \09\09%d bytes \0A\00"
define i32 @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i32 16)
ret i32 0
}

LLVM IR (-O2):
@.str = [64 x i8] c"Size of character (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.1 = [68 x i8] c"Size of short integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.2 = [62 x i8] c"Size of integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.3 = [67 x i8] c"Size of long integer (signed or unsigned) variable is \09\09%d bytes \0A\00"
@.str.4 = [68 x i8] c"Size of floating point (signed or unsigned) variable is \09%d bytes \0A\00"
@.str.5 = [57 x i8] c"Size of double (always signed) variable is \09\09\09%d bytes \0A\00"
@.str.6 = [61 x i8] c"Size of long double (always signed) variable is \09\09%d bytes \0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.1, i64 0, i64 0), i32 2)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 8)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.6, i64 0, i64 0), i32 16)
ret i32 0
}