#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 uint8_t;
typedef int /*<<< orphan*/ uint64_t;
typedef int /*<<< orphan*/ uint32_t;
typedef int /*<<< orphan*/ uint16_t;
typedef int /*<<< orphan*/ t4;
typedef int /*<<< orphan*/ t3;
typedef int /*<<< orphan*/ t2;
typedef int /*<<< orphan*/ t1;
typedef int int8_t;
typedef int /*<<< orphan*/ i4;
typedef int /*<<< orphan*/ i3;
typedef int /*<<< orphan*/ i2;
typedef int /*<<< orphan*/ i1;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main() {
  uint8_t t1;
  uint16_t t2;
  uint32_t t3;
  uint64_t t4;
  unsigned int i1;
  unsigned short i2;
  unsigned char i3;
  unsigned long i4;
  printf("size of uint8_t = %ld\n", sizeof(t1));
  printf("size of uint16_t = %ld\n", sizeof(t2));
  printf("size of uint32_t = %ld\n", sizeof(t3));
  printf("size of uint64_t = %ld\n", sizeof(t4));
  printf("size of unsigned int = %ld\n", sizeof(i1));
  printf("size of unsigned short = %ld\n", sizeof(i2));
  printf("size of unsigned char = %ld\n", sizeof(i3));
  printf("size of unsigned long = %ld\n", sizeof(i4));
  uint8_t test1 = 255;
  int8_t test2 = 255;
  printf("test1 value = %u\n", test1);
  printf("test2 value = %d\n", test2);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee0(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
movl   $0xff,-0x2c(%rbp)
movl   $0xff,-0x30(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
lea    0xf17(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeee(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xefc(%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    $0x2,%esi
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
mov    $0xff,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [23 x i8] c"size of uint8_t = %ld\0A\00"
@.str.1 = [24 x i8] c"size of uint16_t = %ld\0A\00"
@.str.2 = [24 x i8] c"size of uint32_t = %ld\0A\00"
@.str.3 = [24 x i8] c"size of uint64_t = %ld\0A\00"
@.str.4 = [28 x i8] c"size of unsigned int = %ld\0A\00"
@.str.5 = [30 x i8] c"size of unsigned short = %ld\0A\00"
@.str.6 = [29 x i8] c"size of unsigned char = %ld\0A\00"
@.str.7 = [29 x i8] c"size of unsigned long = %ld\0A\00"
@.str.8 = [18 x i8] c"test1 value = %u\0A\00"
@.str.9 = [18 x i8] c"test2 value = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i16
%8 = alloca i8
%9 = alloca i64
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
%12 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 4)
%14 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 4)
%15 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 4)
%16 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 4)
%17 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 2)
%18 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 1)
%19 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
store i32 255, i32* %10
store i32 255, i32* %11
%20 = load i32, i32* %10
%21 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %11
%23 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 %22)
ret i32 0
}

LLVM IR (-O2):
@.str = [23 x i8] c"size of uint8_t = %ld\0A\00"
@.str.1 = [24 x i8] c"size of uint16_t = %ld\0A\00"
@.str.2 = [24 x i8] c"size of uint32_t = %ld\0A\00"
@.str.3 = [24 x i8] c"size of uint64_t = %ld\0A\00"
@.str.4 = [28 x i8] c"size of unsigned int = %ld\0A\00"
@.str.5 = [30 x i8] c"size of unsigned short = %ld\0A\00"
@.str.6 = [29 x i8] c"size of unsigned char = %ld\0A\00"
@.str.7 = [29 x i8] c"size of unsigned long = %ld\0A\00"
@.str.8 = [18 x i8] c"test1 value = %u\0A\00"
@.str.9 = [18 x i8] c"test2 value = %d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i32 4)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 4)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i32 4)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i32 4)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 2)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0), i32 1)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i32 8)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 255)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i32 255)
ret i32 0
}