#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*/ language;
typedef int /*<<< orphan*/ iptr;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  char *language[] = {"visual C++", "java", "javascript", "android"};
  char **ptr = language;
  printf("[%c]", *language[3]);
  printf("[%s]", *ptr);
  printf("[%p]", ptr);
  printf("[%s]\n", *++ptr);
  printf("size language: %d\n", sizeof(language));
  char *sptr = "hello";
  printf("\n\n\n%p %c ,%s", sptr, *sptr, sptr);
  int num = 10;
  int *iptr = &num;
  printf("!!!!%d", sizeof(iptr));
  printf("\n\n%p %d", iptr, *iptr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2cd3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x2cd0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x2ccd(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cca(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%esi
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    (%rax),%rsi
lea    0xeab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xe9e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
mov    0x8(%rax),%rsi
lea    0xe82(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7a(%rip),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe7a(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rsi
mov    -0x40(%rbp),%rax
movsbl (%rax),%edx
mov    -0x40(%rbp),%rcx
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xa,-0x44(%rbp)
lea    -0x44(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    0xe56(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x50(%rbp),%rsi
mov    -0x50(%rbp),%rax
mov    (%rax),%edx
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
movaps 0x2cf5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2cd9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xef0(%rip),%rdi
mov    $0x61,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
lea    0xeb3(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%rsi
lea    0xebf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xeb7(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xebd(%rip),%rdi
lea    0xeb0(%rip),%rcx
mov    %rcx,%rsi
mov    $0x68,%edx
xor    %eax,%eax
call   1030 <printf@plt>
movl   $0xa,0xc(%rsp)
lea    0xea5(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
lea    0xc(%rsp),%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"visual C++\00"
@.str.1 = [5 x i8] c"java\00"
@.str.2 = [11 x i8] c"javascript\00"
@.str.3 = [8 x i8] c"android\00"
@__const.main.language = [4 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [5 x i8] c"[%c]\00"
@.str.5 = [5 x i8] c"[%s]\00"
@.str.6 = [5 x i8] c"[%p]\00"
@.str.7 = [6 x i8] c"[%s]\0A\00"
@.str.8 = [19 x i8] c"size language: %d\0A\00"
@.str.9 = [6 x i8] c"hello\00"
@.str.10 = [13 x i8] c"\0A\0A\0A%p %c ,%s\00"
@.str.11 = [7 x i8] c"!!!!%d\00"
@.str.12 = [8 x i8] c"\0A\0A%p %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x i8*]
%7 = alloca i8**
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = bitcast [4 x i8*]* %6 to i8*
%12 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 0
store i8** %12, i8*** %7
%13 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 3
%14 = load i8*, i8** %13
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %16)
%18 = load i8**, i8*** %7
%19 = load i8*, i8** %18
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* %19)
%21 = load i8**, i8*** %7
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %21)
%23 = load i8**, i8*** %7
%24 = getelementptr inbounds i8*, i8** %23, i32 1
store i8** %24, i8*** %7
%25 = load i8*, i8** %24
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %25)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 32)
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8** %8
%28 = load i8*, i8** %8
%29 = load i8*, i8** %8
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = load i8*, i8** %8
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* %28, i32 %31, i8* %32)
store i32 10, i32* %9
store i32* %9, i32** %10
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i64 8)
%35 = load i32*, i32** %10
%36 = load i32*, i32** %10
%37 = load i32, i32* %36
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32* %35, i32 %37)
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"visual C++\00"
@.str.1 = [5 x i8] c"java\00"
@.str.2 = [11 x i8] c"javascript\00"
@.str.3 = [8 x i8] c"android\00"
@__const.main.language = [4 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [5 x i8] c"[%c]\00"
@.str.5 = [5 x i8] c"[%s]\00"
@.str.6 = [5 x i8] c"[%p]\00"
@.str.7 = [6 x i8] c"[%s]\0A\00"
@.str.8 = [19 x i8] c"size language: %d\0A\00"
@.str.9 = [6 x i8] c"hello\00"
@.str.10 = [13 x i8] c"\0A\0A\0A%p %c ,%s\00"
@.str.11 = [7 x i8] c"!!!!%d\00"
@.str.12 = [8 x i8] c"\0A\0A%p %d\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [4 x i8*]
%4 = alloca i32
%5 = bitcast [4 x i8*]* %3 to i8*
%6 = getelementptr inbounds [4 x i8*], [4 x i8*]* %3, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 97)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8** %6)
%10 = getelementptr inbounds [4 x i8*], [4 x i8*]* %3, i64 0, i64 1
%11 = load i8*, i8** %10
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0), i64 32)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i32 104, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%15 = bitcast i32* %4 to i8*
store i32 10, i32* %4
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0), i64 8)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i32* %4, i32 10)
ret i32 0
}