#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 */
char current(char const **);
int /*<<< orphan*/ next(char const **);
void skip_whitespace(const char **input) {
  while (current(input)) {
    while (current(input) && (current(input) <= ' ' || current(input) == ','))
      next(input);
    if (current(input) == '#') {
      while (current(input) && current(input) != '\n')
        next(input);
    } else
      break;
  }
}


x86 assembly (clang, -O0):
<skip_whitespace>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
cmp    $0x0,%al
je     1225 <skip_whitespace+0x105>
jmp    1142 <skip_whitespace+0x22>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x9(%rbp)
je     1191 <skip_whitespace+0x71>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%ecx
mov    $0x1,%al
cmp    $0x20,%ecx
mov    %al,-0xa(%rbp)
jle    118b <skip_whitespace+0x6b>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%eax
cmp    $0x2c,%eax
sete   %al
mov    %al,-0xa(%rbp)
mov    -0xa(%rbp),%al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    11a1 <skip_whitespace+0x81>
jmp    11af <skip_whitespace+0x8f>
mov    -0x8(%rbp),%rdi
call   1030 <next@plt>
jmp    1142 <skip_whitespace+0x22>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%eax
cmp    $0x23,%eax
jne    121b <skip_whitespace+0xfb>
jmp    11c9 <skip_whitespace+0xa9>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0xb(%rbp)
je     11f8 <skip_whitespace+0xd8>
mov    -0x8(%rbp),%rdi
call   1040 <current@plt>
movsbl %al,%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0xb(%rbp)
mov    -0xb(%rbp),%al
test   $0x1,%al
jne    1208 <skip_whitespace+0xe8>
jmp    1216 <skip_whitespace+0xf6>
mov    -0x8(%rbp),%rdi
call   1030 <next@plt>
jmp    11c9 <skip_whitespace+0xa9>
jmp    1220 <skip_whitespace+0x100>
jmp    1225 <skip_whitespace+0x105>
jmp    112c <skip_whitespace+0xc>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_whitespace>:
push   %rbx
mov    %rdi,%rbx
jmp    1133 <skip_whitespace+0x13>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <current@plt>
test   %al,%al
jne    1148 <skip_whitespace+0x28>
jmp    11a2 <skip_whitespace+0x82>
xchg   %ax,%ax
mov    %rbx,%rdi
call   1030 <next@plt>
mov    %rbx,%rdi
call   1040 <current@plt>
test   %al,%al
je     116c <skip_whitespace+0x4c>
mov    %rbx,%rdi
call   1040 <current@plt>
cmp    $0x21,%al
jl     1140 <skip_whitespace+0x20>
mov    %rbx,%rdi
call   1040 <current@plt>
cmp    $0x2c,%al
je     1140 <skip_whitespace+0x20>
mov    %rbx,%rdi
call   1040 <current@plt>
cmp    $0x23,%al
jne    11a2 <skip_whitespace+0x82>
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1040 <current@plt>
test   %al,%al
je     1130 <skip_whitespace+0x10>
mov    %rbx,%rdi
call   1040 <current@plt>
cmp    $0xa,%al
je     1130 <skip_whitespace+0x10>
mov    %rbx,%rdi
call   1030 <next@plt>
jmp    1180 <skip_whitespace+0x60>
pop    %rbx
ret

LLVM IR (-O0):
define void @skip_whitespace(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
br label %3
3: ; preds = %53, %1
%4 = load i8**, i8*** %2
%5 = call signext i8 @current(i8** %4)
%6 = icmp ne i8 %5, 0
br i1 %6, label %7, label %54
7: ; preds = %3
br label %8
8: ; preds = %27, %7
%9 = load i8**, i8*** %2
%10 = call signext i8 @current(i8** %9)
%11 = sext i8 %10 to i32
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %25
13: ; preds = %8
%14 = load i8**, i8*** %2
%15 = call signext i8 @current(i8** %14)
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 32
br i1 %17, label %23, label %18
18: ; preds = %13
%19 = load i8**, i8*** %2
%20 = call signext i8 @current(i8** %19)
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 44
br label %23
23: ; preds = %18, %13
%24 = phi i1 [ true, %13 ], [ %22, %18 ]
br label %25
25: ; preds = %23, %8
%26 = phi i1 [ false, %8 ], [ %24, %23 ]
br i1 %26, label %27, label %30
27: ; preds = %25
%28 = load i8**, i8*** %2
%29 = call i32 @next(i8** %28)
br label %8
30: ; preds = %25
%31 = load i8**, i8*** %2
%32 = call signext i8 @current(i8** %31)
%33 = sext i8 %32 to i32
%34 = icmp eq i32 %33, 35
br i1 %34, label %35, label %52
35: ; preds = %30
br label %36
36: ; preds = %48, %35
%37 = load i8**, i8*** %2
%38 = call signext i8 @current(i8** %37)
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %46
41: ; preds = %36
%42 = load i8**, i8*** %2
%43 = call signext i8 @current(i8** %42)
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 10
br label %46
46: ; preds = %41, %36
%47 = phi i1 [ false, %36 ], [ %45, %41 ]
br i1 %47, label %48, label %51
48: ; preds = %46
%49 = load i8**, i8*** %2
%50 = call i32 @next(i8** %49)
br label %36
51: ; preds = %46
br label %53
52: ; preds = %30
br label %54
53: ; preds = %51
br label %3
54: ; preds = %52, %3
ret void
}

LLVM IR (-O2):
define void @skip_whitespace(i8** %0) {
%2 = tail call signext i8 @current(i8** %0)
%3 = icmp eq i8 %2, 0
br i1 %3, label %33, label %4
4: ; preds = %1, %30
%5 = tail call signext i8 @current(i8** %0)
%6 = icmp eq i8 %5, 0
br i1 %6, label %17, label %7
7: ; preds = %4, %13
%8 = tail call signext i8 @current(i8** %0)
%9 = icmp slt i8 %8, 33
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call signext i8 @current(i8** %0)
%12 = icmp eq i8 %11, 44
br i1 %12, label %13, label %17
13: ; preds = %7, %10
%14 = tail call i32 @next(i8** %0)
%15 = tail call signext i8 @current(i8** %0)
%16 = icmp eq i8 %15, 0
br i1 %16, label %17, label %7
17: ; preds = %10, %13, %4
%18 = tail call signext i8 @current(i8** %0)
%19 = icmp eq i8 %18, 35
br i1 %19, label %20, label %33
20: ; preds = %17
%21 = tail call signext i8 @current(i8** %0)
%22 = icmp eq i8 %21, 0
br i1 %22, label %30, label %23
23: ; preds = %20, %26
%24 = tail call signext i8 @current(i8** %0)
%25 = icmp eq i8 %24, 10
br i1 %25, label %30, label %26
26: ; preds = %23
%27 = tail call i32 @next(i8** %0)
%28 = tail call signext i8 @current(i8** %0)
%29 = icmp eq i8 %28, 0
br i1 %29, label %30, label %23
30: ; preds = %26, %23, %20
%31 = tail call signext i8 @current(i8** %0)
%32 = icmp eq i8 %31, 0
br i1 %32, label %33, label %4
33: ; preds = %30, %17, %1
ret void
}