#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 varInit() {
  printf("variable initialization\n");
  char c = 35;
  int i = 23432343;
  long l = 892320938920;
  float f = 90892232e23;
  double d = 90929324909023.290932342;
  long double ld = 90992343e208;
  unsigned short us = 65000;
  unsigned char uc = 128;
  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):
<varInit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
lea    0xee9(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x35(%rbp)
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
movb   $0x23,-0x1(%rbp)
movl   $0x1658c97,-0x8(%rbp)
movabs $0xcfc278fba8,%rcx
mov    %rcx,-0x10(%rbp)
movl   $0x72e571ba,-0x14(%rbp)
movabs $0x42d4acc8871877d3,%rcx
ac d4 42
mov    %rcx,-0x20(%rbp)
fldl   0xea0(%rip)
fstpt  -0x30(%rbp)
movw   $0xfde8,-0x32(%rbp)
movb   $0x80,-0x33(%rbp)
movsbl -0x1(%rbp),%esi
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
movsbl -0x1(%rbp),%esi
lea    0xea1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
mov    -0x8(%rbp),%esi
lea    0xe9a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x35(%rbp),%al
mov    -0x10(%rbp),%rsi
lea    0xe92(%rip),%rdi
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe8a(%rip),%rdi
mov    $0x1,%al
mov    %al,-0x34(%rbp)
call   1030 <printf@plt>
mov    -0x34(%rbp),%al
movsd  -0x20(%rbp),%xmm0
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x30(%rbp)
mov    %rsp,%rax
fstpt  (%rax)
lea    0xe73(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<varInit>:
sub    $0x18,%rsp
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xee1(%rip),%rdi
mov    $0x23,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x23,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x1658c97,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec9(%rip),%rdi
movabs $0xcfc278fba8,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xebe(%rip),%rdi
movsd  0xe70(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb3(%rip),%rdi
movsd  0xe62(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
fldl   0xe5d(%rip)
fstpt  (%rsp)
lea    0xe9f(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [25 x i8] c"variable initialization\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 @varInit() {
%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 ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i8 35, i8* %1
store i32 23432343, i32* %2
store i64 892320938920, i64* %3
store float 0x465CAE3740000000, float* %4
store double 0x42D4ACC8871877D3, double* %5
store x86_fp80 0xK42CCA8EE31A7EE82B000, x86_fp80* %6
store i16 -536, i16* %7
store i8 -128, i8* %8
%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 = [24 x i8] c"variable initialization\00"
define void @varInit() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 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 35)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 35)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 23432343)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i64 892320938920)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), double 0x465CAE3740000000)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double 0x42D4ACC8871877D3)
%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 0xK42CCA8EE31A7EE82B000)
ret void
}