#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 read_char();
int /*<<< orphan*/ unread_char(int);
void parse_opt_space() {
  int c;
  for (;;) {
    c = read_char();
    if (c == (-1))
      return;
    if (c == ';') {
      for (;;) {
        c = read_char();
        if ((c == '\n') || (c == '\r') || (c == (-1))) {
          break;
        }
      }
    }
    if (c > ' ') {
      break;
    }
  }
  unread_char(c);
}


x86 assembly (clang, -O0):
<parse_opt_space>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <read_char@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xffffffff,-0x4(%rbp)
jne    1141 <parse_opt_space+0x21>
jmp    11a3 <parse_opt_space+0x83>
cmpl   $0x3b,-0x4(%rbp)
jne    1187 <parse_opt_space+0x67>
jmp    1150 <parse_opt_space+0x30>
mov    $0x0,%al
call   1030 <read_char@plt>
mov    %eax,-0x4(%rbp)
cmpl   $0xa,-0x4(%rbp)
je     1178 <parse_opt_space+0x58>
cmpl   $0xd,-0x4(%rbp)
je     1178 <parse_opt_space+0x58>
cmpl   $0xffffffff,-0x4(%rbp)
jne    117d <parse_opt_space+0x5d>
jmp    1182 <parse_opt_space+0x62>
jmp    1150 <parse_opt_space+0x30>
jmp    1187 <parse_opt_space+0x67>
cmpl   $0x20,-0x4(%rbp)
jle    1196 <parse_opt_space+0x76>
jmp    119b <parse_opt_space+0x7b>
jmp    1128 <parse_opt_space+0x8>
mov    -0x4(%rbp),%edi
call   1040 <unread_char@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_opt_space>:
push   %rbx
mov    $0x4801,%ebx
jmp    113a <parse_opt_space+0x1a>
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     116e <parse_opt_space+0x4e>
cmp    $0x21,%eax
jge    1166 <parse_opt_space+0x46>
xor    %eax,%eax
call   1030 <read_char@plt>
cmp    $0x3b,%eax
jne    1130 <parse_opt_space+0x10>
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <read_char@plt>
lea    0x1(%rax),%ecx
cmp    $0xe,%ecx
ja     1150 <parse_opt_space+0x30>
bt     %ecx,%ebx
jae    1150 <parse_opt_space+0x30>
jmp    1135 <parse_opt_space+0x15>
mov    %eax,%edi
pop    %rbx
jmp    1040 <unread_char@plt>
pop    %rbx
ret

LLVM IR (-O0):
define void @parse_opt_space() {
%1 = alloca i32
br label %2
2: ; preds = %28, %0
%3 = call i32 (...) @read_char()
store i32 %3, i32* %1
%4 = load i32, i32* %1
%5 = icmp eq i32 %4, -1
br i1 %5, label %6, label %7
6: ; preds = %2
br label %32
7: ; preds = %2
%8 = load i32, i32* %1
%9 = icmp eq i32 %8, 59
br i1 %9, label %10, label %24
10: ; preds = %7
br label %11
11: ; preds = %22, %10
%12 = call i32 (...) @read_char()
store i32 %12, i32* %1
%13 = load i32, i32* %1
%14 = icmp eq i32 %13, 10
br i1 %14, label %21, label %15
15: ; preds = %11
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 13
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %1
%20 = icmp eq i32 %19, -1
br i1 %20, label %21, label %22
21: ; preds = %18, %15, %11
br label %23
22: ; preds = %18
br label %11
23: ; preds = %21
br label %24
24: ; preds = %23, %7
%25 = load i32, i32* %1
%26 = icmp sgt i32 %25, 32
br i1 %26, label %27, label %28
27: ; preds = %24
br label %29
28: ; preds = %24
br label %2
29: ; preds = %27
%30 = load i32, i32* %1
%31 = call i32 @unread_char(i32 %30)
br label %32
32: ; preds = %29, %6
ret void
}

LLVM IR (-O2):
define void @parse_opt_space() {
br label %1
1: ; preds = %5, %0
%2 = tail call i32 (...) @read_char()
switch i32 %2, label %5 [
i32 -1, label %10
i32 59, label %3
]
3: ; preds = %1, %3
%4 = tail call i32 (...) @read_char()
switch i32 %4, label %3 [
i32 -1, label %5
i32 13, label %5
i32 10, label %5
]
5: ; preds = %3, %3, %3, %1
%6 = phi i32 [ %2, %1 ], [ %4, %3 ], [ %4, %3 ], [ %4, %3 ]
%7 = icmp sgt i32 %6, 32
br i1 %7, label %8, label %1
8: ; preds = %5
%9 = tail call i32 @unread_char(i32 %6)
br label %10
10: ; preds = %1, %8
ret void
}