#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*/ abort();
__attribute__((no)) void main3() {
  int i, j;
  int ic[16][16][5][8 + 2];
  for (i = 0; i < 16; i++) {
    for (j = 0; j < 8; j++) {
      ic[2][1][6][j + 1] = 5;
    }
  }
  for (i = 0; i < 16; i++) {
    for (j = 0; j < 8; j++) {
      if (ic[2][1][6][j + 1] != 5)
        abort();
    }
  }
}


x86 assembly (clang, -O0):
<main3>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc810,%rsp
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    1171 <main3+0x61>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    115e <main3+0x4e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
movl   $0x5,-0xad58(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1133 <main3+0x23>
jmp    1163 <main3+0x53>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1122 <main3+0x12>
movl   $0x0,-0x4(%rbp)
cmpl   $0x10,-0x4(%rbp)
jge    11d6 <main3+0xc6>
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jge    11c3 <main3+0xb3>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
cltq
cmpl   $0x5,-0xad58(%rbp,%rax,4)
05
je     11b0 <main3+0xa0>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    11b5 <main3+0xa5>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1189 <main3+0x79>
jmp    11c8 <main3+0xb8>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1178 <main3+0x68>
add    $0xc810,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main3>:
ret

LLVM IR (-O0):
define void @main3() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [16 x [16 x [5 x [10 x i32]]]]
store i32 0, i32* %1
br label %4
4: ; preds = %23, %0
%5 = load i32, i32* %1
%6 = icmp slt i32 %5, 16
br i1 %6, label %7, label %26
7: ; preds = %4
store i32 0, i32* %2
br label %8
8: ; preds = %19, %7
%9 = load i32, i32* %2
%10 = icmp slt i32 %9, 8
br i1 %10, label %11, label %22
11: ; preds = %8
%12 = getelementptr inbounds [16 x [16 x [5 x [10 x i32]]]], [16 x [16 x [5 x [10 x i32]]]]* %3, i64 0, i64 2
%13 = getelementptr inbounds [16 x [5 x [10 x i32]]], [16 x [5 x [10 x i32]]]* %12, i64 0, i64 1
%14 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %13, i64 0, i64 6
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %14, i64 0, i64 %17
store i32 5, i32* %18
br label %19
19: ; preds = %11
%20 = load i32, i32* %2
%21 = add nsw i32 %20, 1
store i32 %21, i32* %2
br label %8
22: ; preds = %8
br label %23
23: ; preds = %22
%24 = load i32, i32* %1
%25 = add nsw i32 %24, 1
store i32 %25, i32* %1
br label %4
26: ; preds = %4
store i32 0, i32* %1
br label %27
27: ; preds = %51, %26
%28 = load i32, i32* %1
%29 = icmp slt i32 %28, 16
br i1 %29, label %30, label %54
30: ; preds = %27
store i32 0, i32* %2
br label %31
31: ; preds = %47, %30
%32 = load i32, i32* %2
%33 = icmp slt i32 %32, 8
br i1 %33, label %34, label %50
34: ; preds = %31
%35 = getelementptr inbounds [16 x [16 x [5 x [10 x i32]]]], [16 x [16 x [5 x [10 x i32]]]]* %3, i64 0, i64 2
%36 = getelementptr inbounds [16 x [5 x [10 x i32]]], [16 x [5 x [10 x i32]]]* %35, i64 0, i64 1
%37 = getelementptr inbounds [5 x [10 x i32]], [5 x [10 x i32]]* %36, i64 0, i64 6
%38 = load i32, i32* %2
%39 = add nsw i32 %38, 1
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %37, i64 0, i64 %40
%42 = load i32, i32* %41
%43 = icmp ne i32 %42, 5
br i1 %43, label %44, label %46
44: ; preds = %34
%45 = call i32 (...) @abort()
unreachable
46: ; preds = %34
br label %47
47: ; preds = %46
%48 = load i32, i32* %2
%49 = add nsw i32 %48, 1
store i32 %49, i32* %2
br label %31
50: ; preds = %31
br label %51
51: ; preds = %50
%52 = load i32, i32* %1
%53 = add nsw i32 %52, 1
store i32 %53, i32* %1
br label %27
54: ; preds = %27
ret void
}

LLVM IR (-O2):
define void @main3() {
ret void
}