#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char *);
scalar_t__ isspace(char);
int /*<<< orphan*/ stdout;
char *skip_column(char *p, int cnt, char *argv) {
  if (*p == '\0') {
    fprintf(stdout, "ERROR: Not enough columns in line %d file %s\n", cnt,
            argv);
    fflush(stdout);
    exit(0);
  }
  while (!isspace(*p)) {
    p++;
    if (*p == '\0')
      return (p);
  }
  while (isspace(*p)) {
    p++;
    if (*p == '\0')
      return (p);
  }
  return (p);
}


x86 assembly (clang, -O0):
<skip_column>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1194 <skip_column+0x54>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
mov    -0x20(%rbp),%rcx
lea    0xe86(%rip),%rsi
call   1040 <fprintf@plt>
mov    0x2e5a(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
xor    %edi,%edi
call   1060 <exit@plt>
jmp    1199 <skip_column+0x59>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    11bb <skip_column+0x7b>
jmp    11e9 <skip_column+0xa9>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    11e4 <skip_column+0xa4>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    123a <skip_column+0xfa>
jmp    1199 <skip_column+0x59>
jmp    11ee <skip_column+0xae>
mov    -0x10(%rbp),%rax
movsbl (%rax),%edi
call   1030 <isspace@plt>
cmp    $0x0,%rax
je     1232 <skip_column+0xf2>
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    122d <skip_column+0xed>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    123a <skip_column+0xfa>
jmp    11ee <skip_column+0xae>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<skip_column>:
push   %rbx
mov    (%rdi),%al
test   %al,%al
je     118e <skip_column+0x4e>
mov    %rdi,%rbx
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
call   1030 <isspace@plt>
test   %rax,%rax
jne    116b <skip_column+0x2b>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1150 <skip_column+0x10>
jmp    1189 <skip_column+0x49>
mov    (%rbx),%al
nopl   (%rax)
movsbl %al,%edi
call   1030 <isspace@plt>
test   %rax,%rax
je     1189 <skip_column+0x49>
movzbl 0x1(%rbx),%eax
add    $0x1,%rbx
test   %al,%al
jne    1170 <skip_column+0x30>
mov    %rbx,%rax
pop    %rbx
ret
mov    %rdx,%rcx
mov    %esi,%edx
mov    0x2e46(%rip),%rbx
mov    (%rbx),%edi
lea    0xe5d(%rip),%rsi
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [46 x i8] c"ERROR: Not enough columns in line %d file %s\0A\00"
define i8* @skip_column(i8* %0, i32 %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
%8 = load i8*, i8** %5
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %20
12: ; preds = %3
%13 = load i32, i32* @stdout
%14 = load i32, i32* %6
%15 = load i8*, i8** %7
%16 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %14, i8* %15)
%17 = load i32, i32* @stdout
%18 = call i32 @fflush(i32 %17)
%19 = call i32 @exit(i32 0)
unreachable
20: ; preds = %3
br label %21
21: ; preds = %36, %20
%22 = load i8*, i8** %5
%23 = load i8, i8* %22
%24 = call i64 @isspace(i8 signext %23)
%25 = icmp ne i64 %24, 0
%26 = xor i1 %25, true
br i1 %26, label %27, label %37
27: ; preds = %21
%28 = load i8*, i8** %5
%29 = getelementptr inbounds i8, i8* %28, i32 1
store i8* %29, i8** %5
%30 = load i8*, i8** %5
%31 = load i8, i8* %30
%32 = sext i8 %31 to i32
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %27
%35 = load i8*, i8** %5
store i8* %35, i8** %4
br label %55
36: ; preds = %27
br label %21
37: ; preds = %21
br label %38
38: ; preds = %52, %37
%39 = load i8*, i8** %5
%40 = load i8, i8* %39
%41 = call i64 @isspace(i8 signext %40)
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %53
43: ; preds = %38
%44 = load i8*, i8** %5
%45 = getelementptr inbounds i8, i8* %44, i32 1
store i8* %45, i8** %5
%46 = load i8*, i8** %5
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = icmp eq i32 %48, 0
br i1 %49, label %50, label %52
50: ; preds = %43
%51 = load i8*, i8** %5
store i8* %51, i8** %4
br label %55
52: ; preds = %43
br label %38
53: ; preds = %38
%54 = load i8*, i8** %5
store i8* %54, i8** %4
br label %55
55: ; preds = %53, %50, %34
%56 = load i8*, i8** %4
ret i8* %56
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [46 x i8] c"ERROR: Not enough columns in line %d file %s\0A\00"
define i8* @skip_column(i8* %0, i32 %1, i8* %2) {
%4 = load i8, i8* %0
%5 = icmp eq i8 %4, 0
br i1 %5, label %6, label %12
6: ; preds = %3
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %1, i8* %2)
%9 = load i32, i32* @stdout
%10 = tail call i32 @fflush(i32 %9)
%11 = tail call i32 @exit(i32 0)
unreachable
12: ; preds = %3, %19
%13 = phi i8 [ %21, %19 ], [ %4, %3 ]
%14 = phi i8* [ %20, %19 ], [ %0, %3 ]
%15 = tail call i64 @isspace(i8 signext %13)
%16 = icmp eq i64 %15, 0
br i1 %16, label %19, label %17
17: ; preds = %12
%18 = load i8, i8* %14
br label %23
19: ; preds = %12
%20 = getelementptr inbounds i8, i8* %14, i64 1
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 0
br i1 %22, label %32, label %12
23: ; preds = %17, %28
%24 = phi i8 [ %30, %28 ], [ %18, %17 ]
%25 = phi i8* [ %29, %28 ], [ %14, %17 ]
%26 = tail call i64 @isspace(i8 signext %24)
%27 = icmp eq i64 %26, 0
br i1 %27, label %32, label %28
28: ; preds = %23
%29 = getelementptr inbounds i8, i8* %25, i64 1
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 0
br i1 %31, label %32, label %23
32: ; preds = %19, %23, %28
%33 = phi i8* [ %25, %23 ], [ %29, %28 ], [ %20, %19 ]
ret i8* %33
}