#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 *, unsigned char, ...);
int main(int argc, const char *argv[]) {
  printf("sizeof(char)=%ld\n", sizeof(char));
  printf("sizeof(short)=%ld\n", sizeof(short));
  printf("sizeof(int)=%ld\n", sizeof(int));
  printf("sizeof(long)=%ld\n", sizeof(long));
  printf("sizeof(long long)=%ld\n", sizeof(long long));
  char c = 255;
  int i = 255;
  printf("c=%d, i=%d\n", c, i);
  unsigned char d = 255;
  printf("d=%d\n", d);
  char e = 127;
  e = e + 1;
  printf("e=%d\n", e);
  unsigned char f = 127;
  f = f + 1;
  printf("f=%d\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xed3(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed0(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xff,-0x11(%rbp)
movl   $0xff,-0x18(%rbp)
mov    -0x11(%rbp),%al
mov    -0x18(%rbp),%edx
lea    0xec2(%rip),%rdi
movzbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0xff,-0x19(%rbp)
lea    0xeb9(%rip),%rdi
movzbl -0x19(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x7f,-0x1a(%rbp)
movsbl -0x1a(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x1a(%rbp)
lea    0xe9f(%rip),%rdi
movzbl -0x1a(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
movb   $0x7f,-0x1b(%rbp)
movzbl -0x1b(%rbp),%eax
add    $0x1,%eax
mov    %al,-0x1b(%rbp)
lea    0xe85(%rip),%rdi
movzbl -0x1b(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0xff,%esi
mov    $0xff,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedc(%rip),%rdi
mov    $0xff,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xec2(%rip),%rdi
mov    $0x80,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c"sizeof(char)=%ld\0A\00"
@.str.1 = [19 x i8] c"sizeof(short)=%ld\0A\00"
@.str.2 = [17 x i8] c"sizeof(int)=%ld\0A\00"
@.str.3 = [18 x i8] c"sizeof(long)=%ld\0A\00"
@.str.4 = [23 x i8] c"sizeof(long long)=%ld\0A\00"
@.str.5 = [12 x i8] c"c=%d, i=%d\0A\00"
@.str.6 = [6 x i8] c"d=%d\0A\00"
@.str.7 = [6 x i8] c"e=%d\0A\00"
@.str.8 = [6 x i8] c"f=%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i32
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 zeroext 1)
%12 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8 zeroext 2)
%13 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8 zeroext 4)
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8 zeroext 8)
%15 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8 zeroext 8)
store i8 -1, i8* %6
store i32 255, i32* %7
%16 = load i8, i8* %6
%17 = load i32, i32* %7
%18 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8 zeroext %16, i32 %17)
store i8 -1, i8* %8
%19 = load i8, i8* %8
%20 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8 zeroext %19)
store i8 127, i8* %9
%21 = load i8, i8* %9
%22 = sext i8 %21 to i32
%23 = add nsw i32 %22, 1
%24 = trunc i32 %23 to i8
store i8 %24, i8* %9
%25 = load i8, i8* %9
%26 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8 zeroext %25)
store i8 127, i8* %10
%27 = load i8, i8* %10
%28 = zext i8 %27 to i32
%29 = add nsw i32 %28, 1
%30 = trunc i32 %29 to i8
store i8 %30, i8* %10
%31 = load i8, i8* %10
%32 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8 zeroext %31)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c"sizeof(char)=%ld\0A\00"
@.str.1 = [19 x i8] c"sizeof(short)=%ld\0A\00"
@.str.2 = [17 x i8] c"sizeof(int)=%ld\0A\00"
@.str.3 = [18 x i8] c"sizeof(long)=%ld\0A\00"
@.str.4 = [23 x i8] c"sizeof(long long)=%ld\0A\00"
@.str.5 = [12 x i8] c"c=%d, i=%d\0A\00"
@.str.6 = [6 x i8] c"d=%d\0A\00"
@.str.7 = [6 x i8] c"e=%d\0A\00"
@.str.8 = [6 x i8] c"f=%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8 zeroext 1)
%4 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8 zeroext 2)
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8 zeroext 4)
%6 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i8 zeroext 8)
%7 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8 zeroext 8)
%8 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8 zeroext -1, i32 255)
%9 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i8 zeroext -1)
%10 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8 zeroext -128)
%11 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8 zeroext -128)
ret i32 0
}