#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 size_t uint;

/* Variables and functions */
scalar_t__ calloc(size_t, int);
int /*<<< orphan*/ error(char *, int);
int /*<<< orphan*/ free(double *);
int simple_waveform(double *, double *, size_t *, size_t, double, double, int);
int composite_waveform(double **parsed_data, uint current_line, double *output,
                       uint *index, uint N, double srate, double dt,
                       int verbose) {
  uint i, Ni, line = 0, index_old, myindex, howmany;
  double *out_temp, *vector;
  int return_code;
  Ni = (uint)(parsed_data[current_line][0] * srate);
  out_temp = (double *)calloc(Ni, sizeof(double));
  if (out_temp == NULL) {
    error("Unable to allocate memory for <out_temp> !", verbose);
    return -1;
  }
  index_old = (*index);
  howmany = (uint)(-parsed_data[current_line][1]);
  for (line = 0; line < howmany; line++) {
    myindex = 0;
    vector = parsed_data[current_line + line];
    vector[1] = vector[9];
    return_code =
        simple_waveform(vector, out_temp, &myindex, Ni, srate, dt, verbose);
    if (return_code == -1) {
      error("simple_wav returned -1 inside composite_wav.", verbose);
      return -1;
    }
    (*index) = index_old;
    switch ((int)vector[10]) {
    case 1:
      for (i = 0; i < Ni; i++) {
        output[(*index)++] += out_temp[i];
        out_temp[i] = 0.;
      }
      break;
    case 2:
      for (i = 0; i < Ni; i++) {
        output[(*index)++] *= out_temp[i];
        out_temp[i] = 0.;
      }
      break;
    case 3:
      for (i = 0; i < Ni; i++) {
        output[(*index)++] -= out_temp[i];
        out_temp[i] = 0.;
      }
      break;
    case 4:
      for (i = 0; i < Ni; i++) {
        if (out_temp[i] == 0) {
          error("zero division!", verbose);
          return -1;
        }
        output[(*index)++] /= out_temp[i];
        out_temp[i] = 0.;
      }
      break;
    default:
      for (i = 0; i < Ni; i++) {
        output[(*index)++] += out_temp[i];
        out_temp[i] = 0.;
      }
      break;
    }
  }
  free(out_temp);
  return howmany;
}


