#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*/ usi;
typedef int /*<<< orphan*/ ulli;
typedef int /*<<< orphan*/ uli;
typedef int /*<<< orphan*/ uc;
typedef int /*<<< orphan*/ ssi;
typedef int /*<<< orphan*/ slli;
typedef int /*<<< orphan*/ sli;
typedef int /*<<< orphan*/ sc;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int bits;
  signed long long int slli = 1;
  signed long int sli = 1;
  signed short int ssi = 1;
  signed char sc = 1;
  unsigned long long int ulli = 1;
  unsigned long int uli = 1;
  unsigned short int usi = 1;
  unsigned char uc = 1;
  bits = 0;
  while (sc) {
    sc <<= 1;
    bits++;
  };
  assert(bits == sizeof(sc) << 3);
  printf("       signed char: %3d bits\n", bits);
  bits = 0;
  while (ssi) {
    ssi <<= 1;
    bits++;
  };
  assert(bits == sizeof(ssi) << 3);
  printf("  signed short int: %3d bits\n", bits);
  bits = 0;
  while (sli) {
    sli <<= 1;
    bits++;
  };
  assert(bits == sizeof(sli) << 3);
  printf("   signed long int: %3d bits\n", bits);
  bits = 0;
  while (slli) {
    slli <<= 1;
    bits++;
  };
  assert(bits == sizeof(slli) << 3);
  printf("  signed long long: %3d bits\n", bits);
  bits = 0;
  while (uc) {
    uc <<= 1;
    bits++;
  };
  assert(bits == sizeof(uc) << 3);
  printf("     unsigned char: %3d bits\n", bits);
  bits = 0;
  while (usi) {
    usi <<= 1;
    bits++;
  };
  assert(bits == sizeof(usi) << 3);
  printf("unsigned short int: %3d bits\n", bits);
  bits = 0;
  while (uli) {
    uli <<= 1;
    bits++;
  };
  assert(bits == sizeof(uli) << 3);
  printf(" unsigned long int: %3d bits\n", bits);
  bits = 0;
  while (ulli) {
    ulli <<= 1;
    bits++;
  };
  assert(bits == sizeof(ulli) << 3);
  printf("unsigned long long: %3d bits\n", bits);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x1,-0x10(%rbp)
