#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*/ myIntPtr;
typedef int /*<<< orphan*/ myInt;
typedef int /*<<< orphan*/ myFloatPtr;
typedef int /*<<< orphan*/ myFloat;
typedef int /*<<< orphan*/ myDoublePtr;
typedef int /*<<< orphan*/ myDouble;
typedef int /*<<< orphan*/ myCharPtr;
typedef int /*<<< orphan*/ myChar;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  float myFloat = 3.14;
  double myDouble = 2.71;
  int myInt = 9;
  char myChar = 'z';
  float *myFloatPtr = &myFloat;
  double *myDoublePtr = &myDouble;
  int *myIntPtr = &myInt;
  char *myCharPtr = &myChar;
  printf("myFloat: value = %f, address = %p, size = %lu bytes\n", myFloat,
         &myFloat, sizeof(myFloat));
  printf("myFloatPtr: value = %p, address = %p, size = %lu bytes\n\n",
         myFloatPtr, &myFloatPtr, sizeof(myFloatPtr));
  printf("myDouble: value = %f, address = %p, size = %lu bytes\n", myDouble,
         &myDouble, sizeof(myDouble));
  printf("myDoublePtr: value = %p, address = %p, size = %lu bytes\n\n",
         myDoublePtr, &myDoublePtr, sizeof(myDoublePtr));
  printf("myInt: value = %d, address = %p, size = %lu bytes\n", myInt, &myInt,
         sizeof(myInt));
  printf("myIntPtr: value = %p, address = %p, size = %lu bytes\n\n", myIntPtr,
         &myIntPtr, sizeof(myIntPtr));
  printf("myChar: value = %c, address = %p, size = %lu bytes\n", myChar,
         &myChar, sizeof(myChar));
  printf("myCharPtr: value = %p, address = %p, size = %lu bytes\n\n", myCharPtr,
         &myCharPtr, sizeof(myCharPtr));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xee1(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movsd  0xecc(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x9,-0x14(%rbp)
movb   $0x7a,-0x15(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x14(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x15(%rbp),%rax
mov    %rax,-0x38(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe98(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x4,%edx
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xeb2(%rip),%rdi
lea    -0x20(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
lea    0xecf(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x8,%edx
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xeea(%rip),%rdi
lea    -0x28(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xf0a(%rip),%rdi
lea    -0x14(%rbp),%rdx
mov    $0x4,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xf22(%rip),%rdi
lea    -0x30(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x15(%rbp),%esi
lea    0xf3e(%rip),%rdi
lea    -0x15(%rbp),%rdx
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xf57(%rip),%rdi
lea    -0x38(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x38,%rsp
movl   $0x4048f5c3,0xc(%rsp)
40
movabs $0x4005ae147ae147ae,%rax
ae 05 40
mov    %rax,0x10(%rsp)
movl   $0x9,0x8(%rsp)
movb   $0x7a,0x7(%rsp)
lea    0xc(%rsp),%rbx
mov    %rbx,0x30(%rsp)
lea    0x10(%rsp),%r12
mov    %r12,0x28(%rsp)
lea    0x8(%rsp),%r15
mov    %r15,0x20(%rsp)
lea    0x7(%rsp),%r14
mov    %r14,0x18(%rsp)
lea    0xe9a(%rip),%rdi
movsd  0xe8a(%rip),%xmm0
mov    $0x4,%edx
mov    %rbx,%rsi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
lea    0x30(%rsp),%rdx
mov    $0x8,%ecx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  0x10(%rsp),%xmm0
lea    0xec9(%rip),%rdi
mov    $0x8,%edx
mov    %r12,%rsi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
lea    0x28(%rsp),%rdx
mov    $0x8,%ecx
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xf04(%rip),%rdi
mov    $0x4,%ecx
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
lea    0x20(%rsp),%rdx
mov    $0x8,%ecx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x7(%rsp),%esi
lea    0xf38(%rip),%rdi
mov    $0x1,%ecx
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf56(%rip),%rdi
lea    0x18(%rsp),%rdx
mov    $0x8,%ecx
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [53 x i8] c"myFloat: value = %f, address = %p, size = %lu bytes\0A\00"
@.str.1 = [57 x i8] c"myFloatPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.2 = [54 x i8] c"myDouble: value = %f, address = %p, size = %lu bytes\0A\00"
@.str.3 = [58 x i8] c"myDoublePtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.4 = [51 x i8] c"myInt: value = %d, address = %p, size = %lu bytes\0A\00"
@.str.5 = [55 x i8] c"myIntPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.6 = [52 x i8] c"myChar: value = %c, address = %p, size = %lu bytes\0A\00"
@.str.7 = [56 x i8] c"myCharPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca double
%4 = alloca i32
%5 = alloca i8
%6 = alloca float*
%7 = alloca double*
%8 = alloca i32*
%9 = alloca i8*
store i32 0, i32* %1
store float 0x40091EB860000000, float* %2
store double 2.710000e+00, double* %3
store i32 9, i32* %4
store i8 122, i8* %5
store float* %2, float** %6
store double* %3, double** %7
store i32* %4, i32** %8
store i8* %5, i8** %9
%10 = load float, float* %2
%11 = fpext float %10 to double
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), double %11, float* %2, i64 4)
%13 = load float*, float** %6
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), float* %13, float** %6, i64 8)
%15 = load double, double* %3
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %15, double* %3, i64 8)
%17 = load double*, double** %7
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), double* %17, double** %7, i64 8)
%19 = load i32, i32* %4
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %19, i32* %4, i64 4)
%21 = load i32*, i32** %8
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32* %21, i32** %8, i64 8)
%23 = load i8, i8* %5
%24 = sext i8 %23 to i32
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0), i32 %24, i8* %5, i64 1)
%26 = load i8*, i8** %9
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0), i8* %26, i8** %9, i64 8)
ret i32 0
}

