#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 */
typedef int /*<<< orphan*/ s;
typedef int /*<<< orphan*/ l;
typedef int /*<<< orphan*/ i;

/* Variables and functions */
int /*<<< orphan*/ print_title(char *, unsigned long, int);
void parameters(short s, int i, long l, short *ss, int *ii, long *ll) {
  print_title("parametro short.....:", (unsigned long)&s, sizeof(s));
  print_title("parametro short*....:", (unsigned long)&ss, sizeof(&ss));
  print_title("parametro int.......:", (unsigned long)&i, sizeof(i));
  print_title("parametro int*......:", (unsigned long)&ii, sizeof(&ii));
  print_title("parametro long......:", (unsigned long)&l, sizeof(l));
  print_title("parametro long*.....:", (unsigned long)&ll, sizeof(&ll));
}


x86 assembly (clang, -O0):
<parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
lea    -0x2(%rbp),%rsi
lea    0xec3(%rip),%rdi
mov    $0x2,%edx
call   1030 <print_title@plt>
lea    -0x18(%rbp),%rsi
lea    0xec4(%rip),%rdi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    -0x8(%rbp),%rsi
lea    0xec5(%rip),%rdi
mov    $0x4,%edx
call   1030 <print_title@plt>
lea    -0x20(%rbp),%rsi
lea    0xec6(%rip),%rdi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    -0x10(%rbp),%rsi
lea    0xec7(%rip),%rdi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    -0x28(%rbp),%rsi
lea    0xec8(%rip),%rdi
mov    $0x8,%edx
call   1030 <print_title@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parameters>:
sub    $0x28,%rsp
mov    %di,0x2(%rsp)
mov    %esi,0x4(%rsp)
mov    %rdx,0x20(%rsp)
mov    %rcx,0x18(%rsp)
mov    %r8,0x10(%rsp)
mov    %r9,0x8(%rsp)
lea    0xec8(%rip),%rdi
lea    0x2(%rsp),%rsi
mov    $0x2,%edx
call   1030 <print_title@plt>
lea    0xec8(%rip),%rdi
lea    0x18(%rsp),%rsi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    0xec8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    $0x4,%edx
call   1030 <print_title@plt>
lea    0xec8(%rip),%rdi
lea    0x10(%rsp),%rsi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    0xec8(%rip),%rdi
lea    0x20(%rsp),%rsi
mov    $0x8,%edx
call   1030 <print_title@plt>
lea    0xec8(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x8,%edx
call   1030 <print_title@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"parametro short.....:\00"
@.str.1 = [22 x i8] c"parametro short*....:\00"
@.str.2 = [22 x i8] c"parametro int.......:\00"
@.str.3 = [22 x i8] c"parametro int*......:\00"
@.str.4 = [22 x i8] c"parametro long......:\00"
@.str.5 = [22 x i8] c"parametro long*.....:\00"
define void @parameters(i16 signext %0, i32 %1, i64 %2, i16* %3, i32* %4, i64* %5) {
%7 = alloca i16
%8 = alloca i32
%9 = alloca i64
%10 = alloca i16*
%11 = alloca i32*
%12 = alloca i64*
store i16 %0, i16* %7
store i32 %1, i32* %8
store i64 %2, i64* %9
store i16* %3, i16** %10
store i32* %4, i32** %11
store i64* %5, i64** %12
%13 = ptrtoint i16* %7 to i64
%14 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 %13, i32 2)
%15 = ptrtoint i16** %10 to i64
%16 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 %15, i32 8)
%17 = ptrtoint i32* %8 to i64
%18 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i64 %17, i32 4)
%19 = ptrtoint i32** %11 to i64
%20 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %19, i32 8)
%21 = ptrtoint i64* %9 to i64
%22 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i64 %21, i32 8)
%23 = ptrtoint i64** %12 to i64
%24 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i64 %23, i32 8)
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"parametro short.....:\00"
@.str.1 = [22 x i8] c"parametro short*....:\00"
@.str.2 = [22 x i8] c"parametro int.......:\00"
@.str.3 = [22 x i8] c"parametro int*......:\00"
@.str.4 = [22 x i8] c"parametro long......:\00"
@.str.5 = [22 x i8] c"parametro long*.....:\00"
define void @parameters(i16 signext %0, i32 %1, i64 %2, i16* %3, i32* %4, i64* %5) {
%7 = alloca i16
%8 = alloca i32
%9 = alloca i64
%10 = alloca i16*
%11 = alloca i32*
%12 = alloca i64*
store i16 %0, i16* %7
store i32 %1, i32* %8
store i64 %2, i64* %9
store i16* %3, i16** %10
store i32* %4, i32** %11
store i64* %5, i64** %12
%13 = ptrtoint i16* %7 to i64
%14 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 %13, i32 2)
%15 = ptrtoint i16** %10 to i64
%16 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i64 %15, i32 8)
%17 = ptrtoint i32* %8 to i64
%18 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i64 %17, i32 4)
%19 = ptrtoint i32** %11 to i64
%20 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 %19, i32 8)
%21 = ptrtoint i64* %9 to i64
%22 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i64 %21, i32 8)
%23 = ptrtoint i64** %12 to i64
%24 = call i32 @print_title(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0), i64 %23, i32 8)
ret void
}