#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 ncss_Getchar();
int skipws() {
  int c;
  while ((c = ncss_Getchar()) != EOF &&
         ((c) == (256 + 1) || (c) == '\n' || (c) == '\t' || (c) == ' ')) {
  }
  return c;
}


x86 assembly (clang, -O0):
<skipws>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <ncss_Getchar@plt>
mov    %eax,%ecx
mov    %ecx,-0x4(%rbp)
xor    %eax,%eax
mov    0x2ebb(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x5(%rbp)
je     1178 <skipws+0x68>
mov    $0x1,%al
cmpl   $0x101,-0x4(%rbp)
mov    %al,-0x6(%rbp)
je     1172 <skipws+0x62>
mov    $0x1,%al
cmpl   $0xa,-0x4(%rbp)
mov    %al,-0x6(%rbp)
je     1172 <skipws+0x62>
mov    $0x1,%al
cmpl   $0x9,-0x4(%rbp)
mov    %al,-0x6(%rbp)
je     1172 <skipws+0x62>
cmpl   $0x20,-0x4(%rbp)
sete   %al
mov    %al,-0x6(%rbp)
mov    -0x6(%rbp),%al
mov    %al,-0x5(%rbp)
mov    -0x5(%rbp),%al
test   $0x1,%al
jne    1188 <skipws+0x78>
jmp    118d <skipws+0x7d>
jmp    1118 <skipws+0x8>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipws>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <ncss_Getchar@plt>
mov    0x2ec6(%rip),%rbx
cmp    (%rbx),%eax
jne    112e <skipws+0x1e>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
movabs $0x100000600,%r14
jmp    1153 <skipws+0x43>
nopw   0x0(%rax,%rax,1)
mov    %eax,%ecx
bt     %rcx,%r14
jae    1158 <skipws+0x48>
xor    %eax,%eax
call   1030 <ncss_Getchar@plt>
cmp    (%rbx),%eax
je     1126 <skipws+0x16>
cmp    $0x20,%eax
jbe    1140 <skipws+0x30>
cmp    $0x101,%eax
je     1148 <skipws+0x38>
jmp    1126 <skipws+0x16>

LLVM IR (-O0):
@EOF = global i32 0
define i32 @skipws() {
%1 = alloca i32
br label %2
2: ; preds = %22, %0
%3 = call i32 (...) @ncss_Getchar()
store i32 %3, i32* %1
%4 = load i32, i32* @EOF
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %20
6: ; preds = %2
%7 = load i32, i32* %1
%8 = icmp eq i32 %7, 257
br i1 %8, label %18, label %9
9: ; preds = %6
%10 = load i32, i32* %1
%11 = icmp eq i32 %10, 10
br i1 %11, label %18, label %12
12: ; preds = %9
%13 = load i32, i32* %1
%14 = icmp eq i32 %13, 9
br i1 %14, label %18, label %15
15: ; preds = %12
%16 = load i32, i32* %1
%17 = icmp eq i32 %16, 32
br label %18
18: ; preds = %15, %12, %9, %6
%19 = phi i1 [ true, %12 ], [ true, %9 ], [ true, %6 ], [ %17, %15 ]
br label %20
20: ; preds = %18, %2
%21 = phi i1 [ false, %2 ], [ %19, %18 ]
br i1 %21, label %22, label %23
22: ; preds = %20
br label %2
23: ; preds = %20
%24 = load i32, i32* %1
ret i32 %24
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @skipws() {
%1 = tail call i32 (...) @ncss_Getchar()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %10, label %4
4: ; preds = %0, %6
%5 = phi i32 [ %7, %6 ], [ %1, %0 ]
switch i32 %5, label %10 [
i32 257, label %6
i32 32, label %6
i32 10, label %6
i32 9, label %6
]
6: ; preds = %4, %4, %4, %4
%7 = tail call i32 (...) @ncss_Getchar()
%8 = load i32, i32* @EOF
%9 = icmp eq i32 %7, %8
br i1 %9, label %10, label %4
10: ; preds = %6, %4, %0
%11 = phi i32 [ %1, %0 ], [ %5, %4 ], [ %7, %6 ]
ret i32 %11
}