int main() {
  int contestants[] = {3, 4, 5};
  int *choice = contestants;
  char text[] = "yes we can!";
  char *ptr = text;
  int x = 4;
  int *int_ptr = &x;
  printf("ただの確認\n");
  printf("int_ptr  = %p\n", int_ptr);
  printf("*int_ptr = %i\n", *int_ptr);
  printf("x        = %i\n", x);
  printf("ptr[0]   = %c\n", ptr[0]);
  printf("全て一緒\n");
  printf("*contestants    = %i\n", *contestants);
  printf("contestants[0]  = %i\n", contestants[0]);
  printf("*choice         = %i\n", *choice);
  printf("ポインタが一緒\n");
  printf("contestants     = %p\n", contestants);
  printf("&contestants[0] = %p\n", &contestants[0]);
  printf("choice          = %p\n", choice);
  printf("sizeofの結果が違う!\n");
  printf("sizeof contestants     = %lu\n", sizeof contestants);
  printf("sizeof choice          = %lu\n", sizeof choice);
  printf("charの場合\n");
  printf("ptr      = %p\n", ptr);
  printf("text     = %p\n", text);
  printf("&ptr[0]  = %p\n", &ptr[0]);
  printf("&text[0] = %p\n", &text[0]);
  printf("*ptr     = %c\n", *ptr);
  printf("*text    = %c\n", *text);
  printf("ptr[0]   = %c\n", ptr[0]);
  printf("text[0]  = %c\n", text[0]);
  printf("ptr      = %s\n", ptr);
  printf("text     = %s\n", text);
  printf("配列自体のポインタ\n");
  printf("ptr      = %p\n", ptr);
  printf("text     = %p\n", text);
  printf("&ptr     = %p\n", &ptr);
  printf("&text    = %p\n", &text);
  printf("text == &text = %d\n", text == &text);
  printf("ptr  == &ptr  = %d\n", ptr == &ptr);
  printf("intとcharでポインタのサイズが異なる\n");
  printf("sizeof ptr[0]   = %lu\n", sizeof ptr[0]);
  printf("sizeof chice[0] = %lu\n", sizeof choice[0]);
  printf("ポインタ演算\n");
  printf("ptr      = %s\n", ptr);
  printf("ptr + 4  = %s\n", ptr + 4);
  printf("*choice         = %i\n", *choice);
  printf("*(choice + 1)   = %i\n", *(choice + 1));
  printf("*(choice + 2)   = %i\n", *(choice + 2));
  printf("*(2 + choice)   = %i\n", *(2 + choice));
  printf("2[chice]        = %i\n", 2 [choice]);
  contestants[0] = 2;
  contestants[1] = contestants[2];
  contestants[2] = *choice;
  printf("I’m going to pick contestant number %i\n", contestants[2]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xed8(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x24(%rbp)
mov    0xec8(%rip),%eax
mov    %eax,-0x1c(%rbp)
lea    -0x24(%rbp),%rax
mov    %rax,-0x30(%rbp)
movl   $0x4,-0x34(%rbp)
lea    -0x34(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%rsi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x40(%rbp),%rax
mov    (%rax),%esi
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%esi
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%esi
lea    0xea0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
lea    0xea2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x10(%rbp),%rsi
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x10(%rbp),%rsi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xeb7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
movsbl (%rax),%esi
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x24(%rbp),%esi
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xeaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xe17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rsi
lea    0xe14(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe9b(%rip),%rdi
lea    -0x30(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x24(%rbp),%rax
lea    -0x24(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rax
lea    -0x30(%rbp),%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%esi
lea    0xe75(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea0(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea4(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xdb4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
add    $0x4,%rsi
lea    0xe94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
lea    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%esi
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xe7c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%esi
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x2,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    0xed4(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xec1(%rip),%rax
mov    %rax,(%rsp)
movabs $0x6320657720736579,%rax
65 20 63
mov    %rax,0x10(%rsp)
movl   $0x216e61,0x18(%rsp)
lea    0x10(%rsp),%rbp
mov    %rbp,0x20(%rsp)
movl   $0x4,0xc(%rsp)
lea    0x112d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe99(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe91(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe8e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
lea    0xe8a(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <puts@plt>
lea    0xe7c(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7f(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe82(%rip),%r14
mov    %r14,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10a9(%rip),%rdi
call   1030 <puts@plt>
lea    0xe76(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe78(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7d(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x107d(%rip),%rdi
call   1030 <puts@plt>
lea    0xe76(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe81(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1065(%rip),%rdi
call   1030 <puts@plt>
lea    0xe80(%rip),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe7b(%rip),%r13
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe76(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe74(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
lea    0xe6d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movsbl 0x10(%rsp),%esi
lea    0xe56(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe57(%rip),%r15
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe52(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <puts@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r13,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe2a(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe23(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe21(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %esi,%esi
cmp    %rbx,0x20(%rsp)
sete   %sil
lea    0xe17(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
lea    0xe11(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe15(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
mov    0x20(%rsp),%rsi
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x20(%rsp),%rsi
add    $0x4,%rsi
lea    0xdf5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    (%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x4(%rsp),%esi
lea    0xde5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xde9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xded(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x2,(%rsp)
mov    0x8(%rsp),%eax
mov    %eax,0x4(%rsp)
movl   $0x2,0x8(%rsp)
lea    0xde2(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.contestants = [3 x i32] [i32 3, i32 4, i32 5]
@__const.main.text = [12 x i8] c"yes we can!\00"
@.str = [17 x i8] c"\E3\81\9F\E3\81\A0\E3\81\AE\E7\A2\BA\E8\AA\8D\0A\00"
@.str.1 = [15 x i8] c"int_ptr = %p\0A\00"
@.str.2 = [15 x i8] c"*int_ptr = %i\0A\00"
@.str.3 = [15 x i8] c"x = %i\0A\00"
@.str.4 = [15 x i8] c"ptr[0] = %c\0A\00"
@.str.5 = [14 x i8] c"\E5\85\A8\E3\81\A6\E4\B8\80\E7\B7\92\0A\00"
@.str.6 = [22 x i8] c"*contestants = %i\0A\00"
@.str.7 = [22 x i8] c"contestants[0] = %i\0A\00"
@.str.8 = [22 x i8] c"*choice = %i\0A\00"
@.str.9 = [23 x i8] c"\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E3\81\8C\E4\B8\80\E7\B7\92\0A\00"
@.str.10 = [22 x i8] c"contestants = %p\0A\00"
@.str.11 = [22 x i8] c"&contestants[0] = %p\0A\00"
@.str.12 = [22 x i8] c"choice = %p\0A\00"
@.str.13 = [27 x i8] c"sizeof\E3\81\AE\E7\B5\90\E6\9E\9C\E3\81\8C\E9\81\95\E3\81\86!\0A\00"
@.str.14 = [30 x i8] c"sizeof contestants = %lu\0A\00"
@.str.15 = [30 x i8] c"sizeof choice = %lu\0A\00"
@.str.16 = [15 x i8] c"char\E3\81\AE\E5\A0\B4\E5\90\88\0A\00"
@.str.17 = [15 x i8] c"ptr = %p\0A\00"
@.str.18 = [15 x i8] c"text = %p\0A\00"
@.str.19 = [15 x i8] c"&ptr[0] = %p\0A\00"
@.str.20 = [15 x i8] c"&text[0] = %p\0A\00"
@.str.21 = [15 x i8] c"*ptr = %c\0A\00"
@.str.22 = [15 x i8] c"*text = %c\0A\00"
@.str.23 = [15 x i8] c"text[0] = %c\0A\00"
@.str.24 = [15 x i8] c"ptr = %s\0A\00"
@.str.25 = [15 x i8] c"text = %s\0A\00"
@.str.26 = [29 x i8] c"\E9\85\8D\E5\88\97\E8\87\AA\E4\BD\93\E3\81\AE\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\0A\00"
@.str.27 = [15 x i8] c"&ptr = %p\0A\00"
@.str.28 = [15 x i8] c"&text = %p\0A\00"
@.str.29 = [20 x i8] c"text == &text = %d\0A\00"
@.str.30 = [20 x i8] c"ptr == &ptr = %d\0A\00"
@.str.31 = [51 x i8] c"int\E3\81\A8char\E3\81\A7\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E3\81\AE\E3\82\B5\E3\82\A4\E3\82\BA\E3\81\8C\E7\95\B0\E3\81\AA\E3\82\8B\0A\00"
@.str.32 = [23 x i8] c"sizeof ptr[0] = %lu\0A\00"
@.str.33 = [23 x i8] c"sizeof chice[0] = %lu\0A\00"
@.str.34 = [20 x i8] c"\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E6\BC\94\E7\AE\97\0A\00"
@.str.35 = [15 x i8] c"ptr + 4 = %s\0A\00"
@.str.36 = [22 x i8] c"*(choice + 1) = %i\0A\00"
@.str.37 = [22 x i8] c"*(choice + 2) = %i\0A\00"
@.str.38 = [22 x i8] c"*(2 + choice) = %i\0A\00"
@.str.39 = [22 x i8] c"2[chice] = %i\0A\00"
@.str.40 = [42 x i8] c"I\E2\80\99m going to pick contestant number %i\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [3 x i32]
%3 = alloca i32*
%4 = alloca [12 x i8]
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32*
store i32 0, i32* %1
%8 = bitcast [3 x i32]* %2 to i8*
%9 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
store i32* %9, i32** %3
%10 = bitcast [12 x i8]* %4 to i8*
%11 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
store i8* %11, i8** %5
store i32 4, i32* %6
store i32* %6, i32** %7
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%13 = load i32*, i32** %7
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %13)
%15 = load i32*, i32** %7
%16 = load i32, i32* %15
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %6
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %18)
%20 = load i8*, i8** %5
%21 = getelementptr inbounds i8, i8* %20, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
%26 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%27 = load i32, i32* %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%30 = load i32, i32* %29
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 %30)
%32 = load i32*, i32** %3
%33 = load i32, i32* %32
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0))
%36 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32* %36)
%38 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32* %38)
%40 = load i32*, i32** %3
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.13, i64 0, i64 0))
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i64 12)
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i64 8)
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0))
%46 = load i8*, i8** %5
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8* %46)
%48 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %48)
%50 = load i8*, i8** %5
%51 = getelementptr inbounds i8, i8* %50, i64 0
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i8* %51)
%53 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %53)
%55 = load i8*, i8** %5
%56 = load i8, i8* %55
%57 = sext i8 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %57)
%59 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), i32 %61)
%63 = load i8*, i8** %5
%64 = getelementptr inbounds i8, i8* %63, i64 0
%65 = load i8, i8* %64
%66 = sext i8 %65 to i32
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%69 = load i8, i8* %68
%70 = sext i8 %69 to i32
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i32 %70)
%72 = load i8*, i8** %5
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i8* %72)
%74 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* %74)
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.26, i64 0, i64 0))
%77 = load i8*, i8** %5
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8* %77)
%79 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %79)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8** %5)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.28, i64 0, i64 0), [12 x i8]* %4)
%83 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
%84 = bitcast [12 x i8]* %4 to i8*
%85 = icmp eq i8* %83, %84
%86 = zext i1 %85 to i32
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.29, i64 0, i64 0), i32 %86)
%88 = load i8*, i8** %5
%89 = bitcast i8** %5 to i8*
%90 = icmp eq i8* %88, %89
%91 = zext i1 %90 to i32
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.30, i64 0, i64 0), i32 %91)
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.31, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.32, i64 0, i64 0), i64 1)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0), i64 4)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.34, i64 0, i64 0))
%97 = load i8*, i8** %5
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i8* %97)
%99 = load i8*, i8** %5
%100 = getelementptr inbounds i8, i8* %99, i64 4
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0), i8* %100)
%102 = load i32*, i32** %3
%103 = load i32, i32* %102
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %103)
%105 = load i32*, i32** %3
%106 = getelementptr inbounds i32, i32* %105, i64 1
%107 = load i32, i32* %106
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0), i32 %107)
%109 = load i32*, i32** %3
%110 = getelementptr inbounds i32, i32* %109, i64 2
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), i32 %111)
%113 = load i32*, i32** %3
%114 = getelementptr inbounds i32, i32* %113, i64 2
%115 = load i32, i32* %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.38, i64 0, i64 0), i32 %115)
%117 = load i32*, i32** %3
%118 = getelementptr inbounds i32, i32* %117, i64 2
%119 = load i32, i32* %118
%120 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.39, i64 0, i64 0), i32 %119)
%121 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 0
store i32 2, i32* %121
%122 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
%123 = load i32, i32* %122
%124 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 1
store i32 %123, i32* %124
%125 = load i32*, i32** %3
%126 = load i32, i32* %125
%127 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
store i32 %126, i32* %127
%128 = getelementptr inbounds [3 x i32], [3 x i32]* %2, i64 0, i64 2
%129 = load i32, i32* %128
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.40, i64 0, i64 0), i32 %129)
ret i32 0
}

