#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*/ block();
int /*<<< orphan*/ expr();
int /*<<< orphan*/ expr_assign();
int /*<<< orphan*/ get_lexval();
int /*<<< orphan*/ var_dcl();
int yyselect();
loop_stmt() {
  switch (yyselect()) {
  case 80: {
    get_lexval();
    get_lexval();
    switch (yyselect()) {
    case 119: {
      var_dcl();
    } break;
    default:;
    }
    get_lexval();
    expr();
    get_lexval();
    switch (yyselect()) {
    case 120: {
      expr_assign();
    } break;
    default:;
    }
    get_lexval();
    block();
  } break;
  case 81: {
    get_lexval();
    block();
    get_lexval();
    get_lexval();
    expr();
    get_lexval();
    get_lexval();
  } break;
  case 82: {
    get_lexval();
    get_lexval();
    get_lexval();
    get_lexval();
    get_lexval();
    get_lexval();
    block();
  } break;
  }
}


x86 assembly (clang, -O0):
<loop_stmt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %eax,%eax
call   1040 <yyselect@plt>
mov    %eax,%ecx
mov    %ecx,-0x8(%rbp)
sub    $0x50,%eax
je     11a4 <loop_stmt+0x44>
jmp    1182 <loop_stmt+0x22>
mov    -0x8(%rbp),%eax
sub    $0x51,%eax
je     1231 <loop_stmt+0xd1>
jmp    1193 <loop_stmt+0x33>
mov    -0x8(%rbp),%eax
sub    $0x52,%eax
je     1267 <loop_stmt+0x107>
jmp    1298 <loop_stmt+0x138>
xor    %eax,%eax
mov    %al,-0x9(%rbp)
call   1050 <get_lexval@plt>
mov    -0x9(%rbp),%al
call   1050 <get_lexval@plt>
mov    -0x9(%rbp),%al
call   1040 <yyselect@plt>
sub    $0x77,%eax
jne    11d8 <loop_stmt+0x78>
jmp    11cc <loop_stmt+0x6c>
mov    $0x0,%al
call   1030 <var_dcl@plt>
jmp    11dd <loop_stmt+0x7d>
jmp    11dd <loop_stmt+0x7d>
xor    %eax,%eax
mov    %al,-0xa(%rbp)
call   1050 <get_lexval@plt>
mov    -0xa(%rbp),%al
call   1060 <expr@plt>
mov    -0xa(%rbp),%al
call   1050 <get_lexval@plt>
mov    -0xa(%rbp),%al
call   1040 <yyselect@plt>
sub    $0x78,%eax
jne    1219 <loop_stmt+0xb9>
jmp    120d <loop_stmt+0xad>
mov    $0x0,%al
call   1070 <expr_assign@plt>
jmp    121e <loop_stmt+0xbe>
jmp    121e <loop_stmt+0xbe>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1080 <block@plt>
jmp    1298 <loop_stmt+0x138>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1080 <block@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1060 <expr@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
jmp    1298 <loop_stmt+0x138>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1050 <get_lexval@plt>
mov    $0x0,%al
call   1080 <block@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<loop_stmt>:
push   %rax
xor    %eax,%eax
call   1040 <yyselect@plt>
cmp    $0x52,%eax
je     11c6 <loop_stmt+0x66>
cmp    $0x51,%eax
je     11f9 <loop_stmt+0x99>
cmp    $0x50,%eax
jne    11f7 <loop_stmt+0x97>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1040 <yyselect@plt>
cmp    $0x77,%eax
jne    119c <loop_stmt+0x3c>
xor    %eax,%eax
call   1030 <var_dcl@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1060 <expr@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1040 <yyselect@plt>
cmp    $0x78,%eax
jne    11e9 <loop_stmt+0x89>
xor    %eax,%eax
call   1070 <expr_assign@plt>
jmp    11e9 <loop_stmt+0x89>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1080 <block@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1080 <block@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1060 <expr@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
xor    %eax,%eax
call   1050 <get_lexval@plt>
pop    %rcx
ret

