#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*/ debug(char *, char *);
int /*<<< orphan*/ *strstr(char *, char *);
int NotDuplicateUrl(char word[]) {
  if (strstr(word, "/default") != NULL) {
    debug("hav /default", word);
    return 0;
  } else if (strstr(word, "/index") != NULL) {
    debug("hav /index", word);
    return 0;
  } else if (strstr(word, "/www1") != NULL) {
    debug("hav /www1", word);
    return 0;
  } else if (strstr(word, "/www2") != NULL) {
    debug("hav /www2", word);
    return 0;
  } else if (strstr(word, "/www3") != NULL) {
    debug("hav /www3", word);
    return 0;
  } else if (strstr(word, "/www4") != NULL) {
    debug("hav /index", word);
    return 0;
  }
  return 1;
}


x86 assembly (clang, -O0):
<NotDuplicateUrl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1162 <NotDuplicateUrl+0x42>
mov    -0x10(%rbp),%rsi
lea    0xeaf(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
mov    -0x10(%rbp),%rdi
lea    0xea4(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1198 <NotDuplicateUrl+0x78>
mov    -0x10(%rbp),%rsi
lea    0xe86(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
mov    -0x10(%rbp),%rdi
lea    0xe79(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11ce <NotDuplicateUrl+0xae>
mov    -0x10(%rbp),%rsi
lea    0xe5b(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
mov    -0x10(%rbp),%rdi
lea    0xe4d(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1204 <NotDuplicateUrl+0xe4>
mov    -0x10(%rbp),%rsi
lea    0xe2f(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
mov    -0x10(%rbp),%rdi
lea    0xe21(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     123a <NotDuplicateUrl+0x11a>
mov    -0x10(%rbp),%rsi
lea    0xe03(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
mov    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1270 <NotDuplicateUrl+0x150>
mov    -0x10(%rbp),%rsi
lea    0xdae(%rip),%rdi
call   1030 <debug@plt>
movl   $0x0,-0x4(%rbp)
jmp    1290 <NotDuplicateUrl+0x170>
jmp    1275 <NotDuplicateUrl+0x155>
jmp    127a <NotDuplicateUrl+0x15a>
jmp    127f <NotDuplicateUrl+0x15f>
jmp    1284 <NotDuplicateUrl+0x164>
jmp    1289 <NotDuplicateUrl+0x169>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<NotDuplicateUrl>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed6(%rip),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     1144 <NotDuplicateUrl+0x24>
lea    0xec1(%rip),%r14
jmp    11ca <NotDuplicateUrl+0xaa>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
lea    0xeb3(%rip),%r14
test   %rax,%rax
jne    11ca <NotDuplicateUrl+0xaa>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     117c <NotDuplicateUrl+0x5c>
lea    0xe9e(%rip),%r14
jmp    11ca <NotDuplicateUrl+0xaa>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1199 <NotDuplicateUrl+0x79>
lea    0xe8b(%rip),%r14
jmp    11ca <NotDuplicateUrl+0xaa>
lea    0xe90(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11b6 <NotDuplicateUrl+0x96>
lea    0xe78(%rip),%r14
jmp    11ca <NotDuplicateUrl+0xaa>
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11df <NotDuplicateUrl+0xbf>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <debug@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
mov    $0x1,%eax
jmp    11d7 <NotDuplicateUrl+0xb7>

LLVM IR (-O0):
@.str = [9 x i8] c"/default\00"
@.str.1 = [13 x i8] c"hav /default\00"
@.str.2 = [7 x i8] c"/index\00"
@.str.3 = [11 x i8] c"hav /index\00"
@.str.4 = [6 x i8] c"/www1\00"
@.str.5 = [10 x i8] c"hav /www1\00"
@.str.6 = [6 x i8] c"/www2\00"
@.str.7 = [10 x i8] c"hav /www2\00"
@.str.8 = [6 x i8] c"/www3\00"
@.str.9 = [10 x i8] c"hav /www3\00"
@.str.10 = [6 x i8] c"/www4\00"
define i32 @NotDuplicateUrl(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32* @strstr(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i32* %5, null
br i1 %6, label %7, label %10
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @debug(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %8)
store i32 0, i32* %2
br label %51
10: ; preds = %1
%11 = load i8*, i8** %3
%12 = call i32* @strstr(i8* %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp ne i32* %12, null
br i1 %13, label %14, label %17
14: ; preds = %10
%15 = load i8*, i8** %3
%16 = call i32 @debug(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %15)
store i32 0, i32* %2
br label %51
17: ; preds = %10
%18 = load i8*, i8** %3
%19 = call i32* @strstr(i8* %18, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp ne i32* %19, null
br i1 %20, label %21, label %24
21: ; preds = %17
%22 = load i8*, i8** %3
%23 = call i32 @debug(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* %22)
store i32 0, i32* %2
br label %51
24: ; preds = %17
%25 = load i8*, i8** %3
%26 = call i32* @strstr(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp ne i32* %26, null
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i8*, i8** %3
%30 = call i32 @debug(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i8* %29)
store i32 0, i32* %2
br label %51
31: ; preds = %24
%32 = load i8*, i8** %3
%33 = call i32* @strstr(i8* %32, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%34 = icmp ne i32* %33, null
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i8*, i8** %3
%37 = call i32 @debug(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* %36)
store i32 0, i32* %2
br label %51
38: ; preds = %31
%39 = load i8*, i8** %3
%40 = call i32* @strstr(i8* %39, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%41 = icmp ne i32* %40, null
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i8*, i8** %3
%44 = call i32 @debug(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* %43)
store i32 0, i32* %2
br label %51
45: ; preds = %38
br label %46
46: ; preds = %45
br label %47
47: ; preds = %46
br label %48
48: ; preds = %47
br label %49
49: ; preds = %48
br label %50
50: ; preds = %49
store i32 1, i32* %2
br label %51
51: ; preds = %50, %42, %35, %28, %21, %14, %7
%52 = load i32, i32* %2
ret i32 %52
}

LLVM IR (-O2):
@.str = [9 x i8] c"/default\00"
@.str.1 = [13 x i8] c"hav /default\00"
@.str.2 = [7 x i8] c"/index\00"
@.str.3 = [11 x i8] c"hav /index\00"
@.str.4 = [6 x i8] c"/www1\00"
@.str.5 = [10 x i8] c"hav /www1\00"
@.str.6 = [6 x i8] c"/www2\00"
@.str.7 = [10 x i8] c"hav /www2\00"
@.str.8 = [6 x i8] c"/www3\00"
@.str.9 = [10 x i8] c"hav /www3\00"
@.str.10 = [6 x i8] c"/www4\00"
define i32 @NotDuplicateUrl(i8* %0) {
%2 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i32* %2, null
br i1 %3, label %4, label %19
4: ; preds = %1
%5 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i32* %5, null
br i1 %6, label %7, label %19
7: ; preds = %4
%8 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %19
10: ; preds = %7
%11 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %19
13: ; preds = %10
%14 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %19
16: ; preds = %13
%17 = tail call i32* @strstr(i8* dereferenceable(1) %0, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %22, label %19
19: ; preds = %16, %13, %10, %7, %4, %1
%20 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), %13 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), %16 ]
%21 = tail call i32 @debug(i8* %20, i8* %0)
br label %22
22: ; preds = %19, %16
%23 = phi i32 [ 1, %16 ], [ 0, %19 ]
ret i32 %23
}