#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 */
double fabs(double);
void mycs(double c[3][3], double mxy[2]) {
  int ix;
  double c_t, c_b, c_r, c_l;
  double mx0, my0, mx1, my1, mm1, mm2;
  c_t = c[0][2] + c[1][2] + c[2][2];
  c_b = c[0][0] + c[1][0] + c[2][0];
  c_r = c[2][0] + c[2][1] + c[2][2];
  c_l = c[0][0] + c[0][1] + c[0][2];
  mx0 = 0.5 * (c_l - c_r);
  my0 = 0.5 * (c_b - c_t);
  if (fabs(mx0) <= fabs(my0)) {
    my0 = my0 > 0. ? 1. : -1.;
    ix = 1;
  } else {
    mx0 = mx0 > 0. ? 1. : -1.;
    ix = 0;
  }
  mm1 = c[0][0] + 2.0 * c[0][1] + c[0][2];
  mm2 = c[2][0] + 2.0 * c[2][1] + c[2][2];
  mx1 = mm1 - mm2;
  mm1 = c[0][0] + 2.0 * c[1][0] + c[2][0];
  mm2 = c[0][2] + 2.0 * c[1][2] + c[2][2];
  my1 = mm1 - mm2;
  if (ix) {
    mm1 = fabs(my1) + 1.e-30;
    mm1 = fabs(mx1) / mm1;
    if (mm1 > fabs(mx0)) {
      mx0 = mx1;
      my0 = my1;
    }
  } else {
    mm1 = fabs(mx1) + 1.e-30;
    mm1 = fabs(my1) / mm1;
    if (mm1 > fabs(my0)) {
      mx0 = mx1;
      my0 = my1;
    }
  }
  mm1 = fabs(mx0) + fabs(my0) + 1.e-30;
  mxy[0] = mx0 / mm1;
  mxy[1] = my0 / mm1;
  return;
}


