#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*/ printf(char *, double, double);
int /*<<< orphan*/ solve(double *, double *, double *);
int main(int argc, char *argv[]) {
  double A[4] = {.2161, .1441, 1.2969, .8648};
  double B[2] = {.1440, .8642};
  double C[2] = {0, 0};
  solve(A, B, C);
  printf("%.16e %.16e\n", C[0], C[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    0xeb0(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    0xead(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xeaa(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xea7(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea4(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1050 <memset@plt>
lea    -0x30(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x50(%rbp),%rdx
call   1030 <solve@plt>
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
lea    0xe76(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x48,%rsp
movaps 0xee5(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xec9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xedd(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    %rsp,%rdx
call   1030 <solve@plt>
movsd  (%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
lea    0xebd(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x48,%rsp
ret

LLVM IR (-O0):
@__const.main.A = [4 x double] [double 2.161000e-01, double 1.441000e-01, double 1.296900e+00, double 8.648000e-01]
@__const.main.B = [2 x double] [double 1.440000e-01, double 8.642000e-01]
@.str = [13 x i8] c"%.16e %.16e\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [4 x double]
%7 = alloca [2 x double]
%8 = alloca [2 x double]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = bitcast [4 x double]* %6 to i8*
%10 = bitcast [2 x double]* %7 to i8*
%11 = bitcast [2 x double]* %8 to i8*
%12 = getelementptr inbounds [4 x double], [4 x double]* %6, i64 0, i64 0
%13 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%14 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%15 = call i32 @solve(double* %12, double* %13, double* %14)
%16 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%17 = load double, double* %16
%18 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
%19 = load double, double* %18
%20 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double %17, double %19)
ret i32 0
}

LLVM IR (-O2):
@__const.main.A = [4 x double] [double 2.161000e-01, double 1.441000e-01, double 1.296900e+00, double 8.648000e-01]
@__const.main.B = [2 x double] [double 1.440000e-01, double 8.642000e-01]
@.str = [13 x i8] c"%.16e %.16e\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [4 x double]
%4 = alloca [2 x double]
%5 = alloca [2 x double]
%6 = bitcast [4 x double]* %3 to i8*
%7 = bitcast [2 x double]* %4 to i8*
%8 = bitcast [2 x double]* %5 to i8*
%9 = getelementptr inbounds [4 x double], [4 x double]* %3, i64 0, i64 0
%10 = getelementptr inbounds [2 x double], [2 x double]* %4, i64 0, i64 0
%11 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 0
%12 = call i32 @solve(double* %9, double* %10, double* %11)
%13 = load double, double* %11
%14 = getelementptr inbounds [2 x double], [2 x double]* %5, i64 0, i64 1
%15 = load double, double* %14
%16 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), double %13, double %15)
ret i32 0
}