#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);
int main() {
  int x = 57, y;
  double MULT, TIME;
  for (y = 0; y < 127; y++) {
    MULT = pow(2, (y - x) / 12.0);
    TIME = MULT * 440 * 1024 * 8192 / 16000000;
    printf("%.0f, ", TIME);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x39,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x7f,-0xc(%rbp)
jge    11c5 <main+0xa5>
mov    -0xc(%rbp),%eax
sub    -0x8(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  0xec7(%rip),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1040 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  0xea0(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  0xe8b(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe77(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe63(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
lea    0xe76(%rip),%rdi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113d <main+0x1d>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    $0xffffffc7,%ebp
lea    0xef9(%rip),%rbx
nop
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
divsd  0xec1(%rip),%xmm0
cvttsd2si %xmm0,%esi
mov    $0x2,%edi
call   1040 <pow@plt>
mulsd  0xeb3(%rip),%xmm0
mulsd  0xeb3(%rip),%xmm0
mulsd  0xeb3(%rip),%xmm0
divsd  0xeb3(%rip),%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
add    $0x1,%ebp
cmp    $0x46,%ebp
jne    1130 <main+0x10>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%.0f, \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
store i32 57, i32* %2
store i32 0, i32* %3
br label %6
6: ; preds = %24, %0
%7 = load i32, i32* %3
%8 = icmp slt i32 %7, 127
br i1 %8, label %9, label %27
9: ; preds = %6
%10 = load i32, i32* %3
%11 = load i32, i32* %2
%12 = sub nsw i32 %10, %11
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, 1.200000e+01
%15 = fptosi double %14 to i32
%16 = call double @pow(i32 2, i32 %15)
store double %16, double* %4
%17 = load double, double* %4
%18 = fmul double %17, 4.400000e+02
%19 = fmul double %18, 1.024000e+03
%20 = fmul double %19, 8.192000e+03
%21 = fdiv double %20, 1.600000e+07
store double %21, double* %5
%22 = load double, double* %5
%23 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %22)
br label %24
24: ; preds = %9
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %6
27: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%.0f, \00"
define i32 @main() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 0, %0 ], [ %13, %1 ]
%3 = add nsw i32 %2, -57
%4 = sitofp i32 %3 to double
%5 = fdiv double %4, 1.200000e+01
%6 = fptosi double %5 to i32
%7 = tail call double @pow(i32 2, i32 %6)
%8 = fmul double %7, 4.400000e+02
%9 = fmul double %8, 1.024000e+03
%10 = fmul double %9, 8.192000e+03
%11 = fdiv double %10, 1.600000e+07
%12 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double %11)
%13 = add nuw nsw i32 %2, 1
%14 = icmp eq i32 %13, 127
br i1 %14, label %15, label %1
15: ; preds = %1
ret i32 0
}