#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 */
bool biggest_word_already_processed(int word_lengths[],
                                    int current_word_length) {
  for (int i = current_word_length; i < 100; ++i) {
    if (word_lengths[i] != 0) {
      return false;
    }
  }
  return true;
}


x86 assembly (clang, -O0):
<biggest_word_already_processed>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x64,-0x18(%rbp)
jge    114c <biggest_word_already_processed+0x4c>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1139 <biggest_word_already_processed+0x39>
movl   $0x0,-0x4(%rbp)
jmp    1153 <biggest_word_already_processed+0x53>
jmp    113e <biggest_word_already_processed+0x3e>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1111 <biggest_word_already_processed+0x11>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<biggest_word_already_processed>:
mov    $0x1,%eax
cmp    $0x63,%esi
jg     1115 <biggest_word_already_processed+0x15>
movslq %esi,%rcx
xor    %eax,%eax
cmpl   $0x0,(%rdi,%rcx,4)
je     1116 <biggest_word_already_processed+0x16>
ret
add    $0xffffff9d,%esi
nopl   0x0(%rax)
mov    %rcx,%rdx
test   %esi,%esi
je     1135 <biggest_word_already_processed+0x35>
add    $0x1,%esi
lea    0x1(%rdx),%rcx
cmpl   $0x0,0x4(%rdi,%rdx,4)
je     1120 <biggest_word_already_processed+0x20>
xor    %eax,%eax
cmp    $0x63,%rdx
setge  %al
ret

LLVM IR (-O0):
define i32 @biggest_word_already_processed(i32* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i32
%6 = alloca i32
store i32* %0, i32** %4
store i32 %1, i32* %5
%7 = load i32, i32* %5
store i32 %7, i32* %6
br label %8
8: ; preds = %20, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 100
br i1 %10, label %11, label %23
11: ; preds = %8
%12 = load i32*, i32** %4
%13 = load i32, i32* %6
%14 = sext i32 %13 to i64
%15 = getelementptr inbounds i32, i32* %12, i64 %14
%16 = load i32, i32* %15
%17 = icmp ne i32 %16, 0
br i1 %17, label %18, label %19
18: ; preds = %11
store i32 0, i32* %3
br label %24
19: ; preds = %11
br label %20
20: ; preds = %19
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
br label %8
23: ; preds = %8
store i32 1, i32* %3
br label %24
24: ; preds = %23, %18
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
define i32 @biggest_word_already_processed(i32* nocapture %0, i32 %1) {
%3 = icmp slt i32 %1, 100
br i1 %3, label %4, label %21
4: ; preds = %2
%5 = sext i32 %1 to i64
%6 = getelementptr inbounds i32, i32* %0, i64 %5
%7 = load i32, i32* %6
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %21
9: ; preds = %4, %14
%10 = phi i64 [ %11, %14 ], [ %5, %4 ]
%11 = add nsw i64 %10, 1
%12 = trunc i64 %11 to i32
%13 = icmp eq i32 %12, 100
br i1 %13, label %18, label %14
14: ; preds = %9
%15 = getelementptr inbounds i32, i32* %0, i64 %11
%16 = load i32, i32* %15
%17 = icmp eq i32 %16, 0
br i1 %17, label %9, label %18
18: ; preds = %9, %14
%19 = icmp sgt i64 %10, 98
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %18, %4, %2
%22 = phi i32 [ 1, %2 ], [ 0, %4 ], [ %20, %18 ]
ret i32 %22
}