#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*/ myFloatPtr;
typedef int /*<<< orphan*/ myFloat;
typedef int /*<<< orphan*/ iPtr;
typedef int /*<<< orphan*/ dPtr;
typedef int /*<<< orphan*/ cPtr;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int main() {
  float myFloat = 3.14;
  double a = 2.7163;
  int b = 23;
  char c = 52;
  float *myFloatPtr = &myFloat;
  double *dPtr = &a;
  int *iPtr = &b;
  char *cPtr = &c;
  printf("myFloat: value = %f, address = %p, size = %lu bytes\n", myFloat,
         &myFloat, sizeof(myFloat));
  printf("myFloatPtr: value = %p, address = %p, size = %lu bytes\n", myFloatPtr,
         &myFloatPtr, sizeof(myFloatPtr));
  printf("a: value = %g, address = %p, size = %lu bytes\n", a, &a, sizeof(a));
  printf("aPtr: value = %p, address = %p, size = %lu bytes\n", dPtr, &dPtr,
         sizeof(dPtr));
  printf("b: value = %d, address = %p, size = %lu bytes\n", b, &b, sizeof(b));
  printf("bPtr: value = %p, address = %p, size = %lu bytes\n", iPtr, &iPtr,
         sizeof(iPtr));
  printf("c: value = %c, address = %p, size = %lu bytes\n", c, &c, sizeof(c));
  printf("cPtr: value = %p, address = %p, size = %lu bytes\n", cPtr, &cPtr,
         sizeof(cPtr));
  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   $0x17,-0x14(%rbp)
movb   $0x34,-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    0xece(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x8,%edx
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
lea    0xee2(%rip),%rdi
lea    -0x28(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
lea    0xefa(%rip),%rdi
lea    -0x14(%rbp),%rdx
mov    $0x4,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%rsi
lea    0xf0e(%rip),%rdi
lea    -0x30(%rbp),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x15(%rbp),%esi
lea    0xf25(%rip),%rdi
lea    -0x15(%rbp),%rdx
mov    $0x1,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%rsi
lea    0xf39(%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 $0x4005bafb7e90ff97,%rax
ba 05 40
mov    %rax,0x10(%rsp)
movl   $0x17,0x8(%rsp)
movb   $0x34,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    0xec8(%rip),%rdi
mov    $0x8,%edx
mov    %r12,%rsi
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
lea    0x28(%rsp),%rdx
mov    $0x8,%ecx
mov    %r12,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xef4(%rip),%rdi
mov    $0x4,%ecx
mov    %r15,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
lea    0x20(%rsp),%rdx
mov    $0x8,%ecx
mov    %r15,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
movsbl 0x7(%rsp),%esi
lea    0xf1f(%rip),%rdi
mov    $0x1,%ecx
mov    %r14,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf38(%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 = [56 x i8] c"myFloatPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.2 = [47 x i8] c"a: value = %g, address = %p, size = %lu bytes\0A\00"
@.str.3 = [50 x i8] c"aPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.4 = [47 x i8] c"b: value = %d, address = %p, size = %lu bytes\0A\00"
@.str.5 = [50 x i8] c"bPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.6 = [47 x i8] c"c: value = %c, address = %p, size = %lu bytes\0A\00"
@.str.7 = [50 x i8] c"cPtr: value = %p, address = %p, size = %lu bytes\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.716300e+00, double* %3
store i32 23, i32* %4
store i8 52, 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 ([56 x i8], [56 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 ([47 x i8], [47 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 ([50 x i8], [50 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 ([47 x i8], [47 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 ([50 x i8], [50 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 ([47 x i8], [47 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 ([50 x i8], [50 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 = [56 x i8] c"myFloatPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.2 = [47 x i8] c"a: value = %g, address = %p, size = %lu bytes\0A\00"
@.str.3 = [50 x i8] c"aPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.4 = [47 x i8] c"b: value = %d, address = %p, size = %lu bytes\0A\00"
@.str.5 = [50 x i8] c"bPtr: value = %p, address = %p, size = %lu bytes\0A\00"
@.str.6 = [47 x i8] c"c: value = %c, address = %p, size = %lu bytes\0A\00"
@.str.7 = [50 x i8] c"cPtr: value = %p, address = %p, size = %lu bytes\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.716300e+00, double* %2
%11 = bitcast i32* %3 to i8*
store i32 23, i32* %3
store i8 52, 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 ([56 x i8], [56 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 ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), double %18, double* %2, i64 8)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 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 ([47 x i8], [47 x i8]* @.str.4, i64 0, i64 0), i32 %21, i32* %3, i64 4)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 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 ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0), i32 %25, i8* %4, i64 1)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0), i8* %4, i8** %8, i64 8)
ret i32 0
}