#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 *, float);
int main() {
  int tam = 7;
  unsigned int uTam = 55000;
  short kisaTam = 30000;
  unsigned short uKisaTam = 60000;
  long uzunTam = 398162092;
  unsigned long uUzunTam = 4047483649;
  char karakter = 125;
  unsigned char uKarakter = 252;
  double realDouble = 97223.787844;
  float realFloat = 223.52;
  printf("tamsayi: %d\n", tam);
  printf("unsigned tamsayi: %u\n", uTam);
  printf("kisa tamsayi: %d\n", kisaTam);
  printf("unsigned kisa tamsayi: %u\n", uKisaTam);
  printf("uzun tamsayi: %ld\n", uzunTam);
  printf("unsigned uzun tamsayi: %lu\n", uUzunTam);
  printf("karakter: %d\n", karakter);
  printf("unsigned karakter: %d\n", uKarakter);
  printf("Debug double: %f\n", realDouble);
  printf("float: %f\n", realFloat);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x7,-0x8(%rbp)
movl   $0xd6d8,-0xc(%rbp)
movw   $0x7530,-0xe(%rbp)
movw   $0xea60,-0x10(%rbp)
movq   $0x17bb78ac,-0x18(%rbp)
17
mov    $0xf13fb301,%eax
mov    %rax,-0x20(%rbp)
movb   $0x7d,-0x21(%rbp)
movb   $0xfc,-0x22(%rbp)
movabs $0x40f7bc7c9b024f66,%rax
bc f7 40
mov    %rax,-0x30(%rbp)
movl   $0x435f851f,-0x34(%rbp)
cvtsi2ssl -0x8(%rbp),%xmm0
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
cvtsi2ss %rax,%xmm0
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
movswl -0xe(%rbp),%eax
cvtsi2ss %eax,%xmm0
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
movzwl -0x10(%rbp),%eax
cvtsi2ss %eax,%xmm0
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
cvtsi2ssq -0x18(%rbp),%xmm0
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rdx
shr    %rdx
mov    %eax,%ecx
and    $0x1,%ecx
or     %rdx,%rcx
cvtsi2ss %rcx,%xmm0
addss  %xmm0,%xmm0
cvtsi2ss %rax,%xmm1
movss  %xmm1,-0x3c(%rbp)
test   %rax,%rax
movss  %xmm0,-0x38(%rbp)
js     1203 <main+0xf3>
movss  -0x3c(%rbp),%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x38(%rbp),%xmm0
lea    0xe47(%rip),%rdi
call   1030 <printf@plt>
movsbl -0x21(%rbp),%eax
cvtsi2ss %eax,%xmm0
lea    0xe58(%rip),%rdi
call   1030 <printf@plt>
movzbl -0x22(%rbp),%eax
cvtsi2ss %eax,%xmm0
lea    0xe3b(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x30(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
lea    0xe3d(%rip),%rdi
call   1030 <printf@plt>
movss  -0x34(%rbp),%xmm0
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xf2b(%rip),%rdi
movss  0xee0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
movss  0xed0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xefe(%rip),%rdi
movss  0xec0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
movss  0xeb0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf03(%rip),%rdi
movss  0xea0(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
movss  0xe90(%rip),%xmm0
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
movss  0xe80(%rip),%xmm0
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
movss  0xe70(%rip),%xmm0
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
movss  0xe60(%rip),%xmm0
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
movss  0xe50(%rip),%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [13 x i8] c"tamsayi: %d\0A\00"
@.str.1 = [22 x i8] c"unsigned tamsayi: %u\0A\00"
@.str.2 = [18 x i8] c"kisa tamsayi: %d\0A\00"
@.str.3 = [27 x i8] c"unsigned kisa tamsayi: %u\0A\00"
@.str.4 = [19 x i8] c"uzun tamsayi: %ld\0A\00"
@.str.5 = [28 x i8] c"unsigned uzun tamsayi: %lu\0A\00"
@.str.6 = [14 x i8] c"karakter: %d\0A\00"
@.str.7 = [23 x i8] c"unsigned karakter: %d\0A\00"
@.str.8 = [18 x i8] c"Debug double: %f\0A\00"
@.str.9 = [11 x i8] c"float: %f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i16
%5 = alloca i16
%6 = alloca i64
%7 = alloca i64
%8 = alloca i8
%9 = alloca i8
%10 = alloca double
%11 = alloca float
store i32 0, i32* %1
store i32 7, i32* %2
store i32 55000, i32* %3
store i16 30000, i16* %4
store i16 -5536, i16* %5
store i64 398162092, i64* %6
store i64 4047483649, i64* %7
store i8 125, i8* %8
store i8 -4, i8* %9
store double 0x40F7BC7C9B024F66, double* %10
store float 0x406BF0A3E0000000, float* %11
%12 = load i32, i32* %2
%13 = sitofp i32 %12 to float
%14 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float %13)
%15 = load i32, i32* %3
%16 = uitofp i32 %15 to float
%17 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float %16)
%18 = load i16, i16* %4
%19 = sitofp i16 %18 to float
%20 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), float %19)
%21 = load i16, i16* %5
%22 = uitofp i16 %21 to float
%23 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float %22)
%24 = load i64, i64* %6
%25 = sitofp i64 %24 to float
%26 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float %25)
%27 = load i64, i64* %7
%28 = uitofp i64 %27 to float
%29 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), float %28)
%30 = load i8, i8* %8
%31 = sitofp i8 %30 to float
%32 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), float %31)
%33 = load i8, i8* %9
%34 = uitofp i8 %33 to float
%35 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), float %34)
%36 = load double, double* %10
%37 = fptrunc double %36 to float
%38 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), float %37)
%39 = load float, float* %11
%40 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), float %39)
ret i32 0
}

LLVM IR (-O2):
@.str = [13 x i8] c"tamsayi: %d\0A\00"
@.str.1 = [22 x i8] c"unsigned tamsayi: %u\0A\00"
@.str.2 = [18 x i8] c"kisa tamsayi: %d\0A\00"
@.str.3 = [27 x i8] c"unsigned kisa tamsayi: %u\0A\00"
@.str.4 = [19 x i8] c"uzun tamsayi: %ld\0A\00"
@.str.5 = [28 x i8] c"unsigned uzun tamsayi: %lu\0A\00"
@.str.6 = [14 x i8] c"karakter: %d\0A\00"
@.str.7 = [23 x i8] c"unsigned karakter: %d\0A\00"
@.str.8 = [18 x i8] c"Debug double: %f\0A\00"
@.str.9 = [11 x i8] c"float: %f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), float 7.000000e+00)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), float 5.500000e+04)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), float 3.000000e+04)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), float 6.000000e+04)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), float 0x41B7BB78A0000000)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0), float 0x41EE27F660000000)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), float 1.250000e+02)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), float 2.520000e+02)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), float 0x40F7BC7CA0000000)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), float 0x406BF0A3E0000000)
ret i32 0
}