#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ test(int, int, int, ...);
int main() {
  test(1, 0x123456789abcdefLL, 0x55);
  test(2, 2, 0x123456789abcdefLL, 0x55);
  test(3, 2, 3, 0x123456789abcdefLL, 0x55);
  test(4, 2, 3, 4, 0x123456789abcdefLL, 0x55);
  test(5, 2, 3, 4, 5, 0x123456789abcdefLL, 0x55);
  test(6, 2, 3, 4, 5, 6, 0x123456789abcdefLL, 0x55);
  test(7, 2, 3, 4, 5, 6, 7, 0x123456789abcdefLL, 0x55);
  test(8, 2, 3, 4, 5, 6, 7, 8, 0x123456789abcdefLL, 0x55);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1,%edi
mov    $0x89abcdef,%esi
mov    $0x55,%edx
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x2,%esi
mov    $0x89abcdef,%edx
mov    $0x55,%ecx
mov    %esi,%edi
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x3,%edx
mov    $0x2,%esi
movabs $0x123456789abcdef,%rcx
45 23 01
mov    $0x55,%r8d
mov    %edx,%edi
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x4,%ecx
mov    $0x2,%esi
mov    $0x3,%edx
movabs $0x123456789abcdef,%r8
45 23 01
mov    $0x55,%r9d
mov    %ecx,%edi
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x5,%r8d
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
movabs $0x123456789abcdef,%r9
45 23 01
mov    %r8d,%edi
movl   $0x55,(%rsp)
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x6,%r9d
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
movabs $0x123456789abcdef,%rax
45 23 01
mov    %r9d,%edi
mov    %rax,(%rsp)
movl   $0x55,0x8(%rsp)
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x7,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
movabs $0x123456789abcdef,%rax
45 23 01
movl   $0x7,(%rsp)
mov    %rax,0x8(%rsp)
movl   $0x55,0x10(%rsp)
mov    $0x0,%al
call   1040 <test@plt>
mov    $0x8,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
movabs $0x123456789abcdef,%rax
45 23 01
movl   $0x7,(%rsp)
movl   $0x8,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x55,0x18(%rsp)
mov    $0x0,%al
call   1040 <test@plt>
xor    %edi,%edi
call   1030 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1,%edi
mov    $0x89abcdef,%esi
mov    $0x55,%edx
xor    %eax,%eax
call   1040 <test@plt>
mov    $0x2,%edi
mov    $0x2,%esi
mov    $0x89abcdef,%edx
mov    $0x55,%ecx
xor    %eax,%eax
call   1040 <test@plt>
movabs $0x123456789abcdef,%rbx
45 23 01
mov    $0x3,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    %rbx,%rcx
mov    $0x55,%r8d
xor    %eax,%eax
call   1040 <test@plt>
mov    $0x4,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    %rbx,%r8
mov    $0x55,%r9d
xor    %eax,%eax
call   1040 <test@plt>
sub    $0x8,%rsp
mov    $0x5,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    %rbx,%r9
xor    %eax,%eax
push   $0x55
call   1040 <test@plt>
add    $0x10,%rsp
mov    $0x6,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0x55
push   %rbx
call   1040 <test@plt>
add    $0x8,%rsp
mov    $0x7,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0x55
push   %rbx
push   $0x7
call   1040 <test@plt>
add    $0x20,%rsp
mov    $0x8,%edi
mov    $0x2,%esi
mov    $0x3,%edx
mov    $0x4,%ecx
mov    $0x5,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
push   $0x55
push   %rbx
push   $0x8
push   $0x7
call   1040 <test@plt>
add    $0x20,%rsp
xor    %edi,%edi
call   1030 <exit@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i32, i32, i32, ...) @test(i32 1, i32 -1985229329, i32 85)
%3 = call i32 (i32, i32, i32, ...) @test(i32 2, i32 2, i32 -1985229329, i32 85)
%4 = call i32 (i32, i32, i32, ...) @test(i32 3, i32 2, i32 3, i64 81985529216486895, i32 85)
%5 = call i32 (i32, i32, i32, ...) @test(i32 4, i32 2, i32 3, i32 4, i64 81985529216486895, i32 85)
%6 = call i32 (i32, i32, i32, ...) @test(i32 5, i32 2, i32 3, i32 4, i32 5, i64 81985529216486895, i32 85)
%7 = call i32 (i32, i32, i32, ...) @test(i32 6, i32 2, i32 3, i32 4, i32 5, i32 6, i64 81985529216486895, i32 85)
%8 = call i32 (i32, i32, i32, ...) @test(i32 7, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i64 81985529216486895, i32 85)
%9 = call i32 (i32, i32, i32, ...) @test(i32 8, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i64 81985529216486895, i32 85)
%10 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, i32, i32, ...) @test(i32 1, i32 -1985229329, i32 85)
%2 = tail call i32 (i32, i32, i32, ...) @test(i32 2, i32 2, i32 -1985229329, i32 85)
%3 = tail call i32 (i32, i32, i32, ...) @test(i32 3, i32 2, i32 3, i64 81985529216486895, i32 85)
%4 = tail call i32 (i32, i32, i32, ...) @test(i32 4, i32 2, i32 3, i32 4, i64 81985529216486895, i32 85)
%5 = tail call i32 (i32, i32, i32, ...) @test(i32 5, i32 2, i32 3, i32 4, i32 5, i64 81985529216486895, i32 85)
%6 = tail call i32 (i32, i32, i32, ...) @test(i32 6, i32 2, i32 3, i32 4, i32 5, i32 6, i64 81985529216486895, i32 85)
%7 = tail call i32 (i32, i32, i32, ...) @test(i32 7, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i64 81985529216486895, i32 85)
%8 = tail call i32 (i32, i32, i32, ...) @test(i32 8, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i64 81985529216486895, i32 85)
%9 = tail call i32 @exit(i32 0)
unreachable
}