#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 *, ...);
void varDeclar() {
  printf("variable declaration\n");
  char c;
  int i;
  long l;
  float f;
  double d;
  long double ld;
  unsigned short us;
  unsigned char uc;
  printf("1.\tc - %c\n", c);
  printf("2.\tc - %i\n", c);
  printf("3.\ti - %d\n", i);
  printf("4.\tl- 0x%lX\n", l);
  printf("5.\tf - %F\n", f);
  printf("6.\td - %E\n", d);
  printf("7.\tld - %LG\n", ld);
}


x86 assembly (clang, -O0):
<varDeclar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xee1(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x35(%rbp)
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
movsbl -0x1(%rbp),%esi
lea    0xedf(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
movsbl -0x1(%rbp),%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
mov    -0x8(%rbp),%esi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
mov    -0x10(%rbp),%rsi
lea    0xec8(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xec0(%rip),%rdi
mov    $0x1,%al
mov    %al,-0x34(%rbp)
call   1030 <printf@plt>
mov    -0x34(%rbp),%al
movsd  -0x20(%rbp),%xmm0
lea    0xeb2(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xea9(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<varDeclar>:
sub    $0x18,%rsp
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebb(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb8(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"variable declaration\0A\00"
@.str.1 = [11 x i8] c"1.\09c - %c\0A\00"
@.str.2 = [11 x i8] c"2.\09c - %i\0A\00"
@.str.3 = [11 x i8] c"3.\09i - %d\0A\00"
@.str.4 = [13 x i8] c"4.\09l- 0x%lX\0A\00"
@.str.5 = [11 x i8] c"5.\09f - %F\0A\00"
@.str.6 = [11 x i8] c"6.\09d - %E\0A\00"
@.str.7 = [13 x i8] c"7.\09ld - %LG\0A\00"
define void @varDeclar() {
%1 = alloca i8
%2 = alloca i32
%3 = alloca i64
%4 = alloca float
%5 = alloca double
%6 = alloca x86_fp80
%7 = alloca i16
%8 = alloca i8
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%10 = load i8, i8* %1
%11 = sext i8 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i8, i8* %1
%14 = sext i8 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %2
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %16)
%18 = load i64, i64* %3
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i64 %18)
%20 = load float, float* %4
%21 = fpext float %20 to double
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double %21)
%23 = load double, double* %5
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %23)
%25 = load x86_fp80, x86_fp80* %6
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), x86_fp80 %25)
ret void
}

LLVM IR (-O2):
@.str.1 = [11 x i8] c"1.\09c - %c\0A\00"
@.str.2 = [11 x i8] c"2.\09c - %i\0A\00"
@.str.3 = [11 x i8] c"3.\09i - %d\0A\00"
@.str.4 = [13 x i8] c"4.\09l- 0x%lX\0A\00"
@.str.5 = [11 x i8] c"5.\09f - %F\0A\00"
@.str.6 = [11 x i8] c"6.\09d - %E\0A\00"
@.str.7 = [13 x i8] c"7.\09ld - %LG\0A\00"
@str = [21 x i8] c"variable declaration\00"
define void @varDeclar() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 undef)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i64 undef)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double undef)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double undef)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), x86_fp80 undef)
ret void
}