#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 long long);
int main() {
  char c = 'A';
  switch (c) {
  case 65:
    printf("%d\n", 1);
    break;
  case 'C':
    printf("%d\n", 2);
  default:
    break;
  }
  char b = 123;
  printf("%d\n", b);
  unsigned long long a = 6545745774345346353LL;
  printf("%lld\n", a);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x41,-0x5(%rbp)
movsbl -0x5(%rbp),%eax
mov    %eax,-0x14(%rbp)
sub    $0x41,%eax
je     1149 <main+0x39>
jmp    1138 <main+0x28>
mov    -0x14(%rbp),%eax
sub    $0x43,%eax
je     115f <main+0x4f>
jmp    1170 <main+0x60>
lea    0xeb0(%rip),%rdi
mov    $0x1,%esi
call   1030 <printf@plt>
jmp    1175 <main+0x65>
lea    0xe9a(%rip),%rdi
mov    $0x2,%esi
call   1030 <printf@plt>
jmp    1175 <main+0x65>
movb   $0x7b,-0x6(%rbp)
movsbq -0x6(%rbp),%rsi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
movabs $0x5ad72919d5de5d31,%rax
29 d7 5a
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    $0x1,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
mov    $0x7b,%esi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
movabs $0x5ad72919d5de5d31,%rsi
29 d7 5a
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8
%3 = alloca i8
%4 = alloca i64
store i32 0, i32* %1
store i8 65, i8* %2
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
switch i32 %6, label %11 [
i32 65, label %7
i32 67, label %9
]
7: ; preds = %0
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 1)
br label %12
9: ; preds = %0
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 2)
br label %11
11: ; preds = %0, %9
br label %12
12: ; preds = %11, %7
store i8 123, i8* %3
%13 = load i8, i8* %3
%14 = sext i8 %13 to i64
%15 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 %14)
store i64 6545745774345346353, i64* %4
%16 = load i64, i64* %4
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 %16)
%18 = load i32, i32* %1
ret i32 %18
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [6 x i8] c"%lld\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 1)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i64 123)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i64 6545745774345346353)
ret i32 0
}