#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ cmio_jd2y(double, int *, int *, double *);
double cmxx_en(double *, int, int, double *, double const **, double const **,
               double **, double *);
int cmxx_ejec(double time, double tstart, double rmax, double en[3],
              double am[3], double jcen[3], int i0, int nbod, int nbig,
              double *m, const double **restrict x, const double **restrict v,
              double **s, int *stat, char **id, int opt[8], FILE *outfile,
              char mem[200], char lmem[200]) {
  int year = 0, month = 0;
  double r2 = 0.0, rmax2 = 0.0, t1 = 0.0, e = 0.0, l = 0.0;
  if (i0 <= 0) {
    i0 = 2;
  }
  int ejflag = 0;
  rmax2 = rmax * rmax;
  l = cmxx_en(jcen, nbod, nbig, m, x, v, s, &e);
  for (int j = i0; j < nbod; j++) {
    r2 = x[j][0] * x[j][0] + x[j][1] * x[j][1] + x[j][2] * x[j][2];
    if (r2 > rmax2) {
      ejflag = 1;
      stat[j] = -3;
      m[j] = 0.0;
      s[j][0] = 0.0;
      s[j][1] = 0.0;
      s[j][2] = 0.0;
    }
    if (opt[2] == 1) {
      cmio_jd2y(time, &year, &month, &t1);
    } else {
      if (opt[2] == 3) {
        t1 = (time - tstart) / 365.250;
        ;
      } else {
        if (opt[2] == 0) {
          t1 = time;
        }
        if (opt[2] == 2) {
          t1 = time - tstart;
        }
      }
    }
  }
  if (ejflag) {
    am[1] = cmxx_en(jcen, nbod, nbig, m, x, v, s, &en[1]);
    en[2] = en[2] + (e - en[1]);
    am[2] = am[2] + (l - am[1]);
  }
  return ejflag;
}


