#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, char);
main() {
  int n = 90, i = 0;
  float a[90];
  while (i < n)
    a[i++] = 2.0 * i;
  for (i = 0; i < n; ++i) {
    printf("%6f%c", a[i], (i % 10 == 9 || i == n - 1) ? '\n' : ' ');
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5a,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    116c <main+0x5c>
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xeb7(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0xc(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0xc(%rbp)
cltq
movss  %xmm0,-0x180(%rbp,%rax,4)
ff ff
jmp    1130 <main+0x20>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11ff <main+0xef>
movslq -0xc(%rbp),%rax
movss  -0x180(%rbp,%rax,4),%xmm0
ff ff
movss  %xmm0,-0x188(%rbp)
ff
mov    -0xc(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    $0x1,%al
cmp    $0x9,%edx
mov    %al,-0x181(%rbp)
je     11c4 <main+0xb4>
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
sete   %al
mov    %al,-0x181(%rbp)
movss  -0x188(%rbp),%xmm0
ff
mov    -0x181(%rbp),%dl
mov    $0x20,%eax
mov    $0xa,%ecx
test   $0x1,%dl
cmovne %ecx,%eax
lea    0xe1f(%rip),%rdi
movsbl %al,%esi
call   1030 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1173 <main+0x63>
mov    -0x4(%rbp),%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x168,%rsp
movaps 0xedc(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xee1(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xee9(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xeed(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xef1(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xef5(%rip),%xmm0
movaps %xmm0,0x60(%rsp)
movaps 0xef9(%rip),%xmm0
movaps %xmm0,0x70(%rsp)
movaps 0xefd(%rip),%xmm0
movaps %xmm0,0x80(%rsp)
movaps 0xefe(%rip),%xmm0
movaps %xmm0,0x90(%rsp)
movaps 0xeff(%rip),%xmm0
movaps %xmm0,0xa0(%rsp)
movaps 0xf00(%rip),%xmm0
movaps %xmm0,0xb0(%rsp)
movaps 0xf01(%rip),%xmm0
movaps %xmm0,0xc0(%rsp)
movaps 0xf02(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
movaps 0xf03(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xf04(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xf05(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xf06(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xf07(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xf08(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xf09(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xf0a(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movabs $0x4332000043300000,%rax
mov    %rax,0x160(%rsp)
mov    $0x9,%r15b
mov    $0xffffffffffffffa6,%rbx
xor    %ebp,%ebp
lea    0xeed(%rip),%r14
jmp    12a4 <main+0x194>
cs nopw 0x0(%rax,%rax,1)
nop
movss  0x168(%rsp,%rbx,4),%xmm0
inc    %rbx
cmove  %eax,%esi
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0xff,%r15b
add    $0x1,%bpl
test   %rbx,%rbx
je     12cd <main+0x1bd>
movzbl %bpl,%eax
imul   $0xcd,%eax,%eax
shr    $0xa,%eax
and    $0xfffffffe,%eax
lea    (%rax,%rax,4),%ecx
mov    $0xa,%eax
mov    $0xa,%esi
add    %r15b,%cl
je     1280 <main+0x170>
mov    $0x20,%esi
jmp    1280 <main+0x170>
xor    %eax,%eax
add    $0x168,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%6f%c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [90 x float]
store i32 0, i32* %1
store i32 90, i32* %2
store i32 0, i32* %3
br label %5
5: ; preds = %9, %0
%6 = load i32, i32* %3
%7 = load i32, i32* %2
%8 = icmp slt i32 %6, %7
br i1 %8, label %9, label %18
9: ; preds = %5
%10 = load i32, i32* %3
%11 = sitofp i32 %10 to double
%12 = fmul double 2.000000e+00, %11
%13 = fptrunc double %12 to float
%14 = load i32, i32* %3
%15 = add nsw i32 %14, 1
store i32 %15, i32* %3
%16 = sext i32 %14 to i64
%17 = getelementptr inbounds [90 x float], [90 x float]* %4, i64 0, i64 %16
store float %13, float* %17
br label %5
18: ; preds = %5
store i32 0, i32* %3
br label %19
19: ; preds = %42, %18
%20 = load i32, i32* %3
%21 = load i32, i32* %2
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %45
23: ; preds = %19
%24 = load i32, i32* %3
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [90 x float], [90 x float]* %4, i64 0, i64 %25
%27 = load float, float* %26
%28 = load i32, i32* %3
%29 = srem i32 %28, 10
%30 = icmp eq i32 %29, 9
br i1 %30, label %36, label %31
31: ; preds = %23
%32 = load i32, i32* %3
%33 = load i32, i32* %2
%34 = sub nsw i32 %33, 1
%35 = icmp eq i32 %32, %34
br label %36
36: ; preds = %31, %23
%37 = phi i1 [ true, %23 ], [ %35, %31 ]
%38 = zext i1 %37 to i64
%39 = select i1 %37, i32 10, i32 32
%40 = trunc i32 %39 to i8
%41 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %27, i8 signext %40)
br label %42
42: ; preds = %36
%43 = load i32, i32* %3
%44 = add nsw i32 %43, 1
store i32 %44, i32* %3
br label %19
45: ; preds = %19
%46 = load i32, i32* %1
ret i32 %46
}

LLVM IR (-O2):
@.str = [6 x i8] c"%6f%c\00"
define i32 @main() {
%1 = alloca [90 x float]
%2 = bitcast [90 x float]* %1 to i8*
%3 = bitcast [90 x float]* %1 to <4 x float>*
store <4 x float> <float 0.000000e+00, float 2.000000e+00, float 4.000000e+00, float 6.000000e+00>, <4 x float>* %3
%4 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 4
%5 = bitcast float* %4 to <4 x float>*
store <4 x float> <float 8.000000e+00, float 1.000000e+01, float 1.200000e+01, float 1.400000e+01>, <4 x float>* %5
%6 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 8
%7 = bitcast float* %6 to <4 x float>*
store <4 x float> <float 1.600000e+01, float 1.800000e+01, float 2.000000e+01, float 2.200000e+01>, <4 x float>* %7
%8 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 12
%9 = bitcast float* %8 to <4 x float>*
store <4 x float> <float 2.400000e+01, float 2.600000e+01, float 2.800000e+01, float 3.000000e+01>, <4 x float>* %9
%10 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 16
%11 = bitcast float* %10 to <4 x float>*
store <4 x float> <float 3.200000e+01, float 3.400000e+01, float 3.600000e+01, float 3.800000e+01>, <4 x float>* %11
%12 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 20
%13 = bitcast float* %12 to <4 x float>*
store <4 x float> <float 4.000000e+01, float 4.200000e+01, float 4.400000e+01, float 4.600000e+01>, <4 x float>* %13
%14 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 24
%15 = bitcast float* %14 to <4 x float>*
store <4 x float> <float 4.800000e+01, float 5.000000e+01, float 5.200000e+01, float 5.400000e+01>, <4 x float>* %15
%16 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 28
%17 = bitcast float* %16 to <4 x float>*
store <4 x float> <float 5.600000e+01, float 5.800000e+01, float 6.000000e+01, float 6.200000e+01>, <4 x float>* %17
%18 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 32
%19 = bitcast float* %18 to <4 x float>*
store <4 x float> <float 6.400000e+01, float 6.600000e+01, float 6.800000e+01, float 7.000000e+01>, <4 x float>* %19
%20 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 36
%21 = bitcast float* %20 to <4 x float>*
store <4 x float> <float 7.200000e+01, float 7.400000e+01, float 7.600000e+01, float 7.800000e+01>, <4 x float>* %21
%22 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 40
%23 = bitcast float* %22 to <4 x float>*
store <4 x float> <float 8.000000e+01, float 8.200000e+01, float 8.400000e+01, float 8.600000e+01>, <4 x float>* %23
%24 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 44
%25 = bitcast float* %24 to <4 x float>*
store <4 x float> <float 8.800000e+01, float 9.000000e+01, float 9.200000e+01, float 9.400000e+01>, <4 x float>* %25
%26 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 48
%27 = bitcast float* %26 to <4 x float>*
store <4 x float> <float 9.600000e+01, float 9.800000e+01, float 1.000000e+02, float 1.020000e+02>, <4 x float>* %27
%28 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 52
%29 = bitcast float* %28 to <4 x float>*
store <4 x float> <float 1.040000e+02, float 1.060000e+02, float 1.080000e+02, float 1.100000e+02>, <4 x float>* %29
%30 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 56
%31 = bitcast float* %30 to <4 x float>*
store <4 x float> <float 1.120000e+02, float 1.140000e+02, float 1.160000e+02, float 1.180000e+02>, <4 x float>* %31
%32 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 60
%33 = bitcast float* %32 to <4 x float>*
store <4 x float> <float 1.200000e+02, float 1.220000e+02, float 1.240000e+02, float 1.260000e+02>, <4 x float>* %33
%34 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 64
%35 = bitcast float* %34 to <4 x float>*
store <4 x float> <float 1.280000e+02, float 1.300000e+02, float 1.320000e+02, float 1.340000e+02>, <4 x float>* %35
%36 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 68
%37 = bitcast float* %36 to <4 x float>*
store <4 x float> <float 1.360000e+02, float 1.380000e+02, float 1.400000e+02, float 1.420000e+02>, <4 x float>* %37
%38 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 72
%39 = bitcast float* %38 to <4 x float>*
store <4 x float> <float 1.440000e+02, float 1.460000e+02, float 1.480000e+02, float 1.500000e+02>, <4 x float>* %39
%40 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 76
%41 = bitcast float* %40 to <4 x float>*
store <4 x float> <float 1.520000e+02, float 1.540000e+02, float 1.560000e+02, float 1.580000e+02>, <4 x float>* %41
%42 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 80
%43 = bitcast float* %42 to <4 x float>*
store <4 x float> <float 1.600000e+02, float 1.620000e+02, float 1.640000e+02, float 1.660000e+02>, <4 x float>* %43
%44 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 84
%45 = bitcast float* %44 to <4 x float>*
store <4 x float> <float 1.680000e+02, float 1.700000e+02, float 1.720000e+02, float 1.740000e+02>, <4 x float>* %45
%46 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 88
store float 1.760000e+02, float* %46
%47 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 89
store float 1.780000e+02, float* %47
br label %48
48: ; preds = %0, %48
%49 = phi i64 [ %59, %48 ], [ 0, %0 ]
%50 = getelementptr inbounds [90 x float], [90 x float]* %1, i64 0, i64 %49
%51 = load float, float* %50
%52 = trunc i64 %49 to i8
%53 = urem i8 %52, 10
%54 = icmp eq i8 %53, 9
%55 = icmp eq i64 %49, 89
%56 = or i1 %55, %54
%57 = select i1 %56, i8 10, i8 32
%58 = tail call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float %51, i8 signext %57)
%59 = add nuw nsw i64 %49, 1
%60 = icmp eq i64 %59, 90
br i1 %60, label %61, label %48
61: ; preds = %48
ret i32 0
}