#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*/ get_lexval();
int /*<<< orphan*/ null_point();
int yyselect();
array_dcl() {
  switch (yyselect()) {
  case 11: {
    null_point();
  } break;
  case 12: {
    get_lexval();
    get_lexval();
    array_dcl();
  } break;
  case 13: {
    get_lexval();
    get_lexval();
    get_lexval();
    array_dcl();
  } break;
  }
}


x86 assembly (clang, -O0):
<array_dcl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <yyselect@plt>
mov    %eax,%ecx
mov    %ecx,-0x8(%rbp)
sub    $0xb,%eax
je     1184 <array_dcl+0x44>
jmp    1162 <array_dcl+0x22>
mov    -0x8(%rbp),%eax
sub    $0xc,%eax
je     1190 <array_dcl+0x50>
jmp    1173 <array_dcl+0x33>
mov    -0x8(%rbp),%eax
sub    $0xd,%eax
je     11a8 <array_dcl+0x68>
jmp    11c2 <array_dcl+0x82>
mov    $0x0,%al
call   1060 <null_point@plt>
jmp    11c2 <array_dcl+0x82>
mov    $0x0,%al
call   1040 <get_lexval@plt>
mov    $0x0,%al
call   1040 <get_lexval@plt>
call   1050 <array_dcl@plt>
jmp    11c2 <array_dcl+0x82>
mov    $0x0,%al
call   1040 <get_lexval@plt>
mov    $0x0,%al
call   1040 <get_lexval@plt>
mov    $0x0,%al
call   1040 <get_lexval@plt>
call   1050 <array_dcl@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<array_dcl>:
push   %rax
jmp    114e <array_dcl+0x1e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1040 <get_lexval@plt>
xor    %eax,%eax
call   1040 <get_lexval@plt>
xor    %eax,%eax
call   1030 <yyselect@plt>
cmp    $0xc,%eax
je     1140 <array_dcl+0x10>
cmp    $0xd,%eax
jne    1168 <array_dcl+0x38>
xor    %eax,%eax
call   1040 <get_lexval@plt>
jmp    1140 <array_dcl+0x10>
cmp    $0xb,%eax
jne    1174 <array_dcl+0x44>
xor    %eax,%eax
call   1050 <null_point@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @array_dcl() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %14 [
i32 11, label %3
i32 12, label %5
i32 13, label %9
]
3: ; preds = %0
%4 = call i32 (...) @null_point()
br label %14
5: ; preds = %0
%6 = call i32 (...) @get_lexval()
%7 = call i32 (...) @get_lexval()
%8 = call i32 @array_dcl()
br label %14
9: ; preds = %0
%10 = call i32 (...) @get_lexval()
%11 = call i32 (...) @get_lexval()
%12 = call i32 (...) @get_lexval()
%13 = call i32 @array_dcl()
br label %14
14: ; preds = %0, %9, %5, %3
%15 = load i32, i32* %1
ret i32 %15
}

LLVM IR (-O2):
define i32 @array_dcl() {
br label %1
1: ; preds = %5, %0
%2 = tail call i32 (...) @yyselect()
switch i32 %2, label %10 [
i32 11, label %3
i32 12, label %5
i32 13, label %8
]
3: ; preds = %1
%4 = tail call i32 (...) @null_point()
br label %10
5: ; preds = %1, %8
%6 = tail call i32 (...) @get_lexval()
%7 = tail call i32 (...) @get_lexval()
br label %1
8: ; preds = %1
%9 = tail call i32 (...) @get_lexval()
br label %5
10: ; preds = %1, %3
ret i32 undef
}