#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 *, double);
int main(void) {
  int a;
  long b;
  long long c;
  char d;
  float e;
  double f;
  a = 3;
  b = 450;
  c = 12345678912345;
  d = 'a';
  e = 234.56;
  f = 12345.67897;
  printf("%d\n", a);
  printf("%ld\n", b);
  printf("%lld\n", c);
  printf("%c\n", d);
  printf("%f\n", e);
  printf("%lf\n", f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
movq   $0x1c2,-0x10(%rbp)
movabs $0xb3a73ce5b59,%rax
mov    %rax,-0x18(%rbp)
movb   $0x61,-0x19(%rbp)
movl   $0x436a8f5c,-0x20(%rbp)
movabs $0x40c81cd6e87d2c7c,%rax
1c c8 40
mov    %rax,-0x28(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm0
lea    0xe9f(%rip),%rdi
call   1030 <printf@plt>
cvtsi2sdq -0x10(%rbp),%xmm0
lea    0xe91(%rip),%rdi
call   1030 <printf@plt>
cvtsi2sdq -0x18(%rbp),%xmm0
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x19(%rbp),%eax
cvtsi2sd %eax,%xmm0
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe65(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x28(%rbp),%xmm0
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf18(%rip),%rdi
movsd  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf08(%rip),%rdi
movsd  0xed4(%rip),%xmm0
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
movsd  0xec8(%rip),%xmm0
call   1030 <printf@plt>
lea    0xeeb(%rip),%rdi
movsd  0xebc(%rip),%xmm0
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
movsd  0xeb0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xecb(%rip),%rdi
movsd  0xea4(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
@.str.2 = [6 x i8] c"%lld\0A\00"
@.str.3 = [4 x i8] c"%c\0A\00"
@.str.4 = [4 x i8] c"%f\0A\00"
@.str.5 = [5 x i8] c"%lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i64
%4 = alloca i64
%5 = alloca i8
%6 = alloca float
%7 = alloca double
store i32 0, i32* %1
store i32 3, i32* %2
store i64 450, i64* %3
store i64 12345678912345, i64* %4
store i8 97, i8* %5
store float 0x406D51EB80000000, float* %6
store double 0x40C81CD6E87D2C7C, double* %7
%8 = load i32, i32* %2
%9 = sitofp i32 %8 to double
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %9)
%11 = load i64, i64* %3
%12 = sitofp i64 %11 to double
%13 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double %12)
%14 = load i64, i64* %4
%15 = sitofp i64 %14 to double
%16 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double %15)
%17 = load i8, i8* %5
%18 = sitofp i8 %17 to double
%19 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %18)
%20 = load float, float* %6
%21 = fpext float %20 to double
%22 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double %21)
%23 = load double, double* %7
%24 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
@.str.2 = [6 x i8] c"%lld\0A\00"
@.str.3 = [4 x i8] c"%c\0A\00"
@.str.4 = [4 x i8] c"%f\0A\00"
@.str.5 = [5 x i8] c"%lf\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double 3.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), double 4.500000e+02)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), double 0x42A674E79CB6B200)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double 9.700000e+01)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double 0x406D51EB80000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), double 0x40C81CD6E87D2C7C)
ret i32 0
}