#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*/ Merging(double *, double *, double *);
int /*<<< orphan*/ Print_results(double *, double *, double *);
int main(void) {
  double F_array[5] = {-10.5, -1.8, 3.5, 6.3, 7.2},
         S_array[3] = {-1.8, 3.1, 6.3}, R_array[6];
  Merging(F_array, S_array, R_array);
  Print_results(F_array, S_array, R_array);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1050 <memset@plt>
movsd  0xec6(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeb1(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe9c(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xe87(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe72(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    0xe96(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xe93(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xe90(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1030 <Merging@plt>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x80(%rbp),%rdx
call   1040 <Print_results@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x80,%rsp
movaps 0xecd(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xed1(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movabs $0x401ccccccccccccd,%rax
cc 1c 40
mov    %rax,0x40(%rsp)
mov    0xed6(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xeba(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%rbx
mov    %rsp,%r14
lea    0x50(%rsp),%r15
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1030 <Merging@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %r15,%rdx
call   1040 <Print_results@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.S_array = [3 x double] [double -1.800000e+00, double 3.100000e+00, double 6.300000e+00]
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x double]
%3 = alloca [3 x double]
%4 = alloca [6 x double]
store i32 0, i32* %1
%5 = bitcast [5 x double]* %2 to i8*
%6 = bitcast i8* %5 to [5 x double]*
%7 = getelementptr inbounds [5 x double], [5 x double]* %6, i32 0, i32 0
store double -1.050000e+01, double* %7
%8 = getelementptr inbounds [5 x double], [5 x double]* %6, i32 0, i32 1
store double -1.800000e+00, double* %8
%9 = getelementptr inbounds [5 x double], [5 x double]* %6, i32 0, i32 2
store double 3.500000e+00, double* %9
%10 = getelementptr inbounds [5 x double], [5 x double]* %6, i32 0, i32 3
store double 6.300000e+00, double* %10
%11 = getelementptr inbounds [5 x double], [5 x double]* %6, i32 0, i32 4
store double 7.200000e+00, double* %11
%12 = bitcast [3 x double]* %3 to i8*
%13 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%14 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%15 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%16 = call i32 @Merging(double* %13, double* %14, double* %15)
%17 = getelementptr inbounds [5 x double], [5 x double]* %2, i64 0, i64 0
%18 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%19 = getelementptr inbounds [6 x double], [6 x double]* %4, i64 0, i64 0
%20 = call i32 @Print_results(double* %17, double* %18, double* %19)
ret i32 0
}

LLVM IR (-O2):
@__const.main.S_array = [3 x double] [double -1.800000e+00, double 3.100000e+00, double 6.300000e+00]
define i32 @main() {
%1 = alloca [5 x double]
%2 = alloca [3 x double]
%3 = alloca [6 x double]
%4 = bitcast [5 x double]* %1 to i8*
%5 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 0
%6 = bitcast [5 x double]* %1 to <2 x double>*
store <2 x double> <double -1.050000e+01, double -1.800000e+00>, <2 x double>* %6
%7 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 2
%8 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 3.500000e+00, double 6.300000e+00>, <2 x double>* %8
%9 = getelementptr inbounds [5 x double], [5 x double]* %1, i64 0, i64 4
store double 7.200000e+00, double* %9
%10 = bitcast [3 x double]* %2 to i8*
%11 = bitcast [6 x double]* %3 to i8*
%12 = getelementptr inbounds [3 x double], [3 x double]* %2, i64 0, i64 0
%13 = getelementptr inbounds [6 x double], [6 x double]* %3, i64 0, i64 0
%14 = call i32 @Merging(double* %5, double* %12, double* %13)
%15 = call i32 @Print_results(double* %5, double* %12, double* %13)
ret i32 0
}