#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 *, ...);
int main(int argc, char *argv[]) {
  int areas[] = {10, 12, 13, 14, 20};
  char name[] = "Zed";
  char full_name[] = {'Z', 'e', 'd', ' ', 'A', '.',
                      ' ', 'S', 'h', 'a', 'w', '\0'};
  int elements = sizeof(areas) / sizeof(int);
  for (int i = 0; i < elements; ++i) {
    areas[i] = areas[i] + 100;
  }
  elements = sizeof(name) / sizeof(char);
  for (int i = 0; i < elements; ++i) {
    name[i] = name[i] + 5;
  }
  elements = sizeof(full_name) / sizeof(char);
  for (int i = 0; i < elements; ++i) {
    full_name[i] = full_name[i] + 1;
  }
  printf("The size of an int: %ld\n", sizeof(int));
  printf("The size of areas (int[]): %ld\n", sizeof(areas));
  printf("The number of ints in areas: %ld\n", sizeof(areas) / sizeof(int));
  printf("The first area is %d, the 2nd %d.\n", areas[0], areas[1]);
  printf("The size of a char: %ld\n", sizeof(char));
  printf("The size of name (char[]): %ld\n", sizeof(name));
  printf("The number of chars: %ld\n", sizeof(name) / sizeof(char));
  printf("The size of full_name (char[]): %ld\n", sizeof(full_name));
  printf("The number of chars: %ld\n", sizeof(full_name) / sizeof(char));
  printf("name=\"%s\" and full_name=\"%s\"\n", name, full_name);
  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    0xed3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xed0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xece(%rip),%eax
mov    %eax,-0x20(%rbp)
mov    0xec9(%rip),%eax
mov    %eax,-0x34(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xec1(%rip),%eax
mov    %eax,-0x38(%rbp)
movl   $0x5,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    119d <main+0x8d>
movslq -0x48(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
add    $0x64,%ecx
movslq -0x48(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    1170 <main+0x60>
movl   $0x4,-0x44(%rbp)
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    11db <main+0xcb>
movslq -0x4c(%rbp),%rax
movsbl -0x34(%rbp,%rax,1),%eax
add    $0x5,%eax
mov    %al,%cl
movslq -0x4c(%rbp),%rax
mov    %cl,-0x34(%rbp,%rax,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11ab <main+0x9b>
movl   $0xc,-0x44(%rbp)
movl   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    1219 <main+0x109>
movslq -0x50(%rbp),%rax
movsbl -0x40(%rbp,%rax,1),%eax
add    $0x1,%eax
mov    %al,%cl
movslq -0x50(%rbp),%rax
mov    %cl,-0x40(%rbp,%rax,1)
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    11e9 <main+0xd9>
lea    0xe04(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0a(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe17(%rip),%rdi
mov    $0x5,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%esi
mov    -0x2c(%rbp),%edx
lea    0xe20(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe35(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3b(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe48(%rip),%rdi
mov    $0x4,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4f(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe22(%rip),%rdi
mov    $0xc,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x34(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movl   $0x5696a5f,(%rsp)
movabs $0x54212f422165665b,%rax
2f 21 54
mov    %rax,0x4(%rsp)
movl   $0x1786269,0xc(%rsp)
01
lea    0xec6(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x6e,%esi
mov    $0x70,%edx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf06(%rip),%rbx
mov    $0x4,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0xc,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
mov    %rsp,%rsi
lea    0x4(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.areas = [5 x i32] [i32 10, i32 12, i32 13, i32 14, i32 20]
@__const.main.name = [4 x i8] c"Zed\00"
@__const.main.full_name = [12 x i8] c"Zed A. Shaw\00"
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.2 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.3 = [35 x i8] c"The first area is %d, the 2nd %d.\0A\00"
@.str.4 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.5 = [32 x i8] c"The size of name (char[]): %ld\0A\00"
@.str.6 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.7 = [37 x i8] c"The size of full_name (char[]): %ld\0A\00"
@.str.8 = [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [5 x i32]
%7 = alloca [4 x i8]
%8 = alloca [12 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = bitcast [5 x i32]* %6 to i8*
%14 = bitcast [4 x i8]* %7 to i8*
%15 = bitcast [12 x i8]* %8 to i8*
store i32 5, i32* %9
store i32 0, i32* %10
br label %16
16: ; preds = %29, %2
%17 = load i32, i32* %10
%18 = load i32, i32* %9
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %32
20: ; preds = %16
%21 = load i32, i32* %10
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 %22
%24 = load i32, i32* %23
%25 = add nsw i32 %24, 100
%26 = load i32, i32* %10
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 %27
store i32 %25, i32* %28
br label %29
29: ; preds = %20
%30 = load i32, i32* %10
%31 = add nsw i32 %30, 1
store i32 %31, i32* %10
br label %16
32: ; preds = %16
store i32 4, i32* %9
store i32 0, i32* %11
br label %33
33: ; preds = %48, %32
%34 = load i32, i32* %11
%35 = load i32, i32* %9
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = load i32, i32* %11
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 %39
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = add nsw i32 %42, 5
%44 = trunc i32 %43 to i8
%45 = load i32, i32* %11
%46 = sext i32 %45 to i64
%47 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 %46
store i8 %44, i8* %47
br label %48
48: ; preds = %37
%49 = load i32, i32* %11
%50 = add nsw i32 %49, 1
store i32 %50, i32* %11
br label %33
51: ; preds = %33
store i32 12, i32* %9
store i32 0, i32* %12
br label %52
52: ; preds = %67, %51
%53 = load i32, i32* %12
%54 = load i32, i32* %9
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %70
56: ; preds = %52
%57 = load i32, i32* %12
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 %58
%60 = load i8, i8* %59
%61 = sext i8 %60 to i32
%62 = add nsw i32 %61, 1
%63 = trunc i32 %62 to i8
%64 = load i32, i32* %12
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 %65
store i8 %63, i8* %66
br label %67
67: ; preds = %56
%68 = load i32, i32* %12
%69 = add nsw i32 %68, 1
store i32 %69, i32* %12
br label %52
70: ; preds = %52
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 20)
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i64 5)
%74 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 0
%75 = load i32, i32* %74
%76 = getelementptr inbounds [5 x i32], [5 x i32]* %6, i64 0, i64 1
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 %75, i32 %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i64 1)
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4)
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 4)
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 12)
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 12)
%84 = getelementptr inbounds [4 x i8], [4 x i8]* %7, i64 0, i64 0
%85 = getelementptr inbounds [12 x i8], [12 x i8]* %8, i64 0, i64 0
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* %84, i8* %85)
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"The size of an int: %ld\0A\00"
@.str.1 = [32 x i8] c"The size of areas (int[]): %ld\0A\00"
@.str.2 = [34 x i8] c"The number of ints in areas: %ld\0A\00"
@.str.3 = [35 x i8] c"The first area is %d, the 2nd %d.\0A\00"
@.str.4 = [25 x i8] c"The size of a char: %ld\0A\00"
@.str.5 = [32 x i8] c"The size of name (char[]): %ld\0A\00"
@.str.6 = [26 x i8] c"The number of chars: %ld\0A\00"
@.str.7 = [37 x i8] c"The size of full_name (char[]): %ld\0A\00"
@.str.8 = [30 x i8] c"name=\22%s\22 and full_name=\22%s\22\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca [12 x i8]
%5 = bitcast i32* %3 to i8*
store i32 90794591, i32* %3
%6 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 0
store i8 91, i8* %6
%7 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 1
store i8 102, i8* %7
%8 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 2
store i8 101, i8* %8
%9 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 3
store i8 33, i8* %9
%10 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 4
store i8 66, i8* %10
%11 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 5
store i8 47, i8* %11
%12 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 6
store i8 33, i8* %12
%13 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 7
store i8 84, i8* %13
%14 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 8
store i8 105, i8* %14
%15 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 9
store i8 98, i8* %15
%16 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 10
store i8 120, i8* %16
%17 = getelementptr inbounds [12 x i8], [12 x i8]* %4, i64 0, i64 11
store i8 1, i8* %17
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i64 4)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i64 20)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i64 5)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 110, i32 112)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i64 1)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i64 4)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 4)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), i64 12)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i64 12)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32* %3, i8* %6)
ret i32 0
}