movq   $0x1,-0x18(%rbp)
movw   $0x1,-0x1a(%rbp)
movb   $0x1,-0x1b(%rbp)
movq   $0x1,-0x28(%rbp)
movq   $0x1,-0x30(%rbp)
movw   $0x1,-0x32(%rbp)
movb   $0x1,-0x33(%rbp)
movl   $0x0,-0x8(%rbp)
cmpb   $0x0,-0x1b(%rbp)
je     118c <main+0x6c>
movsbl -0x1b(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x1b(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    116a <main+0x4a>
movslq -0x8(%rbp),%rax
cmp    $0x8,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpw   $0x0,-0x1a(%rbp)
je     11db <main+0xbb>
movswl -0x1a(%rbp),%eax
shl    $0x1,%eax
mov    %ax,-0x1a(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11b7 <main+0x97>
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     122b <main+0x10b>
mov    -0x18(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1206 <main+0xe6>
movslq -0x8(%rbp),%rax
cmp    $0x40,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xdf2(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     127b <main+0x15b>
mov    -0x10(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1256 <main+0x136>
movslq -0x8(%rbp),%rax
cmp    $0x40,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xdc0(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpb   $0x0,-0x33(%rbp)
je     12c8 <main+0x1a8>
movzbl -0x33(%rbp),%eax
shl    $0x1,%eax
mov    %al,-0x33(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a6 <main+0x186>
movslq -0x8(%rbp),%rax
cmp    $0x8,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xd91(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpw   $0x0,-0x32(%rbp)
je     1317 <main+0x1f7>
movzwl -0x32(%rbp),%eax
shl    $0x1,%eax
mov    %ax,-0x32(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12f3 <main+0x1d3>
movslq -0x8(%rbp),%rax
cmp    $0x10,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xd60(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1367 <main+0x247>
mov    -0x30(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1342 <main+0x222>
movslq -0x8(%rbp),%rax
cmp    $0x40,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xd2e(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     13b7 <main+0x297>
mov    -0x28(%rbp),%rax
shl    $0x1,%rax
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1392 <main+0x272>
movslq -0x8(%rbp),%rax
cmp    $0x40,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%esi
lea    0xcfc(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xece(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xed1(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xed4(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xed7(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xeda(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xedd(%rip),%rdi
mov    $0x10,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xee0(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
lea    0xee3(%rip),%rdi
mov    $0x40,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c" signed char: %3d bits\0A\00"
@.str.1 = [30 x i8] c" signed short int: %3d bits\0A\00"
@.str.2 = [30 x i8] c" signed long int: %3d bits\0A\00"
@.str.3 = [30 x i8] c" signed long long: %3d bits\0A\00"
@.str.4 = [30 x i8] c" unsigned char: %3d bits\0A\00"
@.str.5 = [30 x i8] c"unsigned short int: %3d bits\0A\00"
@.str.6 = [30 x i8] c" unsigned long int: %3d bits\0A\00"
@.str.7 = [30 x i8] c"unsigned long long: %3d bits\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
%5 = alloca i16
%6 = alloca i8
%7 = alloca i64
%8 = alloca i64
%9 = alloca i16
%10 = alloca i8
store i32 0, i32* %1
store i64 1, i64* %3
store i64 1, i64* %4
store i16 1, i16* %5
store i8 1, i8* %6
store i64 1, i64* %7
store i64 1, i64* %8
store i16 1, i16* %9
store i8 1, i8* %10
store i32 0, i32* %2
br label %11
11: ; preds = %14, %0
%12 = load i8, i8* %6
%13 = icmp ne i8 %12, 0
br i1 %13, label %14, label %21
14: ; preds = %11
%15 = load i8, i8* %6
%16 = sext i8 %15 to i32
%17 = shl i32 %16, 1
%18 = trunc i32 %17 to i8
store i8 %18, i8* %6
%19 = load i32, i32* %2
%20 = add nsw i32 %19, 1
store i32 %20, i32* %2
br label %11
21: ; preds = %11
%22 = load i32, i32* %2
%23 = sext i32 %22 to i64
%24 = icmp eq i64 %23, 8
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i32, i32* %2
%28 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %27)
store i32 0, i32* %2
br label %29
29: ; preds = %32, %21
%30 = load i16, i16* %5
%31 = icmp ne i16 %30, 0
br i1 %31, label %32, label %39
32: ; preds = %29
%33 = load i16, i16* %5
%34 = sext i16 %33 to i32
%35 = shl i32 %34, 1
%36 = trunc i32 %35 to i16
store i16 %36, i16* %5
%37 = load i32, i32* %2
%38 = add nsw i32 %37, 1
store i32 %38, i32* %2
br label %29
39: ; preds = %29
%40 = load i32, i32* %2
%41 = sext i32 %40 to i64
%42 = icmp eq i64 %41, 16
%43 = zext i1 %42 to i32
%44 = call i32 @assert(i32 %43)
%45 = load i32, i32* %2
%46 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 %45)
store i32 0, i32* %2
br label %47
47: ; preds = %50, %39
%48 = load i64, i64* %4
%49 = icmp ne i64 %48, 0
br i1 %49, label %50, label %55
50: ; preds = %47
%51 = load i64, i64* %4
%52 = shl i64 %51, 1
store i64 %52, i64* %4
%53 = load i32, i32* %2
%54 = add nsw i32 %53, 1
store i32 %54, i32* %2
br label %47
55: ; preds = %47
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = icmp eq i64 %57, 64
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = load i32, i32* %2
%62 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %61)
store i32 0, i32* %2
br label %63
63: ; preds = %66, %55
%64 = load i64, i64* %3
%65 = icmp ne i64 %64, 0
br i1 %65, label %66, label %71
66: ; preds = %63
%67 = load i64, i64* %3
%68 = shl i64 %67, 1
store i64 %68, i64* %3
%69 = load i32, i32* %2
%70 = add nsw i32 %69, 1
store i32 %70, i32* %2
br label %63
71: ; preds = %63
%72 = load i32, i32* %2
%73 = sext i32 %72 to i64
%74 = icmp eq i64 %73, 64
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
%77 = load i32, i32* %2
%78 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %77)
store i32 0, i32* %2
br label %79
79: ; preds = %82, %71
%80 = load i8, i8* %10
%81 = icmp ne i8 %80, 0
br i1 %81, label %82, label %89
82: ; preds = %79
%83 = load i8, i8* %10
%84 = zext i8 %83 to i32
%85 = shl i32 %84, 1
%86 = trunc i32 %85 to i8
store i8 %86, i8* %10
%87 = load i32, i32* %2
%88 = add nsw i32 %87, 1
store i32 %88, i32* %2
br label %79
89: ; preds = %79
%90 = load i32, i32* %2
%91 = sext i32 %90 to i64
%92 = icmp eq i64 %91, 8
%93 = zext i1 %92 to i32
%94 = call i32 @assert(i32 %93)
%95 = load i32, i32* %2
%96 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %95)
store i32 0, i32* %2
br label %97
97: ; preds = %100, %89
%98 = load i16, i16* %9
%99 = icmp ne i16 %98, 0
br i1 %99, label %100, label %107
100: ; preds = %97
%101 = load i16, i16* %9
%102 = zext i16 %101 to i32
%103 = shl i32 %102, 1
%104 = trunc i32 %103 to i16
store i16 %104, i16* %9
%105 = load i32, i32* %2
%106 = add nsw i32 %105, 1
store i32 %106, i32* %2
br label %97
107: ; preds = %97
%108 = load i32, i32* %2
%109 = sext i32 %108 to i64
%110 = icmp eq i64 %109, 16
%111 = zext i1 %110 to i32
%112 = call i32 @assert(i32 %111)
%113 = load i32, i32* %2
%114 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 %113)
store i32 0, i32* %2
br label %115
115: ; preds = %118, %107
%116 = load i64, i64* %8
%117 = icmp ne i64 %116, 0
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = load i64, i64* %8
%120 = shl i64 %119, 1
store i64 %120, i64* %8
%121 = load i32, i32* %2
%122 = add nsw i32 %121, 1
store i32 %122, i32* %2
br label %115
123: ; preds = %115
%124 = load i32, i32* %2
%125 = sext i32 %124 to i64
%126 = icmp eq i64 %125, 64
%127 = zext i1 %126 to i32
%128 = call i32 @assert(i32 %127)
%129 = load i32, i32* %2
%130 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %129)
store i32 0, i32* %2
br label %131
131: ; preds = %134, %123
%132 = load i64, i64* %7
%133 = icmp ne i64 %132, 0
br i1 %133, label %134, label %139
134: ; preds = %131
%135 = load i64, i64* %7
%136 = shl i64 %135, 1
store i64 %136, i64* %7
%137 = load i32, i32* %2
%138 = add nsw i32 %137, 1
store i32 %138, i32* %2
br label %131
139: ; preds = %131
%140 = load i32, i32* %2
%141 = sext i32 %140 to i64
%142 = icmp eq i64 %141, 64
%143 = zext i1 %142 to i32
%144 = call i32 @assert(i32 %143)
%145 = load i32, i32* %2
%146 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %145)
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c" signed char: %3d bits\0A\00"
@.str.1 = [30 x i8] c" signed short int: %3d bits\0A\00"
@.str.2 = [30 x i8] c" signed long int: %3d bits\0A\00"
@.str.3 = [30 x i8] c" signed long long: %3d bits\0A\00"
@.str.4 = [30 x i8] c" unsigned char: %3d bits\0A\00"
@.str.5 = [30 x i8] c"unsigned short int: %3d bits\0A\00"
@.str.6 = [30 x i8] c" unsigned long int: %3d bits\0A\00"
@.str.7 = [30 x i8] c"unsigned long long: %3d bits\0A\00"
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 8)
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i32 16)
%5 = tail call i32 @assert(i32 1)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 64)
%7 = tail call i32 @assert(i32 1)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 64)
%9 = tail call i32 @assert(i32 1)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 8)
%11 = tail call i32 @assert(i32 1)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i32 16)
%13 = tail call i32 @assert(i32 1)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 64)
%15 = tail call i32 @assert(i32 1)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 64)
ret i32 0
}