void cantfindbranch(revno, date, author, state) char const *revno,
    date[(16 + 16)], *author, *state;
{
  char datebuf[(16 + 16) + 9];
  rcserror("No revision on branch %s has%s%s%s%s%s%s.", revno,
           date ? " a date before " : "", date ? date2str(date, datebuf) : "",
           author ? " and author " + (date ? 0 : 4) : "", author ? author : "",
           state ? " and state " + (date || author ? 0 : 4) : "",
           state ? state : "");
}


x86 assembly (clang, -O0):
<cantfindbranch>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x10(%rbp),%rdx
lea    0xeeb(%rip),%rax
lea    0xed5(%rip),%rcx
cmp    $0x0,%rdx
cmovne %rcx,%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1186 <cantfindbranch+0x66>
mov    -0x10(%rbp),%rdi
lea    -0x50(%rbp),%rsi
mov    $0x0,%al
call   1030 <date2str@plt>
cltq
mov    %rax,-0x68(%rbp)
jmp    1196 <cantfindbranch+0x76>
lea    0xeac(%rip),%rax
mov    %rax,-0x68(%rbp)
jmp    1196 <cantfindbranch+0x76>
mov    -0x68(%rbp),%rax
mov    %rax,-0x70(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11d1 <cantfindbranch+0xb1>
mov    -0x10(%rbp),%rdx
mov    $0x4,%eax
xor    %ecx,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
movslq %eax,%rcx
lea    0xe75(%rip),%rax
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
jmp    11e1 <cantfindbranch+0xc1>
lea    0xe61(%rip),%rax
mov    %rax,-0x78(%rbp)
jmp    11e1 <cantfindbranch+0xc1>
mov    -0x78(%rbp),%rax
mov    %rax,-0x80(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1204 <cantfindbranch+0xe4>
mov    -0x18(%rbp),%rax
mov    %rax,-0x88(%rbp)
jmp    1217 <cantfindbranch+0xf7>
lea    0xe2e(%rip),%rax
mov    %rax,-0x88(%rbp)
jmp    1217 <cantfindbranch+0xf7>
mov    -0x88(%rbp),%rax
mov    %rax,-0x90(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     127d <cantfindbranch+0x15d>
mov    $0x1,%al
cmpq   $0x0,-0x10(%rbp)
mov    %al,-0x91(%rbp)
jne    1251 <cantfindbranch+0x131>
cmpq   $0x0,-0x18(%rbp)
setne  %al
mov    %al,-0x91(%rbp)
mov    -0x91(%rbp),%dl
mov    $0x4,%eax
xor    %ecx,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
movslq %eax,%rcx
lea    0xdd9(%rip),%rax
add    %rcx,%rax
mov    %rax,-0xa0(%rbp)
jmp    1290 <cantfindbranch+0x170>
lea    0xdb5(%rip),%rax
mov    %rax,-0xa0(%rbp)
jmp    1290 <cantfindbranch+0x170>
mov    -0xa0(%rbp),%rax
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     12b9 <cantfindbranch+0x199>
mov    -0x20(%rbp),%rax
mov    %rax,-0xb0(%rbp)
jmp    12cc <cantfindbranch+0x1ac>
lea    0xd79(%rip),%rax
mov    %rax,-0xb0(%rbp)
jmp    12cc <cantfindbranch+0x1ac>
mov    -0xa8(%rbp),%r10
mov    -0x90(%rbp),%r9
mov    -0x80(%rbp),%r8
mov    -0x70(%rbp),%rcx
mov    -0x58(%rbp),%rdx
mov    -0x60(%rbp),%rsi
mov    -0xb0(%rbp),%rax
lea    0xd08(%rip),%rdi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <rcserror@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cantfindbranch>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,%r14
mov    %rdx,%r12
mov    %rsi,%r13
mov    %rdi,%r15
lea    0xef8(%rip),%rbx
test   %rsi,%rsi
je     1161 <cantfindbranch+0x41>
xor    %ebp,%ebp
mov    %rsp,%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <date2str@plt>
movslq %eax,%rcx
lea    0xecb(%rip),%rdx
jmp    116c <cantfindbranch+0x4c>
mov    $0x4,%ebp
mov    %rbx,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
or     %r12,%r13
sete   %al
lea    0xebf(%rip),%r8
add    %rbp,%r8
test   %r14,%r14
lea    0xebf(%rip),%rsi
cmove  %rbx,%r14
lea    (%rsi,%rax,4),%rbp
cmove  %rbx,%rbp
test   %r12,%r12
cmove  %rbx,%r8
cmovne %r12,%rbx
lea    0xe5a(%rip),%rdi
mov    %r15,%rsi
mov    %rbx,%r9
xor    %eax,%eax
push   %r14
push   %rbp
call   1040 <rcserror@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"No revision on branch %s has%s%s%s%s%s%s.\00"
@.str.1 = [16 x i8] c" a date before \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [13 x i8] c" and author \00"
@.str.4 = [12 x i8] c" and state \00"
define void @cantfindbranch(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [41 x i8]
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%10 = load i8*, i8** %5
%11 = load i8*, i8** %6
%12 = icmp ne i8* %11, null
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%15 = load i8*, i8** %6
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %23
17: ; preds = %4
%18 = load i8*, i8** %6
%19 = getelementptr inbounds [41 x i8], [41 x i8]* %9, i64 0, i64 0
%20 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @date2str to i32 (i8*, i8*, ...)*)(i8* %18, i8* %19)
%21 = sext i32 %20 to i64
%22 = inttoptr i64 %21 to i8*
br label %24
23: ; preds = %4
br label %24
24: ; preds = %23, %17
%25 = phi i8* [ %22, %17 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %23 ]
%26 = load i8*, i8** %7
%27 = icmp ne i8* %26, null
br i1 %27, label %28, label %35
28: ; preds = %24
%29 = load i8*, i8** %6
%30 = icmp ne i8* %29, null
%31 = zext i1 %30 to i64
%32 = select i1 %30, i32 0, i32 4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i64 %33
br label %36
35: ; preds = %24
br label %36
36: ; preds = %35, %28
%37 = phi i8* [ %34, %28 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %35 ]
%38 = load i8*, i8** %7
%39 = icmp ne i8* %38, null
br i1 %39, label %40, label %42
40: ; preds = %36
%41 = load i8*, i8** %7
br label %43
42: ; preds = %36
br label %43
43: ; preds = %42, %40
%44 = phi i8* [ %41, %40 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %42 ]
%45 = load i8*, i8** %8
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %59
47: ; preds = %43
%48 = load i8*, i8** %6
%49 = icmp ne i8* %48, null
br i1 %49, label %53, label %50
50: ; preds = %47
%51 = load i8*, i8** %7
%52 = icmp ne i8* %51, null
br label %53
53: ; preds = %50, %47
%54 = phi i1 [ true, %47 ], [ %52, %50 ]
%55 = zext i1 %54 to i64
%56 = select i1 %54, i32 0, i32 4
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %57
br label %60
59: ; preds = %43
br label %60
60: ; preds = %59, %53
%61 = phi i8* [ %58, %53 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %59 ]
%62 = load i8*, i8** %8
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %66
64: ; preds = %60
%65 = load i8*, i8** %8
br label %67
66: ; preds = %60
br label %67
67: ; preds = %66, %64
%68 = phi i8* [ %65, %64 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %66 ]
%69 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @rcserror to i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %14, i8* %25, i8* %37, i8* %44, i8* %61, i8* %68)
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"No revision on branch %s has%s%s%s%s%s%s.\00"
@.str.1 = [16 x i8] c" a date before \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [13 x i8] c" and author \00"
@.str.4 = [12 x i8] c" and state \00"
define void @cantfindbranch(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca [41 x i8]
%6 = getelementptr inbounds [41 x i8], [41 x i8]* %5, i64 0, i64 0
%7 = icmp ne i8* %1, null
br i1 %7, label %8, label %12
8: ; preds = %4
%9 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @date2str to i32 (i8*, i8*, ...)*)(i8* %1, i8* %6)
%10 = sext i32 %9 to i64
%11 = inttoptr i64 %10 to i8*
br label %12
12: ; preds = %4, %8
%13 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), %8 ]
%14 = phi i64 [ 4, %4 ], [ 0, %8 ]
%15 = phi i8* [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), %4 ], [ %11, %8 ]
%16 = icmp ne i8* %2, null
%17 = getelementptr inbounds [13 x i8], [13 x i8]* @.str.3, i64 0, i64 %14
%18 = select i1 %16, i8* %17, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%19 = icmp eq i8* %3, null
%20 = or i1 %7, %16
%21 = select i1 %20, i64 0, i64 4
%22 = getelementptr inbounds [12 x i8], [12 x i8]* @.str.4, i64 0, i64 %21
%23 = select i1 %19, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* %3
%24 = select i1 %19, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* %22
%25 = select i1 %16, i8* %2, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0)
%26 = call i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...) bitcast (i32 (...)* @rcserror to i32 (i8*, i8*, i8*, i8*, i8*, i8*, i8*, i8*, ...)*)(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %13, i8* %15, i8* %18, i8* %25, i8* %24, i8* %23)
ret void
}