#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, int, int, int, int, int, int, int, int,
                          int);
void main() {
  printf("// generated by word_size.c\n\n"
         "#ifndef WORD_SIZE_H\n"
         "#define WORD_SIZE_H\n"
         "\n"
         "#define SIZEOF_CHAR            ( %d )\n"
         "#define SIZEOF_SHORT           ( %d )\n"
         "#define SIZEOF_INT             ( %d )\n"
         "#define SIZEOF_LONG            ( %d )\n"
         "#define SIZEOF_LONG_LONG       ( %d )\n"
         "#define SIZEOF_VOID_P          ( %d )\n"
         "#define SIZEOF_FLOAT           ( %d )\n"
         "#define SIZEOF_DOUBLE          ( %d )\n"
         "#define SIZEOF_LONG_DOUBLE     ( %d )\n"
         "\n"
         "#define SIZEOF_SIZE_T          ( %d )\n"
         "\n"
         "#endif // WORD_SIZE_H\n",
         sizeof(char), sizeof(short), sizeof(int), sizeof(long),
         sizeof(long long), sizeof(void *), sizeof(float), sizeof(double),
         sizeof(long double), sizeof(size_t));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xee1(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x4,%ecx
mov    $0x8,%r9d
mov    %r9d,%r8d
movl   $0x8,(%rsp)
movl   $0x4,0x8(%rsp)
movl   $0x8,0x10(%rsp)
movl   $0x10,0x18(%rsp)
movl   $0x8,0x20(%rsp)
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
sub    $0x8,%rsp
lea    0xee4(%rip),%rdi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x4,%ecx
mov    $0x8,%r8d
mov    $0x8,%r9d
push   $0x8
push   $0x10
push   $0x8
push   $0x4
push   $0x8
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [475 x i8] c"// generated by word_size.c\0A\0A#ifndef WORD_SIZE_H\0A#define WORD_SIZE_H\0A\0A#define SIZEOF_CHAR ( %d )\0A#define SIZEOF_SHORT ( %d )\0A#define SIZEOF_INT ( %d )\0A#define SIZEOF_LONG ( %d )\0A#define SIZEOF_LONG_LONG ( %d )\0A#define SIZEOF_VOID_P ( %d )\0A#define SIZEOF_FLOAT ( %d )\0A#define SIZEOF_DOUBLE ( %d )\0A#define SIZEOF_LONG_DOUBLE ( %d )\0A\0A#define SIZEOF_SIZE_T ( %d )\0A\0A#endif // WORD_SIZE_H\0A\00"
define void @main() {
%1 = call i32 @printf(i8* getelementptr inbounds ([475 x i8], [475 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 4, i32 8, i32 8, i32 8, i32 4, i32 8, i32 16, i32 8)
ret void
}

LLVM IR (-O2):
@.str = [475 x i8] c"// generated by word_size.c\0A\0A#ifndef WORD_SIZE_H\0A#define WORD_SIZE_H\0A\0A#define SIZEOF_CHAR ( %d )\0A#define SIZEOF_SHORT ( %d )\0A#define SIZEOF_INT ( %d )\0A#define SIZEOF_LONG ( %d )\0A#define SIZEOF_LONG_LONG ( %d )\0A#define SIZEOF_VOID_P ( %d )\0A#define SIZEOF_FLOAT ( %d )\0A#define SIZEOF_DOUBLE ( %d )\0A#define SIZEOF_LONG_DOUBLE ( %d )\0A\0A#define SIZEOF_SIZE_T ( %d )\0A\0A#endif // WORD_SIZE_H\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([475 x i8], [475 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 4, i32 8, i32 8, i32 8, i32 4, i32 8, i32 16, i32 8)
ret void
}