LLVM IR (-O2):
@.str = [53 x i8] c"myFloat: value = %f, address = %p, size = %lu bytes\0A\00"
@.str.1 = [57 x i8] c"myFloatPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.2 = [54 x i8] c"myDouble: value = %f, address = %p, size = %lu bytes\0A\00"
@.str.3 = [58 x i8] c"myDoublePtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.4 = [51 x i8] c"myInt: value = %d, address = %p, size = %lu bytes\0A\00"
@.str.5 = [55 x i8] c"myIntPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
@.str.6 = [52 x i8] c"myChar: value = %c, address = %p, size = %lu bytes\0A\00"
@.str.7 = [56 x i8] c"myCharPtr: value = %p, address = %p, size = %lu bytes\0A\0A\00"
define i32 @main() {
%1 = alloca float
%2 = alloca double
%3 = alloca i32
%4 = alloca i8
%5 = alloca float*
%6 = alloca double*
%7 = alloca i32*
%8 = alloca i8*
%9 = bitcast float* %1 to i8*
store float 0x40091EB860000000, float* %1
%10 = bitcast double* %2 to i8*
store double 2.710000e+00, double* %2
%11 = bitcast i32* %3 to i8*
store i32 9, i32* %3
store i8 122, i8* %4
%12 = bitcast float** %5 to i8*
store float* %1, float** %5
%13 = bitcast double** %6 to i8*
store double* %2, double** %6
%14 = bitcast i32** %7 to i8*
store i32* %3, i32** %7
%15 = bitcast i8** %8 to i8*
store i8* %4, i8** %8
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0), double 0x40091EB860000000, float* %1, i64 4)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0), float* %1, float** %5, i64 8)
%18 = load double, double* %2
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), double %18, double* %2, i64 8)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0), double* %2, double** %6, i64 8)
%21 = load i32, i32* %3
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0), i32 %21, i32* %3, i64 4)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0), i32* %3, i32** %7, i64 8)
%24 = load i8, i8* %4
%25 = sext i8 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0), i32 %25, i8* %4, i64 1)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.7, i64 0, i64 0), i8* %4, i8** %8, i64 8)
ret i32 0
}