#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*/ reverse(double *, unsigned int);
int /*<<< orphan*/ show(double *, unsigned int);
int main() {
  double m[] = {1.1, 2.2, 3.3, 4.4};
  double n[] = {2, 4, 6};
  double p[] = {1, 2, 50};
  double q[] = {10, 20, 30};
  double r[3] = {};
  unsigned k[7] = {};
  double s = 0, a = 0, l = 0;
  unsigned e = 3;
  unsigned i = 0;
  reverse(n, e);
  show(n, e);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeb1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeae(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeaa(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0xea7(%rip),%rax
mov    %rax,-0x68(%rbp)
mov    0xea4(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0xea9(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xe9d(%rip),%rax
mov    %rax,-0x80(%rbp)
lea    -0xb0(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1040 <memset@plt>
lea    -0xd0(%rbp),%rdi
xor    %esi,%esi
mov    $0x1c,%edx
call   1040 <memset@plt>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movl   $0x3,-0xec(%rbp)
movl   $0x0,-0xf0(%rbp)
lea    -0x50(%rbp),%rdi
mov    -0xec(%rbp),%esi
call   1030 <reverse@plt>
lea    -0x50(%rbp),%rdi
mov    -0xec(%rbp),%esi
call   1050 <show@plt>
xor    %eax,%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
mov    0xee4(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x3,%esi
call   1030 <reverse@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1040 <show@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.m = [4 x double] [double 1.100000e+00, double 2.200000e+00, double 3.300000e+00, double 4.400000e+00]
@__const.main.n = [3 x double] [double 2.000000e+00, double 4.000000e+00, double 6.000000e+00]
@__const.main.p = [3 x double] [double 1.000000e+00, double 2.000000e+00, double 5.000000e+01]
@__const.main.q = [3 x double] [double 1.000000e+01, double 2.000000e+01, double 3.000000e+01]
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x double]
%3 = alloca [3 x double]
%4 = alloca [3 x double]
%5 = alloca [3 x double]
%6 = alloca [3 x double]
%7 = alloca [7 x i32]
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %1
%13 = bitcast [4 x double]* %2 to i8*
%14 = bitcast [3 x double]* %3 to i8*
%15 = bitcast [3 x double]* %4 to i8*
%16 = bitcast [3 x double]* %5 to i8*
%17 = bitcast [3 x double]* %6 to i8*
%18 = bitcast [7 x i32]* %7 to i8*
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %9
store double 0.000000e+00, double* %10
store i32 3, i32* %11
store i32 0, i32* %12
%19 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%20 = load i32, i32* %11
%21 = call i32 @reverse(double* %19, i32 %20)
%22 = getelementptr inbounds [3 x double], [3 x double]* %3, i64 0, i64 0
%23 = load i32, i32* %11
%24 = call i32 @show(double* %22, i32 %23)
ret i32 0
}

LLVM IR (-O2):
@__const.main.n = [3 x double] [double 2.000000e+00, double 4.000000e+00, double 6.000000e+00]
define i32 @main() {
%1 = alloca [3 x double]
%2 = bitcast [3 x double]* %1 to i8*
%3 = getelementptr inbounds [3 x double], [3 x double]* %1, i64 0, i64 0
%4 = call i32 @reverse(double* %3, i32 3)
%5 = call i32 @show(double* %3, i32 3)
ret i32 0
}