#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 EOF;
int /*<<< orphan*/ handleMoreRFC822LineBreak(int);
int /*<<< orphan*/ lexAppendc(int);
int /*<<< orphan*/ lexClearToken();
int lexLookahead();
int /*<<< orphan*/ lexPushLookaheadc(char);
int /*<<< orphan*/ lexSkipLookahead();
int /*<<< orphan*/ lexSkipWhite();
char *lexStr();
char *lexGet1Value() {
  int c;
  lexSkipWhite();
  c = lexLookahead();
  lexClearToken();
  while (c != EOF && c != ';') {
    if (c == '\n') {
      int a;
      lexSkipLookahead();
      a = lexLookahead();
      if (a == ' ' || a == '\t') {
        lexAppendc(' ');
        lexSkipLookahead();
      } else {
        lexPushLookaheadc('\n');
        break;
      }
    } else {
      lexAppendc(c);
      lexSkipLookahead();
    }
    c = lexLookahead();
  }
  lexAppendc(0);
  handleMoreRFC822LineBreak(c);
  return c == EOF ? 0 : lexStr();
}


x86 assembly (clang, -O0):
<lexGet1Value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x0,%al
call   1060 <lexSkipWhite@plt>
mov    $0x0,%al
call   10a0 <lexLookahead@plt>
mov    %eax,-0x4(%rbp)
mov    $0x0,%al
call   1040 <lexClearToken@plt>
mov    -0x4(%rbp),%ecx
xor    %eax,%eax
mov    0x2e3c(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x9(%rbp)
je     11c1 <lexGet1Value+0x41>
cmpl   $0x3b,-0x4(%rbp)
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    11d1 <lexGet1Value+0x51>
jmp    1248 <lexGet1Value+0xc8>
cmpl   $0xa,-0x4(%rbp)
jne    122a <lexGet1Value+0xaa>
mov    $0x0,%al
call   1050 <lexSkipLookahead@plt>
mov    $0x0,%al
call   10a0 <lexLookahead@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x20,-0x8(%rbp)
je     1200 <lexGet1Value+0x80>
cmpl   $0x9,-0x8(%rbp)
jne    1216 <lexGet1Value+0x96>
mov    $0x20,%edi
call   1090 <lexAppendc@plt>
mov    $0x0,%al
call   1050 <lexSkipLookahead@plt>
jmp    1225 <lexGet1Value+0xa5>
mov    $0xa,%edi
call   1070 <lexPushLookaheadc@plt>
jmp    1248 <lexGet1Value+0xc8>
jmp    1239 <lexGet1Value+0xb9>
mov    -0x4(%rbp),%edi
call   1090 <lexAppendc@plt>
mov    $0x0,%al
call   1050 <lexSkipLookahead@plt>
mov    $0x0,%al
call   10a0 <lexLookahead@plt>
mov    %eax,-0x4(%rbp)
jmp    11a0 <lexGet1Value+0x20>
xor    %edi,%edi
call   1090 <lexAppendc@plt>
mov    -0x4(%rbp),%edi
call   1080 <handleMoreRFC822LineBreak@plt>
mov    -0x4(%rbp),%eax
mov    0x2d87(%rip),%rcx
cmp    (%rcx),%eax
jne    1274 <lexGet1Value+0xf4>
xor    %eax,%eax
mov    %rax,-0x18(%rbp)
jmp    127f <lexGet1Value+0xff>
mov    $0x0,%al
call   1030 <lexStr@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lexGet1Value>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1060 <lexSkipWhite@plt>
xor    %eax,%eax
call   10a0 <lexLookahead@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <lexClearToken@plt>
mov    0x2e46(%rip),%r14
cmp    $0x3b,%ebx
jne    11cc <lexGet1Value+0x4c>
jmp    1202 <lexGet1Value+0x82>
nopl   0x0(%rax)
mov    %ebx,%edi
call   1090 <lexAppendc@plt>
xor    %eax,%eax
call   1050 <lexSkipLookahead@plt>
xor    %eax,%eax
call   10a0 <lexLookahead@plt>
mov    %eax,%ebx
cmp    $0x3b,%eax
je     1202 <lexGet1Value+0x82>
cmp    (%r14),%ebx
je     1202 <lexGet1Value+0x82>
cmp    $0xa,%ebx
jne    11b0 <lexGet1Value+0x30>
xor    %eax,%eax
call   1050 <lexSkipLookahead@plt>
xor    %eax,%eax
call   10a0 <lexLookahead@plt>
mov    $0x20,%ebx
cmp    $0x9,%eax
je     11b0 <lexGet1Value+0x30>
cmp    $0x20,%eax
je     11b0 <lexGet1Value+0x30>
mov    $0xa,%ebx
mov    $0xa,%edi
call   1070 <lexPushLookaheadc@plt>
xor    %edi,%edi
call   1090 <lexAppendc@plt>
mov    %ebx,%edi
call   1080 <handleMoreRFC822LineBreak@plt>
cmp    (%r14),%ebx
jne    121f <lexGet1Value+0x9f>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <lexStr@plt>

LLVM IR (-O0):
@EOF = global i32 0
define i8* @lexGet1Value() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 (...) @lexSkipWhite()
%4 = call i32 (...) @lexLookahead()
store i32 %4, i32* %1
%5 = call i32 (...) @lexClearToken()
br label %6
6: ; preds = %36, %0
%7 = load i32, i32* %1
%8 = load i32, i32* @EOF
%9 = icmp ne i32 %7, %8
br i1 %9, label %10, label %13
10: ; preds = %6
%11 = load i32, i32* %1
%12 = icmp ne i32 %11, 59
br label %13
13: ; preds = %10, %6
%14 = phi i1 [ false, %6 ], [ %12, %10 ]
br i1 %14, label %15, label %38
15: ; preds = %13
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 10
br i1 %17, label %18, label %32
18: ; preds = %15
%19 = call i32 (...) @lexSkipLookahead()
%20 = call i32 (...) @lexLookahead()
store i32 %20, i32* %2
%21 = load i32, i32* %2
%22 = icmp eq i32 %21, 32
br i1 %22, label %26, label %23
23: ; preds = %18
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 9
br i1 %25, label %26, label %29
26: ; preds = %23, %18
%27 = call i32 @lexAppendc(i32 32)
%28 = call i32 (...) @lexSkipLookahead()
br label %31
29: ; preds = %23
%30 = call i32 @lexPushLookaheadc(i8 signext 10)
br label %38
31: ; preds = %26
br label %36
32: ; preds = %15
%33 = load i32, i32* %1
%34 = call i32 @lexAppendc(i32 %33)
%35 = call i32 (...) @lexSkipLookahead()
br label %36
36: ; preds = %32, %31
%37 = call i32 (...) @lexLookahead()
store i32 %37, i32* %1
br label %6
38: ; preds = %29, %13
%39 = call i32 @lexAppendc(i32 0)
%40 = load i32, i32* %1
%41 = call i32 @handleMoreRFC822LineBreak(i32 %40)
%42 = load i32, i32* %1
%43 = load i32, i32* @EOF
%44 = icmp eq i32 %42, %43
br i1 %44, label %45, label %46
45: ; preds = %38
br label %48
46: ; preds = %38
%47 = call i8* (...) @lexStr()
br label %48
48: ; preds = %46, %45
%49 = phi i8* [ null, %45 ], [ %47, %46 ]
ret i8* %49
}