LLVM IR (-O2):
@__const.main.contestants = [3 x i32] [i32 3, i32 4, i32 5]
@__const.main.text = [12 x i8] c"yes we can!\00"
@.str.1 = [15 x i8] c"int_ptr = %p\0A\00"
@.str.2 = [15 x i8] c"*int_ptr = %i\0A\00"
@.str.3 = [15 x i8] c"x = %i\0A\00"
@.str.4 = [15 x i8] c"ptr[0] = %c\0A\00"
@.str.6 = [22 x i8] c"*contestants = %i\0A\00"
@.str.7 = [22 x i8] c"contestants[0] = %i\0A\00"
@.str.8 = [22 x i8] c"*choice = %i\0A\00"
@.str.10 = [22 x i8] c"contestants = %p\0A\00"
@.str.11 = [22 x i8] c"&contestants[0] = %p\0A\00"
@.str.12 = [22 x i8] c"choice = %p\0A\00"
@.str.14 = [30 x i8] c"sizeof contestants = %lu\0A\00"
@.str.15 = [30 x i8] c"sizeof choice = %lu\0A\00"
@.str.17 = [15 x i8] c"ptr = %p\0A\00"
@.str.18 = [15 x i8] c"text = %p\0A\00"
@.str.19 = [15 x i8] c"&ptr[0] = %p\0A\00"
@.str.20 = [15 x i8] c"&text[0] = %p\0A\00"
@.str.21 = [15 x i8] c"*ptr = %c\0A\00"
@.str.22 = [15 x i8] c"*text = %c\0A\00"
@.str.23 = [15 x i8] c"text[0] = %c\0A\00"
@.str.24 = [15 x i8] c"ptr = %s\0A\00"
@.str.25 = [15 x i8] c"text = %s\0A\00"
@.str.27 = [15 x i8] c"&ptr = %p\0A\00"
@.str.28 = [15 x i8] c"&text = %p\0A\00"
@.str.29 = [20 x i8] c"text == &text = %d\0A\00"
@.str.30 = [20 x i8] c"ptr == &ptr = %d\0A\00"
@.str.32 = [23 x i8] c"sizeof ptr[0] = %lu\0A\00"
@.str.33 = [23 x i8] c"sizeof chice[0] = %lu\0A\00"
@.str.35 = [15 x i8] c"ptr + 4 = %s\0A\00"
@.str.36 = [22 x i8] c"*(choice + 1) = %i\0A\00"
@.str.37 = [22 x i8] c"*(choice + 2) = %i\0A\00"
@.str.38 = [22 x i8] c"*(2 + choice) = %i\0A\00"
@.str.39 = [22 x i8] c"2[chice] = %i\0A\00"
@.str.40 = [42 x i8] c"I\E2\80\99m going to pick contestant number %i\0A\00"
@str = [16 x i8] c"\E3\81\9F\E3\81\A0\E3\81\AE\E7\A2\BA\E8\AA\8D\00"
@str.41 = [13 x i8] c"\E5\85\A8\E3\81\A6\E4\B8\80\E7\B7\92\00"
@str.42 = [22 x i8] c"\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E3\81\8C\E4\B8\80\E7\B7\92\00"
@str.43 = [26 x i8] c"sizeof\E3\81\AE\E7\B5\90\E6\9E\9C\E3\81\8C\E9\81\95\E3\81\86!\00"
@str.44 = [14 x i8] c"char\E3\81\AE\E5\A0\B4\E5\90\88\00"
@str.45 = [28 x i8] c"\E9\85\8D\E5\88\97\E8\87\AA\E4\BD\93\E3\81\AE\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\00"
@str.46 = [50 x i8] c"int\E3\81\A8char\E3\81\A7\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E3\81\AE\E3\82\B5\E3\82\A4\E3\82\BA\E3\81\8C\E7\95\B0\E3\81\AA\E3\82\8B\00"
@str.47 = [19 x i8] c"\E3\83\9D\E3\82\A4\E3\83\B3\E3\82\BF\E6\BC\94\E7\AE\97\00"
define i32 @main() {
%1 = alloca [3 x i32]
%2 = alloca [12 x i8]
%3 = alloca i8*
%4 = alloca i32
%5 = bitcast [3 x i32]* %1 to i8*
%6 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 0
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %2, i64 0, i64 0
%8 = bitcast i8** %3 to i8*
store i8* %7, i8** %3
%9 = bitcast i32* %4 to i8*
store i32 4, i32* %4
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%12 = load i32, i32* %4
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = load i32, i32* %4
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = load i8, i8* %7
%17 = sext i8 %16 to i32
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %17)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.41, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 3)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i32 3)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 3)
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.42, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0), i32* %6)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i32* %6)
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0), i32* %6)
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.43, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i64 12)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i64 8)
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.44, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8* %7)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %7)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0), i8* %7)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %7)
%35 = load i8, i8* %7
%36 = sext i8 %35 to i32
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0), i32 %36)
%38 = load i8, i8* %7
%39 = sext i8 %38 to i32
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.22, i64 0, i64 0), i32 %39)
%41 = load i8, i8* %7
%42 = sext i8 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i32 %42)
%44 = load i8, i8* %7
%45 = sext i8 %44 to i32
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i32 %45)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i8* %7)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* %7)
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.45, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0), i8* %7)
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %7)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8** %3)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.28, i64 0, i64 0), [12 x i8]* %2)
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.29, i64 0, i64 0), i32 1)
%55 = load i8*, i8** %3
%56 = icmp eq i8* %55, %8
%57 = zext i1 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.30, i64 0, i64 0), i32 %57)
%59 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.46, i64 0, i64 0))
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.32, i64 0, i64 0), i64 1)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.33, i64 0, i64 0), i64 4)
%62 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.47, i64 0, i64 0))
%63 = load i8*, i8** %3
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.24, i64 0, i64 0), i8* %63)
%65 = load i8*, i8** %3
%66 = getelementptr inbounds i8, i8* %65, i64 4
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.35, i64 0, i64 0), i8* %66)
%68 = load i32, i32* %6
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 1
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.36, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [3 x i32], [3 x i32]* %1, i64 0, i64 2
%74 = load i32, i32* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.37, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %73
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.38, i64 0, i64 0), i32 %76)
%78 = load i32, i32* %73
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.39, i64 0, i64 0), i32 %78)
store i32 2, i32* %6
%80 = load i32, i32* %73
store i32 %80, i32* %70
store i32 2, i32* %73
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.40, i64 0, i64 0), i32 2)
ret i32 0
}