main() {
  f(1, 2, 3);
  f(1, (void *)0);
  f(1, 2, 3, (void *)0);
  f(1, 2, 3, (void *)0, 2);
  f(1, 0);
  f(1, 2, 3, (void *)0, 5, 6, 7, (void *)0);
  f(1, 2, 3, (void *)0, 5, 6, 7, (void *)0, 2);
  g(1, 0);
  g(0);
  h(5);
  h(5, (void *)0);
  h(5, (void *)0, 2, 3);
  h(5, (void *)0, 2);
  k(1);
  k(1, 2, (void *)0, 3, 3, 3);
  k(1, 2, (void *)0, 3, 3, 3, 4);
  r(5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%r8d
mov    $0x3,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    %r8d,%esi
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
movl   $0x7,(%rsp)
movq   $0x0,0x8(%rsp)
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
mov    %eax,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
movl   $0x7,(%rsp)
movq   $0x0,0x8(%rsp)
movl   $0x2,0x10(%rsp)
mov    $0x0,%al
call   1050 <f@plt>
mov    $0x1,%edi
xor    %esi,%esi
mov    $0x0,%al
call   1060 <g@plt>
xor    %edi,%edi
mov    $0x0,%al
call   1060 <g@plt>
mov    $0x5,%edi
mov    $0x0,%al
call   1030 <h@plt>
mov    $0x5,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x0,%al
call   1030 <h@plt>
mov    $0x5,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x0,%al
call   1030 <h@plt>
mov    $0x5,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x2,%edx
mov    $0x0,%al
call   1030 <h@plt>
mov    $0x1,%edi
mov    $0x0,%al
call   1070 <k@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
mov    %eax,%edx
mov    $0x3,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   1070 <k@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
mov    %eax,%edx
mov    $0x3,%r9d
mov    %r9d,%ecx
mov    %r9d,%r8d
movl   $0x4,(%rsp)
mov    $0x0,%al
call   1070 <k@plt>
mov    $0x5,%edi
mov    $0x0,%al
call   1040 <r@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <f@plt>
mov    $0x1,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
mov    $0x2,%r8d
xor    %eax,%eax
call   1050 <f@plt>
mov    $0x1,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <f@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0x0
push   $0x7
call   1050 <f@plt>
add    $0x8,%rsp
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x3,%edx
xor    %ecx,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0x2
push   $0x0
push   $0x7
call   1050 <f@plt>
add    $0x20,%rsp
mov    $0x1,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1060 <g@plt>
xor    %edi,%edi
xor    %eax,%eax
call   1060 <g@plt>
mov    $0x5,%edi
xor    %eax,%eax
call   1030 <h@plt>
mov    $0x5,%edi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <h@plt>
mov    $0x5,%edi
xor    %esi,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1030 <h@plt>
mov    $0x5,%edi
xor    %esi,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1030 <h@plt>
mov    $0x1,%edi
xor    %eax,%eax
call   1070 <k@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x3,%ecx
mov    $0x3,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1070 <k@plt>
sub    $0x8,%rsp
mov    $0x1,%edi
mov    $0x2,%esi
xor    %edx,%edx
mov    $0x3,%ecx
mov    $0x3,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
push   $0x4
call   1070 <k@plt>
add    $0x10,%rsp
mov    $0x5,%edi
xor    %eax,%eax
call   1040 <r@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, ...)*)(i32 1, i32 2, i32 3)
%2 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i8*, ...)*)(i32 1, i8* null)
%3 = call i32 (i32, i32, i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, ...)*)(i32 1, i32 2, i32 3, i8* null)
%4 = call i32 (i32, i32, i32, i8*, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 2)
%5 = call i32 (i32, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, ...)*)(i32 1, i32 0)
%6 = call i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 5, i32 6, i32 7, i8* null)
%7 = call i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, i32, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 5, i32 6, i32 7, i8* null, i32 2)
%8 = call i32 (i32, i32, ...) bitcast (i32 (...)* @g to i32 (i32, i32, ...)*)(i32 1, i32 0)
%9 = call i32 (i32, ...) bitcast (i32 (...)* @g to i32 (i32, ...)*)(i32 0)
%10 = call i32 (i32, ...) bitcast (i32 (...)* @h to i32 (i32, ...)*)(i32 5)
%11 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, ...)*)(i32 5, i8* null)
%12 = call i32 (i32, i8*, i32, i32, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, i32, i32, ...)*)(i32 5, i8* null, i32 2, i32 3)
%13 = call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, i32, ...)*)(i32 5, i8* null, i32 2)
%14 = call i32 (i32, ...) bitcast (i32 (...)* @k to i32 (i32, ...)*)(i32 1)
%15 = call i32 (i32, i32, i8*, i32, i32, i32, ...) bitcast (i32 (...)* @k to i32 (i32, i32, i8*, i32, i32, i32, ...)*)(i32 1, i32 2, i8* null, i32 3, i32 3, i32 3)
%16 = call i32 (i32, i32, i8*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @k to i32 (i32, i32, i8*, i32, i32, i32, i32, ...)*)(i32 1, i32 2, i8* null, i32 3, i32 3, i32 3, i32 4)
%17 = call i32 (i32, ...) bitcast (i32 (...)* @r to i32 (i32, ...)*)(i32 5)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, ...)*)(i32 1, i32 2, i32 3)
%2 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i8*, ...)*)(i32 1, i8* null)
%3 = tail call i32 (i32, i32, i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, ...)*)(i32 1, i32 2, i32 3, i8* null)
%4 = tail call i32 (i32, i32, i32, i8*, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 2)
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, ...)*)(i32 1, i32 0)
%6 = tail call i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 5, i32 6, i32 7, i8* null)
%7 = tail call i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, i32, ...) bitcast (i32 (...)* @f to i32 (i32, i32, i32, i8*, i32, i32, i32, i8*, i32, ...)*)(i32 1, i32 2, i32 3, i8* null, i32 5, i32 6, i32 7, i8* null, i32 2)
%8 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @g to i32 (i32, i32, ...)*)(i32 1, i32 0)
%9 = tail call i32 (i32, ...) bitcast (i32 (...)* @g to i32 (i32, ...)*)(i32 0)
%10 = tail call i32 (i32, ...) bitcast (i32 (...)* @h to i32 (i32, ...)*)(i32 5)
%11 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, ...)*)(i32 5, i8* null)
%12 = tail call i32 (i32, i8*, i32, i32, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, i32, i32, ...)*)(i32 5, i8* null, i32 2, i32 3)
%13 = tail call i32 (i32, i8*, i32, ...) bitcast (i32 (...)* @h to i32 (i32, i8*, i32, ...)*)(i32 5, i8* null, i32 2)
%14 = tail call i32 (i32, ...) bitcast (i32 (...)* @k to i32 (i32, ...)*)(i32 1)
%15 = tail call i32 (i32, i32, i8*, i32, i32, i32, ...) bitcast (i32 (...)* @k to i32 (i32, i32, i8*, i32, i32, i32, ...)*)(i32 1, i32 2, i8* null, i32 3, i32 3, i32 3)
%16 = tail call i32 (i32, i32, i8*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @k to i32 (i32, i32, i8*, i32, i32, i32, i32, ...)*)(i32 1, i32 2, i8* null, i32 3, i32 3, i32 3, i32 4)
%17 = tail call i32 (i32, ...) bitcast (i32 (...)* @r to i32 (i32, ...)*)(i32 5)
ret i32 0
}