LLVM IR (-O0):
define i32 @loop_stmt() {
%1 = alloca i32
%2 = call i32 (...) @yyselect()
switch i32 %2, label %37 [
i32 80, label %3
i32 81, label %21
i32 82, label %29
]
3: ; preds = %0
%4 = call i32 (...) @get_lexval()
%5 = call i32 (...) @get_lexval()
%6 = call i32 (...) @yyselect()
switch i32 %6, label %9 [
i32 119, label %7
]
7: ; preds = %3
%8 = call i32 (...) @var_dcl()
br label %10
9: ; preds = %3
br label %10
10: ; preds = %9, %7
%11 = call i32 (...) @get_lexval()
%12 = call i32 (...) @expr()
%13 = call i32 (...) @get_lexval()
%14 = call i32 (...) @yyselect()
switch i32 %14, label %17 [
i32 120, label %15
]
15: ; preds = %10
%16 = call i32 (...) @expr_assign()
br label %18
17: ; preds = %10
br label %18
18: ; preds = %17, %15
%19 = call i32 (...) @get_lexval()
%20 = call i32 (...) @block()
br label %37
21: ; preds = %0
%22 = call i32 (...) @get_lexval()
%23 = call i32 (...) @block()
%24 = call i32 (...) @get_lexval()
%25 = call i32 (...) @get_lexval()
%26 = call i32 (...) @expr()
%27 = call i32 (...) @get_lexval()
%28 = call i32 (...) @get_lexval()
br label %37
29: ; preds = %0
%30 = call i32 (...) @get_lexval()
%31 = call i32 (...) @get_lexval()
%32 = call i32 (...) @get_lexval()
%33 = call i32 (...) @get_lexval()
%34 = call i32 (...) @get_lexval()
%35 = call i32 (...) @get_lexval()
%36 = call i32 (...) @block()
br label %37
37: ; preds = %0, %29, %21, %18
%38 = load i32, i32* %1
ret i32 %38
}

LLVM IR (-O2):
define i32 @loop_stmt() {
%1 = tail call i32 (...) @yyselect()
switch i32 %1, label %36 [
i32 80, label %2
i32 81, label %20
i32 82, label %28
]
2: ; preds = %0
%3 = tail call i32 (...) @get_lexval()
%4 = tail call i32 (...) @get_lexval()
%5 = tail call i32 (...) @yyselect()
%6 = icmp eq i32 %5, 119
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 (...) @var_dcl()
br label %9
9: ; preds = %2, %7
%10 = tail call i32 (...) @get_lexval()
%11 = tail call i32 (...) @expr()
%12 = tail call i32 (...) @get_lexval()
%13 = tail call i32 (...) @yyselect()
%14 = icmp eq i32 %13, 120
br i1 %14, label %15, label %17
15: ; preds = %9
%16 = tail call i32 (...) @expr_assign()
br label %17
17: ; preds = %9, %15
%18 = tail call i32 (...) @get_lexval()
%19 = tail call i32 (...) @block()
br label %36
20: ; preds = %0
%21 = tail call i32 (...) @get_lexval()
%22 = tail call i32 (...) @block()
%23 = tail call i32 (...) @get_lexval()
%24 = tail call i32 (...) @get_lexval()
%25 = tail call i32 (...) @expr()
%26 = tail call i32 (...) @get_lexval()
%27 = tail call i32 (...) @get_lexval()
br label %36
28: ; preds = %0
%29 = tail call i32 (...) @get_lexval()
%30 = tail call i32 (...) @get_lexval()
%31 = tail call i32 (...) @get_lexval()
%32 = tail call i32 (...) @get_lexval()
%33 = tail call i32 (...) @get_lexval()
%34 = tail call i32 (...) @get_lexval()
%35 = tail call i32 (...) @block()
br label %36
36: ; preds = %0, %28, %20, %17
ret i32 undef
}