#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*/ *strstr(char *, char *);
int isOkTttl(char word[]) {
  if ((strstr((word + 7), ".com/") != NULL) ||
      (strstr((word + 7), ".net/") != NULL) ||
      (strstr((word + 7), ".org/") != NULL) ||
      (strstr((word + 7), ".gov/") != NULL) ||
      (strstr((word + 7), ".mil/") != NULL) ||
      (strstr((word + 7), ".edu/") != NULL) ||
      (strstr((word + 7), ".biz/") != NULL) ||
      (strstr((word + 7), ".info/") != NULL) ||
      (strstr((word + 7), ".us/") != NULL) ||
      (strstr((word + 7), ".uk/") != NULL) ||
      (strstr((word + 7), ".eu/") != NULL) ||
      (strstr((word + 7), ".au/") != NULL) ||
      (strstr((word + 7), ".nz/") != NULL) ||
      (strstr((word + 7), ".fm/") != NULL)) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<isOkTttl>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xed5(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xebd(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xea5(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe8d(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe75(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe5d(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe45(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe2d(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xe16(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xdfd(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xde4(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xdcb(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xdb2(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
jne    12c0 <isOkTttl+0x1b0>
mov    -0x10(%rbp),%rdi
add    $0x7,%rdi
lea    0xd99(%rip),%rsi
call   1030 <strstr@plt>
cmp    $0x0,%rax
je     12cc <isOkTttl+0x1bc>
movl   $0x1,-0x4(%rbp)
jmp    12d3 <isOkTttl+0x1c3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isOkTttl>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
add    $0x7,%rbx
lea    0xedf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xec8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xea4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe80(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe6e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe5c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe4f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe31(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe22(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe13(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
test   %rax,%rax
jne    1257 <isOkTttl+0x147>
lea    0xe04(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strstr@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c".com/\00"
@.str.1 = [6 x i8] c".net/\00"
@.str.2 = [6 x i8] c".org/\00"
@.str.3 = [6 x i8] c".gov/\00"
@.str.4 = [6 x i8] c".mil/\00"
@.str.5 = [6 x i8] c".edu/\00"
@.str.6 = [6 x i8] c".biz/\00"
@.str.7 = [7 x i8] c".info/\00"
@.str.8 = [5 x i8] c".us/\00"
@.str.9 = [5 x i8] c".uk/\00"
@.str.10 = [5 x i8] c".eu/\00"
@.str.11 = [5 x i8] c".au/\00"
@.str.12 = [5 x i8] c".nz/\00"
@.str.13 = [5 x i8] c".fm/\00"
define i32 @isOkTttl(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = getelementptr inbounds i8, i8* %4, i64 7
%6 = call i32* @strstr(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%7 = icmp ne i32* %6, null
br i1 %7, label %73, label %8
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = getelementptr inbounds i8, i8* %9, i64 7
%11 = call i32* @strstr(i8* %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp ne i32* %11, null
br i1 %12, label %73, label %13
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = getelementptr inbounds i8, i8* %14, i64 7
%16 = call i32* @strstr(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%17 = icmp ne i32* %16, null
br i1 %17, label %73, label %18
18: ; preds = %13
%19 = load i8*, i8** %3
%20 = getelementptr inbounds i8, i8* %19, i64 7
%21 = call i32* @strstr(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%22 = icmp ne i32* %21, null
br i1 %22, label %73, label %23
23: ; preds = %18
%24 = load i8*, i8** %3
%25 = getelementptr inbounds i8, i8* %24, i64 7
%26 = call i32* @strstr(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp ne i32* %26, null
br i1 %27, label %73, label %28
28: ; preds = %23
%29 = load i8*, i8** %3
%30 = getelementptr inbounds i8, i8* %29, i64 7
%31 = call i32* @strstr(i8* %30, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%32 = icmp ne i32* %31, null
br i1 %32, label %73, label %33
33: ; preds = %28
%34 = load i8*, i8** %3
%35 = getelementptr inbounds i8, i8* %34, i64 7
%36 = call i32* @strstr(i8* %35, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%37 = icmp ne i32* %36, null
br i1 %37, label %73, label %38
38: ; preds = %33
%39 = load i8*, i8** %3
%40 = getelementptr inbounds i8, i8* %39, i64 7
%41 = call i32* @strstr(i8* %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%42 = icmp ne i32* %41, null
br i1 %42, label %73, label %43
43: ; preds = %38
%44 = load i8*, i8** %3
%45 = getelementptr inbounds i8, i8* %44, i64 7
%46 = call i32* @strstr(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp ne i32* %46, null
br i1 %47, label %73, label %48
48: ; preds = %43
%49 = load i8*, i8** %3
%50 = getelementptr inbounds i8, i8* %49, i64 7
%51 = call i32* @strstr(i8* %50, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%52 = icmp ne i32* %51, null
br i1 %52, label %73, label %53
53: ; preds = %48
%54 = load i8*, i8** %3
%55 = getelementptr inbounds i8, i8* %54, i64 7
%56 = call i32* @strstr(i8* %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%57 = icmp ne i32* %56, null
br i1 %57, label %73, label %58
58: ; preds = %53
%59 = load i8*, i8** %3
%60 = getelementptr inbounds i8, i8* %59, i64 7
%61 = call i32* @strstr(i8* %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%62 = icmp ne i32* %61, null
br i1 %62, label %73, label %63
63: ; preds = %58
%64 = load i8*, i8** %3
%65 = getelementptr inbounds i8, i8* %64, i64 7
%66 = call i32* @strstr(i8* %65, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%67 = icmp ne i32* %66, null
br i1 %67, label %73, label %68
68: ; preds = %63
%69 = load i8*, i8** %3
%70 = getelementptr inbounds i8, i8* %69, i64 7
%71 = call i32* @strstr(i8* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%72 = icmp ne i32* %71, null
br i1 %72, label %73, label %74
73: ; preds = %68, %63, %58, %53, %48, %43, %38, %33, %28, %23, %18, %13, %8, %1
store i32 1, i32* %2
br label %75
74: ; preds = %68
store i32 0, i32* %2
br label %75
75: ; preds = %74, %73
%76 = load i32, i32* %2
ret i32 %76
}

LLVM IR (-O2):
@.str = [6 x i8] c".com/\00"
@.str.1 = [6 x i8] c".net/\00"
@.str.2 = [6 x i8] c".org/\00"
@.str.3 = [6 x i8] c".gov/\00"
@.str.4 = [6 x i8] c".mil/\00"
@.str.5 = [6 x i8] c".edu/\00"
@.str.6 = [6 x i8] c".biz/\00"
@.str.7 = [7 x i8] c".info/\00"
@.str.8 = [5 x i8] c".us/\00"
@.str.9 = [5 x i8] c".uk/\00"
@.str.10 = [5 x i8] c".eu/\00"
@.str.11 = [5 x i8] c".au/\00"
@.str.12 = [5 x i8] c".nz/\00"
@.str.13 = [5 x i8] c".fm/\00"
define i32 @isOkTttl(i8* %0) {
%2 = getelementptr inbounds i8, i8* %0, i64 7
%3 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %45
5: ; preds = %1
%6 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %45
8: ; preds = %5
%9 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%10 = icmp eq i32* %9, null
br i1 %10, label %11, label %45
11: ; preds = %8
%12 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %45
14: ; preds = %11
%15 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %45
17: ; preds = %14
%18 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %20, label %45
20: ; preds = %17
%21 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %45
23: ; preds = %20
%24 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %45
26: ; preds = %23
%27 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %45
29: ; preds = %26
%30 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%31 = icmp eq i32* %30, null
br i1 %31, label %32, label %45
32: ; preds = %29
%33 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %45
35: ; preds = %32
%36 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%37 = icmp eq i32* %36, null
br i1 %37, label %38, label %45
38: ; preds = %35
%39 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%40 = icmp eq i32* %39, null
br i1 %40, label %41, label %45
41: ; preds = %38
%42 = tail call i32* @strstr(i8* %2, i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%43 = icmp ne i32* %42, null
%44 = zext i1 %43 to i32
br label %45
45: ; preds = %41, %1, %5, %8, %11, %14, %17, %20, %23, %26, %29, %32, %35, %38
%46 = phi i32 [ 1, %38 ], [ 1, %35 ], [ 1, %32 ], [ 1, %29 ], [ 1, %26 ], [ 1, %23 ], [ 1, %20 ], [ 1, %17 ], [ 1, %14 ], [ 1, %11 ], [ 1, %8 ], [ 1, %5 ], [ 1, %1 ], [ %44, %41 ]
ret i32 %46
}