LLVM IR (-O2):
@EOF = global i32 0
define i8* @lexGet1Value() {
%1 = tail call i32 (...) @lexSkipWhite()
%2 = tail call i32 (...) @lexLookahead()
%3 = tail call i32 (...) @lexClearToken()
%4 = load i32, i32* @EOF
%5 = icmp ne i32 %2, %4
%6 = icmp ne i32 %2, 59
%7 = and i1 %6, %5
br i1 %7, label %8, label %25
8: ; preds = %0, %16
%9 = phi i32 [ %20, %16 ], [ %2, %0 ]
%10 = icmp eq i32 %9, 10
br i1 %10, label %11, label %16
11: ; preds = %8
%12 = tail call i32 (...) @lexSkipLookahead()
%13 = tail call i32 (...) @lexLookahead()
switch i32 %13, label %14 [
i32 32, label %16
i32 9, label %16
]
14: ; preds = %11
%15 = tail call i32 @lexPushLookaheadc(i8 signext 10)
br label %25
16: ; preds = %8, %11, %11
%17 = phi i32 [ 32, %11 ], [ 32, %11 ], [ %9, %8 ]
%18 = tail call i32 @lexAppendc(i32 %17)
%19 = tail call i32 (...) @lexSkipLookahead()
%20 = tail call i32 (...) @lexLookahead()
%21 = load i32, i32* @EOF
%22 = icmp ne i32 %20, %21
%23 = icmp ne i32 %20, 59
%24 = and i1 %23, %22
br i1 %24, label %8, label %25
25: ; preds = %16, %0, %14
%26 = phi i32 [ 10, %14 ], [ %2, %0 ], [ %20, %16 ]
%27 = tail call i32 @lexAppendc(i32 0)
%28 = tail call i32 @handleMoreRFC822LineBreak(i32 %26)
%29 = load i32, i32* @EOF
%30 = icmp eq i32 %26, %29
br i1 %30, label %33, label %31
31: ; preds = %25
%32 = tail call i8* (...) @lexStr()
br label %33
33: ; preds = %25, %31
%34 = phi i8* [ %32, %31 ], [ null, %25 ]
ret i8* %34
}