#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*/ errflush(int);
int /*<<< orphan*/ error(char *);
int o;
int symbol();
int t;
int tree();
pexpr() {
  register o, t;
  if ((o = symbol()) != 6)
    goto syntax;
  t = tree();
  if ((o = symbol()) != 7)
    goto syntax;
  return (t);
syntax:
  error("Statement syntax");
  errflush(o);
  return (0);
}


x86 assembly (clang, -O0):
<pexpr>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1060 <symbol@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x6,%eax
je     1160 <pexpr+0x20>
jmp    118d <pexpr+0x4d>
mov    $0x0,%al
call   1050 <tree@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1060 <symbol@plt>
mov    %eax,-0x8(%rbp)
cmp    $0x7,%eax
je     1182 <pexpr+0x42>
jmp    118d <pexpr+0x4d>
mov    -0xc(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    11a8 <pexpr+0x68>
lea    0xe6c(%rip),%rdi
call   1030 <error@plt>
mov    -0x8(%rbp),%edi
call   1040 <errflush@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pexpr>:
push   %rbp
push   %r14
push   %rbx
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <symbol@plt>
mov    %eax,%ebp
cmp    $0x6,%eax
jne    1171 <pexpr+0x31>
xor    %eax,%eax
call   1050 <tree@plt>
mov    %eax,%r14d
xor    %eax,%eax
call   1060 <symbol@plt>
mov    %eax,%ebp
cmp    $0x7,%eax
jne    1171 <pexpr+0x31>
mov    %r14d,%ebx
jmp    1184 <pexpr+0x44>
lea    0xe88(%rip),%rdi
call   1030 <error@plt>
mov    %ebp,%edi
call   1040 <errflush@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Statement syntax\00"
@o = global i32 0
@t = global i32 0
define i32 @pexpr() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 (...) @symbol()
store i32 %4, i32* %2
%5 = icmp ne i32 %4, 6
br i1 %5, label %6, label %7
6: ; preds = %0
br label %14
7: ; preds = %0
%8 = call i32 (...) @tree()
store i32 %8, i32* %3
%9 = call i32 (...) @symbol()
store i32 %9, i32* %2
%10 = icmp ne i32 %9, 7
br i1 %10, label %11, label %12
11: ; preds = %7
br label %14
12: ; preds = %7
%13 = load i32, i32* %3
store i32 %13, i32* %1
br label %18
14: ; preds = %11, %6
%15 = call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* %2
%17 = call i32 @errflush(i32 %16)
store i32 0, i32* %1
br label %18
18: ; preds = %14, %12
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@.str = [17 x i8] c"Statement syntax\00"
@o = global i32 0
@t = global i32 0
define i32 @pexpr() {
%1 = tail call i32 (...) @symbol()
%2 = icmp eq i32 %1, 6
br i1 %2, label %3, label %7
3: ; preds = %0
%4 = tail call i32 (...) @tree()
%5 = tail call i32 (...) @symbol()
%6 = icmp eq i32 %5, 7
br i1 %6, label %11, label %7
7: ; preds = %3, %0
%8 = phi i32 [ %1, %0 ], [ %5, %3 ]
%9 = tail call i32 @error(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%10 = tail call i32 @errflush(i32 %8)
br label %11
11: ; preds = %3, %7
%12 = phi i32 [ 0, %7 ], [ %4, %3 ]
ret i32 %12
}