#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*/ ages;

/* Variables and functions */
int /*<<< orphan*/ print_break();
int /*<<< orphan*/ printf(char *, char *, int);
int main(int argc, char *argv[]) {
  int ages[] = {23, 43, 12, 89, 2, 22};
  char *names[] = {"Alan", "Frank", "Mary", "John", "Lisa", "Colan"};
  int count = sizeof(ages) / sizeof(int);
  int i;
  for (i = 0; i < count; ++i) {
    printf("%s has %d years alive\n", names[i], ages[i]);
  }
  print_break();
  int *cur_age = ages;
  char **cur_name = names;
  for (i = 0; i < count; ++i) {
    printf("%s is %d years old\n", *(cur_name + i), *(cur_age + i));
  }
  print_break();
  for (i = 0; i < count; ++i) {
    printf("%s is %d years old again\n", cur_name[i], cur_age[i]);
  }
  print_break();
  for (cur_name = names, cur_age = ages; (cur_age - ages) < count;
       ++cur_name, ++cur_age) {
    printf("%s lived %d years so far.\n", *cur_name, *cur_age);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xead(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeaa(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1050 <memset@plt>
lea    0xe97(%rip),%rax
mov    %rax,-0x60(%rbp)
lea    0xe91(%rip),%rax
mov    %rax,-0x58(%rbp)
lea    0xe8c(%rip),%rax
mov    %rax,-0x50(%rbp)
lea    0xe86(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xe80(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xe7a(%rip),%rax
mov    %rax,-0x38(%rbp)
movl   $0x6,-0x64(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x64(%rbp),%eax
jge    1201 <main+0xd1>
movslq -0x68(%rbp),%rax
mov    -0x60(%rbp,%rax,8),%rsi
movslq -0x68(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xe4a(%rip),%rdi
call   1040 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    11ca <main+0x9a>
mov    $0x0,%al
call   1030 <print_break@plt>
lea    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x64(%rbp),%eax
jge    125c <main+0x12c>
mov    -0x78(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x70(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xe06(%rip),%rdi
call   1040 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    121f <main+0xef>
mov    $0x0,%al
call   1030 <print_break@plt>
movl   $0x0,-0x68(%rbp)
mov    -0x68(%rbp),%eax
cmp    -0x64(%rbp),%eax
jge    12a7 <main+0x177>
mov    -0x78(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x70(%rbp),%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xdcf(%rip),%rdi
call   1040 <printf@plt>
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    126a <main+0x13a>
mov    $0x0,%al
call   1030 <print_break@plt>
lea    -0x60(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
lea    -0x30(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
movslq -0x64(%rbp),%rcx
cmp    %rcx,%rax
jge    1310 <main+0x1e0>
mov    -0x78(%rbp),%rax
mov    (%rax),%rsi
mov    -0x70(%rbp),%rax
mov    (%rax),%edx
lea    0xd8f(%rip),%rdi
call   1040 <printf@plt>
mov    -0x78(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x70(%rbp)
jmp    12be <main+0x18e>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeee(%rip),%r14
lea    0xec7(%rip),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
mov    $0x17,%edx
call   1040 <printf@plt>
lea    0xeb5(%rip),%rsi
mov    %r14,%rdi
mov    %rsi,%r15
mov    $0x2b,%edx
call   1040 <printf@plt>
lea    0xea4(%rip),%r13
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0xc,%edx
call   1040 <printf@plt>
lea    0xe92(%rip),%rsi
mov    %r14,%rdi
mov    %rsi,%r12
mov    $0x59,%edx
call   1040 <printf@plt>
lea    0xe80(%rip),%rsi
mov    %r14,%rdi
mov    $0x2,%edx
call   1040 <printf@plt>
lea    0xe71(%rip),%rsi
mov    %r14,%rdi
mov    $0x16,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <print_break@plt>
lea    0xe73(%rip),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x17,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%r14
mov    %r15,%rsi
mov    $0x2b,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0xc,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%r15
mov    %r12,%rsi
mov    $0x59,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xe01(%rip),%r12
mov    %r12,%rsi
mov    $0x2,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xdef(%rip),%rsi
mov    $0x16,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <print_break@plt>
lea    0xe08(%rip),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x17,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2b,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0xc,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x59,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xd7d(%rip),%rsi
mov    $0x16,%edx
call   1040 <printf@plt>
xor    %eax,%eax
call   1030 <print_break@plt>
lea    0xdb0(%rip),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x17,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x2b,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0xc,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x59,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
call   1040 <printf@plt>
mov    %rbx,%rdi
lea    0xd0b(%rip),%rsi
mov    $0x16,%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.ages = [6 x i32] [i32 23, i32 43, i32 12, i32 89, i32 2, i32 22]
@.str = [5 x i8] c"Alan\00"
@.str.1 = [6 x i8] c"Frank\00"
@.str.2 = [5 x i8] c"Mary\00"
@.str.3 = [5 x i8] c"John\00"
@.str.4 = [5 x i8] c"Lisa\00"
@.str.5 = [6 x i8] c"Colan\00"
@.str.6 = [23 x i8] c"%s has %d years alive\0A\00"
@.str.7 = [20 x i8] c"%s is %d years old\0A\00"
@.str.8 = [26 x i8] c"%s is %d years old again\0A\00"
@.str.9 = [27 x i8] c"%s lived %d years so far.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [6 x i32]
%7 = alloca [6 x i8*]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32*
%11 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = bitcast [6 x i32]* %6 to i8*
%13 = bitcast [6 x i8*]* %7 to i8*
%14 = bitcast i8* %13 to [6 x i8*]*
%15 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8** %15
%16 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 1
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i32 0, i32 0), i8** %16
%17 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 2
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8** %17
%18 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 3
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8** %18
%19 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8** %19
%20 = getelementptr inbounds [6 x i8*], [6 x i8*]* %14, i32 0, i32 5
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i32 0, i32 0), i8** %20
store i32 6, i32* %8
store i32 0, i32* %9
br label %21
21: ; preds = %35, %2
%22 = load i32, i32* %9
%23 = load i32, i32* %8
%24 = icmp slt i32 %22, %23
br i1 %24, label %25, label %38
25: ; preds = %21
%26 = load i32, i32* %9
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds [6 x i8*], [6 x i8*]* %7, i64 0, i64 %27
%29 = load i8*, i8** %28
%30 = load i32, i32* %9
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 %31
%33 = load i32, i32* %32
%34 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %29, i32 %33)
br label %35
35: ; preds = %25
%36 = load i32, i32* %9
%37 = add nsw i32 %36, 1
store i32 %37, i32* %9
br label %21
38: ; preds = %21
%39 = call i32 (...) @print_break()
%40 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
store i32* %40, i32** %10
%41 = getelementptr inbounds [6 x i8*], [6 x i8*]* %7, i64 0, i64 0
store i8** %41, i8*** %11
store i32 0, i32* %9
br label %42
42: ; preds = %58, %38
%43 = load i32, i32* %9
%44 = load i32, i32* %8
%45 = icmp slt i32 %43, %44
br i1 %45, label %46, label %61
46: ; preds = %42
%47 = load i8**, i8*** %11
%48 = load i32, i32* %9
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
%51 = load i8*, i8** %50
%52 = load i32*, i32** %10
%53 = load i32, i32* %9
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i32, i32* %52, i64 %54
%56 = load i32, i32* %55
%57 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* %51, i32 %56)
br label %58
58: ; preds = %46
%59 = load i32, i32* %9
%60 = add nsw i32 %59, 1
store i32 %60, i32* %9
br label %42
61: ; preds = %42
%62 = call i32 (...) @print_break()
store i32 0, i32* %9
br label %63
63: ; preds = %79, %61
%64 = load i32, i32* %9
%65 = load i32, i32* %8
%66 = icmp slt i32 %64, %65
br i1 %66, label %67, label %82
67: ; preds = %63
%68 = load i8**, i8*** %11
%69 = load i32, i32* %9
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8*, i8** %68, i64 %70
%72 = load i8*, i8** %71
%73 = load i32*, i32** %10
%74 = load i32, i32* %9
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds i32, i32* %73, i64 %75
%77 = load i32, i32* %76
%78 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %72, i32 %77)
br label %79
79: ; preds = %67
%80 = load i32, i32* %9
%81 = add nsw i32 %80, 1
store i32 %81, i32* %9
br label %63
82: ; preds = %63
%83 = call i32 (...) @print_break()
%84 = getelementptr inbounds [6 x i8*], [6 x i8*]* %7, i64 0, i64 0
store i8** %84, i8*** %11
%85 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
store i32* %85, i32** %10
br label %86
86: ; preds = %102, %82
%87 = load i32*, i32** %10
%88 = getelementptr inbounds [6 x i32], [6 x i32]* %6, i64 0, i64 0
%89 = ptrtoint i32* %87 to i64
%90 = ptrtoint i32* %88 to i64
%91 = sub i64 %89, %90
%92 = sdiv exact i64 %91, 4
%93 = load i32, i32* %8
%94 = sext i32 %93 to i64
%95 = icmp slt i64 %92, %94
br i1 %95, label %96, label %107
96: ; preds = %86
%97 = load i8**, i8*** %11
%98 = load i8*, i8** %97
%99 = load i32*, i32** %10
%100 = load i32, i32* %99
%101 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* %98, i32 %100)
br label %102
102: ; preds = %96
%103 = load i8**, i8*** %11
%104 = getelementptr inbounds i8*, i8** %103, i32 1
store i8** %104, i8*** %11
%105 = load i32*, i32** %10
%106 = getelementptr inbounds i32, i32* %105, i32 1
store i32* %106, i32** %10
br label %86
107: ; preds = %86
%108 = load i32, i32* %3
ret i32 %108
}

LLVM IR (-O2):
@.str = [5 x i8] c"Alan\00"
@.str.1 = [6 x i8] c"Frank\00"
@.str.2 = [5 x i8] c"Mary\00"
@.str.3 = [5 x i8] c"John\00"
@.str.4 = [5 x i8] c"Lisa\00"
@.str.5 = [6 x i8] c"Colan\00"
@.str.6 = [23 x i8] c"%s has %d years alive\0A\00"
@.str.7 = [20 x i8] c"%s is %d years old\0A\00"
@.str.8 = [26 x i8] c"%s is %d years old again\0A\00"
@.str.9 = [27 x i8] c"%s lived %d years so far.\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 23)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 43)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 12)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 89)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 2)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 22)
%9 = tail call i32 (...) @print_break()
%10 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 23)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 43)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 12)
%13 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 89)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 2)
%15 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 22)
%16 = tail call i32 (...) @print_break()
%17 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 23)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 43)
%19 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 12)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 89)
%21 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 2)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 22)
%23 = tail call i32 (...) @print_break()
%24 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32 23)
%25 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i32 43)
%26 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 12)
%27 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 89)
%28 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 2)
%29 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 22)
ret i32 0
}