#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*/ cleandata(double *);
int /*<<< orphan*/ print_array_5(double *);
int main() {
  double data[5] = {0.89, 0.78, 0.0009, 0.67, 0.56};
  print_array_5(data);
  cleandata(data);
  print_array_5(data);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1030 <memset@plt>
movsd  0xec9(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeb4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe9f(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe8a(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe75(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <print_array_5@plt>
lea    -0x30(%rbp),%rdi
call   1050 <cleandata@plt>
lea    -0x30(%rbp),%rdi
call   1040 <print_array_5@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movaps 0xed4(%rip),%xmm0
movaps %xmm0,(%rsp)
movaps 0xed9(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movabs $0x3fe1eb851eb851ec,%rax
eb e1 3f
mov    %rax,0x20(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1030 <print_array_5@plt>
mov    %rbx,%rdi
call   1040 <cleandata@plt>
mov    %rbx,%rdi
call   1030 <print_array_5@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x double]
store i32 0, i32* %1
%3 = bitcast [5 x double]* %2 to i8*
%4 = bitcast i8* %3 to [5 x double]*
%5 = getelementptr inbounds [5 x double], [5 x double]* %4, i32 0, i32 0
store double 8.900000e-01, double* %5
%6 = getelementptr inbounds [5 x double], [5 x double]* %4, i32 0, i32 1
store double 7.800000e-01, double* %6
%7 = getelementptr inbounds [5 x double], [5 x double]* %4, i32 0, i32 2
store double 9.000000e-04, double* %7
%8 = getelementptr inbounds [5 x double], [5 x double]* %4, i32 0, i32 3
store double 6.700000e-01, double* %8
%9 = getelementptr inbounds [5 x double], [5 x double]* %4, i32 0, i32 4
store double 5.600000e-01, double* %9
%10 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%11 = call i32 @print_array_5(double* %10)
%12 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%13 = call i32 @cleandata(double* %12)
%14 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%15 = call i32 @print_array_5(double* %14)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca [5 x double]
%2 = bitcast [5 x double]* %1 to i8*
%3 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 0
%4 = bitcast [5 x double]* %1 to <2 x double>*
store <2 x double> <double 8.900000e-01, double 7.800000e-01>, <2 x double>* %4
%5 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 2
%6 = bitcast double* %5 to <2 x double>*
store <2 x double> <double 9.000000e-04, double 6.700000e-01>, <2 x double>* %6
%7 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 4
store double 5.600000e-01, double* %7
%8 = call i32 @print_array_5(double* %3)
%9 = call i32 @cleandata(double* %3)
%10 = call i32 @print_array_5(double* %3)
ret i32 0
}