int fighting_line(line_from_mud)
char *line_from_mud;
{
  char *cp;
  cp = line_from_mud;
  while (*cp) {
    if (strncmp(cp, " hit", 4) == 0 || strncmp(cp, " tickle", 7) == 0 ||
        strncmp(cp, " graze", 6) == 0 || strncmp(cp, " massacre", 9) == 0 ||
        strncmp(cp, " die", 4) == 0)
      return 1;
    ++cp;
  }
  return 0;
}


x86 assembly (clang, -O0):
<fighting_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmpb   $0x0,(%rax)
je     11e4 <fighting_line+0xd4>
mov    -0x18(%rbp),%rdi
lea    0xec4(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     11c7 <fighting_line+0xb7>
mov    -0x18(%rbp),%rdi
lea    0xeab(%rip),%rsi
mov    $0x7,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     11c7 <fighting_line+0xb7>
mov    -0x18(%rbp),%rdi
lea    0xe95(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     11c7 <fighting_line+0xb7>
mov    -0x18(%rbp),%rdi
lea    0xe7e(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     11c7 <fighting_line+0xb7>
mov    -0x18(%rbp),%rdi
lea    0xe6a(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    11d3 <fighting_line+0xc3>
movl   $0x1,-0x4(%rbp)
jmp    11eb <fighting_line+0xdb>
mov    -0x18(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
jmp    1124 <fighting_line+0x14>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<fighting_line>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmpb   $0x0,(%rdi)
je     11c2 <fighting_line+0xb2>
mov    %rdi,%rbx
lea    0xed2(%rip),%r14
lea    0xed0(%rip),%r15
lea    0xed1(%rip),%r12
lea    0xed1(%rip),%r13
mov    $0x1,%ebp
nopl   0x0(%rax,%rax,1)
mov    $0x4,%edx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11c4 <fighting_line+0xb4>
mov    $0x7,%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11c4 <fighting_line+0xb4>
mov    $0x6,%edx
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11c4 <fighting_line+0xb4>
mov    $0x9,%edx
mov    %rbx,%rdi
mov    %r13,%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11c4 <fighting_line+0xb4>
mov    $0x4,%edx
mov    %rbx,%rdi
lea    0xe6f(%rip),%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     11c4 <fighting_line+0xb4>
cmpb   $0x0,0x1(%rbx)
lea    0x1(%rbx),%rbx
jne    1150 <fighting_line+0x40>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c" hit\00"
@.str.1 = [8 x i8] c" tickle\00"
@.str.2 = [7 x i8] c" graze\00"
@.str.3 = [10 x i8] c" massacre\00"
@.str.4 = [5 x i8] c" die\00"
define i32 @fighting_line(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
%5 = load i8*, i8** %3
store i8* %5, i8** %4
br label %6
6: ; preds = %31, %1
%7 = load i8*, i8** %4
%8 = load i8, i8* %7
%9 = icmp ne i8 %8, 0
br i1 %9, label %10, label %34
10: ; preds = %6
%11 = load i8*, i8** %4
%12 = call i32 @strncmp(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 4)
%13 = icmp eq i32 %12, 0
br i1 %13, label %30, label %14
14: ; preds = %10
%15 = load i8*, i8** %4
%16 = call i32 @strncmp(i8* %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i64 7)
%17 = icmp eq i32 %16, 0
br i1 %17, label %30, label %18
18: ; preds = %14
%19 = load i8*, i8** %4
%20 = call i32 @strncmp(i8* %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 6)
%21 = icmp eq i32 %20, 0
br i1 %21, label %30, label %22
22: ; preds = %18
%23 = load i8*, i8** %4
%24 = call i32 @strncmp(i8* %23, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i64 9)
%25 = icmp eq i32 %24, 0
br i1 %25, label %30, label %26
26: ; preds = %22
%27 = load i8*, i8** %4
%28 = call i32 @strncmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 4)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %26, %22, %18, %14, %10
store i32 1, i32* %2
br label %35
31: ; preds = %26
%32 = load i8*, i8** %4
%33 = getelementptr inbounds i8, i8* %32, i32 1
store i8* %33, i8** %4
br label %6
34: ; preds = %6
store i32 0, i32* %2
br label %35
35: ; preds = %34, %30
%36 = load i32, i32* %2
ret i32 %36
}

LLVM IR (-O2):
@.str = [5 x i8] c" hit\00"
@.str.1 = [8 x i8] c" tickle\00"
@.str.2 = [7 x i8] c" graze\00"
@.str.3 = [10 x i8] c" massacre\00"
@.str.4 = [5 x i8] c" die\00"
define i32 @fighting_line(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = icmp eq i8 %2, 0
br i1 %3, label %24, label %7
4: ; preds = %20
%5 = load i8, i8* %23
%6 = icmp eq i8 %5, 0
br i1 %6, label %24, label %7
7: ; preds = %1, %4
%8 = phi i8* [ %23, %4 ], [ %0, %1 ]
%9 = tail call i32 @strncmp(i8* %8, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i64 4)
%10 = icmp eq i32 %9, 0
br i1 %10, label %24, label %11
11: ; preds = %7
%12 = tail call i32 @strncmp(i8* %8, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i64 7)
%13 = icmp eq i32 %12, 0
br i1 %13, label %24, label %14
14: ; preds = %11
%15 = tail call i32 @strncmp(i8* %8, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 6)
%16 = icmp eq i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %14
%18 = tail call i32 @strncmp(i8* %8, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i64 9)
%19 = icmp eq i32 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %17
%21 = tail call i32 @strncmp(i8* %8, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i64 4)
%22 = icmp eq i32 %21, 0
%23 = getelementptr inbounds i8, i8* %8, i64 1
br i1 %22, label %24, label %4
24: ; preds = %20, %17, %14, %11, %7, %4, %1
%25 = phi i32 [ 0, %1 ], [ 0, %4 ], [ 1, %7 ], [ 1, %11 ], [ 1, %14 ], [ 1, %17 ], [ 1, %20 ]
ret i32 %25
}