#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 yyselect();
type() {
  switch (yyselect()) {
  case 20: {
    get_lexval();
  } break;
  case 21: {
    get_lexval();
  } break;
  case 22: {
    get_lexval();
  } break;
  case 23: {
    get_lexval();
  } break;
  case 24: {
    get_lexval();
  } break;
  case 25: {
    get_lexval();
  } break;
  case 26: {
    get_lexval();
  } break;
  case 27: {
    get_lexval();
  } break;
  case 28: {
    get_lexval();
  } break;
  case 29: {
    get_lexval();
  } break;
  }
}


x86 assembly (clang, -O0):
<type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1030 <yyselect@plt>
add    $0xffffffec,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x9,%eax
ja     11c8 <type+0xa8>
mov    -0x10(%rbp),%rax
lea    0xeb4(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
jmp    11c8 <type+0xa8>
mov    $0x0,%al
call   1040 <get_lexval@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<type>:
push   %rax
xor    %eax,%eax
call   1030 <yyselect@plt>
add    $0xffffffec,%eax
cmp    $0x9,%eax
ja     1137 <type+0x17>
xor    %eax,%eax
call   1040 <get_lexval@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @type() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %23 [
i32 20, label %3
i32 21, label %5
i32 22, label %7
i32 23, label %9
i32 24, label %11
i32 25, label %13
i32 26, label %15
i32 27, label %17
i32 28, label %19
i32 29, label %21
]
3: ; preds = %0
%4 = call i32 (...) @get_lexval()
br label %23
5: ; preds = %0
%6 = call i32 (...) @get_lexval()
br label %23
7: ; preds = %0
%8 = call i32 (...) @get_lexval()
br label %23
9: ; preds = %0
%10 = call i32 (...) @get_lexval()
br label %23
11: ; preds = %0
%12 = call i32 (...) @get_lexval()
br label %23
13: ; preds = %0
%14 = call i32 (...) @get_lexval()
br label %23
15: ; preds = %0
%16 = call i32 (...) @get_lexval()
br label %23
17: ; preds = %0
%18 = call i32 (...) @get_lexval()
br label %23
19: ; preds = %0
%20 = call i32 (...) @get_lexval()
br label %23
21: ; preds = %0
%22 = call i32 (...) @get_lexval()
br label %23
23: ; preds = %0, %21, %19, %17, %15, %13, %11, %9, %7, %5, %3
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
define i32 @type() {
%1 = tail call i32 (...) @yyselect()
%2 = add i32 %1, -20
%3 = icmp ult i32 %2, 10
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 (...) @get_lexval()
br label %6
6: ; preds = %0, %4
ret i32 undef
}