#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*/ name;
typedef int /*<<< orphan*/ full_name;
typedef int /*<<< orphan*/ areas;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, char, ...);
int main(int argc, char *argv[]) {
  char full_name[] = {'Z', 'e', 'd', ' ', 'A', '.',
                      ' ', 'S', 'h', 'a', 'w', '\0'};
  int areas[] = {10, 12, 15, 18, 91};
  char name[] = "Zed";
  full_name[0] = areas[4];
  printf("The size of an int is %ld\n", sizeof(int));
  printf("The size of areas is %ld\n", sizeof(areas));
  printf("The number of ints in areas is %ld\n", sizeof(areas) / sizeof(int));
  printf("The first area is %d, the second one is %d\n", areas[0], areas[1]);
  printf("The size of a char is %ld\n", sizeof(char));
  printf("The size of name is %ld\n", sizeof(name));
  printf("The number of chars in name is %ld\n", sizeof(name) / sizeof(char));
  printf("The size of full_name is %ld\n", sizeof(full_name));
  printf("The number of chars in full_name is %ld\n",
         sizeof(full_name) / sizeof(char));
  printf("name is \"%c\" and full_name is \"%s\"\n", name[0], full_name);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xed3(%rip),%rax
mov    %rax,-0x1c(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0x101f(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0x101c(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0x101a(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xead(%rip),%eax
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%eax
mov    %al,-0x1c(%rbp)
lea    0xea1(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea9(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
mov    -0x2c(%rbp),%edx
lea    0xebb(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%al
lea    -0x1c(%rbp),%rdx
lea    0xf0f(%rip),%rdi
movsbl %al,%esi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movabs $0x53202e412064655a,%rax
2e 20 53
mov    %rax,0x8(%rsp)
movl   $0x776168,0x10(%rsp)
movb   $0x5b,0x8(%rsp)
lea    0xed5(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xedd(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
mov    $0xa,%esi
mov    $0xc,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf33(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
lea    0x8(%rsp),%rdx
mov    $0x5a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@__const.main.areas = [5 x i32] [i32 10, i32 12, i32 15, i32 18, i32 91]
@__const.main.name = [4 x i8] c"Zed\00"
@.str = [27 x i8] c"The size of an int is %ld\0A\00"
@.str.1 = [26 x i8] c"The size of areas is %ld\0A\00"
@.str.2 = [36 x i8] c"The number of ints in areas is %ld\0A\00"
@.str.3 = [44 x i8] c"The first area is %d, the second one is %d\0A\00"
@.str.4 = [27 x i8] c"The size of a char is %ld\0A\00"
@.str.5 = [25 x i8] c"The size of name is %ld\0A\00"
@.str.6 = [36 x i8] c"The number of chars in name is %ld\0A\00"
@.str.7 = [30 x i8] c"The size of full_name is %ld\0A\00"
@.str.8 = [41 x i8] c"The number of chars in full_name is %ld\0A\00"
@.str.9 = [36 x i8] c"name is \22%c\22 and full_name is \22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [12 x i8]
%7 = alloca [5 x i32]
%8 = alloca [4 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [12 x i8]* %6 to i8*
%10 = bitcast [5 x i32]* %7 to i8*
%11 = bitcast [4 x i8]* %8 to i8*
%12 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 4
%13 = load i32, i32* %12
%14 = trunc i32 %13 to i8
%15 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
store i8 %14, i8* %15
%16 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8 signext 4)
%17 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8 signext 20)
%18 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8 signext 5)
%19 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 0
%20 = load i32, i32* %19
%21 = trunc i32 %20 to i8
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %7, i64 0, i64 1
%23 = load i32, i32* %22
%24 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i8 signext %21, i32 %23)
%25 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8 signext 1)
%26 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8 signext 4)
%27 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i8 signext 4)
%28 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8 signext 12)
%29 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i8 signext 12)
%30 = getelementptr inbounds [4 x i8], [4 x i8]* %8, i64 0, i64 0
%31 = load i8, i8* %30
%32 = getelementptr inbounds [12 x i8], [12 x i8]* %6, i64 0, i64 0
%33 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i8 signext %31, i8* %32)
ret i32 0
}

LLVM IR (-O2):
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@.str = [27 x i8] c"The size of an int is %ld\0A\00"
@.str.1 = [26 x i8] c"The size of areas is %ld\0A\00"
@.str.2 = [36 x i8] c"The number of ints in areas is %ld\0A\00"
@.str.3 = [44 x i8] c"The first area is %d, the second one is %d\0A\00"
@.str.4 = [27 x i8] c"The size of a char is %ld\0A\00"
@.str.5 = [25 x i8] c"The size of name is %ld\0A\00"
@.str.6 = [36 x i8] c"The number of chars in name is %ld\0A\00"
@.str.7 = [30 x i8] c"The size of full_name is %ld\0A\00"
@.str.8 = [41 x i8] c"The number of chars in full_name is %ld\0A\00"
@.str.9 = [36 x i8] c"name is \22%c\22 and full_name is \22%s\22\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [12 x i8]
%4 = getelementptr inbounds [12 x i8], [12 x i8]* %3, i64 0, i64 0
store i8 91, i8* %4
%5 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8 signext 4)
%6 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8 signext 20)
%7 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i8 signext 5)
%8 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), i8 signext 10, i32 12)
%9 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i8 signext 1)
%10 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8 signext 4)
%11 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i8 signext 4)
%12 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8 signext 12)
%13 = tail call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.8, i64 0, i64 0), i8 signext 12)
%14 = call i32 (i8*, i8, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.9, i64 0, i64 0), i8 signext 90, i8* %4)
ret i32 0
}