void prFuncSpec(long name, long args) {
  pr("long "), prStr(name), pr("(");
  if (length(args) > 0)
    prTypedIds(args);
  else
    pr("void");
  pr(")");
}


x86 assembly (clang, -O0):
<prFuncSpec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1050 <pr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x0,%al
call   1040 <prStr@plt>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1050 <pr@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <length@plt>
cmp    $0x0,%eax
jle    119b <prFuncSpec+0x5b>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1060 <prTypedIds@plt>
jmp    11a9 <prFuncSpec+0x69>
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1050 <pr@plt>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1050 <pr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<prFuncSpec>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
lea    0xeaf(%rip),%rdi
xor    %eax,%eax
call   1050 <pr@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <prStr@plt>
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1050 <pr@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <length@plt>
test   %eax,%eax
jle    118a <prFuncSpec+0x4a>
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <prTypedIds@plt>
jmp    1198 <prFuncSpec+0x58>
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1050 <pr@plt>
lea    0xe6e(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <pr@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"long \00"
@.str.1 = [2 x i8] c"(\00"
@.str.2 = [5 x i8] c"void\00"
@.str.3 = [2 x i8] c")\00"
define void @prFuncSpec(i64 %0, i64 %1) {
%3 = alloca i64
%4 = alloca i64
store i64 %0, i64* %3
store i64 %1, i64* %4
%5 = call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = load i64, i64* %3
%7 = call i32 (i64, ...) bitcast (i32 (...)* @prStr to i32 (i64, ...)*)(i64 %6)
%8 = call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = load i64, i64* %4
%10 = call i32 (i64, ...) bitcast (i32 (...)* @length to i32 (i64, ...)*)(i64 %9)
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = load i64, i64* %4
%14 = call i32 (i64, ...) bitcast (i32 (...)* @prTypedIds to i32 (i64, ...)*)(i64 %13)
br label %17
15: ; preds = %2
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %17
17: ; preds = %15, %12
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"long \00"
@.str.1 = [2 x i8] c"(\00"
@.str.2 = [5 x i8] c"void\00"
@.str.3 = [2 x i8] c")\00"
define void @prFuncSpec(i64 %0, i64 %1) {
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 (i64, ...) bitcast (i32 (...)* @prStr to i32 (i64, ...)*)(i64 %0)
%5 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (i64, ...) bitcast (i32 (...)* @length to i32 (i64, ...)*)(i64 %1)
%7 = icmp sgt i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = tail call i32 (i64, ...) bitcast (i32 (...)* @prTypedIds to i32 (i64, ...)*)(i64 %1)
br label %12
10: ; preds = %2
%11 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %12
12: ; preds = %10, %8
%13 = tail call i32 (i8*, ...) bitcast (i32 (...)* @pr to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}