#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*/ memset(double *, int /*<<< orphan*/, unsigned int);
void us(const double o[15], double u[15]) {
  int ix;
  int iy;
  int k;
  memset(&u[0], 0, 15U * sizeof(double));
  ix = 0;
  iy = 0;
  for (k = 0; k < 15; k++) {
    u[iy] = o[ix];
    ix++;
    iy++;
  }
}


x86 assembly (clang, -O0):
<us>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
mov    $0x78,%edx
call   1030 <memset@plt>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    1189 <us+0x79>
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1145 <us+0x35>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<us>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rdi,%r14
mov    %rsi,%rdi
xor    %esi,%esi
mov    $0x78,%edx
call   1030 <memset@plt>
movsd  (%r14),%xmm0
movsd  %xmm0,(%rbx)
movsd  0x8(%r14),%xmm0
movsd  %xmm0,0x8(%rbx)
movsd  0x10(%r14),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x18(%r14),%xmm0
movsd  %xmm0,0x18(%rbx)
movsd  0x20(%r14),%xmm0
movsd  %xmm0,0x20(%rbx)
movsd  0x28(%r14),%xmm0
movsd  %xmm0,0x28(%rbx)
movsd  0x30(%r14),%xmm0
movsd  %xmm0,0x30(%rbx)
movsd  0x38(%r14),%xmm0
movsd  %xmm0,0x38(%rbx)
movsd  0x40(%r14),%xmm0
movsd  %xmm0,0x40(%rbx)
movsd  0x48(%r14),%xmm0
movsd  %xmm0,0x48(%rbx)
movsd  0x50(%r14),%xmm0
movsd  %xmm0,0x50(%rbx)
movsd  0x58(%r14),%xmm0
movsd  %xmm0,0x58(%rbx)
movsd  0x60(%r14),%xmm0
movsd  %xmm0,0x60(%rbx)
movsd  0x68(%r14),%xmm0
movsd  %xmm0,0x68(%rbx)
movsd  0x70(%r14),%xmm0
movsd  %xmm0,0x70(%rbx)
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define void @us(double* %0, double* %1) {
%3 = alloca double*
%4 = alloca double*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store double* %0, double** %3
store double* %1, double** %4
%8 = load double*, double** %4
%9 = getelementptr inbounds double, double* %8, i64 0
%10 = call i32 @memset(double* %9, i32 0, i32 120)
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %11
11: ; preds = %28, %2
%12 = load i32, i32* %7
%13 = icmp slt i32 %12, 15
br i1 %13, label %14, label %31
14: ; preds = %11
%15 = load double*, double** %3
%16 = load i32, i32* %5
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds double, double* %15, i64 %17
%19 = load double, double* %18
%20 = load double*, double** %4
%21 = load i32, i32* %6
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double, double* %20, i64 %22
store double %19, double* %23
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
%26 = load i32, i32* %6
%27 = add nsw i32 %26, 1
store i32 %27, i32* %6
br label %28
28: ; preds = %14
%29 = load i32, i32* %7
%30 = add nsw i32 %29, 1
store i32 %30, i32* %7
br label %11
31: ; preds = %11
ret void
}

LLVM IR (-O2):
define void @us(double* nocapture %0, double* %1) {
%3 = tail call i32 @memset(double* %1, i32 0, i32 120)
%4 = load double, double* %0
store double %4, double* %1
%5 = getelementptr inbounds double, double* %0, i64 1
%6 = load double, double* %5
%7 = getelementptr inbounds double, double* %1, i64 1
store double %6, double* %7
%8 = getelementptr inbounds double, double* %0, i64 2
%9 = load double, double* %8
%10 = getelementptr inbounds double, double* %1, i64 2
store double %9, double* %10
%11 = getelementptr inbounds double, double* %0, i64 3
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %1, i64 3
store double %12, double* %13
%14 = getelementptr inbounds double, double* %0, i64 4
%15 = load double, double* %14
%16 = getelementptr inbounds double, double* %1, i64 4
store double %15, double* %16
%17 = getelementptr inbounds double, double* %0, i64 5
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %1, i64 5
store double %18, double* %19
%20 = getelementptr inbounds double, double* %0, i64 6
%21 = load double, double* %20
%22 = getelementptr inbounds double, double* %1, i64 6
store double %21, double* %22
%23 = getelementptr inbounds double, double* %0, i64 7
%24 = load double, double* %23
%25 = getelementptr inbounds double, double* %1, i64 7
store double %24, double* %25
%26 = getelementptr inbounds double, double* %0, i64 8
%27 = load double, double* %26
%28 = getelementptr inbounds double, double* %1, i64 8
store double %27, double* %28
%29 = getelementptr inbounds double, double* %0, i64 9
%30 = load double, double* %29
%31 = getelementptr inbounds double, double* %1, i64 9
store double %30, double* %31
%32 = getelementptr inbounds double, double* %0, i64 10
%33 = load double, double* %32
%34 = getelementptr inbounds double, double* %1, i64 10
store double %33, double* %34
%35 = getelementptr inbounds double, double* %0, i64 11
%36 = load double, double* %35
%37 = getelementptr inbounds double, double* %1, i64 11
store double %36, double* %37
%38 = getelementptr inbounds double, double* %0, i64 12
%39 = load double, double* %38
%40 = getelementptr inbounds double, double* %1, i64 12
store double %39, double* %40
%41 = getelementptr inbounds double, double* %0, i64 13
%42 = load double, double* %41
%43 = getelementptr inbounds double, double* %1, i64 13
store double %42, double* %43
%44 = getelementptr inbounds double, double* %0, i64 14
%45 = load double, double* %44
%46 = getelementptr inbounds double, double* %1, i64 14
store double %45, double* %46
ret void
}