#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 */
scalar_t__ ll_list_contains(char **, char *);
int ll_sets_equal(char **list_one, char **list_two) {
  int i = 0;
  char *needle = NULL;
  for (i = 0; list_one[i] != NULL; i++) {
    needle = list_one[i];
    if (ll_list_contains(list_two, needle)) {
    } else {
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<ll_sets_equal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     1194 <ll_sets_equal+0x84>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <ll_list_contains@plt>
cmp    $0x0,%rax
je     1175 <ll_sets_equal+0x65>
jmp    1181 <ll_sets_equal+0x71>
movl   $0x0,-0x4(%rbp)
jmp    119b <ll_sets_equal+0x8b>
jmp    1186 <ll_sets_equal+0x76>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1136 <ll_sets_equal+0x26>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ll_sets_equal>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    (%rdi),%rsi
mov    $0x1,%r14d
test   %rsi,%rsi
je     114f <ll_sets_equal+0x3f>
mov    %rdi,%rbp
add    $0x8,%rbp
nopl   0x0(%rax)
mov    %rbx,%rdi
call   1030 <ll_list_contains@plt>
test   %rax,%rax
je     114c <ll_sets_equal+0x3c>
mov    0x0(%rbp),%rsi
add    $0x8,%rbp
test   %rsi,%rsi
jne    1130 <ll_sets_equal+0x20>
jmp    114f <ll_sets_equal+0x3f>
xor    %r14d,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @ll_sets_equal(i8** nocapture %0, i8** %1) {
%3 = load i8*, i8** %0
%4 = icmp eq i8* %3, null
br i1 %4, label %15, label %9
5: ; preds = %9
%6 = getelementptr inbounds i8*, i8** %0, i64 %14
%7 = load i8*, i8** %6
%8 = icmp eq i8* %7, null
br i1 %8, label %15, label %9
9: ; preds = %2, %5
%10 = phi i64 [ %14, %5 ], [ 0, %2 ]
%11 = phi i8* [ %7, %5 ], [ %3, %2 ]
%12 = tail call i64 @ll_list_contains(i8** %1, i8* %11)
%13 = icmp eq i64 %12, 0
%14 = add nuw i64 %10, 1
br i1 %13, label %15, label %5
15: ; preds = %9, %5, %2
%16 = phi i32 [ 1, %2 ], [ 1, %5 ], [ 0, %9 ]
ret i32 %16
}