#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 _char_list {
  int dummy;
};

/* Variables and functions */
struct _char_list *char_list_initial_by_array(char **, int);
int /*<<< orphan*/ utils_tolower(char *);
struct _char_list *ts_make_stop_list(char *_stop_words[33], int _size,
                                     int _ignore_case) {
  if (_ignore_case) {
    int i;
    for (i = 0; i < _size; i++)
      utils_tolower(_stop_words[i]);
  }
  return char_list_initial_by_array(_stop_words, _size);
}


x86 assembly (clang, -O0):
<ts_make_stop_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
cmpl   $0x0,-0x10(%rbp)
je     1173 <ts_make_stop_list+0x53>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    116e <ts_make_stop_list+0x4e>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <utils_tolower@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1143 <ts_make_stop_list+0x23>
jmp    1173 <ts_make_stop_list+0x53>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1030 <char_list_initial_by_array@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ts_make_stop_list>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
mov    %rdi,%r15
test   %edx,%edx
je     1152 <ts_make_stop_list+0x32>
test   %r14d,%r14d
jle    1152 <ts_make_stop_list+0x32>
mov    %r14d,%ebp
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
call   1040 <utils_tolower@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1140 <ts_make_stop_list+0x20>
mov    %r15,%rdi
mov    %r14d,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <char_list_initial_by_array@plt>

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

LLVM IR (-O2):
%struct._char_list = type { i32 }
define %struct._char_list* @ts_make_stop_list(i8** %0, i32 %1, i32 %2) {
%4 = icmp ne i32 %2, 0
%5 = icmp sgt i32 %1, 0
%6 = and i1 %4, %5
br i1 %6, label %7, label %16
7: ; preds = %3
%8 = zext i32 %1 to i64
br label %9
9: ; preds = %7, %9
%10 = phi i64 [ 0, %7 ], [ %14, %9 ]
%11 = getelementptr inbounds i8*, i8** %0, i64 %10
%12 = load i8*, i8** %11
%13 = tail call i32 @utils_tolower(i8* %12)
%14 = add nuw nsw i64 %10, 1
%15 = icmp eq i64 %14, %8
br i1 %15, label %16, label %9
16: ; preds = %9, %3
%17 = tail call %struct._char_list* @char_list_initial_by_array(i8** %0, i32 %1)
ret %struct._char_list* %17
}