#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*/ test_queue_range(int, int, int, ...);
void test_queue_ptr_basic() {
  test_queue_range(117, 1, 0);
  test_queue_range(117, 1, 2, 0);
  test_queue_range(117, 1, 2, 3, 0);
  test_queue_range(117, 1, 2, 3, 4, 0);
  test_queue_range(117, 1, 2, 3, 4, 5, 0);
  test_queue_range(117, 1, 2, 3, 4, 5, 6, 0);
  test_queue_range(117, 1, 2, 3, 4, 5, 6, 7, 0);
}


x86 assembly (clang, -O0):
<test_queue_ptr_basic>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    $0x75,%edi
mov    $0x1,%esi
xor    %edx,%edx
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
xor    %r8d,%r8d
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %r9d,%r9d
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
movl   $0x0,(%rsp)
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
movl   $0x6,(%rsp)
movl   $0x0,0x8(%rsp)
mov    $0x0,%al
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
movl   $0x6,(%rsp)
movl   $0x7,0x8(%rsp)
movl   $0x0,0x10(%rsp)
mov    $0x0,%al
call   1030 <test_queue_range@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_queue_ptr_basic>:
push   %rax
mov    $0x75,%edi
mov    $0x1,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1030 <test_queue_range@plt>
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1030 <test_queue_range@plt>
sub    $0x8,%rsp
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
push   $0x0
call   1030 <test_queue_range@plt>
add    $0x10,%rsp
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
push   $0x0
push   $0x6
call   1030 <test_queue_range@plt>
add    $0x8,%rsp
mov    $0x75,%edi
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0x4,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
push   $0x0
push   $0x7
push   $0x6
call   1030 <test_queue_range@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
define void @test_queue_ptr_basic() {
%1 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 0)
%2 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 0)
%3 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 0)
%4 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 0)
%5 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 0)
%6 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 0)
%7 = call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 0)
ret void
}

LLVM IR (-O2):
define void @test_queue_ptr_basic() {
%1 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 0)
%2 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 0)
%3 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 0)
%4 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 0)
%5 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 0)
%6 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 0)
%7 = tail call i32 (i32, i32, i32, ...) @test_queue_range(i32 117, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 0)
ret void
}