#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 *ap_str_skip_word(char *str) {
  if (str == NULL) {
    goto finish;
  }
  for (; *str != ' ' && *str != '\t' && *str != '\0'; str++)
    ;
finish:
  return str;
}


x86 assembly (clang, -O0):
<ap_str_skip_word>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1118 <ap_str_skip_word+0x18>
jmp    1182 <ap_str_skip_word+0x82>
jmp    111d <ap_str_skip_word+0x1d>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x20,%ecx
mov    %al,-0x9(%rbp)
je     1157 <ap_str_skip_word+0x57>
mov    -0x8(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x9,%ecx
mov    %al,-0x9(%rbp)
je     1157 <ap_str_skip_word+0x57>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
test   $0x1,%al
jne    1167 <ap_str_skip_word+0x67>
jmp    117d <ap_str_skip_word+0x7d>
jmp    116c <ap_str_skip_word+0x6c>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
jmp    111d <ap_str_skip_word+0x1d>
jmp    1182 <ap_str_skip_word+0x82>
mov    -0x8(%rbp),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ap_str_skip_word>:
test   %rdi,%rdi
je     1134 <ap_str_skip_word+0x34>
mov    %rdi,%rax
movabs $0x100000201,%rcx
jmp    1124 <ap_str_skip_word+0x24>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%rax
movzbl (%rax),%edx
cmp    $0x20,%rdx
ja     1120 <ap_str_skip_word+0x20>
bt     %rdx,%rcx
jae    1120 <ap_str_skip_word+0x20>
ret
xor    %eax,%eax
ret

LLVM IR (-O0):
define i8* @ap_str_skip_word(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
br label %29
6: ; preds = %1
br label %7
7: ; preds = %25, %6
%8 = load i8*, i8** %2
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp ne i32 %10, 32
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = load i8*, i8** %2
%14 = load i8, i8* %13
%15 = sext i8 %14 to i32
%16 = icmp ne i32 %15, 9
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i8*, i8** %2
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp ne i32 %20, 0
br label %22
22: ; preds = %17, %12, %7
%23 = phi i1 [ false, %12 ], [ false, %7 ], [ %21, %17 ]
br i1 %23, label %24, label %28
24: ; preds = %22
br label %25
25: ; preds = %24
%26 = load i8*, i8** %2
%27 = getelementptr inbounds i8, i8* %26, i32 1
store i8* %27, i8** %2
br label %7
28: ; preds = %22
br label %29
29: ; preds = %28, %5
%30 = load i8*, i8** %2
ret i8* %30
}

LLVM IR (-O2):
define i8* @ap_str_skip_word(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %8, label %3
3: ; preds = %1, %6
%4 = phi i8* [ %7, %6 ], [ %0, %1 ]
%5 = load i8, i8* %4
switch i8 %5, label %6 [
i8 32, label %8
i8 9, label %8
i8 0, label %8
]
6: ; preds = %3
%7 = getelementptr inbounds i8, i8* %4, i64 1
br label %3
8: ; preds = %3, %3, %3, %1
%9 = phi i8* [ null, %1 ], [ %4, %3 ], [ %4, %3 ], [ %4, %3 ]
ret i8* %9
}