x86 assembly (clang, -O0):
<mycs>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x28(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x18(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x38(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x8(%rax),%xmm0
mov    -0x8(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x38(%rbp),%xmm1
subsd  -0x30(%rbp),%xmm1
movsd  0xe74(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm1
subsd  -0x20(%rbp),%xmm1
movsd  0xe59(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm1
movaps 0xe34(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
movaps 0xe24(%rip),%xmm2
pand   %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jb     1227 <mycs+0x127>
movsd  -0x48(%rbp),%xmm1
movsd  0xe21(%rip),%xmm3
movsd  0xe21(%rip),%xmm2
xorps  %xmm0,%xmm0
cmpltsd %xmm1,%xmm0
movaps %xmm0,%xmm1
andpd  %xmm3,%xmm1
andnpd %xmm2,%xmm0
orpd   %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x14(%rbp)
jmp    125f <mycs+0x15f>
movsd  -0x40(%rbp),%xmm1
movsd  0xde4(%rip),%xmm3
movsd  0xde4(%rip),%xmm2
xorps  %xmm0,%xmm0
cmpltsd %xmm1,%xmm0
movaps %xmm0,%xmm1
andpd  %xmm3,%xmm1
andnpd %xmm2,%xmm0
orpd   %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x8(%rax),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x30(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x38(%rax),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x18(%rax),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x8(%rbp),%rax
movsd  0x28(%rax),%xmm0
addsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
mov    -0x8(%rbp),%rax
addsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     1398 <mycs+0x298>
movsd  -0x58(%rbp),%xmm0
movaps 0xccf(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xceb(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x50(%rbp),%xmm0
movaps 0xcae(%rip),%xmm1
pand   %xmm1,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movaps 0xc8f(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    1393 <mycs+0x293>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    140b <mycs+0x30b>
movsd  -0x50(%rbp),%xmm0
movaps 0xc5c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  0xc78(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm0
movaps 0xc3b(%rip),%xmm1
pand   %xmm1,%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
movaps 0xc1c(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    1406 <mycs+0x306>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
jmp    140b <mycs+0x30b>
movsd  -0x40(%rbp),%xmm0
movaps 0xbe9(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
movaps 0xbd9(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  0xbf1(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,0x8(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<mycs>:
movsd  0x40(%rdi),%xmm4
movupd 0x10(%rdi),%xmm5
movsd  (%rdi),%xmm9
movsd  0x8(%rdi),%xmm0
movsd  0x28(%rdi),%xmm8
movapd %xmm8,%xmm1
unpcklpd %xmm9,%xmm1
addpd  %xmm5,%xmm1
movsd  0x30(%rdi),%xmm2
movapd %xmm4,%xmm3
unpcklpd %xmm2,%xmm3
addpd  %xmm1,%xmm3
movsd  0x38(%rdi),%xmm7
movapd %xmm2,%xmm6
addsd  %xmm7,%xmm6
addsd  %xmm4,%xmm6
movapd %xmm9,%xmm1
addsd  %xmm0,%xmm1
addsd  %xmm5,%xmm1
shufpd $0x2,%xmm3,%xmm1
unpcklpd %xmm3,%xmm6
subpd  %xmm6,%xmm1
mulpd  0xe94(%rip),%xmm1
unpcklpd %xmm8,%xmm7
movapd 0xe97(%rip),%xmm6
andpd  %xmm1,%xmm6
pshufd $0xee,%xmm6,%xmm8
ucomisd %xmm6,%xmm8
addsd  %xmm0,%xmm0
addsd  %xmm9,%xmm0
movapd %xmm5,%xmm3
unpcklpd %xmm2,%xmm0
unpcklpd %xmm5,%xmm2
unpckhpd %xmm5,%xmm5
addsd  %xmm5,%xmm5
addsd  %xmm9,%xmm5
unpcklpd %xmm5,%xmm3
addpd  %xmm3,%xmm0
addpd  %xmm7,%xmm7
addpd  %xmm2,%xmm7
unpcklpd %xmm4,%xmm4
addpd  %xmm7,%xmm4
subpd  %xmm4,%xmm0
movapd 0xe42(%rip),%xmm3
andpd  %xmm0,%xmm3
jae    1213 <mycs+0x113>
movsd  0xe54(%rip),%xmm2
addsd  %xmm3,%xmm2
pshufd $0xee,%xmm3,%xmm4
divsd  %xmm2,%xmm4
ucomisd %xmm8,%xmm4
ja     125f <mycs+0x15f>
xorpd  %xmm0,%xmm0
xor    %eax,%eax
ucomisd %xmm0,%xmm1
seta   %al
lea    0xe1c(%rip),%rcx
movlpd (%rcx,%rax,8),%xmm1
movlpd 0xe27(%rip),%xmm6
jmp    1257 <mycs+0x157>
pshufd $0xee,%xmm3,%xmm2
addsd  0xe10(%rip),%xmm2
movapd %xmm3,%xmm4
divsd  %xmm2,%xmm4
ucomisd %xmm6,%xmm4
ja     125f <mycs+0x15f>
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
xorpd  %xmm2,%xmm2
xor    %eax,%eax
ucomisd %xmm2,%xmm0
seta   %al
lea    0xdd6(%rip),%rcx
movhpd (%rcx,%rax,8),%xmm1
movhpd 0xde1(%rip),%xmm6
movapd %xmm1,%xmm0
movapd %xmm6,%xmm3
movapd %xmm3,%xmm1
unpckhpd %xmm3,%xmm1
addsd  %xmm3,%xmm1
addsd  0xdbd(%rip),%xmm1
unpcklpd %xmm1,%xmm1
divpd  %xmm1,%xmm0
movupd %xmm0,(%rsi)
ret

LLVM IR (-O0):
define void @mycs([3 x double]* %0, double* %1) {
%3 = alloca [3 x double]*
%4 = alloca double*
%5 = alloca i32
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
store [3 x double]* %0, [3 x double]** %3
store double* %1, double** %4
%16 = load [3 x double]*, [3 x double]** %3
%17 = getelementptr inbounds [3 x double], [3 x double]* %16, i64 0
%18 = getelementptr inbounds [3 x double], [3 x double]* %17, i64 0, i64 2
%19 = load double, double* %18
%20 = load [3 x double]*, [3 x double]** %3
%21 = getelementptr inbounds [3 x double], [3 x double]* %20, i64 1
%22 = getelementptr inbounds [3 x double], [3 x double]* %21, i64 0, i64 2
%23 = load double, double* %22
%24 = fadd double %19, %23
%25 = load [3 x double]*, [3 x double]** %3
%26 = getelementptr inbounds [3 x double], [3 x double]* %25, i64 2
%27 = getelementptr inbounds [3 x double], [3 x double]* %26, i64 0, i64 2
%28 = load double, double* %27
%29 = fadd double %24, %28
store double %29, double* %6
%30 = load [3 x double]*, [3 x double]** %3
%31 = getelementptr inbounds [3 x double], [3 x double]* %30, i64 0
%32 = getelementptr inbounds [3 x double], [3 x double]* %31, i64 0, i64 0
%33 = load double, double* %32
%34 = load [3 x double]*, [3 x double]** %3
%35 = getelementptr inbounds [3 x double], [3 x double]* %34, i64 1
%36 = getelementptr inbounds [3 x double], [3 x double]* %35, i64 0, i64 0
%37 = load double, double* %36
%38 = fadd double %33, %37
%39 = load [3 x double]*, [3 x double]** %3
%40 = getelementptr inbounds [3 x double], [3 x double]* %39, i64 2
%41 = getelementptr inbounds [3 x double], [3 x double]* %40, i64 0, i64 0
%42 = load double, double* %41
%43 = fadd double %38, %42
store double %43, double* %7
%44 = load [3 x double]*, [3 x double]** %3
%45 = getelementptr inbounds [3 x double], [3 x double]* %44, i64 2
%46 = getelementptr inbounds [3 x double], [3 x double]* %45, i64 0, i64 0
%47 = load double, double* %46
%48 = load [3 x double]*, [3 x double]** %3
%49 = getelementptr inbounds [3 x double], [3 x double]* %48, i64 2
%50 = getelementptr inbounds [3 x double], [3 x double]* %49, i64 0, i64 1
%51 = load double, double* %50
%52 = fadd double %47, %51
%53 = load [3 x double]*, [3 x double]** %3
%54 = getelementptr inbounds [3 x double], [3 x double]* %53, i64 2
%55 = getelementptr inbounds [3 x double], [3 x double]* %54, i64 0, i64 2
%56 = load double, double* %55
%57 = fadd double %52, %56
store double %57, double* %8
%58 = load [3 x double]*, [3 x double]** %3
%59 = getelementptr inbounds [3 x double], [3 x double]* %58, i64 0
%60 = getelementptr inbounds [3 x double], [3 x double]* %59, i64 0, i64 0
%61 = load double, double* %60
%62 = load [3 x double]*, [3 x double]** %3
%63 = getelementptr inbounds [3 x double], [3 x double]* %62, i64 0
%64 = getelementptr inbounds [3 x double], [3 x double]* %63, i64 0, i64 1
%65 = load double, double* %64
%66 = fadd double %61, %65
%67 = load [3 x double]*, [3 x double]** %3
%68 = getelementptr inbounds [3 x double], [3 x double]* %67, i64 0
%69 = getelementptr inbounds [3 x double], [3 x double]* %68, i64 0, i64 2
%70 = load double, double* %69
%71 = fadd double %66, %70
store double %71, double* %9
%72 = load double, double* %9
%73 = load double, double* %8
%74 = fsub double %72, %73
%75 = fmul double 5.000000e-01, %74
store double %75, double* %10
%76 = load double, double* %7
%77 = load double, double* %6
%78 = fsub double %76, %77
%79 = fmul double 5.000000e-01, %78
store double %79, double* %11
%80 = load double, double* %10
%81 = call double @llvm.fabs.f64(double %80)
%82 = load double, double* %11
%83 = call double @llvm.fabs.f64(double %82)
%84 = fcmp ole double %81, %83
br i1 %84, label %85, label %90
85: ; preds = %2
%86 = load double, double* %11
%87 = fcmp ogt double %86, 0.000000e+00
%88 = zext i1 %87 to i64
%89 = select i1 %87, double 1.000000e+00, double -1.000000e+00
store double %89, double* %11
store i32 1, i32* %5
br label %95
90: ; preds = %2
%91 = load double, double* %10
%92 = fcmp ogt double %91, 0.000000e+00
%93 = zext i1 %92 to i64
%94 = select i1 %92, double 1.000000e+00, double -1.000000e+00
store double %94, double* %10
store i32 0, i32* %5
br label %95
95: ; preds = %90, %85
%96 = load [3 x double]*, [3 x double]** %3
%97 = getelementptr inbounds [3 x double], [3 x double]* %96, i64 0
%98 = getelementptr inbounds [3 x double], [3 x double]* %97, i64 0, i64 0
%99 = load double, double* %98
%100 = load [3 x double]*, [3 x double]** %3
%101 = getelementptr inbounds [3 x double], [3 x double]* %100, i64 0
%102 = getelementptr inbounds [3 x double], [3 x double]* %101, i64 0, i64 1
%103 = load double, double* %102
%104 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %103, double %99)
%105 = load [3 x double]*, [3 x double]** %3
%106 = getelementptr inbounds [3 x double], [3 x double]* %105, i64 0
%107 = getelementptr inbounds [3 x double], [3 x double]* %106, i64 0, i64 2
%108 = load double, double* %107
%109 = fadd double %104, %108
store double %109, double* %14
%110 = load [3 x double]*, [3 x double]** %3
%111 = getelementptr inbounds [3 x double], [3 x double]* %110, i64 2
%112 = getelementptr inbounds [3 x double], [3 x double]* %111, i64 0, i64 0
%113 = load double, double* %112
%114 = load [3 x double]*, [3 x double]** %3
%115 = getelementptr inbounds [3 x double], [3 x double]* %114, i64 2
%116 = getelementptr inbounds [3 x double], [3 x double]* %115, i64 0, i64 1
%117 = load double, double* %116
%118 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %117, double %113)
%119 = load [3 x double]*, [3 x double]** %3
%120 = getelementptr inbounds [3 x double], [3 x double]* %119, i64 2
%121 = getelementptr inbounds [3 x double], [3 x double]* %120, i64 0, i64 2
%122 = load double, double* %121
%123 = fadd double %118, %122
store double %123, double* %15
%124 = load double, double* %14
%125 = load double, double* %15
%126 = fsub double %124, %125
store double %126, double* %12
%127 = load [3 x double]*, [3 x double]** %3
%128 = getelementptr inbounds [3 x double], [3 x double]* %127, i64 0
%129 = getelementptr inbounds [3 x double], [3 x double]* %128, i64 0, i64 0
%130 = load double, double* %129
%131 = load [3 x double]*, [3 x double]** %3
%132 = getelementptr inbounds [3 x double], [3 x double]* %131, i64 1
%133 = getelementptr inbounds [3 x double], [3 x double]* %132, i64 0, i64 0
%134 = load double, double* %133
%135 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %134, double %130)
%136 = load [3 x double]*, [3 x double]** %3
%137 = getelementptr inbounds [3 x double], [3 x double]* %136, i64 2
%138 = getelementptr inbounds [3 x double], [3 x double]* %137, i64 0, i64 0
%139 = load double, double* %138
%140 = fadd double %135, %139
store double %140, double* %14
%141 = load [3 x double]*, [3 x double]** %3
%142 = getelementptr inbounds [3 x double], [3 x double]* %141, i64 0
%143 = getelementptr inbounds [3 x double], [3 x double]* %142, i64 0, i64 2
%144 = load double, double* %143
%145 = load [3 x double]*, [3 x double]** %3
%146 = getelementptr inbounds [3 x double], [3 x double]* %145, i64 1
%147 = getelementptr inbounds [3 x double], [3 x double]* %146, i64 0, i64 2
%148 = load double, double* %147
%149 = call double @llvm.fmuladd.f64(double 2.000000e+00, double %148, double %144)
%150 = load [3 x double]*, [3 x double]** %3
%151 = getelementptr inbounds [3 x double], [3 x double]* %150, i64 2
%152 = getelementptr inbounds [3 x double], [3 x double]* %151, i64 0, i64 2
%153 = load double, double* %152
%154 = fadd double %149, %153
store double %154, double* %15
%155 = load double, double* %14
%156 = load double, double* %15
%157 = fsub double %155, %156
store double %157, double* %13
%158 = load i32, i32* %5
%159 = icmp ne i32 %158, 0
br i1 %159, label %160, label %176
160: ; preds = %95
%161 = load double, double* %13
%162 = call double @llvm.fabs.f64(double %161)
%163 = fadd double %162, 1.000000e-30
store double %163, double* %14
%164 = load double, double* %12
%165 = call double @llvm.fabs.f64(double %164)
%166 = load double, double* %14
%167 = fdiv double %165, %166
store double %167, double* %14
%168 = load double, double* %14
%169 = load double, double* %10
%170 = call double @llvm.fabs.f64(double %169)
%171 = fcmp ogt double %168, %170
br i1 %171, label %172, label %175
172: ; preds = %160
%173 = load double, double* %12
store double %173, double* %10
%174 = load double, double* %13
store double %174, double* %11
br label %175
175: ; preds = %172, %160
br label %192
176: ; preds = %95
%177 = load double, double* %12
%178 = call double @llvm.fabs.f64(double %177)
%179 = fadd double %178, 1.000000e-30
store double %179, double* %14
%180 = load double, double* %13
%181 = call double @llvm.fabs.f64(double %180)
%182 = load double, double* %14
%183 = fdiv double %181, %182
store double %183, double* %14
%184 = load double, double* %14
%185 = load double, double* %11
%186 = call double @llvm.fabs.f64(double %185)
%187 = fcmp ogt double %184, %186
br i1 %187, label %188, label %191
188: ; preds = %176
%189 = load double, double* %12
store double %189, double* %10
%190 = load double, double* %13
store double %190, double* %11
br label %191
191: ; preds = %188, %176
br label %192
192: ; preds = %191, %175
%193 = load double, double* %10
%194 = call double @llvm.fabs.f64(double %193)
%195 = load double, double* %11
%196 = call double @llvm.fabs.f64(double %195)
%197 = fadd double %194, %196
%198 = fadd double %197, 1.000000e-30
store double %198, double* %14
%199 = load double, double* %10
%200 = load double, double* %14
%201 = fdiv double %199, %200
%202 = load double*, double** %4
%203 = getelementptr inbounds double, double* %202, i64 0
store double %201, double* %203
%204 = load double, double* %11
%205 = load double, double* %14
%206 = fdiv double %204, %205
%207 = load double*, double** %4
%208 = getelementptr inbounds double, double* %207, i64 1
store double %206, double* %208
ret void
}

LLVM IR (-O2):
define void @mycs([3 x double]* nocapture %0, double* nocapture writeonly %1) {
%3 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 2
%4 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 1, i64 2
%5 = load double, double* %4
%6 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 2
%7 = load double, double* %6
%8 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 0
%9 = load double, double* %8
%10 = bitcast double* %3 to <2 x double>*
%11 = load <2 x double>, <2 x double>* %10
%12 = insertelement <2 x double> poison, double %5, i64 0
%13 = insertelement <2 x double> %12, double %9, i64 1
%14 = fadd <2 x double> %11, %13
%15 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 0
%16 = load double, double* %15
%17 = insertelement <2 x double> poison, double %7, i64 0
%18 = insertelement <2 x double> %17, double %16, i64 1
%19 = fadd <2 x double> %14, %18
%20 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 2, i64 1
%21 = load double, double* %20
%22 = fadd double %16, %21
%23 = fadd double %7, %22
%24 = getelementptr inbounds [3 x double], [3 x double]* %0, i64 0, i64 1
%25 = load double, double* %24
%26 = fadd double %9, %25
%27 = extractelement <2 x double> %11, i64 0
%28 = fadd double %27, %26
%29 = insertelement <2 x double> %19, double %28, i64 0
%30 = insertelement <2 x double> poison, double %23, i64 0
%31 = shufflevector <2 x double> %30, <2 x double> %19, <2 x i32> <i32 0, i32 2>
%32 = fsub <2 x double> %29, %31
%33 = fmul <2 x double> %32, <double 5.000000e-01, double 5.000000e-01>
%34 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %33)
%35 = extractelement <2 x double> %34, i64 0
%36 = extractelement <2 x double> %34, i64 1
%37 = fcmp ugt double %35, %36
%38 = tail call double @llvm.fmuladd.f64(double %25, double 2.000000e+00, double %9)
%39 = extractelement <2 x double> %11, i64 1
%40 = tail call double @llvm.fmuladd.f64(double %39, double 2.000000e+00, double %9)
%41 = insertelement <2 x double> %11, double %40, i64 1
%42 = insertelement <2 x double> poison, double %38, i64 0
%43 = insertelement <2 x double> %42, double %16, i64 1
%44 = fadd <2 x double> %41, %43
%45 = insertelement <2 x double> poison, double %21, i64 0
%46 = insertelement <2 x double> %45, double %5, i64 1
%47 = insertelement <2 x double> poison, double %16, i64 0
%48 = shufflevector <2 x double> %47, <2 x double> %11, <2 x i32> <i32 0, i32 2>
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %46, <2 x double> <double 2.000000e+00, double 2.000000e+00>, <2 x double> %48)
%50 = shufflevector <2 x double> %17, <2 x double> poison, <2 x i32> zeroinitializer
%51 = fadd <2 x double> %50, %49
%52 = fsub <2 x double> %44, %51
br i1 %37, label %66, label %53
53: ; preds = %2
%54 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %52)
%55 = extractelement <2 x double> %54, i64 1
%56 = fadd double %55, 1.000000e-30
%57 = extractelement <2 x double> %54, i64 0
%58 = fdiv double %57, %56
%59 = fcmp ogt double %58, %35
br i1 %59, label %79, label %60
60: ; preds = %53
%61 = extractelement <2 x double> %33, i64 1
%62 = fcmp ogt double %61, 0.000000e+00
%63 = select i1 %62, double 1.000000e+00, double -1.000000e+00
%64 = insertelement <2 x double> %33, double %63, i64 1
%65 = insertelement <2 x double> %34, double 1.000000e+00, i64 1
br label %79
66: ; preds = %2
%67 = call <2 x double> @llvm.fabs.v2f64(<2 x double> %52)
%68 = extractelement <2 x double> %67, i64 0
%69 = fadd double %68, 1.000000e-30
%70 = extractelement <2 x double> %67, i64 1
%71 = fdiv double %70, %69
%72 = fcmp ogt double %71, %36
br i1 %72, label %79, label %73
73: ; preds = %66
%74 = extractelement <2 x double> %33, i64 0
%75 = fcmp ogt double %74, 0.000000e+00
%76 = select i1 %75, double 1.000000e+00, double -1.000000e+00
%77 = insertelement <2 x double> %33, double %76, i64 0
%78 = insertelement <2 x double> %34, double 1.000000e+00, i64 0
br label %79
79: ; preds = %66, %53, %73, %60
%80 = phi <2 x double> [ %77, %73 ], [ %64, %60 ], [ %52, %53 ], [ %52, %66 ]
%81 = phi <2 x double> [ %78, %73 ], [ %65, %60 ], [ %54, %53 ], [ %67, %66 ]
%82 = shufflevector <2 x double> %81, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%83 = fadd <2 x double> %82, %81
%84 = extractelement <2 x double> %83, i64 0
%85 = fadd double %84, 1.000000e-30
%86 = insertelement <2 x double> poison, double %85, i64 0
%87 = shufflevector <2 x double> %86, <2 x double> poison, <2 x i32> zeroinitializer
%88 = fdiv <2 x double> %80, %87
%89 = bitcast double* %1 to <2 x double>*
store <2 x double> %88, <2 x double>* %89
ret void
}