#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*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;
typedef int /*<<< orphan*/ int8_t;
typedef int /*<<< orphan*/ int32_t;
typedef int /*<<< orphan*/ int16_t;

/* Variables and functions */
int CHAR_BIT;
int /*<<< orphan*/ printf(char *, int);
int main(int argc, char **argv) {
  printf("CHAR_BIT = %d bits per byte\n", CHAR_BIT);
  printf("sizeof(char) = %lu bytes.\n", sizeof(char));
  printf("sizeof(int) = %lu bytes.\n", sizeof(int));
  printf("sizeof(float) = %lu bytes.\n", sizeof(float));
  printf("sizeof(double) = %lu bytes.\n", sizeof(double));
  printf("sizeof(short) = %lu bytes.\n", sizeof(short));
  printf("sizeof(long) = %lu bytes.\n", sizeof(long));
  printf("sizeof(long int) = %lu bytes.\n", sizeof(long int));
  printf("sizeof(long long) = %lu bytes.\n", sizeof(long long));
  printf("sizeof(int8_t) = %lu bytes.\n", sizeof(int8_t));
  printf("sizeof(uint8_t) = %lu bytes.\n", sizeof(uint8_t));
  printf("sizeof(uint16_t) = %lu bytes.\n", sizeof(uint16_t));
  printf("sizeof(uint32_t) = %lu bytes.\n", sizeof(uint32_t));
  printf("sizeof(char *) = %lu bytes.\n", sizeof(char *));
  printf("sizeof(int *) = %lu bytes.\n", sizeof(int *));
  printf("sizeof(float *) = %lu bytes.\n", sizeof(float *));
  printf("sizeof(void *) = %lu bytes.\n", sizeof(void *));
  printf("sizeof(void **) = %lu bytes.\n", sizeof(void **));
  printf("sizeof(int8_t *) = %lu bytes.\n", sizeof(int8_t *));
  printf("sizeof(int16_t *) = %lu bytes.\n", sizeof(int16_t *));
  printf("sizeof(int32_t *) = %lu bytes.\n", sizeof(int32_t *));
  printf("sizeof(size_t) = %lu bytes.\n", sizeof(size_t));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb3(%rip),%rax
mov    (%rax),%esi
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf43(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf50(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf5e(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf6c(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf83(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf9c(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfa9(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfb7(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfc6(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xefa(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf3d(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf81(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf8d(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfb1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfcc(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfdb(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xfea(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [29 x i8] c"CHAR_BIT = %d bits per byte\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [27 x i8] c"sizeof(char) = %lu bytes.\0A\00"
@.str.2 = [26 x i8] c"sizeof(int) = %lu bytes.\0A\00"
@.str.3 = [28 x i8] c"sizeof(float) = %lu bytes.\0A\00"
@.str.4 = [29 x i8] c"sizeof(double) = %lu bytes.\0A\00"
@.str.5 = [28 x i8] c"sizeof(short) = %lu bytes.\0A\00"
@.str.6 = [27 x i8] c"sizeof(long) = %lu bytes.\0A\00"
@.str.7 = [31 x i8] c"sizeof(long int) = %lu bytes.\0A\00"
@.str.8 = [32 x i8] c"sizeof(long long) = %lu bytes.\0A\00"
@.str.9 = [29 x i8] c"sizeof(int8_t) = %lu bytes.\0A\00"
@.str.10 = [30 x i8] c"sizeof(uint8_t) = %lu bytes.\0A\00"
@.str.11 = [31 x i8] c"sizeof(uint16_t) = %lu bytes.\0A\00"
@.str.12 = [31 x i8] c"sizeof(uint32_t) = %lu bytes.\0A\00"
@.str.13 = [29 x i8] c"sizeof(char *) = %lu bytes.\0A\00"
@.str.14 = [28 x i8] c"sizeof(int *) = %lu bytes.\0A\00"
@.str.15 = [30 x i8] c"sizeof(float *) = %lu bytes.\0A\00"
@.str.16 = [29 x i8] c"sizeof(void *) = %lu bytes.\0A\00"
@.str.17 = [30 x i8] c"sizeof(void **) = %lu bytes.\0A\00"
@.str.18 = [31 x i8] c"sizeof(int8_t *) = %lu bytes.\0A\00"
@.str.19 = [32 x i8] c"sizeof(int16_t *) = %lu bytes.\0A\00"
@.str.20 = [32 x i8] c"sizeof(int32_t *) = %lu bytes.\0A\00"
@.str.21 = [29 x i8] c"sizeof(size_t) = %lu bytes.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* @CHAR_BIT
%7 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 1)
%9 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 4)
%10 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 4)
%11 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 8)
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 2)
%13 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 8)
%14 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 8)
%15 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i32 8)
%16 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 4)
%17 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 4)
%18 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i32 4)
%19 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 4)
%20 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0), i32 8)
%21 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 8)
%22 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 8)
%23 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 8)
%24 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i32 8)
%25 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i32 8)
%26 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), i32 8)
%27 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 8)
%28 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.21, i64 0, i64 0), i32 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [29 x i8] c"CHAR_BIT = %d bits per byte\0A\00"
@CHAR_BIT = global i32 0
@.str.1 = [27 x i8] c"sizeof(char) = %lu bytes.\0A\00"
@.str.2 = [26 x i8] c"sizeof(int) = %lu bytes.\0A\00"
@.str.3 = [28 x i8] c"sizeof(float) = %lu bytes.\0A\00"
@.str.4 = [29 x i8] c"sizeof(double) = %lu bytes.\0A\00"
@.str.5 = [28 x i8] c"sizeof(short) = %lu bytes.\0A\00"
@.str.6 = [27 x i8] c"sizeof(long) = %lu bytes.\0A\00"
@.str.7 = [31 x i8] c"sizeof(long int) = %lu bytes.\0A\00"
@.str.8 = [32 x i8] c"sizeof(long long) = %lu bytes.\0A\00"
@.str.9 = [29 x i8] c"sizeof(int8_t) = %lu bytes.\0A\00"
@.str.10 = [30 x i8] c"sizeof(uint8_t) = %lu bytes.\0A\00"
@.str.11 = [31 x i8] c"sizeof(uint16_t) = %lu bytes.\0A\00"
@.str.12 = [31 x i8] c"sizeof(uint32_t) = %lu bytes.\0A\00"
@.str.13 = [29 x i8] c"sizeof(char *) = %lu bytes.\0A\00"
@.str.14 = [28 x i8] c"sizeof(int *) = %lu bytes.\0A\00"
@.str.15 = [30 x i8] c"sizeof(float *) = %lu bytes.\0A\00"
@.str.16 = [29 x i8] c"sizeof(void *) = %lu bytes.\0A\00"
@.str.17 = [30 x i8] c"sizeof(void **) = %lu bytes.\0A\00"
@.str.18 = [31 x i8] c"sizeof(int8_t *) = %lu bytes.\0A\00"
@.str.19 = [32 x i8] c"sizeof(int16_t *) = %lu bytes.\0A\00"
@.str.20 = [32 x i8] c"sizeof(int32_t *) = %lu bytes.\0A\00"
@.str.21 = [29 x i8] c"sizeof(size_t) = %lu bytes.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @CHAR_BIT
%4 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i32 4)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i32 4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), i32 2)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i32 8)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 8)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i32 8)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i32 4)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 4)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), i32 4)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0), i32 4)
%17 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.13, i64 0, i64 0), i32 8)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 8)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 8)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.16, i64 0, i64 0), i32 8)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i32 8)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i32 8)
%23 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0), i32 8)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.20, i64 0, i64 0), i32 8)
%25 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.21, i64 0, i64 0), i32 8)
ret i32 0
}