#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 *, ...);
int /*<<< orphan*/ scanf(char *, float *, float *, float *);
int main() {
  float sayi1, sayi2, sayi3;
  printf("Uc tane sayi giriniz...\n");
  scanf("%f%f%f", &sayi1, &sayi2, &sayi3);
  printf("Sayilar\t\tKareleri\tKupleri\n");
  printf("%.2f\t\t%f\t%f\n", sayi1, sayi1 * sayi1, sayi1 * sayi1 * sayi1);
  printf("%.2f\t\t%f\t%f\n", sayi2, sayi2 * sayi2, sayi2 * sayi2 * sayi2);
  printf("%.2f\t\t%f\t%f\n", sayi3, sayi3 * sayi3, sayi3 * sayi3 * sayi3);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
lea    -0x10(%rbp),%rcx
call   1040 <scanf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
mulss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x8(%rbp),%xmm2
mulss  -0x8(%rbp),%xmm2
mulss  -0x8(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xea7(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
mulss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0xc(%rbp),%xmm2
mulss  -0xc(%rbp),%xmm2
mulss  -0xc(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe6f(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x10(%rbp),%xmm1
mulss  -0x10(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x10(%rbp),%xmm2
mulss  -0x10(%rbp),%xmm2
mulss  -0x10(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
lea    0xe37(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb8(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
lea    0x4(%rsp),%rcx
call   1050 <scanf@plt>
lea    0xec9(%rip),%rdi
call   1030 <puts@plt>
movss  0xc(%rsp),%xmm2
cvtss2sd %xmm2,%xmm0
movaps %xmm2,%xmm3
mulss  %xmm2,%xmm3
cvtss2sd %xmm3,%xmm1
mulss  %xmm2,%xmm3
xorps  %xmm2,%xmm2
cvtss2sd %xmm3,%xmm2
lea    0xe78(%rip),%rbx
mov    %rbx,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movaps %xmm2,%xmm3
mulss  %xmm2,%xmm3
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
mulss  %xmm2,%xmm3
xorps  %xmm2,%xmm2
cvtss2sd %xmm3,%xmm2
mov    %rbx,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
movaps %xmm2,%xmm3
mulss  %xmm2,%xmm3
xorps  %xmm1,%xmm1
cvtss2sd %xmm3,%xmm1
mulss  %xmm2,%xmm3
xorps  %xmm2,%xmm2
cvtss2sd %xmm3,%xmm2
mov    %rbx,%rdi
mov    $0x3,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"Uc tane sayi giriniz...\0A\00"
@.str.1 = [7 x i8] c"%f%f%f\00"
@.str.2 = [27 x i8] c"Sayilar\09\09Kareleri\09Kupleri\0A\00"
@.str.3 = [13 x i8] c"%.2f\09\09%f\09%f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
store i32 0, i32* %1
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float* %2, float* %3, float* %4)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%8 = load float, float* %2
%9 = fpext float %8 to double
%10 = load float, float* %2
%11 = load float, float* %2
%12 = fmul float %10, %11
%13 = fpext float %12 to double
%14 = load float, float* %2
%15 = load float, float* %2
%16 = fmul float %14, %15
%17 = load float, float* %2
%18 = fmul float %16, %17
%19 = fpext float %18 to double
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %9, double %13, double %19)
%21 = load float, float* %3
%22 = fpext float %21 to double
%23 = load float, float* %3
%24 = load float, float* %3
%25 = fmul float %23, %24
%26 = fpext float %25 to double
%27 = load float, float* %3
%28 = load float, float* %3
%29 = fmul float %27, %28
%30 = load float, float* %3
%31 = fmul float %29, %30
%32 = fpext float %31 to double
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %22, double %26, double %32)
%34 = load float, float* %4
%35 = fpext float %34 to double
%36 = load float, float* %4
%37 = load float, float* %4
%38 = fmul float %36, %37
%39 = fpext float %38 to double
%40 = load float, float* %4
%41 = load float, float* %4
%42 = fmul float %40, %41
%43 = load float, float* %4
%44 = fmul float %42, %43
%45 = fpext float %44 to double
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %35, double %39, double %45)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"%f%f%f\00"
@.str.3 = [13 x i8] c"%.2f\09\09%f\09%f\0A\00"
@str = [24 x i8] c"Uc tane sayi giriniz...\00"
@str.4 = [26 x i8] c"Sayilar\09\09Kareleri\09Kupleri\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = bitcast float* %1 to i8*
%5 = bitcast float* %2 to i8*
%6 = bitcast float* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), float* %1, float* %2, float* %3)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.4, i64 0, i64 0))
%10 = load float, float* %1
%11 = fpext float %10 to double
%12 = fmul float %10, %10
%13 = fpext float %12 to double
%14 = fmul float %10, %12
%15 = fpext float %14 to double
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %11, double %13, double %15)
%17 = load float, float* %2
%18 = fpext float %17 to double
%19 = fmul float %17, %17
%20 = fpext float %19 to double
%21 = fmul float %17, %19
%22 = fpext float %21 to double
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %18, double %20, double %22)
%24 = load float, float* %3
%25 = fpext float %24 to double
%26 = fmul float %24, %24
%27 = fpext float %26 to double
%28 = fmul float %24, %26
%29 = fpext float %28 to double
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %25, double %27, double %29)
ret i32 0
}