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

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int);
int main(void) {
  int fila[100] = {111, 222, 333, 444, 555, 666};
  int p = 0;
  int u = 0;
  fila[u++] = 777;
  for (int i = 0; i < 6; i++) {
    printf("%d\n", fila[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x190,%edx
call   1040 <memset@plt>
movl   $0x6f,-0x1a0(%rbp)
movl   $0xde,-0x19c(%rbp)
movl   $0x14d,-0x198(%rbp)
movl   $0x1bc,-0x194(%rbp)
movl   $0x22b,-0x190(%rbp)
movl   $0x29a,-0x18c(%rbp)
movl   $0x0,-0x1a4(%rbp)
movl   $0x0,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1a8(%rbp)
cltq
movl   $0x309,-0x1a0(%rbp,%rax,4)
movl   $0x0,-0x1ac(%rbp)
cmpl   $0x6,-0x1ac(%rbp)
jge    11f8 <main+0xd8>
movslq -0x1ac(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%esi
lea    0xe21(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1ac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ac(%rbp)
jmp    11bd <main+0x9d>
mov    -0x4(%rbp),%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee8(%rip),%rbx
mov    %rbx,%rdi
mov    $0x309,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0xde,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x14d,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x1bc,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x22b,%esi
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    $0x29a,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = bitcast [100 x i32]* %2 to i8*
%7 = bitcast i8* %6 to <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>*
%8 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 0
store i32 111, i32* %8
%9 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 1
store i32 222, i32* %9
%10 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 2
store i32 333, i32* %10
%11 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 3
store i32 444, i32* %11
%12 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 4
store i32 555, i32* %12
%13 = getelementptr inbounds <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>, <{ i32, i32, i32, i32, i32, i32, [94 x i32] }>* %7, i32 0, i32 5
store i32 666, i32* %13
store i32 0, i32* %3
store i32 0, i32* %4
%14 = load i32, i32* %4
%15 = add nsw i32 %14, 1
store i32 %15, i32* %4
%16 = sext i32 %14 to i64
%17 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %16
store i32 777, i32* %17
store i32 0, i32* %5
br label %18
18: ; preds = %27, %0
%19 = load i32, i32* %5
%20 = icmp slt i32 %19, 6
br i1 %20, label %21, label %30
21: ; preds = %18
%22 = load i32, i32* %5
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %23
%25 = load i32, i32* %24
%26 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %25)
br label %27
27: ; preds = %21
%28 = load i32, i32* %5
%29 = add nsw i32 %28, 1
store i32 %29, i32* %5
br label %18
30: ; preds = %18
%31 = load i32, i32* %1
ret i32 %31
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 777)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 222)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 333)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 444)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 555)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 666)
ret i32 0
}