#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 */
size_t sr_strspn_location(char const *, char const *, int *, int *);
int sr_skip_char_span_location(const char **input, const char *chars, int *line,
                               int *column) {
  size_t count = sr_strspn_location(*input, chars, line, column);
  if (0 == count)
    return count;
  *input += count;
  return count;
}


x86 assembly (clang, -O0):
<sr_skip_char_span_location>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%rdx
mov    -0x28(%rbp),%rcx
call   1030 <sr_strspn_location@plt>
mov    %rax,-0x30(%rbp)
xor    %eax,%eax
cmp    -0x30(%rbp),%rax
jne    115c <sr_skip_char_span_location+0x4c>
mov    -0x30(%rbp),%rax
mov    %eax,-0x4(%rbp)
jmp    1171 <sr_skip_char_span_location+0x61>
mov    -0x30(%rbp),%rcx
mov    -0x10(%rbp),%rax
add    (%rax),%rcx
mov    %rcx,(%rax)
mov    -0x30(%rbp),%rax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sr_skip_char_span_location>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rdi
call   1030 <sr_strspn_location@plt>
test   %rax,%rax
je     1126 <sr_skip_char_span_location+0x16>
add    %rax,(%rbx)
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @sr_skip_char_span_location(i8** nocapture %0, i8* %1, i32* %2, i32* %3) {
%5 = load i8*, i8** %0
%6 = tail call i64 @sr_strspn_location(i8* %5, i8* %1, i32* %2, i32* %3)
%7 = icmp eq i64 %6, 0
br i1 %7, label %12, label %8
8: ; preds = %4
%9 = load i8*, i8** %0
%10 = getelementptr inbounds i8, i8* %9, i64 %6
store i8* %10, i8** %0
%11 = trunc i64 %6 to i32
br label %12
12: ; preds = %4, %8
%13 = phi i32 [ %11, %8 ], [ 0, %4 ]
ret i32 %13
}