#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*/ b;
typedef int /*<<< orphan*/ a;
typedef int /*<<< orphan*/ B;
typedef int /*<<< orphan*/ A;

/* Variables and functions */
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *, int);
void main() {
  int A = 100;
  int *a = &A;
  double B = 2.3;
  double *b = &B;
  printf("sizeof ( A ) = %d;\n", sizeof(A));
  printf("sizeof ( a ) = %d;\n", sizeof(a));
  printf("sizeof ( B ) = %d;\n", sizeof(B));
  printf("sizeof ( b ) = %d;\n", sizeof(b));
  getchar();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x64,-0x4(%rbp)
lea    -0x4(%rbp),%rax
mov    %rax,-0x10(%rbp)
movsd  0xec1(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    0xeb5(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xebe(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
mov    $0x4,%esi
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
mov    $0x8,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <getchar@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"sizeof ( A ) = %d;\0A\00"
@.str.1 = [20 x i8] c"sizeof ( a ) = %d;\0A\00"
@.str.2 = [20 x i8] c"sizeof ( B ) = %d;\0A\00"
@.str.3 = [20 x i8] c"sizeof ( b ) = %d;\0A\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca double
%4 = alloca double*
store i32 100, i32* %1
store i32* %1, i32** %2
store double 2.300000e+00, double* %3
store double* %3, double** %4
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 4)
%6 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 8)
%7 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 8)
%8 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 8)
%9 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@.str = [20 x i8] c"sizeof ( A ) = %d;\0A\00"
@.str.1 = [20 x i8] c"sizeof ( a ) = %d;\0A\00"
@.str.2 = [20 x i8] c"sizeof ( B ) = %d;\0A\00"
@.str.3 = [20 x i8] c"sizeof ( b ) = %d;\0A\00"
define void @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i32 4)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 8)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 8)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 8)
%5 = tail call i32 (...) @getchar()
ret void
}