#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*/ inner_s(double *, double *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ show(double *);
int main() {
  double a[] = {1.01, 2.3, 3, 4}, b[] = {0, 0.2, 0.5, 6.1};
  show(a);
  printf("x\n");
  show(b);
  printf("=\n");
  printf("%.2lf\n", inner_s(a, b));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeba(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb7(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xeb4(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeb1(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xeae(%rip),%rax
mov    %rax,-0x50(%rbp)
mov    0xeab(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    0xea8(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea5(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x30(%rbp),%rdi
call   1040 <show@plt>
lea    0xe99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
call   1040 <show@plt>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <inner_s@plt>
mov    %eax,%esi
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x48,%rsp
movaps 0xec2(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xea6(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0xeae(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1050 <show@plt>
lea    0xebd(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1050 <show@plt>
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <inner_s@plt>
lea    0xe88(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.a = [4 x double] [double 1.010000e+00, double 2.300000e+00, double 3.000000e+00, double 4.000000e+00]
@__const.main.b = [4 x double] [double 0.000000e+00, double 2.000000e-01, double 5.000000e-01, double 6.100000e+00]
@.str = [3 x i8] c"x\0A\00"
@.str.1 = [3 x i8] c"=\0A\00"
@.str.2 = [7 x i8] c"%.2lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [4 x double]
%3 = alloca [4 x double]
store i32 0, i32* %1
%4 = bitcast [4 x double]* %2 to i8*
%5 = bitcast [4 x double]* %3 to i8*
%6 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%7 = call i32 @show(double* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%10 = call i32 @show(double* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%13 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%14 = call i32 @inner_s(double* %12, double* %13)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %14)
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [4 x double] [double 1.010000e+00, double 2.300000e+00, double 3.000000e+00, double 4.000000e+00]
@__const.main.b = [4 x double] [double 0.000000e+00, double 2.000000e-01, double 5.000000e-01, double 6.100000e+00]
@.str.2 = [7 x i8] c"%.2lf\0A\00"
@str = [2 x i8] c"x\00"
@str.3 = [2 x i8] c"=\00"
define i32 @main() {
%1 = alloca [4 x double]
%2 = alloca [4 x double]
%3 = bitcast [4 x double]* %1 to i8*
%4 = bitcast [4 x double]* %2 to i8*
%5 = getelementptr inbounds [4 x double], [4 x double]* %1, i64 0, i64 0
%6 = call i32 @show(double* %5)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%8 = getelementptr inbounds [4 x double], [4 x double]* %2, i64 0, i64 0
%9 = call i32 @show(double* %8)
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.3, i64 0, i64 0))
%11 = call i32 @inner_s(double* %5, double* %8)
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i32 %11)
ret i32 0
}