x86 assembly (clang, -O0):
<cmxx_ejec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
mov    %rdi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
mov    %rdx,-0x30(%rbp)
mov    %ecx,-0x34(%rbp)
mov    %r8d,-0x38(%rbp)
mov    %r9d,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
cmpl   $0x0,-0x34(%rbp)
jg     11c0 <cmxx_ejec+0xa0>
movl   $0x2,-0x34(%rbp)
movl   $0x0,-0x74(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    0x10(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    0x20(%rbp),%r9
mov    0x28(%rbp),%r10
lea    -0x68(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <cmxx_en@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x78(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    13ac <cmxx_ejec+0x28c>
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm1
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm2
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm0
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mulsd  0x8(%rax),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x10(%rax),%xmm0
mov    0x18(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x10(%rax),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    1303 <cmxx_ejec+0x1e3>
movl   $0x1,-0x74(%rbp)
mov    0x30(%rbp),%rax
movslq -0x78(%rbp),%rcx
movl   $0xfffffffd,(%rax,%rcx,4)
mov    0x10(%rbp),%rax
movslq -0x78(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    0x28(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x28(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    0x28(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x40(%rbp),%rax
cmpl   $0x1,0x8(%rax)
jne    132c <cmxx_ejec+0x20c>
movsd  -0x8(%rbp),%xmm0
lea    -0x40(%rbp),%rdi
lea    -0x44(%rbp),%rsi
lea    -0x60(%rbp),%rdx
call   1040 <cmio_jd2y@plt>
jmp    1399 <cmxx_ejec+0x279>
mov    0x40(%rbp),%rax
cmpl   $0x3,0x8(%rax)
jne    135a <cmxx_ejec+0x23a>
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xcb4(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1394 <cmxx_ejec+0x274>
mov    0x40(%rbp),%rax
cmpl   $0x0,0x8(%rax)
jne    1372 <cmxx_ejec+0x252>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    0x40(%rbp),%rax
cmpl   $0x2,0x8(%rax)
jne    138f <cmxx_ejec+0x26f>
movsd  -0x8(%rbp),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    1394 <cmxx_ejec+0x274>
jmp    1399 <cmxx_ejec+0x279>
jmp    139e <cmxx_ejec+0x27e>
mov    -0x78(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x78(%rbp)
jmp    120d <cmxx_ejec+0xed>
cmpl   $0x0,-0x74(%rbp)
je     1437 <cmxx_ejec+0x317>
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    0x10(%rbp),%rcx
mov    0x18(%rbp),%r8
mov    0x20(%rbp),%r9
mov    0x28(%rbp),%r10
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <cmxx_en@plt>
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x68(%rbp),%xmm1
mov    -0x20(%rbp),%rax
subsd  0x8(%rax),%xmm1
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x28(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  -0x70(%rbp),%xmm1
mov    -0x28(%rbp),%rax
subsd  0x8(%rax),%xmm1
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,0x10(%rax)
mov    -0x74(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cmxx_ejec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %r9d,%r13d
mov    %r8d,%ebx
mov    %rsi,%r14
mov    %rdi,%r12
movsd  %xmm2,0x10(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x28(%rsp)
mov    0xc0(%rsp),%r9
mov    0xb8(%rsp),%r8
mov    0xb0(%rsp),%rbp
movl   $0x0,0x24(%rsp)
movl   $0x0,0x20(%rsp)
movq   $0x0,(%rsp)
movq   $0x0,0x30(%rsp)
test   %ecx,%ecx
mov    $0x2,%r15d
cmovg  %ecx,%r15d
lea    0x30(%rsp),%rax
mov    %rdx,0x50(%rsp)
mov    %rdx,%rdi
mov    %ebx,%esi
mov    %r13d,%edx
mov    %rbp,%rcx
push   %rax
push   0xd0(%rsp)
call   1030 <cmxx_en@plt>
add    $0x10,%rsp
movsd  %xmm0,0x48(%rsp)
xor    %eax,%eax
cmp    %ebx,%r15d
jge    13db <cmxx_ejec+0x2bb>
mov    %r13d,0x1c(%rsp)
mov    %r12,0x38(%rsp)
mov    %r14,0x40(%rsp)
mov    0xe0(%rsp),%rdx
mov    0xd0(%rsp),%rax
movsd  0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  0x28(%rsp),%xmm1
movapd %xmm1,%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
divsd  0xdf1(%rip),%xmm0
movsd  %xmm0,0x70(%rsp)
mov    %r15d,%ecx
mov    0xb8(%rsp),%r13
lea    0x0(%r13,%rcx,8),%rsi
lea    (%rax,%rcx,4),%rdi
lea    0x0(%rbp,%rcx,8),%r9
mov    0xc8(%rsp),%r10
lea    (%r10,%rcx,8),%r12
mov    %ebx,0x18(%rsp)
sub    %r15d,%ebx
xor    %r15d,%r15d
xorps  %xmm4,%xmm4
lea    0xdba(%rip),%rcx
xor    %r14d,%r14d
movapd %xmm1,%xmm0
movsd  %xmm2,0x10(%rsp)
mov    %rsi,0x68(%rsp)
mov    %rdi,0x60(%rsp)
mov    %rbx,0x58(%rsp)
jmp    1288 <cmxx_ejec+0x168>
nopl   0x0(%rax)
movsd  0x8(%rsp),%xmm1
movsd  %xmm1,(%rsp)
add    $0x1,%r15
cmp    %r15d,%ebx
je     136b <cmxx_ejec+0x24b>
mov    (%rsi,%r15,8),%rax
movsd  (%rax),%xmm3
movsd  0x8(%rax),%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm3,%xmm3
addsd  %xmm1,%xmm3
movsd  0x10(%rax),%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm3,%xmm1
ucomisd %xmm2,%xmm1
jbe    12d9 <cmxx_ejec+0x1b9>
movl   $0xfffffffd,(%rdi,%r15,4)
ff
movq   $0x0,(%r9,%r15,8)
mov    (%r12,%r15,8),%rax
movups %xmm4,(%rax)
movq   $0x0,0x10(%rax)
mov    $0x1,%r14d
mov    0x8(%rdx),%eax
cmp    $0x3,%rax
ja     127b <cmxx_ejec+0x15b>
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsd  %xmm0,(%rsp)
jmp    127b <cmxx_ejec+0x15b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x24(%rsp),%rdi
lea    0x20(%rsp),%rsi
mov    %rsp,%rdx
mov    %r10,%rbx
mov    %r9,%rbp
call   1040 <cmio_jd2y@plt>
xorps  %xmm4,%xmm4
mov    %rbp,%r9
mov    0x60(%rsp),%rdi
mov    0x68(%rsp),%rsi
mov    0xe0(%rsp),%rdx
lea    0xcd1(%rip),%rcx
movsd  0x28(%rsp),%xmm0
movsd  0x10(%rsp),%xmm2
mov    0xb0(%rsp),%rbp
mov    %rbx,%r10
mov    0x58(%rsp),%rbx
jmp    127b <cmxx_ejec+0x15b>
nopl   0x0(%rax,%rax,1)
movsd  0x70(%rsp),%xmm1
jmp    1276 <cmxx_ejec+0x156>
test   %r14d,%r14d
je     13d9 <cmxx_ejec+0x2b9>
mov    0x38(%rsp),%rbx
lea    0x8(%rbx),%rax
mov    0x50(%rsp),%rdi
mov    0x18(%rsp),%esi
mov    0x1c(%rsp),%edx
mov    %rbp,%rcx
mov    %r13,%r8
mov    0xc0(%rsp),%r9
push   %rax
push   %r10
call   1030 <cmxx_en@plt>
mov    %r14d,%eax
add    $0x10,%rsp
mov    0x40(%rsp),%rcx
movsd  %xmm0,0x8(%rcx)
movsd  0x30(%rsp),%xmm0
subsd  0x8(%rbx),%xmm0
addsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x10(%rbx)
movsd  0x48(%rsp),%xmm0
subsd  0x8(%rcx),%xmm0
addsd  0x10(%rcx),%xmm0
movsd  %xmm0,0x10(%rcx)
jmp    13db <cmxx_ejec+0x2bb>
xor    %eax,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define i32 @cmxx_ejec(double %0, double %1, double %2, double* %3, double* nocapture %4, double* %5, i32 %6, i32 %7, i32 %8, double* %9, double** noalias %10, double** noalias %11, double** %12, i32* nocapture writeonly %13, i8** nocapture readnone %14, i32* nocapture %15, i32* nocapture readnone %16, i8* nocapture readnone %17, i8* nocapture readnone %18) {
%20 = alloca i32
%21 = alloca i32
%22 = alloca double
%23 = alloca double
%24 = bitcast i32* %20 to i8*
store i32 0, i32* %20
%25 = bitcast i32* %21 to i8*
store i32 0, i32* %21
%26 = bitcast double* %22 to i8*
store double 0.000000e+00, double* %22
%27 = bitcast double* %23 to i8*
store double 0.000000e+00, double* %23
%28 = icmp slt i32 %6, 1
%29 = select i1 %28, i32 2, i32 %6
%30 = fmul double %2, %2
%31 = call double @cmxx_en(double* %5, i32 %7, i32 %8, double* %9, double** %10, double** %11, double** %12, double* %23)
%32 = icmp slt i32 %29, %7
br i1 %32, label %33, label %87
33: ; preds = %19
%34 = getelementptr inbounds i32, i32* %15, i64 2
%35 = fsub double %0, %1
%36 = fdiv double %35, 3.652500e+02
%37 = zext i32 %29 to i64
br label %40
38: ; preds = %68
%39 = icmp eq i32 %61, 0
br i1 %39, label %87, label %72
40: ; preds = %33, %68
%41 = phi i64 [ %37, %33 ], [ %69, %68 ]
%42 = phi i32 [ 0, %33 ], [ %61, %68 ]
%43 = getelementptr inbounds double*, double** %10, i64 %41
%44 = load double*, double** %43
%45 = load double, double* %44
%46 = getelementptr inbounds double, double* %44, i64 1
%47 = load double, double* %46
%48 = fmul double %47, %47
%49 = call double @llvm.fmuladd.f64(double %45, double %45, double %48)
%50 = getelementptr inbounds double, double* %44, i64 2
%51 = load double, double* %50
%52 = call double @llvm.fmuladd.f64(double %51, double %51, double %49)
%53 = fcmp ogt double %52, %30
br i1 %53, label %54, label %60
54: ; preds = %40
%55 = getelementptr inbounds i32, i32* %13, i64 %41
store i32 -3, i32* %55
%56 = getelementptr inbounds double, double* %9, i64 %41
store double 0.000000e+00, double* %56
%57 = getelementptr inbounds double*, double** %12, i64 %41
%58 = bitcast double** %57 to i8**
%59 = load i8*, i8** %58
br label %60
60: ; preds = %54, %40
%61 = phi i32 [ 1, %54 ], [ %42, %40 ]
%62 = load i32, i32* %34
switch i32 %62, label %68 [
i32 1, label %63
i32 3, label %65
i32 0, label %66
i32 2, label %67
]
63: ; preds = %60
%64 = call i32 @cmio_jd2y(double %0, i32* %20, i32* %21, double* %22)
br label %68
65: ; preds = %60
store double %36, double* %22
br label %68
66: ; preds = %60
store double %0, double* %22
br label %68
67: ; preds = %60
store double %35, double* %22
br label %68
68: ; preds = %60, %66, %63, %67, %65
%69 = add nuw nsw i64 %41, 1
%70 = trunc i64 %69 to i32
%71 = icmp eq i32 %70, %7
br i1 %71, label %38, label %40
72: ; preds = %38
%73 = getelementptr inbounds double, double* %3, i64 1
%74 = call double @cmxx_en(double* %5, i32 %7, i32 %8, double* %9, double** %10, double** %11, double** %12, double* %73)
%75 = getelementptr inbounds double, double* %4, i64 1
store double %74, double* %75
%76 = getelementptr inbounds double, double* %3, i64 2
%77 = load double, double* %76
%78 = load double, double* %23
%79 = load double, double* %73
%80 = fsub double %78, %79
%81 = fadd double %77, %80
store double %81, double* %76
%82 = getelementptr inbounds double, double* %4, i64 2
%83 = load double, double* %82
%84 = load double, double* %75
%85 = fsub double %31, %84
%86 = fadd double %83, %85
store double %86, double* %82
br label %87
87: ; preds = %19, %72, %38
%88 = phi i32 [ %61, %72 ], [ 0, %38 ], [ 0, %19 ]
ret i32 %88
}