#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 */
double pow(int, int);
int /*<<< orphan*/ printf(char *, double);
double sqrt(int);
int main(int argc, char **argv) {
  int x;
  double y;
  for (x = 1; x <= 25; x++) {
    y = x;
    printf("%i	", x);
    y = sqrt(x);
    printf("%f	", y);
    y = pow(x, (1 / 3.0));
    printf("%f	\n", y);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
cmpl   $0x19,-0x14(%rbp)
jg     11be <main+0x8e>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
lea    0xe93(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
call   1050 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xe79(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%edi
xor    %esi,%esi
call   1040 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <main+0x1d>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    $0x1,%ebx
movsd  0xebb(%rip),%xmm0
lea    0xebc(%rip),%r14
lea    0xeb9(%rip),%r15
lea    0xeb6(%rip),%r12
nopw   0x0(%rax,%rax,1)
movsd  %xmm0,(%rsp)
mov    %r14,%rdi
movsd  (%rsp),%xmm0
call   1030 <printf@plt>
mov    %ebx,%edi
call   1050 <sqrt@plt>
mov    %r15,%rdi
call   1030 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1040 <pow@plt>
mov    %r12,%rdi
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
addsd  0xe61(%rip),%xmm0
add    $0x1,%ebx
cmp    $0x1a,%ebx
jne    1160 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%i\09\00"
@.str.1 = [4 x i8] c"%f\09\00"
@.str.2 = [5 x i8] c"%f\09\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1, i32* %6
br label %8
8: ; preds = %25, %2
%9 = load i32, i32* %6
%10 = icmp sle i32 %9, 25
br i1 %10, label %11, label %28
11: ; preds = %8
%12 = load i32, i32* %6
%13 = sitofp i32 %12 to double
store double %13, double* %7
%14 = load i32, i32* %6
%15 = sitofp i32 %14 to double
%16 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %15)
%17 = load i32, i32* %6
%18 = call double @sqrt(i32 %17)
store double %18, double* %7
%19 = load double, double* %7
%20 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %19)
%21 = load i32, i32* %6
%22 = call double @pow(i32 %21, i32 0)
store double %22, double* %7
%23 = load double, double* %7
%24 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %23)
br label %25
25: ; preds = %11
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %8
28: ; preds = %8
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
@.str = [4 x i8] c"%i\09\00"
@.str.1 = [4 x i8] c"%f\09\00"
@.str.2 = [5 x i8] c"%f\09\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %3
%4 = phi i32 [ 1, %2 ], [ %11, %3 ]
%5 = sitofp i32 %4 to double
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), double %5)
%7 = tail call double @sqrt(i32 %4)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double %7)
%9 = tail call double @pow(i32 %4, i32 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %9)
%11 = add nuw nsw i32 %4, 1
%12 = icmp eq i32 %11, 26
br i1 %12, label %13, label %3
13: ; preds = %3
ret i32 0
}