#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 atoi(char *);
int /*<<< orphan*/ bzero(double *, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fread(double *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(double *, int, int, int /*<<< orphan*/ *);
double *malloc(int);
int /*<<< orphan*/ print_usage();
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
double utime();
int main(int argc, char *argv[]) {
  int n;
  int i, j, k;
  double temp;
  double *matrix;
  double *U;
  double *L;
  double time;
  FILE *file;
  n = 1024;
  if (argc > 1) {
    for (i = 1; i < argc;) {
      if (strcmp(argv[i], "-s") == 0) {
        n = atoi(argv[i + 1]);
        i += 2;
      } else {
        print_usage();
        return 0;
      }
    }
  }
  matrix = malloc(sizeof(double) * n * n);
  U = malloc(sizeof(double) * n * n);
  L = malloc(sizeof(double) * n * n);
  bzero(U, sizeof(double) * n * n);
  bzero(L, sizeof(double) * n * n);
  file = fopen("input.data", "r");
  if (file == NULL) {
    printf("can't not open the input.data file\n");
    return -1;
  }
  fread(matrix, sizeof(double), n * n, file);
  fclose(file);
  time = -utime();
  for (i = 0; i < n; i++)
    L[i * n] = matrix[i * n];
  for (i = 0; i < n; i++)
    U[i] = matrix[i] / L[0];
  for (j = 1; j < n; j++) {
    for (i = j; i < n; i++) {
      temp = 0.0;
      for (k = 0; k <= j - 1; k++) {
        temp = temp + L[i * n + k] * U[k * n + j];
      }
      L[i * n + j] = matrix[i * n + j] - temp;
    }
    U[j * n + j] = 1.0;
    for (i = j + 1; i < n; i++) {
      temp = 0.0;
      for (k = 0; k <= j - 1; k++) {
        temp = temp + L[j * n + k] * U[k * n + i];
      }
      U[j * n + i] = (matrix[j * n + i] - temp) / L[j * n + j];
    }
  }
  for (i = 0; i < n; i++) {
    for (j = i + 1; j < n; j++)
      matrix[i * n + j] = U[i * n + j];
    for (j = i; j < n; j++)
      matrix[j * n + i] = L[j * n + i];
  }
  time += utime();
  printf("result\n");
  printf("\tTIME\tVector_Size\n");
  printf("\t%f\t%d*%d\n", time, n, n);
  file = fopen("signal_output.data", "w");
  fwrite(matrix, sizeof(double), n * n, file);
  fclose(file);
  return 1;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x400,-0x14(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    1250 <main+0xa0>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    124b <main+0x9b>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe0b(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1233 <main+0x83>
mov    -0x10(%rbp),%rax
mov    -0x18(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x18(%rbp)
jmp    1246 <main+0x96>
mov    $0x0,%al
call   10d0 <print_usage@plt>
movl   $0x0,-0x4(%rbp)
jmp    1700 <main+0x550>
jmp    11de <main+0x2e>
jmp    1250 <main+0xa0>
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x38(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%esi
call   10a0 <bzero@plt>
mov    -0x40(%rbp),%rdi
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
movslq -0x14(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%esi
call   10a0 <bzero@plt>
lea    0xd2d(%rip),%rdi
lea    0xd31(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    1313 <main+0x163>
lea    0xd18(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1700 <main+0x550>
mov    -0x30(%rbp),%rdi
mov    -0x14(%rbp),%edx
imul   -0x14(%rbp),%edx
mov    -0x50(%rbp),%rcx
mov    $0x8,%esi
call   1040 <fread@plt>
mov    -0x50(%rbp),%rdi
call   1050 <fclose@plt>
mov    $0x0,%al
call   1030 <utime@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    139f <main+0x1ef>
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    135f <main+0x1af>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    13e2 <main+0x232>
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
divsd  (%rax),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13a6 <main+0x1f6>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15b9 <main+0x409>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14b2 <main+0x302>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1473 <main+0x2c3>
movsd  -0x28(%rbp),%xmm1
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1416 <main+0x266>
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x28(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13fb <main+0x24b>
mov    -0x38(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xb35(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15a6 <main+0x3f6>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    -0x1c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1551 <main+0x3a1>
movsd  -0x28(%rbp),%xmm1
mov    -0x40(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x20(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    14f4 <main+0x344>
mov    -0x30(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x28(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    14d9 <main+0x329>
jmp    15ab <main+0x3fb>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    13e9 <main+0x239>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    167a <main+0x4ca>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    161b <main+0x46b>
mov    -0x38(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x18(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x1c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    15d5 <main+0x425>
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1667 <main+0x4b7>
mov    -0x40(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x18(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1621 <main+0x471>
jmp    166c <main+0x4bc>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    15c0 <main+0x410>
mov    $0x0,%al
call   1030 <utime@plt>
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
lea    0x9aa(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x9a4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movsd  -0x48(%rbp),%xmm0
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0x99e(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    0x99b(%rip),%rdi
lea    0x9a7(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x50(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x14(%rbp),%edx
imul   -0x14(%rbp),%edx
mov    -0x50(%rbp),%rcx
mov    $0x8,%esi
call   10c0 <fwrite@plt>
mov    -0x50(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    $0x400,%r14d
cmp    $0x2,%edi
jl     122b <main+0x5b>
mov    %rsi,%r15
mov    %edi,%ebp
mov    $0x1,%ebx
lea    0xe06(%rip),%r14
nopw   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
jne    1306 <main+0x136>
add    $0x2,%rbx
cmp    %rbp,%rbx
jb     1200 <main+0x30>
mov    -0x8(%r15,%rbx,8),%rdi
call   10d0 <atoi@plt>
mov    %eax,%r14d
mov    %r14d,%r13d
imul   %r13d,%r13d
lea    0x0(,%r13,8),%ebp
mov    %ebp,%edi
call   10a0 <malloc@plt>
mov    %rax,%r15
mov    %ebp,%edi
call   10a0 <malloc@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   10a0 <malloc@plt>
mov    %rax,%r12
mov    %rbx,0x10(%rsp)
mov    %rbx,%rdi
mov    %ebp,%esi
call   10c0 <bzero@plt>
mov    %r12,%rdi
mov    %ebp,%esi
call   10c0 <bzero@plt>
lea    0xd8b(%rip),%rdi
lea    0xd8f(%rip),%rsi
call   10b0 <fopen@plt>
test   %rax,%rax
je     12f0 <main+0x120>
mov    %rax,%rbp
mov    %r15,0x8(%rsp)
mov    %r15,%rdi
mov    $0x8,%esi
mov    %r13,0x48(%rsp)
mov    %r13d,%edx
mov    %rax,%rcx
call   1050 <fread@plt>
mov    %rbp,%rdi
call   1060 <fclose@plt>
xor    %eax,%eax
call   1030 <utime@plt>
movsd  %xmm0,0x40(%rsp)
mov    %r14,0x18(%rsp)
test   %r14d,%r14d
jle    17e8 <main+0x618>
mov    0x18(%rsp),%r15
mov    %r15d,%r14d
lea    -0x1(%r14),%rcx
mov    %r14d,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    1314 <main+0x144>
xor    %ecx,%ecx
mov    0x8(%rsp),%rdx
jmp    1399 <main+0x1c9>
lea    0xd52(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%ebx
jmp    1868 <main+0x698>
xor    %ebx,%ebx
xor    %eax,%eax
call   10f0 <print_usage@plt>
jmp    1868 <main+0x698>
mov    %r14d,%r8d
and    $0xfffffffc,%r8d
mov    %r14,%rsi
shl    $0x4,%rsi
lea    (%r12,%rsi,1),%r9
mov    %r14,%r11
shl    $0x5,%r11
mov    0x8(%rsp),%rdx
add    %rdx,%rsi
lea    (%r12,%r14,8),%r10
lea    0x0(,%r14,8),%rcx
lea    (%rdx,%r14,8),%r13
lea    (%rcx,%rcx,2),%rdi
lea    (%r12,%rdi,1),%rbx
add    %rdx,%rdi
xor    %ebp,%ebp
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%rdx,%rbp,1),%xmm0
movsd  %xmm0,(%r12,%rbp,1)
movsd  0x0(%r13,%rbp,1),%xmm0
movsd  %xmm0,(%r10,%rbp,1)
movsd  (%rsi,%rbp,1),%xmm0
movsd  %xmm0,(%r9,%rbp,1)
movsd  (%rdi,%rbp,1),%xmm0
movsd  %xmm0,(%rbx,%rbp,1)
add    $0x4,%rcx
add    %r11,%rbp
cmp    %rcx,%r8
jne    1360 <main+0x190>
test   %rax,%rax
je     13d4 <main+0x204>
mov    %rdx,%rsi
imul   %r14,%rcx
shl    $0x3,%rcx
lea    0x0(,%r14,8),%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,1),%xmm0
movsd  %xmm0,(%r12,%rcx,1)
add    %rdx,%rcx
add    $0xffffffffffffffff,%rax
jne    13c0 <main+0x1f0>
test   %r15d,%r15d
jle    17e8 <main+0x618>
movsd  (%r12),%xmm0
mov    0x18(%rsp),%rdi
cmp    $0x1,%edi
jne    13fe <main+0x22e>
xor    %eax,%eax
mov    0x8(%rsp),%rbp
mov    0x10(%rsp),%r15
jmp    1490 <main+0x2c0>
mov    %r14d,%eax
and    $0xfffffffe,%eax
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
lea    -0x2(%rax),%rdx
mov    %rdx,%rcx
shr    %rcx
add    $0x1,%rcx
test   %rdx,%rdx
mov    0x8(%rsp),%rbp
mov    0x10(%rsp),%r15
je     1879 <main+0x6a9>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movupd 0x0(%rbp,%rdx,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,(%r15,%rdx,8)
movupd 0x10(%rbp,%rdx,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,0x10(%r15,%rdx,8)
add    $0x4,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1440 <main+0x270>
test   $0x1,%cl
je     1480 <main+0x2b0>
movupd 0x0(%rbp,%rdx,8),%xmm2
divpd  %xmm1,%xmm2
movupd %xmm2,(%r15,%rdx,8)
cmp    %r14,%rax
je     14a9 <main+0x2d9>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  0x0(%rbp,%rax,8),%xmm1
divsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%rax,8)
add    $0x1,%rax
cmp    %rax,%r14
jne    1490 <main+0x2c0>
cmp    $0x2,%edi
jl     1724 <main+0x554>
mov    0x18(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x50(%rsp)
lea    0x8(%r12,%r14,8),%rcx
lea    0x0(,%r14,8),%rdx
lea    0x8(%r15),%rax
mov    %rax,0x30(%rsp)
lea    (%r15,%r14,8),%rax
add    $0x10,%rax
mov    %rax,0x28(%rsp)
mov    %r14,%rbp
shl    $0x4,%rbp
lea    0x10(%r15),%rax
mov    %rax,0x38(%rsp)
mov    $0x1,%ebx
mov    $0x2,%eax
mov    %rax,0x20(%rsp)
xor    %r13d,%r13d
jmp    1547 <main+0x377>
cs nopw 0x0(%rax,%rax,1)
mov    0x20(%rsp),%rax
add    $0x1,%rax
add    $0x1,%r13
add    %rdx,%rcx
addq   $0x8,0x30(%rsp)
addq   $0x8,0x28(%rsp)
addq   $0x8,0x38(%rsp)
mov    %rax,0x20(%rsp)
cmp    0x50(%rsp),%rax
mov    0x10(%rsp),%r15
je     1724 <main+0x554>
mov    %rbx,%r8
mov    %rbx,%r11
and    $0xfffffffffffffffe,%r11
mov    %rcx,%rdi
mov    %rbx,%r9
mov    0x8(%rsp),%r10
jmp    1583 <main+0x3b3>
xchg   %ax,%ax
add    %r8,%rax
movsd  (%r10,%rax,8),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%r12,%rax,8)
add    $0x1,%r9
add    %rdx,%rdi
cmp    %r14,%r9
je     1610 <main+0x440>
test   %r13,%r13
je     15d0 <main+0x400>
xorpd  %xmm1,%xmm1
mov    0x30(%rsp),%rax
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  -0x8(%rdi,%rbx,8),%xmm2
mulsd  (%rax),%xmm2
movsd  (%rdi,%rbx,8),%xmm0
addsd  %xmm1,%xmm2
mulsd  (%rax,%rdx,1),%xmm0
addsd  %xmm2,%xmm0
add    $0x2,%rbx
add    %rbp,%rax
movapd %xmm0,%xmm1
cmp    %rbx,%r11
jne    15a0 <main+0x3d0>
jmp    15d6 <main+0x406>
xchg   %ax,%ax
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
mov    %r9,%rax
imul   %r14,%rax
test   $0x1,%r8b
je     1560 <main+0x390>
lea    (%rbx,%rax,1),%rsi
movsd  (%r12,%rsi,8),%xmm1
imul   %r14,%rbx
add    %r8,%rbx
mulsd  (%r15,%rbx,8),%xmm1
addsd  %xmm1,%xmm0
jmp    1560 <main+0x390>
nopw   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rax
imul   %r8d,%eax
cltq
add    %r8,%rax
movabs $0x3ff0000000000000,%rsi
mov    %rsi,(%r15,%rax,8)
lea    0x1(%r8),%rbx
cmp    %r14,%rbx
jae    1510 <main+0x340>
mov    %r8,%r15
imul   %r14,%r15
movsd  (%r12,%rax,8),%xmm0
mov    0x38(%rsp),%r10
mov    0x28(%rsp),%r9
mov    0x20(%rsp),%rdi
jmp    1695 <main+0x4c5>
nopw   0x0(%rax,%rax,1)
lea    (%rdi,%r15,1),%rax
mov    0x8(%rsp),%rsi
movsd  (%rsi,%rax,8),%xmm2
subsd  %xmm1,%xmm2
divsd  %xmm0,%xmm2
mov    0x10(%rsp),%rsi
movsd  %xmm2,(%rsi,%rax,8)
add    $0x1,%rdi
add    $0x8,%r9
add    $0x8,%r10
cmp    %r14,%rdi
je     1510 <main+0x340>
test   %r13,%r13
je     16f0 <main+0x520>
xorpd  %xmm2,%xmm2
xor    %eax,%eax
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  -0x8(%rcx,%rsi,8),%xmm3
mulsd  (%r10,%rax,1),%xmm3
movsd  (%rcx,%rsi,8),%xmm1
addsd  %xmm2,%xmm3
mulsd  (%r9,%rax,1),%xmm1
addsd  %xmm3,%xmm1
add    $0x2,%rsi
add    %rbp,%rax
movapd %xmm1,%xmm2
cmp    %rsi,%r11
jne    16b0 <main+0x4e0>
test   $0x1,%r8b
je     1660 <main+0x490>
jmp    1700 <main+0x530>
nopl   0x0(%rax,%rax,1)
xorpd  %xmm1,%xmm1
xor    %esi,%esi
test   $0x1,%r8b
je     1660 <main+0x490>
lea    (%rsi,%r15,1),%rax
movsd  (%r12,%rax,8),%xmm2
imul   %r14,%rsi
add    %rdi,%rsi
mov    0x10(%rsp),%rax
mulsd  (%rax,%rsi,8),%xmm2
addsd  %xmm2,%xmm1
jmp    1660 <main+0x490>
cmpl   $0x0,0x18(%rsp)
jle    17e8 <main+0x618>
mov    0x18(%rsp),%rax
lea    0x1(%rax),%ecx
mov    %ecx,0x30(%rsp)
add    $0xfffffffe,%eax
mov    %eax,0x20(%rsp)
lea    0x0(,%r14,8),%rbp
lea    0x8(,%r14,8),%rdx
xor    %eax,%eax
mov    %r14,%rbx
mov    0x8(%rsp),%r13
mov    %rdx,0x28(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0x1(%rax),%r15
cmp    %r14,%r15
jae    17b0 <main+0x5e0>
mov    0x30(%rsp),%ecx
imul   %eax,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    0x20(%rsp),%edx
sub    %eax,%edx
lea    0x8(,%rdx,8),%rdx
mov    0x10(%rsp),%rax
lea    (%rax,%rcx,8),%rsi
mov    0x8(%rsp),%rax
lea    (%rax,%rcx,8),%rdi
call   1090 <memcpy@plt>
mov    0x28(%rsp),%rdx
mov    %rbx,%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%r12,%rcx,1),%xmm0
movsd  %xmm0,0x0(%r13,%rcx,1)
add    %rbp,%rcx
add    $0xffffffffffffffff,%rax
jne    17c0 <main+0x5f0>
add    %rdx,%r12
add    %rdx,%r13
add    $0xffffffffffffffff,%rbx
mov    %r15,%rax
cmp    %r14,%r15
jne    1770 <main+0x5a0>
xor    %eax,%eax
call   1030 <utime@plt>
subsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
lea    0x82e(%rip),%rdi
call   1040 <puts@plt>
lea    0x829(%rip),%rdi
call   1040 <puts@plt>
lea    0x7f6(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    0x18(%rsp),%rdx
mov    %edx,%esi
mov    $0x1,%al
call   1070 <printf@plt>
lea    0x7e6(%rip),%rdi
lea    0x7f2(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%rdi
mov    $0x8,%esi
mov    0x48(%rsp),%rdx
mov    %rax,%rcx
call   10e0 <fwrite@plt>
mov    %rbx,%rdi
call   1060 <fclose@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%cl
jne    1470 <main+0x2a0>
jmp    1480 <main+0x2b0>

LLVM IR (-O0):
@.str = [3 x i8] c"-s\00"
@.str.1 = [11 x i8] c"input.data\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [36 x i8] c"can't not open the input.data file\0A\00"
@.str.4 = [8 x i8] c"result\0A\00"
@.str.5 = [19 x i8] c"\09TIME\09Vector_Size\0A\00"
@.str.6 = [11 x i8] c"\09%f\09%d*%d\0A\00"
@.str.7 = [19 x i8] c"signal_output.data\00"
@.str.8 = [2 x i8] c"w\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca double
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double
%15 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 1024, i32* %6
%16 = load i32, i32* %4
%17 = icmp sgt i32 %16, 1
br i1 %17, label %18, label %45
18: ; preds = %2
store i32 1, i32* %7
br label %19
19: ; preds = %43, %18
%20 = load i32, i32* %7
%21 = load i32, i32* %4
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %44
23: ; preds = %19
%24 = load i8**, i8*** %5
%25 = load i32, i32* %7
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i8*, i8** %24, i64 %26
%28 = load i8*, i8** %27
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %41
31: ; preds = %23
%32 = load i8**, i8*** %5
%33 = load i32, i32* %7
%34 = add nsw i32 %33, 1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i8*, i8** %32, i64 %35
%37 = load i8*, i8** %36
%38 = call i32 @atoi(i8* %37)
store i32 %38, i32* %6
%39 = load i32, i32* %7
%40 = add nsw i32 %39, 2
store i32 %40, i32* %7
br label %43
41: ; preds = %23
%42 = call i32 (...) @print_usage()
store i32 0, i32* %3
br label %376
43: ; preds = %31
br label %19
44: ; preds = %19
br label %45
45: ; preds = %44, %2
%46 = load i32, i32* %6
%47 = sext i32 %46 to i64
%48 = mul i64 8, %47
%49 = load i32, i32* %6
%50 = sext i32 %49 to i64
%51 = mul i64 %48, %50
%52 = trunc i64 %51 to i32
%53 = call double* @malloc(i32 %52)
store double* %53, double** %11
%54 = load i32, i32* %6
%55 = sext i32 %54 to i64
%56 = mul i64 8, %55
%57 = load i32, i32* %6
%58 = sext i32 %57 to i64
%59 = mul i64 %56, %58
%60 = trunc i64 %59 to i32
%61 = call double* @malloc(i32 %60)
store double* %61, double** %12
%62 = load i32, i32* %6
%63 = sext i32 %62 to i64
%64 = mul i64 8, %63
%65 = load i32, i32* %6
%66 = sext i32 %65 to i64
%67 = mul i64 %64, %66
%68 = trunc i64 %67 to i32
%69 = call double* @malloc(i32 %68)
store double* %69, double** %13
%70 = load double*, double** %12
%71 = load i32, i32* %6
%72 = sext i32 %71 to i64
%73 = mul i64 8, %72
%74 = load i32, i32* %6
%75 = sext i32 %74 to i64
%76 = mul i64 %73, %75
%77 = trunc i64 %76 to i32
%78 = call i32 @bzero(double* %70, i32 %77)
%79 = load double*, double** %13
%80 = load i32, i32* %6
%81 = sext i32 %80 to i64
%82 = mul i64 8, %81
%83 = load i32, i32* %6
%84 = sext i32 %83 to i64
%85 = mul i64 %82, %84
%86 = trunc i64 %85 to i32
%87 = call i32 @bzero(double* %79, i32 %86)
%88 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %88, i32** %15
%89 = load i32*, i32** %15
%90 = icmp eq i32* %89, null
br i1 %90, label %91, label %93
91: ; preds = %45
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %3
br label %376
93: ; preds = %45
%94 = load double*, double** %11
%95 = load i32, i32* %6
%96 = load i32, i32* %6
%97 = mul nsw i32 %95, %96
%98 = load i32*, i32** %15
%99 = call i32 @fread(double* %94, i32 8, i32 %97, i32* %98)
%100 = load i32*, i32** %15
%101 = call i32 @fclose(i32* %100)
%102 = call double (...) @utime()
%103 = fneg double %102
store double %103, double* %14
store i32 0, i32* %7
br label %104
104: ; preds = %122, %93
%105 = load i32, i32* %7
%106 = load i32, i32* %6
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %125
108: ; preds = %104
%109 = load double*, double** %11
%110 = load i32, i32* %7
%111 = load i32, i32* %6
%112 = mul nsw i32 %110, %111
%113 = sext i32 %112 to i64
%114 = getelementptr inbounds double, double* %109, i64 %113
%115 = load double, double* %114
%116 = load double*, double** %13
%117 = load i32, i32* %7
%118 = load i32, i32* %6
%119 = mul nsw i32 %117, %118
%120 = sext i32 %119 to i64
%121 = getelementptr inbounds double, double* %116, i64 %120
store double %115, double* %121
br label %122
122: ; preds = %108
%123 = load i32, i32* %7
%124 = add nsw i32 %123, 1
store i32 %124, i32* %7
br label %104
125: ; preds = %104
store i32 0, i32* %7
br label %126
126: ; preds = %144, %125
%127 = load i32, i32* %7
%128 = load i32, i32* %6
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %147
130: ; preds = %126
%131 = load double*, double** %11
%132 = load i32, i32* %7
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds double, double* %131, i64 %133
%135 = load double, double* %134
%136 = load double*, double** %13
%137 = getelementptr inbounds double, double* %136, i64 0
%138 = load double, double* %137
%139 = fdiv double %135, %138
%140 = load double*, double** %12
%141 = load i32, i32* %7
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds double, double* %140, i64 %142
store double %139, double* %143
br label %144
144: ; preds = %130
%145 = load i32, i32* %7
%146 = add nsw i32 %145, 1
store i32 %146, i32* %7
br label %126
147: ; preds = %126
store i32 1, i32* %8
br label %148
148: ; preds = %290, %147
%149 = load i32, i32* %8
%150 = load i32, i32* %6
%151 = icmp slt i32 %149, %150
br i1 %151, label %152, label %293
152: ; preds = %148
%153 = load i32, i32* %8
store i32 %153, i32* %7
br label %154
154: ; preds = %208, %152
%155 = load i32, i32* %7
%156 = load i32, i32* %6
%157 = icmp slt i32 %155, %156
br i1 %157, label %158, label %211
158: ; preds = %154
store double 0.000000e+00, double* %10
store i32 0, i32* %9
br label %159
159: ; preds = %185, %158
%160 = load i32, i32* %9
%161 = load i32, i32* %8
%162 = sub nsw i32 %161, 1
%163 = icmp sle i32 %160, %162
br i1 %163, label %164, label %188
164: ; preds = %159
%165 = load double, double* %10
%166 = load double*, double** %13
%167 = load i32, i32* %7
%168 = load i32, i32* %6
%169 = mul nsw i32 %167, %168
%170 = load i32, i32* %9
%171 = add nsw i32 %169, %170
%172 = sext i32 %171 to i64
%173 = getelementptr inbounds double, double* %166, i64 %172
%174 = load double, double* %173
%175 = load double*, double** %12
%176 = load i32, i32* %9
%177 = load i32, i32* %6
%178 = mul nsw i32 %176, %177
%179 = load i32, i32* %8
%180 = add nsw i32 %178, %179
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds double, double* %175, i64 %181
%183 = load double, double* %182
%184 = call double @llvm.fmuladd.f64(double %174, double %183, double %165)
store double %184, double* %10
br label %185
185: ; preds = %164
%186 = load i32, i32* %9
%187 = add nsw i32 %186, 1
store i32 %187, i32* %9
br label %159
188: ; preds = %159
%189 = load double*, double** %11
%190 = load i32, i32* %7
%191 = load i32, i32* %6
%192 = mul nsw i32 %190, %191
%193 = load i32, i32* %8
%194 = add nsw i32 %192, %193
%195 = sext i32 %194 to i64
%196 = getelementptr inbounds double, double* %189, i64 %195
%197 = load double, double* %196
%198 = load double, double* %10
%199 = fsub double %197, %198
%200 = load double*, double** %13
%201 = load i32, i32* %7
%202 = load i32, i32* %6
%203 = mul nsw i32 %201, %202
%204 = load i32, i32* %8
%205 = add nsw i32 %203, %204
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %200, i64 %206
store double %199, double* %207
br label %208
208: ; preds = %188
%209 = load i32, i32* %7
%210 = add nsw i32 %209, 1
store i32 %210, i32* %7
br label %154
211: ; preds = %154
%212 = load double*, double** %12
%213 = load i32, i32* %8
%214 = load i32, i32* %6
%215 = mul nsw i32 %213, %214
%216 = load i32, i32* %8
%217 = add nsw i32 %215, %216
%218 = sext i32 %217 to i64
%219 = getelementptr inbounds double, double* %212, i64 %218
store double 1.000000e+00, double* %219
%220 = load i32, i32* %8
%221 = add nsw i32 %220, 1
store i32 %221, i32* %7
br label %222
222: ; preds = %286, %211
%223 = load i32, i32* %7
%224 = load i32, i32* %6
%225 = icmp slt i32 %223, %224
br i1 %225, label %226, label %289
226: ; preds = %222
store double 0.000000e+00, double* %10
store i32 0, i32* %9
br label %227
227: ; preds = %253, %226
%228 = load i32, i32* %9
%229 = load i32, i32* %8
%230 = sub nsw i32 %229, 1
%231 = icmp sle i32 %228, %230
br i1 %231, label %232, label %256
232: ; preds = %227
%233 = load double, double* %10
%234 = load double*, double** %13
%235 = load i32, i32* %8
%236 = load i32, i32* %6
%237 = mul nsw i32 %235, %236
%238 = load i32, i32* %9
%239 = add nsw i32 %237, %238
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, double* %234, i64 %240
%242 = load double, double* %241
%243 = load double*, double** %12
%244 = load i32, i32* %9
%245 = load i32, i32* %6
%246 = mul nsw i32 %244, %245
%247 = load i32, i32* %7
%248 = add nsw i32 %246, %247
%249 = sext i32 %248 to i64
%250 = getelementptr inbounds double, double* %243, i64 %249
%251 = load double, double* %250
%252 = call double @llvm.fmuladd.f64(double %242, double %251, double %233)
store double %252, double* %10
br label %253
253: ; preds = %232
%254 = load i32, i32* %9
%255 = add nsw i32 %254, 1
store i32 %255, i32* %9
br label %227
256: ; preds = %227
%257 = load double*, double** %11
%258 = load i32, i32* %8
%259 = load i32, i32* %6
%260 = mul nsw i32 %258, %259
%261 = load i32, i32* %7
%262 = add nsw i32 %260, %261
%263 = sext i32 %262 to i64
%264 = getelementptr inbounds double, double* %257, i64 %263
%265 = load double, double* %264
%266 = load double, double* %10
%267 = fsub double %265, %266
%268 = load double*, double** %13
%269 = load i32, i32* %8
%270 = load i32, i32* %6
%271 = mul nsw i32 %269, %270
%272 = load i32, i32* %8
%273 = add nsw i32 %271, %272
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, double* %268, i64 %274
%276 = load double, double* %275
%277 = fdiv double %267, %276
%278 = load double*, double** %12
%279 = load i32, i32* %8
%280 = load i32, i32* %6
%281 = mul nsw i32 %279, %280
%282 = load i32, i32* %7
%283 = add nsw i32 %281, %282
%284 = sext i32 %283 to i64
%285 = getelementptr inbounds double, double* %278, i64 %284
store double %277, double* %285
br label %286
286: ; preds = %256
%287 = load i32, i32* %7
%288 = add nsw i32 %287, 1
store i32 %288, i32* %7
br label %222
289: ; preds = %222
br label %290
290: ; preds = %289
%291 = load i32, i32* %8
%292 = add nsw i32 %291, 1
store i32 %292, i32* %8
br label %148
293: ; preds = %148
store i32 0, i32* %7
br label %294
294: ; preds = %354, %293
%295 = load i32, i32* %7
%296 = load i32, i32* %6
%297 = icmp slt i32 %295, %296
br i1 %297, label %298, label %357
298: ; preds = %294
%299 = load i32, i32* %7
%300 = add nsw i32 %299, 1
store i32 %300, i32* %8
br label %301
301: ; preds = %323, %298
%302 = load i32, i32* %8
%303 = load i32, i32* %6
%304 = icmp slt i32 %302, %303
br i1 %304, label %305, label %326
305: ; preds = %301
%306 = load double*, double** %12
%307 = load i32, i32* %7
%308 = load i32, i32* %6
%309 = mul nsw i32 %307, %308
%310 = load i32, i32* %8
%311 = add nsw i32 %309, %310
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds double, double* %306, i64 %312
%314 = load double, double* %313
%315 = load double*, double** %11
%316 = load i32, i32* %7
%317 = load i32, i32* %6
%318 = mul nsw i32 %316, %317
%319 = load i32, i32* %8
%320 = add nsw i32 %318, %319
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds double, double* %315, i64 %321
store double %314, double* %322
br label %323
323: ; preds = %305
%324 = load i32, i32* %8
%325 = add nsw i32 %324, 1
store i32 %325, i32* %8
br label %301
326: ; preds = %301
%327 = load i32, i32* %7
store i32 %327, i32* %8
br label %328
328: ; preds = %350, %326
%329 = load i32, i32* %8
%330 = load i32, i32* %6
%331 = icmp slt i32 %329, %330
br i1 %331, label %332, label %353
332: ; preds = %328
%333 = load double*, double** %13
%334 = load i32, i32* %8
%335 = load i32, i32* %6
%336 = mul nsw i32 %334, %335
%337 = load i32, i32* %7
%338 = add nsw i32 %336, %337
%339 = sext i32 %338 to i64
%340 = getelementptr inbounds double, double* %333, i64 %339
%341 = load double, double* %340
%342 = load double*, double** %11
%343 = load i32, i32* %8
%344 = load i32, i32* %6
%345 = mul nsw i32 %343, %344
%346 = load i32, i32* %7
%347 = add nsw i32 %345, %346
%348 = sext i32 %347 to i64
%349 = getelementptr inbounds double, double* %342, i64 %348
store double %341, double* %349
br label %350
350: ; preds = %332
%351 = load i32, i32* %8
%352 = add nsw i32 %351, 1
store i32 %352, i32* %8
br label %328
353: ; preds = %328
br label %354
354: ; preds = %353
%355 = load i32, i32* %7
%356 = add nsw i32 %355, 1
store i32 %356, i32* %7
br label %294
357: ; preds = %294
%358 = call double (...) @utime()
%359 = load double, double* %14
%360 = fadd double %359, %358
store double %360, double* %14
%361 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%362 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
%363 = load double, double* %14
%364 = load i32, i32* %6
%365 = load i32, i32* %6
%366 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %363, i32 %364, i32 %365)
%367 = call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32* %367, i32** %15
%368 = load double*, double** %11
%369 = load i32, i32* %6
%370 = load i32, i32* %6
%371 = mul nsw i32 %369, %370
%372 = load i32*, i32** %15
%373 = call i32 @fwrite(double* %368, i32 8, i32 %371, i32* %372)
%374 = load i32*, i32** %15
%375 = call i32 @fclose(i32* %374)
store i32 1, i32* %3
br label %376
376: ; preds = %357, %91, %41
%377 = load i32, i32* %3
ret i32 %377
}

LLVM IR (-O2):
@.str = [3 x i8] c"-s\00"
@.str.1 = [11 x i8] c"input.data\00"
@.str.2 = [2 x i8] c"r\00"
@.str.6 = [11 x i8] c"\09%f\09%d*%d\0A\00"
@.str.7 = [19 x i8] c"signal_output.data\00"
@.str.8 = [2 x i8] c"w\00"
@str = [7 x i8] c"result\00"
@str.9 = [18 x i8] c"\09TIME\09Vector_Size\00"
@str.10 = [35 x i8] c"can't not open the input.data file\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %22
4: ; preds = %2
%5 = zext i32 %0 to i64
br label %6
6: ; preds = %4, %12
%7 = phi i64 [ 1, %4 ], [ %13, %12 ]
%8 = getelementptr inbounds i8*, i8** %1, i64 %7
%9 = load i8*, i8** %8
%10 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %6
%13 = add nuw nsw i64 %7, 2
%14 = icmp ult i64 %13, %5
br i1 %14, label %6, label %17
15: ; preds = %6
%16 = tail call i32 (...) @print_usage()
br label %323
17: ; preds = %12
%18 = add nuw nsw i64 %7, 1
%19 = getelementptr inbounds i8*, i8** %1, i64 %18
%20 = load i8*, i8** %19
%21 = tail call i32 @atoi(i8* %20)
br label %22
22: ; preds = %17, %2
%23 = phi i32 [ 1024, %2 ], [ %21, %17 ]
%24 = shl i32 %23, 3
%25 = mul i32 %24, %23
%26 = tail call double* @malloc(i32 %25)
%27 = tail call double* @malloc(i32 %25)
%28 = tail call double* @malloc(i32 %25)
%29 = tail call i32 @bzero(double* %27, i32 %25)
%30 = tail call i32 @bzero(double* %28, i32 %25)
%31 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%32 = icmp eq i32* %31, null
br i1 %32, label %33, label %35
33: ; preds = %22
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.10, i64 0, i64 0))
br label %323
35: ; preds = %22
%36 = mul nsw i32 %23, %23
%37 = tail call i32 @fread(double* %26, i32 8, i32 %36, i32* %31)
%38 = tail call i32 @fclose(i32* %31)
%39 = tail call double (...) @utime()
%40 = icmp sgt i32 %23, 0
br i1 %40, label %41, label %314
41: ; preds = %35
%42 = zext i32 %23 to i64
%43 = zext i32 %23 to i64
%44 = add nsw i64 %43, -1
%45 = and i64 %43, 3
%46 = icmp ult i64 %44, 3
br i1 %46, label %49, label %47
47: ; preds = %41
%48 = and i64 %43, 4294967292
br label %111
49: ; preds = %111, %41
%50 = phi i64 [ 0, %41 ], [ %133, %111 ]
%51 = icmp eq i64 %45, 0
br i1 %51, label %62, label %52
52: ; preds = %49, %52
%53 = phi i64 [ %59, %52 ], [ %50, %49 ]
%54 = phi i64 [ %60, %52 ], [ 0, %49 ]
%55 = mul nsw i64 %53, %42
%56 = getelementptr inbounds double, double* %26, i64 %55
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %28, i64 %55
store double %57, double* %58
%59 = add nuw nsw i64 %53, 1
%60 = add i64 %54, 1
%61 = icmp eq i64 %60, %45
br i1 %61, label %62, label %52
62: ; preds = %52, %49
br i1 %40, label %63, label %314
63: ; preds = %62
%64 = load double, double* %28
%65 = zext i32 %23 to i64
%66 = icmp eq i32 %23, 1
br i1 %66, label %109, label %67
67: ; preds = %63
%68 = and i64 %43, 4294967294
%69 = insertelement <2 x double> poison, double %64, i64 0
%70 = shufflevector <2 x double> %69, <2 x double> poison, <2 x i32> zeroinitializer
%71 = add nsw i64 %68, -2
%72 = lshr exact i64 %71, 1
%73 = add nuw i64 %72, 1
%74 = and i64 %73, 1
%75 = icmp eq i64 %71, 0
br i1 %75, label %97, label %76
76: ; preds = %67
%77 = and i64 %73, -2
br label %78
78: ; preds = %78, %76
%79 = phi i64 [ 0, %76 ], [ %94, %78 ]
%80 = phi i64 [ 0, %76 ], [ %95, %78 ]
%81 = getelementptr inbounds double, double* %26, i64 %79
%82 = bitcast double* %81 to <2 x double>*
%83 = load <2 x double>, <2 x double>* %82
%84 = fdiv <2 x double> %83, %70
%85 = getelementptr inbounds double, double* %27, i64 %79
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %84, <2 x double>* %86
%87 = or i64 %79, 2
%88 = getelementptr inbounds double, double* %26, i64 %87
%89 = bitcast double* %88 to <2 x double>*
%90 = load <2 x double>, <2 x double>* %89
%91 = fdiv <2 x double> %90, %70
%92 = getelementptr inbounds double, double* %27, i64 %87
%93 = bitcast double* %92 to <2 x double>*
store <2 x double> %91, <2 x double>* %93
%94 = add nuw i64 %79, 4
%95 = add nuw i64 %80, 2
%96 = icmp eq i64 %95, %77
br i1 %96, label %97, label %78
97: ; preds = %78, %67
%98 = phi i64 [ 0, %67 ], [ %94, %78 ]
%99 = icmp eq i64 %74, 0
br i1 %99, label %107, label %100
100: ; preds = %97
%101 = getelementptr inbounds double, double* %26, i64 %98
%102 = bitcast double* %101 to <2 x double>*
%103 = load <2 x double>, <2 x double>* %102
%104 = fdiv <2 x double> %103, %70
%105 = getelementptr inbounds double, double* %27, i64 %98
%106 = bitcast double* %105 to <2 x double>*
store <2 x double> %104, <2 x double>* %106
br label %107
107: ; preds = %97, %100
%108 = icmp eq i64 %68, %43
br i1 %108, label %136, label %109
109: ; preds = %63, %107
%110 = phi i64 [ 0, %63 ], [ %68, %107 ]
br label %144
111: ; preds = %111, %47
%112 = phi i64 [ 0, %47 ], [ %133, %111 ]
%113 = phi i64 [ 0, %47 ], [ %134, %111 ]
%114 = mul nsw i64 %112, %42
%115 = getelementptr inbounds double, double* %26, i64 %114
%116 = load double, double* %115
%117 = getelementptr inbounds double, double* %28, i64 %114
store double %116, double* %117
%118 = or i64 %112, 1
%119 = mul nsw i64 %118, %42
%120 = getelementptr inbounds double, double* %26, i64 %119
%121 = load double, double* %120
%122 = getelementptr inbounds double, double* %28, i64 %119
store double %121, double* %122
%123 = or i64 %112, 2
%124 = mul nsw i64 %123, %42
%125 = getelementptr inbounds double, double* %26, i64 %124
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %28, i64 %124
store double %126, double* %127
%128 = or i64 %112, 3
%129 = mul nsw i64 %128, %42
%130 = getelementptr inbounds double, double* %26, i64 %129
%131 = load double, double* %130
%132 = getelementptr inbounds double, double* %28, i64 %129
store double %131, double* %132
%133 = add nuw nsw i64 %112, 4
%134 = add i64 %113, 4
%135 = icmp eq i64 %134, %48
br i1 %135, label %49, label %111
136: ; preds = %144, %107
%137 = icmp sgt i32 %23, 1
br i1 %137, label %138, label %165
138: ; preds = %136
%139 = zext i32 %23 to i64
%140 = add nuw i32 %23, 1
%141 = zext i32 %140 to i64
%142 = zext i32 %23 to i64
%143 = zext i32 %23 to i64
br label %156
144: ; preds = %109, %144
%145 = phi i64 [ %150, %144 ], [ %110, %109 ]
%146 = getelementptr inbounds double, double* %26, i64 %145
%147 = load double, double* %146
%148 = fdiv double %147, %64
%149 = getelementptr inbounds double, double* %27, i64 %145
store double %148, double* %149
%150 = add nuw nsw i64 %145, 1
%151 = icmp eq i64 %150, %65
br i1 %151, label %136, label %144
152: ; preds = %274, %220
%153 = add nuw nsw i64 %158, 1
%154 = icmp eq i64 %153, %141
%155 = add i64 %157, 1
br i1 %154, label %165, label %156
156: ; preds = %152, %138
%157 = phi i64 [ %155, %152 ], [ 0, %138 ]
%158 = phi i64 [ %153, %152 ], [ 2, %138 ]
%159 = phi i64 [ %226, %152 ], [ 1, %138 ]
%160 = trunc i64 %159 to i32
%161 = and i64 %159, 1
%162 = icmp eq i64 %157, 0
%163 = and i64 %159, 9223372036854775806
%164 = icmp eq i64 %161, 0
br label %171
165: ; preds = %152, %136
br i1 %40, label %166, label %314
166: ; preds = %165
%167 = add nuw i32 %23, 1
%168 = add nsw i32 %23, -2
%169 = zext i32 %23 to i64
%170 = zext i32 %23 to i64
br label %286
171: ; preds = %156, %211
%172 = phi i64 [ %159, %156 ], [ %218, %211 ]
%173 = mul nsw i64 %172, %139
br i1 %162, label %198, label %174
174: ; preds = %171, %174
%175 = phi i64 [ %195, %174 ], [ 0, %171 ]
%176 = phi double [ %194, %174 ], [ 0.000000e+00, %171 ]
%177 = phi i64 [ %196, %174 ], [ 0, %171 ]
%178 = add nuw nsw i64 %175, %173
%179 = getelementptr inbounds double, double* %28, i64 %178
%180 = load double, double* %179
%181 = mul nsw i64 %175, %139
%182 = add nuw nsw i64 %181, %159
%183 = getelementptr inbounds double, double* %27, i64 %182
%184 = load double, double* %183
%185 = tail call double @llvm.fmuladd.f64(double %180, double %184, double %176)
%186 = or i64 %175, 1
%187 = add nuw nsw i64 %186, %173
%188 = getelementptr inbounds double, double* %28, i64 %187
%189 = load double, double* %188
%190 = mul nsw i64 %186, %139
%191 = add nuw nsw i64 %190, %159
%192 = getelementptr inbounds double, double* %27, i64 %191
%193 = load double, double* %192
%194 = tail call double @llvm.fmuladd.f64(double %189, double %193, double %185)
%195 = add nuw nsw i64 %175, 2
%196 = add i64 %177, 2
%197 = icmp eq i64 %196, %163
br i1 %197, label %198, label %174
198: ; preds = %174, %171
%199 = phi double [ undef, %171 ], [ %194, %174 ]
%200 = phi i64 [ 0, %171 ], [ %195, %174 ]
%201 = phi double [ 0.000000e+00, %171 ], [ %194, %174 ]
br i1 %164, label %211, label %202
202: ; preds = %198
%203 = add nuw nsw i64 %200, %173
%204 = getelementptr inbounds double, double* %28, i64 %203
%205 = load double, double* %204
%206 = mul nsw i64 %200, %139
%207 = add nuw nsw i64 %206, %159
%208 = getelementptr inbounds double, double* %27, i64 %207
%209 = load double, double* %208
%210 = tail call double @llvm.fmuladd.f64(double %205, double %209, double %201)
br label %211
211: ; preds = %198, %202
%212 = phi double [ %199, %198 ], [ %210, %202 ]
%213 = add nuw nsw i64 %173, %159
%214 = getelementptr inbounds double, double* %26, i64 %213
%215 = load double, double* %214
%216 = fsub double %215, %212
%217 = getelementptr inbounds double, double* %28, i64 %213
store double %216, double* %217
%218 = add nuw nsw i64 %172, 1
%219 = icmp eq i64 %218, %142
br i1 %219, label %220, label %171
220: ; preds = %211
%221 = mul nsw i64 %159, %139
%222 = mul nsw i32 %23, %160
%223 = sext i32 %222 to i64
%224 = add nsw i64 %159, %223
%225 = getelementptr inbounds double, double* %27, i64 %224
store double 1.000000e+00, double* %225
%226 = add nuw nsw i64 %159, 1
%227 = icmp ult i64 %226, %139
br i1 %227, label %228, label %152
228: ; preds = %220
%229 = getelementptr inbounds double, double* %28, i64 %224
%230 = load double, double* %229
%231 = and i64 %159, 1
%232 = icmp eq i64 %157, 0
%233 = and i64 %159, 9223372036854775806
%234 = icmp eq i64 %231, 0
br label %235
235: ; preds = %228, %274
%236 = phi i64 [ %158, %228 ], [ %282, %274 ]
br i1 %232, label %261, label %237
237: ; preds = %235, %237
%238 = phi i64 [ %258, %237 ], [ 0, %235 ]
%239 = phi double [ %257, %237 ], [ 0.000000e+00, %235 ]
%240 = phi i64 [ %259, %237 ], [ 0, %235 ]
%241 = add nuw nsw i64 %238, %221
%242 = getelementptr inbounds double, double* %28, i64 %241
%243 = load double, double* %242
%244 = mul nsw i64 %238, %139
%245 = add nuw nsw i64 %244, %236
%246 = getelementptr inbounds double, double* %27, i64 %245
%247 = load double, double* %246
%248 = tail call double @llvm.fmuladd.f64(double %243, double %247, double %239)
%249 = or i64 %238, 1
%250 = add nuw nsw i64 %249, %221
%251 = getelementptr inbounds double, double* %28, i64 %250
%252 = load double, double* %251
%253 = mul nsw i64 %249, %139
%254 = add nuw nsw i64 %253, %236
%255 = getelementptr inbounds double, double* %27, i64 %254
%256 = load double, double* %255
%257 = tail call double @llvm.fmuladd.f64(double %252, double %256, double %248)
%258 = add nuw nsw i64 %238, 2
%259 = add i64 %240, 2
%260 = icmp eq i64 %259, %233
br i1 %260, label %261, label %237
261: ; preds = %237, %235
%262 = phi double [ undef, %235 ], [ %257, %237 ]
%263 = phi i64 [ 0, %235 ], [ %258, %237 ]
%264 = phi double [ 0.000000e+00, %235 ], [ %257, %237 ]
br i1 %234, label %274, label %265
265: ; preds = %261
%266 = add nuw nsw i64 %263, %221
%267 = getelementptr inbounds double, double* %28, i64 %266
%268 = load double, double* %267
%269 = mul nsw i64 %263, %139
%270 = add nuw nsw i64 %269, %236
%271 = getelementptr inbounds double, double* %27, i64 %270
%272 = load double, double* %271
%273 = tail call double @llvm.fmuladd.f64(double %268, double %272, double %264)
br label %274
274: ; preds = %261, %265
%275 = phi double [ %262, %261 ], [ %273, %265 ]
%276 = add nuw nsw i64 %236, %221
%277 = getelementptr inbounds double, double* %26, i64 %276
%278 = load double, double* %277
%279 = fsub double %278, %275
%280 = fdiv double %279, %230
%281 = getelementptr inbounds double, double* %27, i64 %276
store double %280, double* %281
%282 = add nuw nsw i64 %236, 1
%283 = icmp eq i64 %282, %143
br i1 %283, label %152, label %235
284: ; preds = %305
%285 = icmp eq i64 %292, %170
br i1 %285, label %314, label %286
286: ; preds = %166, %284
%287 = phi i64 [ 0, %166 ], [ %292, %284 ]
%288 = trunc i64 %287 to i32
%289 = mul i32 %167, %288
%290 = add i32 %289, 1
%291 = sext i32 %290 to i64
%292 = add nuw nsw i64 %287, 1
%293 = icmp ult i64 %292, %169
br i1 %293, label %294, label %304
294: ; preds = %286
%295 = trunc i64 %287 to i32
%296 = sub i32 %168, %295
%297 = zext i32 %296 to i64
%298 = shl nuw nsw i64 %297, 3
%299 = add nuw nsw i64 %298, 8
%300 = getelementptr double, double* %27, i64 %291
%301 = bitcast double* %300 to i8*
%302 = getelementptr double, double* %26, i64 %291
%303 = bitcast double* %302 to i8*
br label %304
304: ; preds = %286, %294
br label %305
305: ; preds = %304, %305
%306 = phi i64 [ %312, %305 ], [ %287, %304 ]
%307 = mul nsw i64 %306, %169
%308 = add nuw nsw i64 %307, %287
%309 = getelementptr inbounds double, double* %28, i64 %308
%310 = load double, double* %309
%311 = getelementptr inbounds double, double* %26, i64 %308
store double %310, double* %311
%312 = add nuw nsw i64 %306, 1
%313 = icmp eq i64 %312, %170
br i1 %313, label %284, label %305
314: ; preds = %284, %62, %35, %165
%315 = tail call double (...) @utime()
%316 = fsub double %315, %39
%317 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%318 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.9, i64 0, i64 0))
%319 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), double %316, i32 %23, i32 %23)
%320 = tail call i32* @fopen(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%321 = tail call i32 @fwrite(double* %26, i32 8, i32 %36, i32* %320)
%322 = tail call i32 @fclose(i32* %320)
br label %323
323: ; preds = %314, %33, %15
%324 = phi i32 [ 0, %15 ], [ -1, %33 ], [ 1, %314 ]
ret i32 %324
}