#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*/ printf(char *);
int /*<<< orphan*/ show_double(double);
int /*<<< orphan*/ show_float(float);
int /*<<< orphan*/ show_int(int);
int /*<<< orphan*/ show_long(long);
int /*<<< orphan*/ show_pointer(int *);
int /*<<< orphan*/ show_short(short);
int main() {
  int intVariable = 10;
  float floatVariable = 2.5f;
  int *intPointer = &intVariable;
  int intValue = *intPointer;
  short shortVariable = 10;
  long longVariable = 65535;
  double doubleVariable = 0.000125f;
  printf("int:");
  show_int(intVariable);
  printf("float:");
  show_float(floatVariable);
  printf("pointer:");
  show_pointer(intPointer);
  printf("short:");
  show_short(shortVariable);
  printf("long:");
  show_long(longVariable);
  printf("double:");
  show_double(doubleVariable);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0xa,-0x4(%rbp)
movss  0xe81(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x14(%rbp)
movw   $0xa,-0x16(%rbp)
movq   $0xffff,-0x20(%rbp)
movsd  0xe4d(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    0xe4d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1070 <show_int@plt>
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
call   1050 <show_float@plt>
lea    0xe2f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1080 <show_pointer@plt>
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
movswl -0x16(%rbp),%edi
call   1060 <show_short@plt>
lea    0xe15(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <show_long@plt>
lea    0xe06(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
call   1090 <show_double@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0xa,0x4(%rsp)
lea    0xe90(%rip),%rdi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1070 <show_int@plt>
lea    0xe7f(%rip),%rdi
call   1030 <printf@plt>
movss  0xe5d(%rip),%xmm0
call   1050 <show_float@plt>
lea    0xe6d(%rip),%rdi
call   1030 <printf@plt>
lea    0x4(%rsp),%rdi
call   1080 <show_pointer@plt>
lea    0xe60(%rip),%rdi
call   1030 <printf@plt>
mov    $0xa,%edi
call   1060 <show_short@plt>
lea    0xe51(%rip),%rdi
call   1030 <printf@plt>
mov    $0xffff,%edi
call   1040 <show_long@plt>
lea    0xe41(%rip),%rdi
call   1030 <printf@plt>
movsd  0xe0a(%rip),%xmm0
call   1090 <show_double@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"int:\00"
@.str.1 = [7 x i8] c"float:\00"
@.str.2 = [9 x i8] c"pointer:\00"
@.str.3 = [7 x i8] c"short:\00"
@.str.4 = [6 x i8] c"long:\00"
@.str.5 = [8 x i8] c"double:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i16
%6 = alloca i64
%7 = alloca double
store i32 10, i32* %1
store float 2.500000e+00, float* %2
store i32* %1, i32** %3
%8 = load i32*, i32** %3
%9 = load i32, i32* %8
store i32 %9, i32* %4
store i16 10, i16* %5
store i64 65535, i64* %6
store double 0x3F20624DE0000000, double* %7
%10 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = call i32 @show_int(i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%14 = load float, float* %2
%15 = call i32 @show_float(float %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32*, i32** %3
%18 = call i32 @show_pointer(i32* %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%20 = load i16, i16* %5
%21 = call i32 @show_short(i16 signext %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%23 = load i64, i64* %6
%24 = call i32 @show_long(i64 %23)
%25 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%26 = load double, double* %7
%27 = call i32 @show_double(double %26)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"int:\00"
@.str.1 = [7 x i8] c"float:\00"
@.str.2 = [9 x i8] c"pointer:\00"
@.str.3 = [7 x i8] c"short:\00"
@.str.4 = [6 x i8] c"long:\00"
@.str.5 = [8 x i8] c"double:\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 10, i32* %1
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @show_int(i32 10)
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @show_float(float 2.500000e+00)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @show_pointer(i32* %1)
%9 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 @show_short(i16 signext 10)
%11 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%12 = call i32 @show_long(i64 65535)
%13 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 @show_double(double 0x3F20624DE0000000)
ret i32 0
}