int match_confirm_string(line_from_mud, confirm_string, confirm_string_length)
char *line_from_mud, *confirm_string;
int confirm_string_length;
{
  char *mudline_words[1000];
  char mudline_words_buffer[2 * 1000];

  ;
  return (!strncmp(confirm_string, line_from_mud, confirm_string_length)) ||
         (dollar_match(confirm_string, line_from_mud, mudline_words,
                       mudline_words_buffer) != -1);
}


x86 assembly (clang, -O0):
<match_confirm_string>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2740,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
movslq -0x14(%rbp),%rdx
call   1030 <strncmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0x2731(%rbp)
je     1183 <match_confirm_string+0x63>
mov    -0x10(%rbp),%rdi
mov    -0x8(%rbp),%rsi
lea    -0x1f60(%rbp),%rdx
lea    -0x2730(%rbp),%rcx
mov    $0x0,%al
call   1040 <dollar_match@plt>
cmp    $0xffffffff,%eax
setne  %al
mov    %al,-0x2731(%rbp)
mov    -0x2731(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x2740,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<match_confirm_string>:
push   %r14
push   %rbx
sub    $0x2718,%rsp
mov    %rsi,%r14
mov    %rdi,%rbx
movslq %edx,%rdx
mov    %rsi,%rdi
mov    %rbx,%rsi
call   1030 <strncmp@plt>
test   %eax,%eax
je     1166 <match_confirm_string+0x46>
lea    0x7d0(%rsp),%rdx
mov    %rsp,%rcx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <dollar_match@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0xffffffff,%ecx
setne  %al
jmp    116b <match_confirm_string+0x4b>
mov    $0x1,%eax
add    $0x2718,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @match_confirm_string(i8* %0, i8* %1, i32 %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca [1000 x i8*]
%8 = alloca [2000 x i8]
store i8* %0, i8** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%9 = load i8*, i8** %5
%10 = load i8*, i8** %4
%11 = load i32, i32* %6
%12 = sext i32 %11 to i64
%13 = call i32 @strncmp(i8* %9, i8* %10, i64 %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %3
%16 = load i8*, i8** %5
%17 = load i8*, i8** %4
%18 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %7, i64 0, i64 0
%19 = getelementptr inbounds [2000 x i8], [2000 x i8]* %8, i64 0, i64 0
%20 = call i32 (i8*, i8*, i8**, i8*, ...) bitcast (i32 (...)* @dollar_match to i32 (i8*, i8*, i8**, i8*, ...)*)(i8* %16, i8* %17, i8** %18, i8* %19)
%21 = icmp ne i32 %20, -1
br label %22
22: ; preds = %15, %3
%23 = phi i1 [ true, %3 ], [ %21, %15 ]
%24 = zext i1 %23 to i32
ret i32 %24
}

LLVM IR (-O2):
define i32 @match_confirm_string(i8* %0, i8* %1, i32 %2) {
%4 = alloca [1000 x i8*]
%5 = alloca [2000 x i8]
%6 = bitcast [1000 x i8*]* %4 to i8*
%7 = getelementptr inbounds [2000 x i8], [2000 x i8]* %5, i64 0, i64 0
%8 = sext i32 %2 to i64
%9 = tail call i32 @strncmp(i8* %1, i8* %0, i64 %8)
%10 = icmp eq i32 %9, 0
br i1 %10, label %16, label %11
11: ; preds = %3
%12 = getelementptr inbounds [1000 x i8*], [1000 x i8*]* %4, i64 0, i64 0
%13 = call i32 (i8*, i8*, i8**, i8*, ...) bitcast (i32 (...)* @dollar_match to i32 (i8*, i8*, i8**, i8*, ...)*)(i8* %1, i8* %0, i8** %12, i8* %7)
%14 = icmp ne i32 %13, -1
%15 = zext i1 %14 to i32
br label %16
16: ; preds = %11, %3
%17 = phi i32 [ 1, %3 ], [ %15, %11 ]
ret i32 %17
}