#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 next();
int skipstring() {
  int c, e = 0;
  while ((c = next()) != EOF) {
    if (e) {
      switch (c) {
      case 'u':
        for (e = 4; e > 0; e--)
          if (next() == EOF)
            return 1;
        continue;
      default:
        e = 0;
        continue;
      }
    }
    switch (c) {
    case '\\':
      e = 1;
      continue;
    case '"':
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<skipstring>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0xc(%rbp)
mov    $0x0,%al
call   1030 <next@plt>
mov    %eax,-0x8(%rbp)
mov    0x2eb8(%rip),%rcx
cmp    (%rcx),%eax
je     11ec <skipstring+0xdc>
cmpl   $0x0,-0xc(%rbp)
je     11aa <skipstring+0x9a>
mov    -0x8(%rbp),%eax
sub    $0x75,%eax
jne    119e <skipstring+0x8e>
jmp    1153 <skipstring+0x43>
movl   $0x4,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    1199 <skipstring+0x89>
mov    $0x0,%al
call   1030 <next@plt>
mov    0x2e76(%rip),%rcx
cmp    (%rcx),%eax
jne    1186 <skipstring+0x76>
movl   $0x1,-0x4(%rbp)
jmp    11f3 <skipstring+0xe3>
jmp    118b <skipstring+0x7b>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    115a <skipstring+0x4a>
jmp    111f <skipstring+0xf>
movl   $0x0,-0xc(%rbp)
jmp    111f <skipstring+0xf>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
sub    $0x22,%eax
je     11db <skipstring+0xcb>
jmp    11be <skipstring+0xae>
mov    -0x10(%rbp),%eax
sub    $0x5c,%eax
jne    11e7 <skipstring+0xd7>
jmp    11cf <skipstring+0xbf>
movl   $0x1,-0xc(%rbp)
jmp    111f <skipstring+0xf>
movl   $0x0,-0x4(%rbp)
jmp    11f3 <skipstring+0xe3>
jmp    111f <skipstring+0xf>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skipstring>:
push   %rbp
push   %r14
push   %rbx
xor    %eax,%eax
call   1030 <next@plt>
mov    0x2ec6(%rip),%rbx
mov    $0x1,%r14d
cmp    (%rbx),%eax
jne    1134 <skipstring+0x24>
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    $0x1,%bpl
jmp    114d <skipstring+0x3d>
nopl   0x0(%rax)
xor    %ebp,%ebp
xor    %eax,%eax
call   1030 <next@plt>
cmp    (%rbx),%eax
je     112c <skipstring+0x1c>
test   $0x1,%bpl
je     1170 <skipstring+0x60>
cmp    $0x5c,%eax
je     1140 <skipstring+0x30>
mov    $0x1,%bpl
cmp    $0x22,%eax
jne    1142 <skipstring+0x32>
jmp    11a6 <skipstring+0x96>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x1,%bpl
cmp    $0x75,%eax
jne    1142 <skipstring+0x32>
xor    %eax,%eax
call   1030 <next@plt>
cmp    (%rbx),%eax
je     112c <skipstring+0x1c>
xor    %eax,%eax
call   1030 <next@plt>
cmp    (%rbx),%eax
je     112c <skipstring+0x1c>
xor    %eax,%eax
call   1030 <next@plt>
cmp    (%rbx),%eax
je     112c <skipstring+0x1c>
xor    %eax,%eax
call   1030 <next@plt>
cmp    (%rbx),%eax
jne    1142 <skipstring+0x32>
jmp    112c <skipstring+0x1c>
xor    %r14d,%r14d
jmp    112c <skipstring+0x1c>

LLVM IR (-O0):
@EOF = global i32 0
define i32 @skipstring() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %3
br label %4
4: ; preds = %32, %30, %27, %26, %0
%5 = call i32 (...) @next()
store i32 %5, i32* %2
%6 = load i32, i32* @EOF
%7 = icmp ne i32 %5, %6
br i1 %7, label %8, label %33
8: ; preds = %4
%9 = load i32, i32* %3
%10 = icmp ne i32 %9, 0
br i1 %10, label %11, label %28
11: ; preds = %8
%12 = load i32, i32* %2
switch i32 %12, label %27 [
i32 117, label %13
]
13: ; preds = %11
store i32 4, i32* %3
br label %14
14: ; preds = %23, %13
%15 = load i32, i32* %3
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %26
17: ; preds = %14
%18 = call i32 (...) @next()
%19 = load i32, i32* @EOF
%20 = icmp eq i32 %18, %19
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 1, i32* %1
br label %34
22: ; preds = %17
br label %23
23: ; preds = %22
%24 = load i32, i32* %3
%25 = add nsw i32 %24, -1
store i32 %25, i32* %3
br label %14
26: ; preds = %14
br label %4
27: ; preds = %11
store i32 0, i32* %3
br label %4
28: ; preds = %8
%29 = load i32, i32* %2
switch i32 %29, label %32 [
i32 92, label %30
i32 34, label %31
]
30: ; preds = %28
store i32 1, i32* %3
br label %4
31: ; preds = %28
store i32 0, i32* %1
br label %34
32: ; preds = %28
br label %4
33: ; preds = %4
store i32 1, i32* %1
br label %34
34: ; preds = %33, %31, %21
%35 = load i32, i32* %1
ret i32 %35
}

LLVM IR (-O2):
@EOF = global i32 0
define i32 @skipstring() {
%1 = tail call i32 (...) @next()
%2 = load i32, i32* @EOF
%3 = icmp eq i32 %1, %2
br i1 %3, label %32, label %4
4: ; preds = %0, %27
%5 = phi i32 [ %29, %27 ], [ %1, %0 ]
%6 = phi i1 [ %28, %27 ], [ true, %0 ]
br i1 %6, label %25, label %7
7: ; preds = %4
%8 = icmp eq i32 %5, 117
br i1 %8, label %9, label %27
9: ; preds = %7
%10 = tail call i32 (...) @next()
%11 = load i32, i32* @EOF
%12 = icmp eq i32 %10, %11
br i1 %12, label %32, label %13
13: ; preds = %9
%14 = tail call i32 (...) @next()
%15 = load i32, i32* @EOF
%16 = icmp eq i32 %14, %15
br i1 %16, label %32, label %17
17: ; preds = %13
%18 = tail call i32 (...) @next()
%19 = load i32, i32* @EOF
%20 = icmp eq i32 %18, %19
br i1 %20, label %32, label %21
21: ; preds = %17
%22 = tail call i32 (...) @next()
%23 = load i32, i32* @EOF
%24 = icmp eq i32 %22, %23
br i1 %24, label %32, label %27
25: ; preds = %4
switch i32 %5, label %27 [
i32 92, label %26
i32 34, label %32
]
26: ; preds = %25
br label %27
27: ; preds = %21, %26, %25, %7
%28 = phi i1 [ true, %7 ], [ true, %25 ], [ false, %26 ], [ true, %21 ]
%29 = tail call i32 (...) @next()
%30 = load i32, i32* @EOF
%31 = icmp eq i32 %29, %30
br i1 %31, label %32, label %4
32: ; preds = %25, %27, %9, %13, %17, %21, %0
%33 = phi i32 [ 1, %0 ], [ 0, %25 ], [ 1, %27 ], [ 1, %9 ], [ 1, %13 ], [ 1, %17 ], [ 1, %21 ]
ret i32 %33
}