x86 assembly (clang, -O0):
<composite_waveform>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movsd  %xmm0,-0x38(%rbp)
movsd  %xmm1,-0x40(%rbp)
mov    %r9d,-0x44(%rbp)
movq   $0x0,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xe5b(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rdi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x80(%rbp)
cmpq   $0x0,-0x80(%rbp)
jne    11f0 <composite_waveform+0xb0>
mov    -0x44(%rbp),%esi
lea    0xe51(%rip),%rdi
call   1050 <error@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1596 <composite_waveform+0x456>
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  0x8(%rax),%xmm1
movaps 0xdfd(%rip),%xmm0
pxor   %xmm0,%xmm1
movaps %xmm1,%xmm0
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xdd2(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x78(%rbp)
movq   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%rax
cmp    -0x78(%rbp),%rax
jae    1586 <composite_waveform+0x446>
movq   $0x0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%rcx
add    -0x60(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x88(%rbp)
mov    -0x88(%rbp),%rax
movsd  0x48(%rax),%xmm0
mov    -0x88(%rbp),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x88(%rbp),%rdi
mov    -0x80(%rbp),%rsi
mov    -0x58(%rbp),%rcx
movsd  -0x38(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
mov    -0x44(%rbp),%r8d
lea    -0x70(%rbp),%rdx
call   1060 <simple_waveform@plt>
mov    %eax,-0x8c(%rbp)
cmpl   $0xffffffff,-0x8c(%rbp)
jne    12e2 <composite_waveform+0x1a2>
mov    -0x44(%rbp),%esi
lea    0xd8a(%rip),%rdi
call   1050 <error@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1596 <composite_waveform+0x456>
mov    -0x68(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x88(%rbp),%rax
cvttsd2si 0x50(%rax),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x98(%rbp)
sub    $0x3,%eax
ja     1508 <composite_waveform+0x3c8>
mov    -0x98(%rbp),%rax
lea    0xd04(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    1388 <composite_waveform+0x248>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    132d <composite_waveform+0x1ed>
jmp    1570 <composite_waveform+0x430>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    13f0 <composite_waveform+0x2b0>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    1395 <composite_waveform+0x255>
jmp    1570 <composite_waveform+0x430>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    145c <composite_waveform+0x31c>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    13fd <composite_waveform+0x2bd>
jmp    1570 <composite_waveform+0x430>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    1503 <composite_waveform+0x3c3>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    14b2 <composite_waveform+0x372>
jp     14b2 <composite_waveform+0x372>
mov    -0x44(%rbp),%esi
lea    0xbe7(%rip),%rdi
call   1050 <error@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1596 <composite_waveform+0x456>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    1469 <composite_waveform+0x329>
jmp    1570 <composite_waveform+0x430>
movq   $0x0,-0x50(%rbp)
mov    -0x50(%rbp),%rax
cmp    -0x58(%rbp),%rax
jae    156b <composite_waveform+0x42b>
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x28(%rbp),%rdx
mov    (%rdx),%rcx
mov    %rcx,%rsi
add    $0x1,%rsi
mov    %rsi,(%rdx)
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    -0x50(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x50(%rbp)
jmp    1510 <composite_waveform+0x3d0>
jmp    1570 <composite_waveform+0x430>
jmp    1575 <composite_waveform+0x435>
mov    -0x60(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x60(%rbp)
jmp    1249 <composite_waveform+0x109>
mov    -0x80(%rbp),%rdi
call   1030 <free@plt>
mov    -0x78(%rbp),%rax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<composite_waveform>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rsi,%r15
mov    %rdi,%rbp
mov    (%rdi,%rsi,8),%rax
movsd  (%rax),%xmm2
movsd  %xmm0,0x90(%rsp)
mulsd  %xmm0,%xmm2
cvttsd2si %xmm2,%rax
mov    %r9d,%ebx
movsd  %xmm1,0x88(%rsp)
mov    %rcx,%r14
mov    %rdx,0x10(%rsp)
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xe6c(%rip),%xmm2
cvttsd2si %xmm2,%rdi
and    %rcx,%rdi
or     %rax,%rdi
mov    %rdi,0x28(%rsp)
mov    $0x8,%esi
call   1040 <calloc@plt>
test   %rax,%rax
je     1b30 <composite_waveform+0x9f0>
mov    %rax,%r10
mov    %ebx,0x24(%rsp)
mov    %rbp,0x80(%rsp)
mov    0x0(%rbp,%r15,8),%rax
movsd  0x8(%rax),%xmm0
xorpd  0xe38(%rip),%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,%rcx
sar    $0x3f,%rcx
subsd  0xe14(%rip),%xmm0
cvttsd2si %xmm0,%r13
and    %rcx,%r13
or     %rax,%r13
mov    0x28(%rsp),%r8
je     1b3b <composite_waveform+0x9fb>
mov    %r14,%r9
mov    (%r14),%rsi
mov    0x10(%rsp),%rdx
lea    (%rdx,%rsi,8),%r14
lea    (%rsi,%r8,1),%rax
lea    (%rdx,%rax,8),%rax
lea    (%r10,%r8,8),%rcx
lea    -0x4(%r8),%rdi
mov    %rdi,0x60(%rsp)
shr    $0x2,%rdi
add    $0x1,%rdi
cmp    %rcx,%r14
setb   %cl
cmp    %rax,%r10
setb   %al
and    %cl,%al
mov    %al,0xf(%rsp)
mov    %r8,%rax
and    $0xfffffffffffffffc,%rax
mov    %rax,0x50(%rsp)
add    %rsi,%rax
mov    %rax,0x48(%rsp)
mov    %rdi,%rax
mov    %rdi,0x58(%rsp)
and    $0xfffffffffffffffe,%rdi
mov    %rdi,0x30(%rsp)
mov    %r8,%rax
neg    %rax
mov    %rax,0x68(%rsp)
lea    0x1(%rsi),%r11
mov    %rsi,0x18(%rsp)
lea    (%rdx,%rsi,8),%rbx
add    $0x30,%rbx
lea    0x8(%rdx),%rax
mov    %rax,0x40(%rsp)
mov    %r10,%rax
add    $0x8,%rax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
mov    %r11,0x78(%rsp)
mov    %rbx,0x70(%rsp)
jmp    12c2 <composite_waveform+0x182>
add    %rsi,%rcx
mov    %rcx,%rax
mov    %rax,(%r9)
mov    0x98(%rsp),%rax
add    $0x1,%rax
cmp    %r13,%rax
je     1b3b <composite_waveform+0x9fb>
mov    %r9,%rbx
mov    %r13,%rbp
movq   $0x0,0xa0(%rsp)
mov    %r15,%r13
mov    %rax,0x98(%rsp)
add    %r15,%rax
mov    0x80(%rsp),%rcx
mov    (%rcx,%rax,8),%r15
movsd  0x48(%r15),%xmm0
movsd  %xmm0,0x8(%r15)
mov    %r15,%rdi
mov    %r10,%r12
mov    %r10,%rsi
lea    0xa0(%rsp),%rdx
mov    %r8,%rcx
movsd  0x90(%rsp),%xmm0
movsd  0x88(%rsp),%xmm1
mov    0x24(%rsp),%r8d
call   1060 <simple_waveform@plt>
cmp    $0xffffffff,%eax
je     1b4e <composite_waveform+0xa0e>
mov    %rbx,%r9
mov    0x18(%rsp),%rax
mov    %rax,(%rbx)
cvttsd2si 0x50(%r15),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     1398 <composite_waveform+0x258>
lea    0xccd(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x28(%rsp),%r8
test   %r8,%r8
mov    %r13,%r15
mov    %rbp,%r13
mov    %r12,%r10
mov    0x70(%rsp),%rbx
xorps  %xmm3,%xmm3
je     12ad <composite_waveform+0x16d>
cmp    $0x4,%r8
setb   %al
or     0xf(%rsp),%al
je     14af <composite_waveform+0x36f>
mov    0x18(%rsp),%rcx
xor    %edx,%edx
jmp    15dd <composite_waveform+0x49d>
mov    0x28(%rsp),%r8
test   %r8,%r8
mov    %r13,%r15
mov    %rbp,%r13
mov    %r12,%r10
mov    0x70(%rsp),%rbx
xorps  %xmm3,%xmm3
je     12ad <composite_waveform+0x16d>
cmp    $0x4,%r8
setb   %al
or     0xf(%rsp),%al
je     14e4 <composite_waveform+0x3a4>
mov    0x18(%rsp),%rcx
xor    %edx,%edx
jmp    1a8d <composite_waveform+0x94d>
mov    0x28(%rsp),%r8
test   %r8,%r8
mov    %r13,%r15
mov    %rbp,%r13
mov    %r12,%r10
mov    0x70(%rsp),%rbx
xorps  %xmm3,%xmm3
je     12ad <composite_waveform+0x16d>
cmp    $0x4,%r8
setb   %al
or     0xf(%rsp),%al
je     14be <composite_waveform+0x37e>
mov    0x18(%rsp),%rcx
xor    %edx,%edx
jmp    176d <composite_waveform+0x62d>
mov    0x28(%rsp),%r8
test   %r8,%r8
mov    %r13,%r15
mov    %rbp,%r13
mov    %r12,%r10
mov    0x70(%rsp),%rbx
xorps  %xmm3,%xmm3
je     12ad <composite_waveform+0x16d>
cmp    $0x4,%r8
setb   %al
or     0xf(%rsp),%al
je     14d1 <composite_waveform+0x391>
mov    0x18(%rsp),%rcx
xor    %edx,%edx
jmp    18fd <composite_waveform+0x7bd>
mov    0x28(%rsp),%r8
test   %r8,%r8
mov    %r13,%r15
mov    %rbp,%r13
mov    0x78(%rsp),%r11
mov    %r12,%r10
xorpd  %xmm2,%xmm2
je     12ad <composite_waveform+0x16d>
xor    %eax,%eax
xchg   %ax,%ax
movsd  (%r10,%rax,8),%xmm0
ucomisd %xmm2,%xmm0
jne    1482 <composite_waveform+0x342>
jnp    1b45 <composite_waveform+0xa05>
lea    (%r11,%rax,1),%rcx
mov    %rcx,(%r9)
movsd  (%r14,%rax,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r14,%rax,8)
movq   $0x0,(%r10,%rax,8)
add    $0x1,%rax
cmp    %rax,%r8
jne    1470 <composite_waveform+0x330>
jmp    12ad <composite_waveform+0x16d>
cmpq   $0x4,0x60(%rsp)
jae    14f7 <composite_waveform+0x3b7>
xor    %eax,%eax
jmp    157a <composite_waveform+0x43a>
cmpq   $0x4,0x60(%rsp)
jae    1680 <composite_waveform+0x540>
xor    %eax,%eax
jmp    170a <composite_waveform+0x5ca>
cmpq   $0x4,0x60(%rsp)
jae    1810 <composite_waveform+0x6d0>
xor    %eax,%eax
jmp    189a <composite_waveform+0x75a>
cmpq   $0x4,0x60(%rsp)
jae    19a0 <composite_waveform+0x860>
xor    %eax,%eax
jmp    1a2a <composite_waveform+0x8ea>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
xchg   %ax,%ax
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
movupd -0x30(%rbx,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd -0x20(%rbx,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,-0x30(%rbx,%rax,8)
movupd %xmm0,-0x20(%rbx,%rax,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
movupd 0x20(%r10,%rax,8),%xmm0
movupd 0x30(%r10,%rax,8),%xmm1
movupd -0x10(%rbx,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd (%rbx,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,-0x10(%rbx,%rax,8)
movupd %xmm0,(%rbx,%rax,8)
movups %xmm3,0x20(%r10,%rax,8)
movups %xmm3,0x30(%r10,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1500 <composite_waveform+0x3c0>
testb  $0x1,0x58(%rsp)
je     15c4 <composite_waveform+0x484>
mov    0x18(%rsp),%rcx
add    %rax,%rcx
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
mov    0x10(%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rdx,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rcx,8)
movupd %xmm0,0x10(%rdx,%rcx,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
mov    0x48(%rsp),%rax
mov    %rax,%rcx
mov    0x50(%rsp),%rsi
mov    %rsi,%rdx
cmp    %r8,%rsi
je     12aa <composite_waveform+0x16a>
test   $0x1,%r8b
jne    15e8 <composite_waveform+0x4a8>
mov    %rdx,%rsi
jmp    1613 <composite_waveform+0x4d3>
movsd  (%r10,%rdx,8),%xmm0
mov    0x10(%rsp),%rsi
addsd  (%rsi,%rcx,8),%xmm0
lea    0x1(%rcx),%rax
movsd  %xmm0,(%rsi,%rcx,8)
movq   $0x0,(%r10,%rdx,8)
mov    %rdx,%rsi
or     $0x1,%rsi
mov    %rax,%rcx
not    %rdx
cmp    0x68(%rsp),%rdx
je     12aa <composite_waveform+0x16a>
mov    0x40(%rsp),%rax
lea    (%rax,%rcx,8),%rax
mov    %r8,%rdx
sub    %rsi,%rdx
mov    0x38(%rsp),%rdi
lea    (%rdi,%rsi,8),%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rdi,%rsi,8),%xmm0
addsd  -0x8(%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rsi,8)
movq   $0x0,-0x8(%rdi,%rsi,8)
movsd  (%rdi,%rsi,8),%xmm0
addsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
movq   $0x0,(%rdi,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%rdx
jne    1640 <composite_waveform+0x500>
jmp    12a4 <composite_waveform+0x164>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
movupd -0x30(%rbx,%rax,8),%xmm2
mulpd  %xmm0,%xmm2
movupd -0x20(%rbx,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,-0x30(%rbx,%rax,8)
movupd %xmm0,-0x20(%rbx,%rax,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
movupd 0x20(%r10,%rax,8),%xmm0
movupd 0x30(%r10,%rax,8),%xmm1
movupd -0x10(%rbx,%rax,8),%xmm2
mulpd  %xmm0,%xmm2
movupd (%rbx,%rax,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,-0x10(%rbx,%rax,8)
movupd %xmm0,(%rbx,%rax,8)
movups %xmm3,0x20(%r10,%rax,8)
movups %xmm3,0x30(%r10,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1690 <composite_waveform+0x550>
testb  $0x1,0x58(%rsp)
je     1754 <composite_waveform+0x614>
mov    0x18(%rsp),%rcx
add    %rax,%rcx
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
mov    0x10(%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm2
mulpd  %xmm0,%xmm2
movupd 0x10(%rdx,%rcx,8),%xmm0
mulpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rcx,8)
movupd %xmm0,0x10(%rdx,%rcx,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
mov    0x48(%rsp),%rax
mov    %rax,%rcx
mov    0x50(%rsp),%rsi
mov    %rsi,%rdx
cmp    %r8,%rsi
je     12aa <composite_waveform+0x16a>
test   $0x1,%r8b
jne    1778 <composite_waveform+0x638>
mov    %rdx,%rsi
jmp    17a3 <composite_waveform+0x663>
movsd  (%r10,%rdx,8),%xmm0
mov    0x10(%rsp),%rsi
mulsd  (%rsi,%rcx,8),%xmm0
lea    0x1(%rcx),%rax
movsd  %xmm0,(%rsi,%rcx,8)
movq   $0x0,(%r10,%rdx,8)
mov    %rdx,%rsi
or     $0x1,%rsi
mov    %rax,%rcx
not    %rdx
cmp    0x68(%rsp),%rdx
je     12aa <composite_waveform+0x16a>
mov    0x40(%rsp),%rax
lea    (%rax,%rcx,8),%rax
mov    %r8,%rdx
sub    %rsi,%rdx
mov    0x38(%rsp),%rdi
lea    (%rdi,%rsi,8),%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rdi,%rsi,8),%xmm0
mulsd  -0x8(%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rsi,8)
movq   $0x0,-0x8(%rdi,%rsi,8)
movsd  (%rdi,%rsi,8),%xmm0
mulsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
movq   $0x0,(%rdi,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%rdx
jne    17d0 <composite_waveform+0x690>
jmp    12a4 <composite_waveform+0x164>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
movupd -0x30(%rbx,%rax,8),%xmm2
subpd  %xmm0,%xmm2
movupd -0x20(%rbx,%rax,8),%xmm0
subpd  %xmm1,%xmm0
movupd %xmm2,-0x30(%rbx,%rax,8)
movupd %xmm0,-0x20(%rbx,%rax,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
movupd 0x20(%r10,%rax,8),%xmm0
movupd 0x30(%r10,%rax,8),%xmm1
movupd -0x10(%rbx,%rax,8),%xmm2
subpd  %xmm0,%xmm2
movupd (%rbx,%rax,8),%xmm0
subpd  %xmm1,%xmm0
movupd %xmm2,-0x10(%rbx,%rax,8)
movupd %xmm0,(%rbx,%rax,8)
movups %xmm3,0x20(%r10,%rax,8)
movups %xmm3,0x30(%r10,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1820 <composite_waveform+0x6e0>
testb  $0x1,0x58(%rsp)
je     18e4 <composite_waveform+0x7a4>
mov    0x18(%rsp),%rcx
add    %rax,%rcx
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
mov    0x10(%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm2
subpd  %xmm0,%xmm2
movupd 0x10(%rdx,%rcx,8),%xmm0
subpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rcx,8)
movupd %xmm0,0x10(%rdx,%rcx,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
mov    0x48(%rsp),%rax
mov    %rax,%rcx
mov    0x50(%rsp),%rsi
mov    %rsi,%rdx
cmp    %r8,%rsi
je     12aa <composite_waveform+0x16a>
test   $0x1,%r8b
jne    1908 <composite_waveform+0x7c8>
mov    %rdx,%rsi
jmp    1933 <composite_waveform+0x7f3>
mov    0x10(%rsp),%rsi
movsd  (%rsi,%rcx,8),%xmm0
subsd  (%r10,%rdx,8),%xmm0
lea    0x1(%rcx),%rax
movsd  %xmm0,(%rsi,%rcx,8)
movq   $0x0,(%r10,%rdx,8)
mov    %rdx,%rsi
or     $0x1,%rsi
mov    %rax,%rcx
not    %rdx
cmp    0x68(%rsp),%rdx
je     12aa <composite_waveform+0x16a>
mov    0x40(%rsp),%rax
lea    (%rax,%rcx,8),%rax
mov    %r8,%rdx
sub    %rsi,%rdx
mov    0x38(%rsp),%rdi
lea    (%rdi,%rsi,8),%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rax,%rsi,8),%xmm0
subsd  -0x8(%rdi,%rsi,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rsi,8)
movq   $0x0,-0x8(%rdi,%rsi,8)
movsd  (%rax,%rsi,8),%xmm0
subsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
movq   $0x0,(%rdi,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%rdx
jne    1960 <composite_waveform+0x820>
jmp    12a4 <composite_waveform+0x164>
mov    0x30(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
movupd -0x30(%rbx,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd -0x20(%rbx,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,-0x30(%rbx,%rax,8)
movupd %xmm0,-0x20(%rbx,%rax,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
movupd 0x20(%r10,%rax,8),%xmm0
movupd 0x30(%r10,%rax,8),%xmm1
movupd -0x10(%rbx,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd (%rbx,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,-0x10(%rbx,%rax,8)
movupd %xmm0,(%rbx,%rax,8)
movups %xmm3,0x20(%r10,%rax,8)
movups %xmm3,0x30(%r10,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    19b0 <composite_waveform+0x870>
testb  $0x1,0x58(%rsp)
je     1a74 <composite_waveform+0x934>
mov    0x18(%rsp),%rcx
add    %rax,%rcx
movupd (%r10,%rax,8),%xmm0
movupd 0x10(%r10,%rax,8),%xmm1
mov    0x10(%rsp),%rdx
movupd (%rdx,%rcx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rdx,%rcx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rdx,%rcx,8)
movupd %xmm0,0x10(%rdx,%rcx,8)
movups %xmm3,(%r10,%rax,8)
movups %xmm3,0x10(%r10,%rax,8)
mov    0x48(%rsp),%rax
mov    %rax,%rcx
mov    0x50(%rsp),%rsi
mov    %rsi,%rdx
cmp    %r8,%rsi
je     12aa <composite_waveform+0x16a>
test   $0x1,%r8b
jne    1a98 <composite_waveform+0x958>
mov    %rdx,%rsi
jmp    1ac3 <composite_waveform+0x983>
movsd  (%r10,%rdx,8),%xmm0
mov    0x10(%rsp),%rsi
addsd  (%rsi,%rcx,8),%xmm0
lea    0x1(%rcx),%rax
movsd  %xmm0,(%rsi,%rcx,8)
movq   $0x0,(%r10,%rdx,8)
mov    %rdx,%rsi
or     $0x1,%rsi
mov    %rax,%rcx
not    %rdx
cmp    0x68(%rsp),%rdx
je     12aa <composite_waveform+0x16a>
mov    0x40(%rsp),%rax
lea    (%rax,%rcx,8),%rax
mov    %r8,%rdx
sub    %rsi,%rdx
mov    0x38(%rsp),%rdi
lea    (%rdi,%rsi,8),%rdi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rdi,%rsi,8),%xmm0
addsd  -0x8(%rax,%rsi,8),%xmm0
movsd  %xmm0,-0x8(%rax,%rsi,8)
movq   $0x0,-0x8(%rdi,%rsi,8)
movsd  (%rdi,%rsi,8),%xmm0
addsd  (%rax,%rsi,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
movq   $0x0,(%rdi,%rsi,8)
add    $0x2,%rsi
cmp    %rsi,%rdx
jne    1af0 <composite_waveform+0x9b0>
jmp    12a4 <composite_waveform+0x164>
lea    0x4f9(%rip),%rdi
mov    %ebx,%esi
jmp    1b59 <composite_waveform+0xa19>
mov    %r10,%rdi
call   1030 <free@plt>
jmp    1b64 <composite_waveform+0xa24>
lea    0x53c(%rip),%rdi
jmp    1b55 <composite_waveform+0xa15>
lea    0x506(%rip),%rdi
mov    0x24(%rsp),%esi
call   1050 <error@plt>
mov    $0xffffffff,%r13d
mov    %r13d,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str = [43 x i8] c"Unable to allocate memory for <out_temp> !\00"
@.str.1 = [45 x i8] c"simple_wav returned -1 inside composite_wav.\00"
@.str.2 = [15 x i8] c"zero division!\00"
define i32 @composite_waveform(double** nocapture %0, i64 %1, double* nocapture %2, i64* nocapture %3, i64 %4, double %5, double %6, i32 %7) {
%9 = alloca i64
%10 = bitcast i64* %9 to i8*
%11 = getelementptr inbounds double*, double** %0, i64 %1
%12 = load double*, double** %11
%13 = load double, double* %12
%14 = fmul double %13, %5
%15 = fptoui double %14 to i64
%16 = tail call i64 @calloc(i64 %15, i32 8)
%17 = inttoptr i64 %16 to double*
%18 = inttoptr i64 %16 to i8*
%19 = icmp eq i64 %16, 0
br i1 %19, label %20, label %22
20: ; preds = %8
%21 = tail call i32 @error(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0), i32 %7)
br label %579
22: ; preds = %8
%23 = load i64, i64* %3
%24 = load double*, double** %11
%25 = getelementptr inbounds double, double* %24, i64 1
%26 = load double, double* %25
%27 = fneg double %26
%28 = fptoui double %27 to i64
%29 = icmp eq i64 %28, 0
br i1 %29, label %576, label %30
30: ; preds = %22
%31 = icmp eq i64 %15, 0
%32 = getelementptr double, double* %2, i64 %23
%33 = add i64 %23, %15
%34 = getelementptr double, double* %2, i64 %33
%35 = bitcast double* %34 to i8*
%36 = getelementptr double, double* %17, i64 %15
%37 = getelementptr double, double* %2, i64 %23
%38 = add i64 %23, %15
%39 = getelementptr double, double* %2, i64 %38
%40 = bitcast double* %39 to i8*
%41 = getelementptr double, double* %17, i64 %15
%42 = getelementptr double, double* %2, i64 %23
%43 = add i64 %23, %15
%44 = getelementptr double, double* %2, i64 %43
%45 = bitcast double* %44 to i8*
%46 = getelementptr double, double* %17, i64 %15
%47 = getelementptr double, double* %2, i64 %23
%48 = add i64 %23, %15
%49 = getelementptr double, double* %2, i64 %48
%50 = bitcast double* %49 to i8*
%51 = getelementptr double, double* %17, i64 %15
%52 = add i64 %15, -4
%53 = lshr i64 %52, 2
%54 = add nuw nsw i64 %53, 1
%55 = icmp ult i64 %15, 4
%56 = icmp ult double* %47, %51
%57 = icmp ult i8* %18, %50
%58 = and i1 %56, %57
%59 = and i64 %15, -4
%60 = add i64 %23, %59
%61 = and i64 %54, 1
%62 = icmp ult i64 %52, 4
%63 = and i64 %54, 9223372036854775806
%64 = icmp eq i64 %61, 0
%65 = icmp eq i64 %59, %15
%66 = and i64 %15, 1
%67 = icmp eq i64 %66, 0
%68 = sub i64 0, %15
%69 = icmp ult i64 %15, 4
%70 = icmp ult double* %42, %46
%71 = icmp ult i8* %18, %45
%72 = and i1 %70, %71
%73 = and i64 %15, -4
%74 = add i64 %23, %73
%75 = and i64 %54, 1
%76 = icmp ult i64 %52, 4
%77 = and i64 %54, 9223372036854775806
%78 = icmp eq i64 %75, 0
%79 = icmp eq i64 %73, %15
%80 = and i64 %15, 1
%81 = icmp eq i64 %80, 0
%82 = sub i64 0, %15
%83 = icmp ult i64 %15, 4
%84 = icmp ult double* %37, %41
%85 = icmp ult i8* %18, %40
%86 = and i1 %84, %85
%87 = and i64 %15, -4
%88 = add i64 %23, %87
%89 = and i64 %54, 1
%90 = icmp ult i64 %52, 4
%91 = and i64 %54, 9223372036854775806
%92 = icmp eq i64 %89, 0
%93 = icmp eq i64 %87, %15
%94 = and i64 %15, 1
%95 = icmp eq i64 %94, 0
%96 = sub i64 0, %15
%97 = icmp ult i64 %15, 4
%98 = icmp ult double* %32, %36
%99 = icmp ult i8* %18, %35
%100 = and i1 %98, %99
%101 = and i64 %15, -4
%102 = add i64 %23, %101
%103 = and i64 %54, 1
%104 = icmp ult i64 %52, 4
%105 = and i64 %54, 9223372036854775806
%106 = icmp eq i64 %103, 0
%107 = icmp eq i64 %101, %15
%108 = and i64 %15, 1
%109 = icmp eq i64 %108, 0
%110 = sub i64 0, %15
br label %111
111: ; preds = %30, %573
%112 = phi i64 [ 0, %30 ], [ %574, %573 ]
store i64 0, i64* %9
%113 = add i64 %112, %1
%114 = getelementptr inbounds double*, double** %0, i64 %113
%115 = load double*, double** %114
%116 = getelementptr inbounds double, double* %115, i64 9
%117 = load double, double* %116
%118 = getelementptr inbounds double, double* %115, i64 1
store double %117, double* %118
%119 = call i32 @simple_waveform(double* %115, double* %17, i64* %9, i64 %15, double %5, double %6, i32 %7)
%120 = icmp eq i32 %119, -1
br i1 %120, label %121, label %123
121: ; preds = %111
%122 = call i32 @error(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0), i32 %7)
br label %579
123: ; preds = %111
store i64 %23, i64* %3
%124 = getelementptr inbounds double, double* %115, i64 10
%125 = load double, double* %124
%126 = fptosi double %125 to i32
switch i32 %126, label %395 [
i32 1, label %306
i32 2, label %217
i32 3, label %128
i32 4, label %127
]
127: ; preds = %123
br i1 %31, label %573, label %538
128: ; preds = %123
br i1 %31, label %573, label %129
129: ; preds = %128
%130 = select i1 %55, i1 true, i1 %58
br i1 %130, label %200, label %131
131: ; preds = %129
br i1 %62, label %177, label %132
132: ; preds = %131, %132
%133 = phi i64 [ %174, %132 ], [ 0, %131 ]
%134 = phi i64 [ %175, %132 ], [ 0, %131 ]
%135 = add i64 %23, %133
%136 = getelementptr inbounds double, double* %17, i64 %133
%137 = bitcast double* %136 to <2 x double>*
%138 = load <2 x double>, <2 x double>* %137
%139 = getelementptr inbounds double, double* %136, i64 2
%140 = bitcast double* %139 to <2 x double>*
%141 = load <2 x double>, <2 x double>* %140
%142 = getelementptr inbounds double, double* %2, i64 %135
%143 = bitcast double* %142 to <2 x double>*
%144 = load <2 x double>, <2 x double>* %143
%145 = getelementptr inbounds double, double* %142, i64 2
%146 = bitcast double* %145 to <2 x double>*
%147 = load <2 x double>, <2 x double>* %146
%148 = fsub <2 x double> %144, %138
%149 = fsub <2 x double> %147, %141
%150 = bitcast double* %142 to <2 x double>*
store <2 x double> %148, <2 x double>* %150
%151 = bitcast double* %145 to <2 x double>*
store <2 x double> %149, <2 x double>* %151
%152 = bitcast double* %136 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %152
%153 = bitcast double* %139 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %153
%154 = or i64 %133, 4
%155 = add i64 %23, %154
%156 = getelementptr inbounds double, double* %17, i64 %154
%157 = bitcast double* %156 to <2 x double>*
%158 = load <2 x double>, <2 x double>* %157
%159 = getelementptr inbounds double, double* %156, i64 2
%160 = bitcast double* %159 to <2 x double>*
%161 = load <2 x double>, <2 x double>* %160
%162 = getelementptr inbounds double, double* %2, i64 %155
%163 = bitcast double* %162 to <2 x double>*
%164 = load <2 x double>, <2 x double>* %163
%165 = getelementptr inbounds double, double* %162, i64 2
%166 = bitcast double* %165 to <2 x double>*
%167 = load <2 x double>, <2 x double>* %166
%168 = fsub <2 x double> %164, %158
%169 = fsub <2 x double> %167, %161
%170 = bitcast double* %162 to <2 x double>*
store <2 x double> %168, <2 x double>* %170
%171 = bitcast double* %165 to <2 x double>*
store <2 x double> %169, <2 x double>* %171
%172 = bitcast double* %156 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %172
%173 = bitcast double* %159 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %173
%174 = add nuw i64 %133, 8
%175 = add i64 %134, 2
%176 = icmp eq i64 %175, %63
br i1 %176, label %177, label %132
177: ; preds = %132, %131
%178 = phi i64 [ 0, %131 ], [ %174, %132 ]
br i1 %64, label %199, label %179
179: ; preds = %177
%180 = add i64 %23, %178
%181 = getelementptr inbounds double, double* %17, i64 %178
%182 = bitcast double* %181 to <2 x double>*
%183 = load <2 x double>, <2 x double>* %182
%184 = getelementptr inbounds double, double* %181, i64 2
%185 = bitcast double* %184 to <2 x double>*
%186 = load <2 x double>, <2 x double>* %185
%187 = getelementptr inbounds double, double* %2, i64 %180
%188 = bitcast double* %187 to <2 x double>*
%189 = load <2 x double>, <2 x double>* %188
%190 = getelementptr inbounds double, double* %187, i64 2
%191 = bitcast double* %190 to <2 x double>*
%192 = load <2 x double>, <2 x double>* %191
%193 = fsub <2 x double> %189, %183
%194 = fsub <2 x double> %192, %186
%195 = bitcast double* %187 to <2 x double>*
store <2 x double> %193, <2 x double>* %195
%196 = bitcast double* %190 to <2 x double>*
store <2 x double> %194, <2 x double>* %196
%197 = bitcast double* %181 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %197
%198 = bitcast double* %184 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %198
br label %199
199: ; preds = %177, %179
br i1 %65, label %571, label %200
200: ; preds = %129, %199
%201 = phi i64 [ %23, %129 ], [ %60, %199 ]
%202 = phi i64 [ 0, %129 ], [ %59, %199 ]
%203 = xor i64 %202, -1
br i1 %67, label %212, label %204
204: ; preds = %200
%205 = getelementptr inbounds double, double* %17, i64 %202
%206 = load double, double* %205
%207 = add i64 %201, 1
%208 = getelementptr inbounds double, double* %2, i64 %201
%209 = load double, double* %208
%210 = fsub double %209, %206
store double %210, double* %208
store double 0.000000e+00, double* %205
%211 = or i64 %202, 1
br label %212
212: ; preds = %204, %200
%213 = phi i64 [ undef, %200 ], [ %207, %204 ]
%214 = phi i64 [ %201, %200 ], [ %207, %204 ]
%215 = phi i64 [ %202, %200 ], [ %211, %204 ]
%216 = icmp eq i64 %203, %68
br i1 %216, label %571, label %520
217: ; preds = %123
br i1 %31, label %573, label %218
218: ; preds = %217
%219 = select i1 %69, i1 true, i1 %72
br i1 %219, label %289, label %220
220: ; preds = %218
br i1 %76, label %266, label %221
221: ; preds = %220, %221
%222 = phi i64 [ %263, %221 ], [ 0, %220 ]
%223 = phi i64 [ %264, %221 ], [ 0, %220 ]
%224 = add i64 %23, %222
%225 = getelementptr inbounds double, double* %17, i64 %222
%226 = bitcast double* %225 to <2 x double>*
%227 = load <2 x double>, <2 x double>* %226
%228 = getelementptr inbounds double, double* %225, i64 2
%229 = bitcast double* %228 to <2 x double>*
%230 = load <2 x double>, <2 x double>* %229
%231 = getelementptr inbounds double, double* %2, i64 %224
%232 = bitcast double* %231 to <2 x double>*
%233 = load <2 x double>, <2 x double>* %232
%234 = getelementptr inbounds double, double* %231, i64 2
%235 = bitcast double* %234 to <2 x double>*
%236 = load <2 x double>, <2 x double>* %235
%237 = fmul <2 x double> %227, %233
%238 = fmul <2 x double> %230, %236
%239 = bitcast double* %231 to <2 x double>*
store <2 x double> %237, <2 x double>* %239
%240 = bitcast double* %234 to <2 x double>*
store <2 x double> %238, <2 x double>* %240
%241 = bitcast double* %225 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %241
%242 = bitcast double* %228 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %242
%243 = or i64 %222, 4
%244 = add i64 %23, %243
%245 = getelementptr inbounds double, double* %17, i64 %243
%246 = bitcast double* %245 to <2 x double>*
%247 = load <2 x double>, <2 x double>* %246
%248 = getelementptr inbounds double, double* %245, i64 2
%249 = bitcast double* %248 to <2 x double>*
%250 = load <2 x double>, <2 x double>* %249
%251 = getelementptr inbounds double, double* %2, i64 %244
%252 = bitcast double* %251 to <2 x double>*
%253 = load <2 x double>, <2 x double>* %252
%254 = getelementptr inbounds double, double* %251, i64 2
%255 = bitcast double* %254 to <2 x double>*
%256 = load <2 x double>, <2 x double>* %255
%257 = fmul <2 x double> %247, %253
%258 = fmul <2 x double> %250, %256
%259 = bitcast double* %251 to <2 x double>*
store <2 x double> %257, <2 x double>* %259
%260 = bitcast double* %254 to <2 x double>*
store <2 x double> %258, <2 x double>* %260
%261 = bitcast double* %245 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %261
%262 = bitcast double* %248 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %262
%263 = add nuw i64 %222, 8
%264 = add i64 %223, 2
%265 = icmp eq i64 %264, %77
br i1 %265, label %266, label %221
266: ; preds = %221, %220
%267 = phi i64 [ 0, %220 ], [ %263, %221 ]
br i1 %78, label %288, label %268
268: ; preds = %266
%269 = add i64 %23, %267
%270 = getelementptr inbounds double, double* %17, i64 %267
%271 = bitcast double* %270 to <2 x double>*
%272 = load <2 x double>, <2 x double>* %271
%273 = getelementptr inbounds double, double* %270, i64 2
%274 = bitcast double* %273 to <2 x double>*
%275 = load <2 x double>, <2 x double>* %274
%276 = getelementptr inbounds double, double* %2, i64 %269
%277 = bitcast double* %276 to <2 x double>*
%278 = load <2 x double>, <2 x double>* %277
%279 = getelementptr inbounds double, double* %276, i64 2
%280 = bitcast double* %279 to <2 x double>*
%281 = load <2 x double>, <2 x double>* %280
%282 = fmul <2 x double> %272, %278
%283 = fmul <2 x double> %275, %281
%284 = bitcast double* %276 to <2 x double>*
store <2 x double> %282, <2 x double>* %284
%285 = bitcast double* %279 to <2 x double>*
store <2 x double> %283, <2 x double>* %285
%286 = bitcast double* %270 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %286
%287 = bitcast double* %273 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %287
br label %288
288: ; preds = %266, %268
br i1 %79, label %571, label %289
289: ; preds = %218, %288
%290 = phi i64 [ %23, %218 ], [ %74, %288 ]
%291 = phi i64 [ 0, %218 ], [ %73, %288 ]
%292 = xor i64 %291, -1
br i1 %81, label %301, label %293
293: ; preds = %289
%294 = getelementptr inbounds double, double* %17, i64 %291
%295 = load double, double* %294
%296 = add i64 %290, 1
%297 = getelementptr inbounds double, double* %2, i64 %290
%298 = load double, double* %297
%299 = fmul double %295, %298
store double %299, double* %297
store double 0.000000e+00, double* %294
%300 = or i64 %291, 1
br label %301
301: ; preds = %293, %289
%302 = phi i64 [ undef, %289 ], [ %296, %293 ]
%303 = phi i64 [ %290, %289 ], [ %296, %293 ]
%304 = phi i64 [ %291, %289 ], [ %300, %293 ]
%305 = icmp eq i64 %292, %82
br i1 %305, label %571, label %502
306: ; preds = %123
br i1 %31, label %573, label %307
307: ; preds = %306
%308 = select i1 %83, i1 true, i1 %86
br i1 %308, label %378, label %309
309: ; preds = %307
br i1 %90, label %355, label %310
310: ; preds = %309, %310
%311 = phi i64 [ %352, %310 ], [ 0, %309 ]
%312 = phi i64 [ %353, %310 ], [ 0, %309 ]
%313 = add i64 %23, %311
%314 = getelementptr inbounds double, double* %17, i64 %311
%315 = bitcast double* %314 to <2 x double>*
%316 = load <2 x double>, <2 x double>* %315
%317 = getelementptr inbounds double, double* %314, i64 2
%318 = bitcast double* %317 to <2 x double>*
%319 = load <2 x double>, <2 x double>* %318
%320 = getelementptr inbounds double, double* %2, i64 %313
%321 = bitcast double* %320 to <2 x double>*
%322 = load <2 x double>, <2 x double>* %321
%323 = getelementptr inbounds double, double* %320, i64 2
%324 = bitcast double* %323 to <2 x double>*
%325 = load <2 x double>, <2 x double>* %324
%326 = fadd <2 x double> %316, %322
%327 = fadd <2 x double> %319, %325
%328 = bitcast double* %320 to <2 x double>*
store <2 x double> %326, <2 x double>* %328
%329 = bitcast double* %323 to <2 x double>*
store <2 x double> %327, <2 x double>* %329
%330 = bitcast double* %314 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %330
%331 = bitcast double* %317 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %331
%332 = or i64 %311, 4
%333 = add i64 %23, %332
%334 = getelementptr inbounds double, double* %17, i64 %332
%335 = bitcast double* %334 to <2 x double>*
%336 = load <2 x double>, <2 x double>* %335
%337 = getelementptr inbounds double, double* %334, i64 2
%338 = bitcast double* %337 to <2 x double>*
%339 = load <2 x double>, <2 x double>* %338
%340 = getelementptr inbounds double, double* %2, i64 %333
%341 = bitcast double* %340 to <2 x double>*
%342 = load <2 x double>, <2 x double>* %341
%343 = getelementptr inbounds double, double* %340, i64 2
%344 = bitcast double* %343 to <2 x double>*
%345 = load <2 x double>, <2 x double>* %344
%346 = fadd <2 x double> %336, %342
%347 = fadd <2 x double> %339, %345
%348 = bitcast double* %340 to <2 x double>*
store <2 x double> %346, <2 x double>* %348
%349 = bitcast double* %343 to <2 x double>*
store <2 x double> %347, <2 x double>* %349
%350 = bitcast double* %334 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %350
%351 = bitcast double* %337 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %351
%352 = add nuw i64 %311, 8
%353 = add i64 %312, 2
%354 = icmp eq i64 %353, %91
br i1 %354, label %355, label %310
355: ; preds = %310, %309
%356 = phi i64 [ 0, %309 ], [ %352, %310 ]
br i1 %92, label %377, label %357
357: ; preds = %355
%358 = add i64 %23, %356
%359 = getelementptr inbounds double, double* %17, i64 %356
%360 = bitcast double* %359 to <2 x double>*
%361 = load <2 x double>, <2 x double>* %360
%362 = getelementptr inbounds double, double* %359, i64 2
%363 = bitcast double* %362 to <2 x double>*
%364 = load <2 x double>, <2 x double>* %363
%365 = getelementptr inbounds double, double* %2, i64 %358
%366 = bitcast double* %365 to <2 x double>*
%367 = load <2 x double>, <2 x double>* %366
%368 = getelementptr inbounds double, double* %365, i64 2
%369 = bitcast double* %368 to <2 x double>*
%370 = load <2 x double>, <2 x double>* %369
%371 = fadd <2 x double> %361, %367
%372 = fadd <2 x double> %364, %370
%373 = bitcast double* %365 to <2 x double>*
store <2 x double> %371, <2 x double>* %373
%374 = bitcast double* %368 to <2 x double>*
store <2 x double> %372, <2 x double>* %374
%375 = bitcast double* %359 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %375
%376 = bitcast double* %362 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %376
br label %377
377: ; preds = %355, %357
br i1 %93, label %571, label %378
378: ; preds = %307, %377
%379 = phi i64 [ %23, %307 ], [ %88, %377 ]
%380 = phi i64 [ 0, %307 ], [ %87, %377 ]
%381 = xor i64 %380, -1
br i1 %95, label %390, label %382
382: ; preds = %378
%383 = getelementptr inbounds double, double* %17, i64 %380
%384 = load double, double* %383
%385 = add i64 %379, 1
%386 = getelementptr inbounds double, double* %2, i64 %379
%387 = load double, double* %386
%388 = fadd double %384, %387
store double %388, double* %386
store double 0.000000e+00, double* %383
%389 = or i64 %380, 1
br label %390
390: ; preds = %382, %378
%391 = phi i64 [ undef, %378 ], [ %385, %382 ]
%392 = phi i64 [ %379, %378 ], [ %385, %382 ]
%393 = phi i64 [ %380, %378 ], [ %389, %382 ]
%394 = icmp eq i64 %381, %96
br i1 %394, label %571, label %484
395: ; preds = %123
br i1 %31, label %573, label %396
396: ; preds = %395
%397 = select i1 %97, i1 true, i1 %100
br i1 %397, label %467, label %398
398: ; preds = %396
br i1 %104, label %444, label %399
399: ; preds = %398, %399
%400 = phi i64 [ %441, %399 ], [ 0, %398 ]
%401 = phi i64 [ %442, %399 ], [ 0, %398 ]
%402 = add i64 %23, %400
%403 = getelementptr inbounds double, double* %17, i64 %400
%404 = bitcast double* %403 to <2 x double>*
%405 = load <2 x double>, <2 x double>* %404
%406 = getelementptr inbounds double, double* %403, i64 2
%407 = bitcast double* %406 to <2 x double>*
%408 = load <2 x double>, <2 x double>* %407
%409 = getelementptr inbounds double, double* %2, i64 %402
%410 = bitcast double* %409 to <2 x double>*
%411 = load <2 x double>, <2 x double>* %410
%412 = getelementptr inbounds double, double* %409, i64 2
%413 = bitcast double* %412 to <2 x double>*
%414 = load <2 x double>, <2 x double>* %413
%415 = fadd <2 x double> %405, %411
%416 = fadd <2 x double> %408, %414
%417 = bitcast double* %409 to <2 x double>*
store <2 x double> %415, <2 x double>* %417
%418 = bitcast double* %412 to <2 x double>*
store <2 x double> %416, <2 x double>* %418
%419 = bitcast double* %403 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %419
%420 = bitcast double* %406 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %420
%421 = or i64 %400, 4
%422 = add i64 %23, %421
%423 = getelementptr inbounds double, double* %17, i64 %421
%424 = bitcast double* %423 to <2 x double>*
%425 = load <2 x double>, <2 x double>* %424
%426 = getelementptr inbounds double, double* %423, i64 2
%427 = bitcast double* %426 to <2 x double>*
%428 = load <2 x double>, <2 x double>* %427
%429 = getelementptr inbounds double, double* %2, i64 %422
%430 = bitcast double* %429 to <2 x double>*
%431 = load <2 x double>, <2 x double>* %430
%432 = getelementptr inbounds double, double* %429, i64 2
%433 = bitcast double* %432 to <2 x double>*
%434 = load <2 x double>, <2 x double>* %433
%435 = fadd <2 x double> %425, %431
%436 = fadd <2 x double> %428, %434
%437 = bitcast double* %429 to <2 x double>*
store <2 x double> %435, <2 x double>* %437
%438 = bitcast double* %432 to <2 x double>*
store <2 x double> %436, <2 x double>* %438
%439 = bitcast double* %423 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %439
%440 = bitcast double* %426 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %440
%441 = add nuw i64 %400, 8
%442 = add i64 %401, 2
%443 = icmp eq i64 %442, %105
br i1 %443, label %444, label %399
444: ; preds = %399, %398
%445 = phi i64 [ 0, %398 ], [ %441, %399 ]
br i1 %106, label %466, label %446
446: ; preds = %444
%447 = add i64 %23, %445
%448 = getelementptr inbounds double, double* %17, i64 %445
%449 = bitcast double* %448 to <2 x double>*
%450 = load <2 x double>, <2 x double>* %449
%451 = getelementptr inbounds double, double* %448, i64 2
%452 = bitcast double* %451 to <2 x double>*
%453 = load <2 x double>, <2 x double>* %452
%454 = getelementptr inbounds double, double* %2, i64 %447
%455 = bitcast double* %454 to <2 x double>*
%456 = load <2 x double>, <2 x double>* %455
%457 = getelementptr inbounds double, double* %454, i64 2
%458 = bitcast double* %457 to <2 x double>*
%459 = load <2 x double>, <2 x double>* %458
%460 = fadd <2 x double> %450, %456
%461 = fadd <2 x double> %453, %459
%462 = bitcast double* %454 to <2 x double>*
store <2 x double> %460, <2 x double>* %462
%463 = bitcast double* %457 to <2 x double>*
store <2 x double> %461, <2 x double>* %463
%464 = bitcast double* %448 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %464
%465 = bitcast double* %451 to <2 x double>*
store <2 x double> zeroinitializer, <2 x double>* %465
br label %466
466: ; preds = %444, %446
br i1 %107, label %571, label %467
467: ; preds = %396, %466
%468 = phi i64 [ %23, %396 ], [ %102, %466 ]
%469 = phi i64 [ 0, %396 ], [ %101, %466 ]
%470 = xor i64 %469, -1
br i1 %109, label %479, label %471
471: ; preds = %467
%472 = getelementptr inbounds double, double* %17, i64 %469
%473 = load double, double* %472
%474 = add i64 %468, 1
%475 = getelementptr inbounds double, double* %2, i64 %468
%476 = load double, double* %475
%477 = fadd double %473, %476
store double %477, double* %475
store double 0.000000e+00, double* %472
%478 = or i64 %469, 1
br label %479
479: ; preds = %471, %467
%480 = phi i64 [ undef, %467 ], [ %474, %471 ]
%481 = phi i64 [ %468, %467 ], [ %474, %471 ]
%482 = phi i64 [ %469, %467 ], [ %478, %471 ]
%483 = icmp eq i64 %470, %110
br i1 %483, label %571, label %553
484: ; preds = %390, %484
%485 = phi i64 [ %496, %484 ], [ %392, %390 ]
%486 = phi i64 [ %500, %484 ], [ %393, %390 ]
%487 = getelementptr inbounds double, double* %17, i64 %486
%488 = load double, double* %487
%489 = add i64 %485, 1
%490 = getelementptr inbounds double, double* %2, i64 %485
%491 = load double, double* %490
%492 = fadd double %488, %491
store double %492, double* %490
store double 0.000000e+00, double* %487
%493 = add nuw i64 %486, 1
%494 = getelementptr inbounds double, double* %17, i64 %493
%495 = load double, double* %494
%496 = add i64 %485, 2
%497 = getelementptr inbounds double, double* %2, i64 %489
%498 = load double, double* %497
%499 = fadd double %495, %498
store double %499, double* %497
store double 0.000000e+00, double* %494
%500 = add nuw i64 %486, 2
%501 = icmp eq i64 %500, %15
br i1 %501, label %571, label %484
502: ; preds = %301, %502
%503 = phi i64 [ %514, %502 ], [ %303, %301 ]
%504 = phi i64 [ %518, %502 ], [ %304, %301 ]
%505 = getelementptr inbounds double, double* %17, i64 %504
%506 = load double, double* %505
%507 = add i64 %503, 1
%508 = getelementptr inbounds double, double* %2, i64 %503
%509 = load double, double* %508
%510 = fmul double %506, %509
store double %510, double* %508
store double 0.000000e+00, double* %505
%511 = add nuw i64 %504, 1
%512 = getelementptr inbounds double, double* %17, i64 %511
%513 = load double, double* %512
%514 = add i64 %503, 2
%515 = getelementptr inbounds double, double* %2, i64 %507
%516 = load double, double* %515
%517 = fmul double %513, %516
store double %517, double* %515
store double 0.000000e+00, double* %512
%518 = add nuw i64 %504, 2
%519 = icmp eq i64 %518, %15
br i1 %519, label %571, label %502
520: ; preds = %212, %520
%521 = phi i64 [ %532, %520 ], [ %214, %212 ]
%522 = phi i64 [ %536, %520 ], [ %215, %212 ]
%523 = getelementptr inbounds double, double* %17, i64 %522
%524 = load double, double* %523
%525 = add i64 %521, 1
%526 = getelementptr inbounds double, double* %2, i64 %521
%527 = load double, double* %526
%528 = fsub double %527, %524
store double %528, double* %526
store double 0.000000e+00, double* %523
%529 = add nuw i64 %522, 1
%530 = getelementptr inbounds double, double* %17, i64 %529
%531 = load double, double* %530
%532 = add i64 %521, 2
%533 = getelementptr inbounds double, double* %2, i64 %525
%534 = load double, double* %533
%535 = fsub double %534, %531
store double %535, double* %533
store double 0.000000e+00, double* %530
%536 = add nuw i64 %522, 2
%537 = icmp eq i64 %536, %15
br i1 %537, label %571, label %520
538: ; preds = %127, %546
%539 = phi i64 [ %547, %546 ], [ %23, %127 ]
%540 = phi i64 [ %551, %546 ], [ 0, %127 ]
%541 = getelementptr inbounds double, double* %17, i64 %540
%542 = load double, double* %541
%543 = fcmp oeq double %542, 0.000000e+00
br i1 %543, label %544, label %546
544: ; preds = %538
%545 = call i32 @error(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i32 %7)
br label %579
546: ; preds = %538
%547 = add i64 %539, 1
store i64 %547, i64* %3
%548 = getelementptr inbounds double, double* %2, i64 %539
%549 = load double, double* %548
%550 = fdiv double %549, %542
store double %550, double* %548
store double 0.000000e+00, double* %541
%551 = add nuw i64 %540, 1
%552 = icmp eq i64 %551, %15
br i1 %552, label %573, label %538
553: ; preds = %479, %553
%554 = phi i64 [ %565, %553 ], [ %481, %479 ]
%555 = phi i64 [ %569, %553 ], [ %482, %479 ]
%556 = getelementptr inbounds double, double* %17, i64 %555
%557 = load double, double* %556
%558 = add i64 %554, 1
%559 = getelementptr inbounds double, double* %2, i64 %554
%560 = load double, double* %559
%561 = fadd double %557, %560
store double %561, double* %559
store double 0.000000e+00, double* %556
%562 = add nuw i64 %555, 1
%563 = getelementptr inbounds double, double* %17, i64 %562
%564 = load double, double* %563
%565 = add i64 %554, 2
%566 = getelementptr inbounds double, double* %2, i64 %558
%567 = load double, double* %566
%568 = fadd double %564, %567
store double %568, double* %566
store double 0.000000e+00, double* %563
%569 = add nuw i64 %555, 2
%570 = icmp eq i64 %569, %15
br i1 %570, label %571, label %553
571: ; preds = %212, %520, %301, %502, %390, %484, %479, %553, %199, %288, %377, %466
%572 = phi i64 [ %102, %466 ], [ %88, %377 ], [ %74, %288 ], [ %60, %199 ], [ %480, %479 ], [ %565, %553 ], [ %391, %390 ], [ %496, %484 ], [ %302, %301 ], [ %514, %502 ], [ %213, %212 ], [ %532, %520 ]
store i64 %572, i64* %3
br label %573
573: ; preds = %546, %571, %127, %128, %217, %306, %395
%574 = add nuw i64 %112, 1
%575 = icmp eq i64 %574, %28
br i1 %575, label %576, label %111
576: ; preds = %573, %22
%577 = call i32 @free(double* %17)
%578 = trunc i64 %28 to i32
br label %579
579: ; preds = %576, %544, %121, %20
%580 = phi i32 [ -1, %20 ], [ -1, %121 ], [ -1, %544 ], [ %578, %576 ]
ret i32 %580
}