#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 */
struct lineFile {
  int dummy;
};

/* Variables and functions */
int lineFileChopNextTab(struct lineFile *, char **, int);
int /*<<< orphan*/ lineFileExpectWords(struct lineFile *, int, int);
int lineFileNextRowTab(struct lineFile *lf, char *words[], int wordCount) {
  int wordsRead;
  wordsRead = lineFileChopNextTab(lf, words, wordCount);
  if (wordsRead == 0)
    return 0;
  if (wordsRead < wordCount)
    lineFileExpectWords(lf, wordCount, wordsRead);
  return 1;
}


x86 assembly (clang, -O0):
<lineFileNextRowTab>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <lineFileChopNextTab@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jne    115c <lineFileNextRowTab+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    117e <lineFileNextRowTab+0x5e>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1177 <lineFileNextRowTab+0x57>
mov    -0x10(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x20(%rbp),%edx
call   1040 <lineFileExpectWords@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lineFileNextRowTab>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebx
mov    %rdi,%rbp
call   1030 <lineFileChopNextTab@plt>
test   %eax,%eax
je     114a <lineFileNextRowTab+0x2a>
mov    $0x1,%r14d
cmp    %ebx,%eax
jge    114d <lineFileNextRowTab+0x2d>
mov    %rbp,%rdi
mov    %ebx,%esi
mov    %eax,%edx
call   1040 <lineFileExpectWords@plt>
jmp    114d <lineFileNextRowTab+0x2d>
xor    %r14d,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.lineFile = type { i32 }
define i32 @lineFileNextRowTab(%struct.lineFile* %0, i8** %1, i32 %2) {
%4 = alloca i32
%5 = alloca %struct.lineFile*
%6 = alloca i8**
%7 = alloca i32
%8 = alloca i32
store %struct.lineFile* %0, %struct.lineFile** %5
store i8** %1, i8*** %6
store i32 %2, i32* %7
%9 = load %struct.lineFile*, %struct.lineFile** %5
%10 = load i8**, i8*** %6
%11 = load i32, i32* %7
%12 = call i32 @lineFileChopNextTab(%struct.lineFile* %9, i8** %10, i32 %11)
store i32 %12, i32* %8
%13 = load i32, i32* %8
%14 = icmp eq i32 %13, 0
br i1 %14, label %15, label %16
15: ; preds = %3
store i32 0, i32* %4
br label %26
16: ; preds = %3
%17 = load i32, i32* %8
%18 = load i32, i32* %7
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = load %struct.lineFile*, %struct.lineFile** %5
%22 = load i32, i32* %7
%23 = load i32, i32* %8
%24 = call i32 @lineFileExpectWords(%struct.lineFile* %21, i32 %22, i32 %23)
br label %25
25: ; preds = %20, %16
store i32 1, i32* %4
br label %26
26: ; preds = %25, %15
%27 = load i32, i32* %4
ret i32 %27
}

LLVM IR (-O2):
%struct.lineFile = type { i32 }
define i32 @lineFileNextRowTab(%struct.lineFile* %0, i8** %1, i32 %2) {
%4 = tail call i32 @lineFileChopNextTab(%struct.lineFile* %0, i8** %1, i32 %2)
%5 = icmp eq i32 %4, 0
br i1 %5, label %10, label %6
6: ; preds = %3
%7 = icmp slt i32 %4, %2
br i1 %7, label %8, label %10
8: ; preds = %6
%9 = tail call i32 @lineFileExpectWords(%struct.lineFile* %0, i32 %2, i32 %4)
br label %10
10: ; preds = %6, %8, %3
%11 = phi i32 [ 0, %3 ], [ 1, %8 ], [ 1, %6 ]
ret i32 %11
}