#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*/ imprimeVetor(float *);
void inicializaArray(float data[]) {
  unsigned long i;
  for (i = 0; i < 16 * 2; i += 8) {
    data[i] = 0.;
    data[i + 1] = 0.;
    data[i + 2] = 1.;
    data[i + 3] = 0.;
    data[i + 4] = 2.;
    data[i + 5] = 0.;
    data[i + 6] = 3.;
    data[i + 7] = 0.;
  }
  imprimeVetor(data);
}


x86 assembly (clang, -O0):
<inicializaArray>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
cmpq   $0x20,-0x10(%rbp)
jae    11d6 <inicializaArray+0xc6>
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,0x4(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movss  0xea8(%rip),%xmm0
movss  %xmm0,0x8(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,0xc(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movss  0xe7d(%rip),%xmm0
movss  %xmm0,0x10(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,0x14(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
movss  0xe52(%rip),%xmm0
movss  %xmm0,0x18(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
mov    -0x10(%rbp),%rcx
xorps  %xmm0,%xmm0
movss  %xmm0,0x1c(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x10(%rbp)
jmp    1124 <inicializaArray+0x14>
mov    -0x8(%rbp),%rdi
call   1030 <imprimeVetor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<inicializaArray>:
movaps 0xee9(%rip),%xmm0
movups %xmm0,(%rdi)
movaps 0xeef(%rip),%xmm1
movups %xmm1,0x10(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm1,0x30(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm1,0x50(%rdi)
movups %xmm0,0x60(%rdi)
movups %xmm1,0x70(%rdi)
jmp    1030 <imprimeVetor@plt>

LLVM IR (-O0):
define void @inicializaArray(float* %0) {
%2 = alloca float*
%3 = alloca i64
store float* %0, float** %2
store i64 0, i64* %3
br label %4
4: ; preds = %39, %1
%5 = load i64, i64* %3
%6 = icmp ult i64 %5, 32
br i1 %6, label %7, label %42
7: ; preds = %4
%8 = load float*, float** %2
%9 = load i64, i64* %3
%10 = getelementptr inbounds float, float* %8, i64 %9
store float 0.000000e+00, float* %10
%11 = load float*, float** %2
%12 = load i64, i64* %3
%13 = add i64 %12, 1
%14 = getelementptr inbounds float, float* %11, i64 %13
store float 0.000000e+00, float* %14
%15 = load float*, float** %2
%16 = load i64, i64* %3
%17 = add i64 %16, 2
%18 = getelementptr inbounds float, float* %15, i64 %17
store float 1.000000e+00, float* %18
%19 = load float*, float** %2
%20 = load i64, i64* %3
%21 = add i64 %20, 3
%22 = getelementptr inbounds float, float* %19, i64 %21
store float 0.000000e+00, float* %22
%23 = load float*, float** %2
%24 = load i64, i64* %3
%25 = add i64 %24, 4
%26 = getelementptr inbounds float, float* %23, i64 %25
store float 2.000000e+00, float* %26
%27 = load float*, float** %2
%28 = load i64, i64* %3
%29 = add i64 %28, 5
%30 = getelementptr inbounds float, float* %27, i64 %29
store float 0.000000e+00, float* %30
%31 = load float*, float** %2
%32 = load i64, i64* %3
%33 = add i64 %32, 6
%34 = getelementptr inbounds float, float* %31, i64 %33
store float 3.000000e+00, float* %34
%35 = load float*, float** %2
%36 = load i64, i64* %3
%37 = add i64 %36, 7
%38 = getelementptr inbounds float, float* %35, i64 %37
store float 0.000000e+00, float* %38
br label %39
39: ; preds = %7
%40 = load i64, i64* %3
%41 = add i64 %40, 8
store i64 %41, i64* %3
br label %4
42: ; preds = %4
%43 = load float*, float** %2
%44 = call i32 @imprimeVetor(float* %43)
ret void
}

LLVM IR (-O2):
define void @inicializaArray(float* %0) {
%2 = bitcast float* %0 to <4 x float>*
store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00>, <4 x float>* %2
%3 = getelementptr inbounds float, float* %0, i64 4
%4 = bitcast float* %3 to <4 x float>*
store <4 x float> <float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00>, <4 x float>* %4
%5 = getelementptr inbounds float, float* %0, i64 8
%6 = bitcast float* %5 to <4 x float>*
store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00>, <4 x float>* %6
%7 = getelementptr inbounds float, float* %0, i64 12
%8 = bitcast float* %7 to <4 x float>*
store <4 x float> <float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00>, <4 x float>* %8
%9 = getelementptr inbounds float, float* %0, i64 16
%10 = bitcast float* %9 to <4 x float>*
store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00>, <4 x float>* %10
%11 = getelementptr inbounds float, float* %0, i64 20
%12 = bitcast float* %11 to <4 x float>*
store <4 x float> <float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00>, <4 x float>* %12
%13 = getelementptr inbounds float, float* %0, i64 24
%14 = bitcast float* %13 to <4 x float>*
store <4 x float> <float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00>, <4 x float>* %14
%15 = getelementptr inbounds float, float* %0, i64 28
%16 = bitcast float* %15 to <4 x float>*
store <4 x float> <float 2.000000e+00, float 0.000000e+00, float 3.000000e+00, float 0.000000e+00>, <4 x float>* %16
%17 = tail call i32 @imprimeVetor(float* %0)
ret void
}