#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ compare_max(double, double, char *, int, double, double *);
int /*<<< orphan*/ dgeev_wrap(int, double *, double *, double *, double *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ sprintf(char *, char *, int, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
int check_dgeev_c(int verbose, double tiny) {
  if (verbose != 0) {
    fprintf(stdout, "==================================================\n"
                    "check_dgeev_c : start\n");
  }
  int check = 0;
  double max = 0.0;
  int n = 3;
  double *a = (double *)malloc(sizeof(double) * n * n);
  double *wr = (double *)malloc(sizeof(double) * n);
  double *wi = (double *)malloc(sizeof(double) * n);
  double *v = (double *)malloc(sizeof(double) * n * n);
  if (a == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "a"
                    "\n");
    exit(1);
  };
  if (wr == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "wr"
                    "\n");
    exit(1);
  };
  if (wi == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "wi"
                    "\n");
    exit(1);
  };
  if (v == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "v"
                    "\n");
    exit(1);
  };
  a[0] = +6.0;
  a[1] = -1.0;
  a[2] = +5.0;
  a[3] = -3.0;
  a[4] = +2.0;
  a[5] = -3.0;
  a[6] = -7.0;
  a[7] = +1.0;
  a[8] = -6.0;
  double *wr0 = (double *)malloc(sizeof(double) * n);
  double *wi0 = (double *)malloc(sizeof(double) * n);
  double *v0 = (double *)malloc(sizeof(double) * n * n);
  if (wr0 == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "wr0"
                    "\n");
    exit(1);
  };
  if (wi0 == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "wi0"
                    "\n");
    exit(1);
  };
  if (v0 == NULL) {
    fprintf(stderr, "check_dgeev_c"
                    " : malloc error for "
                    "v0"
                    "\n");
    exit(1);
  };
  wr0[0] = -9.999999999999980e-01;
  wr0[1] = 9.999999999999993e-01;
  wr0[2] = 2.000000000000000e+00;
  wi0[0] = 0.000000000000000e+00;
  wi0[1] = 0.000000000000000e+00;
  wi0[2] = 0.000000000000000e+00;
  v0[0] = -5.345224838248490e-01;
  v0[1] = 2.672612419124243e-01;
  v0[2] = 8.017837257372731e-01;
  v0[3] = 7.071067811865475e-01;
  v0[4] = -1.897943516187247e-16;
  v0[5] = -7.071067811865475e-01;
  v0[6] = 5.773502691896260e-01;
  v0[7] = -5.773502691896257e-01;
  v0[8] = -5.773502691896257e-01;
  dgeev_wrap(n, a, wr, wi, v);
  int i;
  char label[80];
  for (i = 0; i < n; i++) {
    sprintf(label, "wr[%d]", i);
    check += compare_max(wr[i], wr0[i], label, verbose, tiny, &max);
    sprintf(label, "wi[%d]", i);
    check += compare_max(wi[i] + 1.0, wi0[i] + 1.0, label, verbose, tiny, &max);
  }
  int j;
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      sprintf(label, "v%d[%d]", i, j);
      check +=
          compare_max(v[i * n + j], v0[i * n + j], label, verbose, tiny, &max);
    }
  }
  free(a);
  free(wr);
  free(wi);
  free(v);
  free(wr0);
  free(wi0);
  free(v0);
  if (verbose != 0) {
    fprintf(stdout, " max error = %e vs tiny = %e\n", max, tiny);
    if (check == 0)
      fprintf(stdout, " => PASSED\n\n");
    else
      fprintf(stdout, " => FAILED\n\n");
  }
  return (check);
}


x86 assembly (clang, -O0):
<check_dgeev_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
movsd  %xmm0,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     11a4 <check_dgeev_c+0x34>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
lea    0xef3(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x20(%rbp)
movl   $0x3,-0x24(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1242 <check_dgeev_c+0xd2>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
lea    0xea9(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x38(%rbp)
jne    126e <check_dgeev_c+0xfe>
mov    0x2d8c(%rip),%rax
mov    (%rax),%edi
lea    0xea1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x40(%rbp)
jne    129a <check_dgeev_c+0x12a>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0xe9a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x48(%rbp)
jne    12c6 <check_dgeev_c+0x156>
mov    0x2d34(%rip),%rax
mov    (%rax),%edi
lea    0xe93(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x30(%rbp),%rax
movsd  0xd66(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x30(%rbp),%rax
movsd  0xd4e(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x30(%rbp),%rax
movsd  0xd35(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x30(%rbp),%rax
movsd  0xd14(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x30(%rbp),%rax
movsd  0xd0b(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x30(%rbp),%rax
movsd  0xcf2(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x30(%rbp),%rax
movsd  0xcd9(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x30(%rbp),%rax
movsd  0xcc0(%rip),%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x30(%rbp),%rax
movsd  0xca7(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x3,%rax
movslq -0x24(%rbp),%rcx
imul   %rcx,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x60(%rbp)
cmpq   $0x0,-0x50(%rbp)
jne    13cb <check_dgeev_c+0x25b>
mov    0x2c2f(%rip),%rax
mov    (%rax),%edi
lea    0xdb2(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x58(%rbp)
jne    13f7 <check_dgeev_c+0x287>
mov    0x2c03(%rip),%rax
mov    (%rax),%edi
lea    0xdac(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x60(%rbp)
jne    1423 <check_dgeev_c+0x2b3>
mov    0x2bd7(%rip),%rax
mov    (%rax),%edi
lea    0xda6(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x50(%rbp),%rax
movsd  0xc59(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x50(%rbp),%rax
movsd  0xc41(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x50(%rbp),%rax
movsd  0xbd0(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x58(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x58(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x60(%rbp),%rax
movsd  0xbf4(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movsd  0xbdc(%rip),%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x60(%rbp),%rax
movsd  0xbc3(%rip),%xmm0
movsd  %xmm0,0x10(%rax)
mov    -0x60(%rbp),%rax
movsd  0xbaa(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    -0x60(%rbp),%rax
movsd  0xb91(%rip),%xmm0
movsd  %xmm0,0x20(%rax)
mov    -0x60(%rbp),%rax
movsd  0xb78(%rip),%xmm0
movsd  %xmm0,0x28(%rax)
mov    -0x60(%rbp),%rax
movsd  0xb5f(%rip),%xmm0
movsd  %xmm0,0x30(%rax)
mov    -0x60(%rbp),%rax
movsd  0xb46(%rip),%xmm0
movsd  %xmm0,0x38(%rax)
mov    -0x60(%rbp),%rax
movsd  0xb35(%rip),%xmm0
movsd  %xmm0,0x40(%rax)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
call   1060 <dgeev_wrap@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1607 <check_dgeev_c+0x497>
lea    -0xc0(%rbp),%rdi
mov    -0x64(%rbp),%edx
lea    0xc91(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x50(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    -0xc0(%rbp),%rdi
mov    -0x4(%rbp),%esi
movsd  -0x10(%rbp),%xmm2
lea    -0x20(%rbp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
lea    -0xc0(%rbp),%rdi
mov    -0x64(%rbp),%edx
lea    0xc41(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  0xa4e(%rip),%xmm0
addsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  0xa39(%rip),%xmm1
addsd  (%rax,%rcx,8),%xmm1
lea    -0xc0(%rbp),%rdi
mov    -0x4(%rbp),%esi
movsd  -0x10(%rbp),%xmm2
lea    -0x20(%rbp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    152f <check_dgeev_c+0x3bf>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    16cf <check_dgeev_c+0x55f>
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    16bc <check_dgeev_c+0x54c>
lea    -0xc0(%rbp),%rdi
mov    -0x64(%rbp),%edx
mov    -0xc4(%rbp),%ecx
lea    0xba1(%rip),%rsi
mov    $0x0,%al
call   1080 <sprintf@plt>
mov    -0x48(%rbp),%rax
mov    -0x64(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0xc4(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x60(%rbp),%rax
mov    -0x64(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0xc4(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
lea    -0xc0(%rbp),%rdi
mov    -0x4(%rbp),%esi
movsd  -0x10(%rbp),%xmm2
lea    -0x20(%rbp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rcx
movslq -0x14(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x14(%rbp)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1624 <check_dgeev_c+0x4b4>
jmp    16c1 <check_dgeev_c+0x551>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    160e <check_dgeev_c+0x49e>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x4(%rbp)
je     177b <check_dgeev_c+0x60b>
mov    0x28b9(%rip),%rax
mov    (%rax),%edi
movsd  -0x20(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
lea    0xac1(%rip),%rsi
mov    $0x2,%al
call   1040 <fprintf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    175f <check_dgeev_c+0x5ef>
mov    0x288e(%rip),%rax
mov    (%rax),%edi
lea    0xabe(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1776 <check_dgeev_c+0x606>
mov    0x2872(%rip),%rax
mov    (%rax),%edi
lea    0xaaf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    177b <check_dgeev_c+0x60b>
mov    -0x14(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_dgeev_c>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
movsd  %xmm0,(%rsp)
mov    %edi,0x24(%rsp)
test   %edi,%edi
je     11a5 <check_dgeev_c+0x35>
mov    0x2e43(%rip),%rax
mov    (%rax),%edi
lea    0xefa(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
movq   $0x0,0x8(%rsp)
mov    $0x48,%edi
call   1070 <malloc@plt>
mov    %rax,%rbp
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,0x10(%rsp)
mov    $0x48,%edi
call   1070 <malloc@plt>
test   %rbp,%rbp
je     17b0 <check_dgeev_c+0x640>
test   %rbx,%rbx
je     17c2 <check_dgeev_c+0x652>
cmpq   $0x0,0x10(%rsp)
je     17d4 <check_dgeev_c+0x664>
mov    %rax,%r13
test   %rax,%rax
je     17e6 <check_dgeev_c+0x676>
movaps 0xdee(%rip),%xmm0
movups %xmm0,0x0(%rbp)
movaps 0xdf3(%rip),%xmm0
movups %xmm0,0x10(%rbp)
movaps 0xdf8(%rip),%xmm0
movups %xmm0,0x20(%rbp)
movaps 0xdfd(%rip),%xmm0
movups %xmm0,0x30(%rbp)
movabs $0xc018000000000000,%rax
mov    %rax,0x40(%rbp)
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%r14
mov    $0x18,%edi
call   1070 <malloc@plt>
mov    %rax,%r15
mov    $0x48,%edi
call   1070 <malloc@plt>
test   %r14,%r14
je     17f8 <check_dgeev_c+0x688>
test   %r15,%r15
je     180a <check_dgeev_c+0x69a>
test   %rax,%rax
je     181c <check_dgeev_c+0x6ac>
mov    %r14,%rcx
movaps 0xdb2(%rip),%xmm0
movups %xmm0,(%r14)
movabs $0x4000000000000000,%rdx
mov    %rdx,0x10(%r14)
mov    %rcx,0x28(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,(%r15)
movq   $0x0,0x10(%r15)
movaps 0xd95(%rip),%xmm0
movups %xmm0,(%rax)
movaps 0xd9b(%rip),%xmm0
movups %xmm0,0x10(%rax)
movaps 0xda0(%rip),%xmm0
movups %xmm0,0x20(%rax)
movaps 0xda5(%rip),%xmm0
movups %xmm0,0x30(%rax)
movabs $0xbfe279a74590331c,%rcx
79 e2 bf
mov    %rcx,0x40(%rax)
mov    %r15,0x18(%rsp)
mov    %rax,0x40(%rsp)
mov    $0x3,%edi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    0x10(%rsp),%r15
mov    %r15,%rcx
mov    %r13,%r8
call   1060 <dgeev_wrap@plt>
lea    0xecc(%rip),%rsi
mov    %r13,0x38(%rsp)
lea    0x50(%rsp),%r13
mov    %r13,%rdi
xor    %edx,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  (%rbx),%xmm0
movsd  (%r14),%xmm1
lea    0x8(%rsp),%rdx
mov    %r13,%rdi
mov    0x24(%rsp),%r14d
mov    %r14d,%esi
movsd  (%rsp),%xmm2
call   1050 <compare_max@plt>
mov    %rbp,0x48(%rsp)
mov    %rbx,0x30(%rsp)
mov    %rax,%r12
lea    0xe86(%rip),%rsi
mov    %r13,%rdi
xor    %edx,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0xd16(%rip),%xmm2
movsd  (%r15),%xmm0
addsd  %xmm2,%xmm0
mov    0x18(%rsp),%rbp
movsd  0x0(%rbp),%xmm1
addsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%r15
add    %r12d,%r15d
mov    %r13,%rdi
lea    0xe2f(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x8(%rbx),%xmm0
mov    0x28(%rsp),%r12
movsd  0x8(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %r15d,%ebx
mov    %r13,%rdi
lea    0xdf4(%rip),%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    0x10(%rsp),%r15
movsd  0x8(%r15),%xmm0
movsd  0xc79(%rip),%xmm2
addsd  %xmm2,%xmm0
movsd  0x8(%rbp),%xmm1
addsd  %xmm2,%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r13,%rdi
lea    0xd9d(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    0x30(%rsp),%rax
movsd  0x10(%rax),%xmm0
movsd  0x10(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
mov    %rdx,%r12
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    %r13,%rdi
lea    0xd60(%rip),%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x10(%r15),%xmm0
movsd  0xbea(%rip),%xmm1
addsd  %xmm1,%xmm0
mov    0x18(%rsp),%rax
addsd  0x10(%rax),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
mov    %r12,%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
lea    0xd20(%rip),%rsi
mov    %r13,%rdi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    0x38(%rsp),%r15
movsd  (%r15),%xmm0
mov    0x40(%rsp),%r12
movsd  (%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    %r13,%rdi
lea    0xcd9(%rip),%rsi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x8(%r15),%xmm0
movsd  0x8(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r13,%rdi
lea    0xc9a(%rip),%rsi
xor    %edx,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x10(%r15),%xmm0
movsd  0x10(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    %r13,%rdi
lea    0xc5b(%rip),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x18(%r15),%xmm0
movsd  0x18(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r13,%rdi
lea    0xc1c(%rip),%rsi
mov    $0x1,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x20(%r15),%xmm0
movsd  0x20(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    %r13,%rdi
lea    0xbda(%rip),%rsi
mov    $0x1,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x28(%r15),%xmm0
movsd  0x28(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r13,%rdi
lea    0xb98(%rip),%rsi
mov    $0x2,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x30(%r15),%xmm0
movsd  0x30(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    %r13,%rdi
lea    0xb59(%rip),%rsi
mov    $0x2,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x38(%r15),%xmm0
movsd  0x38(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbp
add    %ebx,%ebp
mov    %r13,%rdi
lea    0xb17(%rip),%rsi
mov    $0x2,%edx
mov    $0x2,%ecx
xor    %eax,%eax
call   1080 <sprintf@plt>
movsd  0x40(%r15),%xmm0
movsd  0x40(%r12),%xmm1
mov    %r13,%rdi
mov    %r14d,%esi
movsd  (%rsp),%xmm2
lea    0x8(%rsp),%rdx
call   1050 <compare_max@plt>
mov    %rax,%rbx
add    %ebp,%ebx
mov    0x48(%rsp),%rdi
call   1030 <free@plt>
mov    0x30(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    %r12,%rdi
call   1030 <free@plt>
test   %r14d,%r14d
je     179c <check_dgeev_c+0x62c>
mov    0x2876(%rip),%rbp
mov    0x0(%rbp),%edi
movsd  0x8(%rsp),%xmm0
lea    0xa89(%rip),%rsi
movsd  (%rsp),%xmm1
mov    $0x2,%al
call   1040 <fprintf@plt>
test   %ebx,%ebx
mov    0x0(%rbp),%edi
lea    0xa8f(%rip),%rax
lea    0xa95(%rip),%rsi
cmove  %rax,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %ebx,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2829(%rip),%rax
mov    (%rax),%edi
lea    0x922(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x2817(%rip),%rax
mov    (%rax),%edi
lea    0x934(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x2805(%rip),%rax
mov    (%rax),%edi
lea    0x947(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x27f3(%rip),%rax
mov    (%rax),%edi
lea    0x95a(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x27e1(%rip),%rax
mov    (%rax),%edi
lea    0x96c(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x27cf(%rip),%rax
mov    (%rax),%edi
lea    0x980(%rip),%rsi
jmp    182c <check_dgeev_c+0x6bc>
mov    0x27bd(%rip),%rax
mov    (%rax),%edi
lea    0x994(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [74 x i8] c"==================================================\0Acheck_dgeev_c : start\0A\00"
@stderr = global i32 0
@.str.1 = [36 x i8] c"check_dgeev_c : malloc error for a\0A\00"
@.str.2 = [37 x i8] c"check_dgeev_c : malloc error for wr\0A\00"
@.str.3 = [37 x i8] c"check_dgeev_c : malloc error for wi\0A\00"
@.str.4 = [36 x i8] c"check_dgeev_c : malloc error for v\0A\00"
@.str.5 = [38 x i8] c"check_dgeev_c : malloc error for wr0\0A\00"
@.str.6 = [38 x i8] c"check_dgeev_c : malloc error for wi0\0A\00"
@.str.7 = [37 x i8] c"check_dgeev_c : malloc error for v0\0A\00"
@.str.8 = [7 x i8] c"wr[%d]\00"
@.str.9 = [7 x i8] c"wi[%d]\00"
@.str.10 = [8 x i8] c"v%d[%d]\00"
@.str.11 = [30 x i8] c" max error = %e vs tiny = %e\0A\00"
@.str.12 = [13 x i8] c" => PASSED\0A\0A\00"
@.str.13 = [13 x i8] c" => FAILED\0A\0A\00"
define i32 @check_dgeev_c(i32 %0, double %1) {
%3 = alloca i32
%4 = alloca double
%5 = alloca i32
%6 = alloca double
%7 = alloca i32
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca i32
%16 = alloca [80 x i8]
%17 = alloca i32
store i32 %0, i32* %3
store double %1, double* %4
%18 = load i32, i32* %3
%19 = icmp ne i32 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %2
%21 = load i32, i32* @stdout
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %20, %2
store i32 0, i32* %5
store double 0.000000e+00, double* %6
store i32 3, i32* %7
%24 = load i32, i32* %7
%25 = sext i32 %24 to i64
%26 = mul i64 8, %25
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = mul i64 %26, %28
%30 = trunc i64 %29 to i32
%31 = call i64 @malloc(i32 %30)
%32 = inttoptr i64 %31 to double*
store double* %32, double** %8
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = mul i64 8, %34
%36 = trunc i64 %35 to i32
%37 = call i64 @malloc(i32 %36)
%38 = inttoptr i64 %37 to double*
store double* %38, double** %9
%39 = load i32, i32* %7
%40 = sext i32 %39 to i64
%41 = mul i64 8, %40
%42 = trunc i64 %41 to i32
%43 = call i64 @malloc(i32 %42)
%44 = inttoptr i64 %43 to double*
store double* %44, double** %10
%45 = load i32, i32* %7
%46 = sext i32 %45 to i64
%47 = mul i64 8, %46
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = mul i64 %47, %49
%51 = trunc i64 %50 to i32
%52 = call i64 @malloc(i32 %51)
%53 = inttoptr i64 %52 to double*
store double* %53, double** %11
%54 = load double*, double** %8
%55 = icmp eq double* %54, null
br i1 %55, label %56, label %60
56: ; preds = %23
%57 = load i32, i32* @stderr
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%59 = call i32 @exit(i32 1)
unreachable
60: ; preds = %23
%61 = load double*, double** %9
%62 = icmp eq double* %61, null
br i1 %62, label %63, label %67
63: ; preds = %60
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%66 = call i32 @exit(i32 1)
unreachable
67: ; preds = %60
%68 = load double*, double** %10
%69 = icmp eq double* %68, null
br i1 %69, label %70, label %74
70: ; preds = %67
%71 = load i32, i32* @stderr
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%73 = call i32 @exit(i32 1)
unreachable
74: ; preds = %67
%75 = load double*, double** %11
%76 = icmp eq double* %75, null
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = load i32, i32* @stderr
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%80 = call i32 @exit(i32 1)
unreachable
81: ; preds = %74
%82 = load double*, double** %8
%83 = getelementptr inbounds double, double* %82, i64 0
store double 6.000000e+00, double* %83
%84 = load double*, double** %8
%85 = getelementptr inbounds double, double* %84, i64 1
store double -1.000000e+00, double* %85
%86 = load double*, double** %8
%87 = getelementptr inbounds double, double* %86, i64 2
store double 5.000000e+00, double* %87
%88 = load double*, double** %8
%89 = getelementptr inbounds double, double* %88, i64 3
store double -3.000000e+00, double* %89
%90 = load double*, double** %8
%91 = getelementptr inbounds double, double* %90, i64 4
store double 2.000000e+00, double* %91
%92 = load double*, double** %8
%93 = getelementptr inbounds double, double* %92, i64 5
store double -3.000000e+00, double* %93
%94 = load double*, double** %8
%95 = getelementptr inbounds double, double* %94, i64 6
store double -7.000000e+00, double* %95
%96 = load double*, double** %8
%97 = getelementptr inbounds double, double* %96, i64 7
store double 1.000000e+00, double* %97
%98 = load double*, double** %8
%99 = getelementptr inbounds double, double* %98, i64 8
store double -6.000000e+00, double* %99
%100 = load i32, i32* %7
%101 = sext i32 %100 to i64
%102 = mul i64 8, %101
%103 = trunc i64 %102 to i32
%104 = call i64 @malloc(i32 %103)
%105 = inttoptr i64 %104 to double*
store double* %105, double** %12
%106 = load i32, i32* %7
%107 = sext i32 %106 to i64
%108 = mul i64 8, %107
%109 = trunc i64 %108 to i32
%110 = call i64 @malloc(i32 %109)
%111 = inttoptr i64 %110 to double*
store double* %111, double** %13
%112 = load i32, i32* %7
%113 = sext i32 %112 to i64
%114 = mul i64 8, %113
%115 = load i32, i32* %7
%116 = sext i32 %115 to i64
%117 = mul i64 %114, %116
%118 = trunc i64 %117 to i32
%119 = call i64 @malloc(i32 %118)
%120 = inttoptr i64 %119 to double*
store double* %120, double** %14
%121 = load double*, double** %12
%122 = icmp eq double* %121, null
br i1 %122, label %123, label %127
123: ; preds = %81
%124 = load i32, i32* @stderr
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %124, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%126 = call i32 @exit(i32 1)
unreachable
127: ; preds = %81
%128 = load double*, double** %13
%129 = icmp eq double* %128, null
br i1 %129, label %130, label %134
130: ; preds = %127
%131 = load i32, i32* @stderr
%132 = call i32 (i32, i8*, ...) @fprintf(i32 %131, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%133 = call i32 @exit(i32 1)
unreachable
134: ; preds = %127
%135 = load double*, double** %14
%136 = icmp eq double* %135, null
br i1 %136, label %137, label %141
137: ; preds = %134
%138 = load i32, i32* @stderr
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%140 = call i32 @exit(i32 1)
unreachable
141: ; preds = %134
%142 = load double*, double** %12
%143 = getelementptr inbounds double, double* %142, i64 0
store double 0xBFEFFFFFFFFFFFEE, double* %143
%144 = load double*, double** %12
%145 = getelementptr inbounds double, double* %144, i64 1
store double 0x3FEFFFFFFFFFFFFA, double* %145
%146 = load double*, double** %12
%147 = getelementptr inbounds double, double* %146, i64 2
store double 2.000000e+00, double* %147
%148 = load double*, double** %13
%149 = getelementptr inbounds double, double* %148, i64 0
store double 0.000000e+00, double* %149
%150 = load double*, double** %13
%151 = getelementptr inbounds double, double* %150, i64 1
store double 0.000000e+00, double* %151
%152 = load double*, double** %13
%153 = getelementptr inbounds double, double* %152, i64 2
store double 0.000000e+00, double* %153
%154 = load double*, double** %14
%155 = getelementptr inbounds double, double* %154, i64 0
store double 0xBFE11ACEE560242C, double* %155
%156 = load double*, double** %14
%157 = getelementptr inbounds double, double* %156, i64 1
store double 0x3FD11ACEE5602428, double* %157
%158 = load double*, double** %14
%159 = getelementptr inbounds double, double* %158, i64 2
store double 0x3FE9A8365810363E, double* %159
%160 = load double*, double** %14
%161 = getelementptr inbounds double, double* %160, i64 3
store double 0x3FE6A09E667F3BCC, double* %161
%162 = load double*, double** %14
%163 = getelementptr inbounds double, double* %162, i64 4
store double 0xBCAB5A2CF82D8380, double* %163
%164 = load double*, double** %14
%165 = getelementptr inbounds double, double* %164, i64 5
store double 0xBFE6A09E667F3BCC, double* %165
%166 = load double*, double** %14
%167 = getelementptr inbounds double, double* %166, i64 6
store double 0x3FE279A74590331E, double* %167
%168 = load double*, double** %14
%169 = getelementptr inbounds double, double* %168, i64 7
store double 0xBFE279A74590331C, double* %169
%170 = load double*, double** %14
%171 = getelementptr inbounds double, double* %170, i64 8
store double 0xBFE279A74590331C, double* %171
%172 = load i32, i32* %7
%173 = load double*, double** %8
%174 = load double*, double** %9
%175 = load double*, double** %10
%176 = load double*, double** %11
%177 = call i32 @dgeev_wrap(i32 %172, double* %173, double* %174, double* %175, double* %176)
store i32 0, i32* %15
br label %178
178: ; preds = %227, %141
%179 = load i32, i32* %15
%180 = load i32, i32* %7
%181 = icmp slt i32 %179, %180
br i1 %181, label %182, label %230
182: ; preds = %178
%183 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%184 = load i32, i32* %15
%185 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %183, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %184)
%186 = load double*, double** %9
%187 = load i32, i32* %15
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds double, double* %186, i64 %188
%190 = load double, double* %189
%191 = load double*, double** %12
%192 = load i32, i32* %15
%193 = sext i32 %192 to i64
%194 = getelementptr inbounds double, double* %191, i64 %193
%195 = load double, double* %194
%196 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%197 = load i32, i32* %3
%198 = load double, double* %4
%199 = call i64 @compare_max(double %190, double %195, i8* %196, i32 %197, double %198, double* %6)
%200 = load i32, i32* %5
%201 = sext i32 %200 to i64
%202 = add nsw i64 %201, %199
%203 = trunc i64 %202 to i32
store i32 %203, i32* %5
%204 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%205 = load i32, i32* %15
%206 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %204, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 %205)
%207 = load double*, double** %10
%208 = load i32, i32* %15
%209 = sext i32 %208 to i64
%210 = getelementptr inbounds double, double* %207, i64 %209
%211 = load double, double* %210
%212 = fadd double %211, 1.000000e+00
%213 = load double*, double** %13
%214 = load i32, i32* %15
%215 = sext i32 %214 to i64
%216 = getelementptr inbounds double, double* %213, i64 %215
%217 = load double, double* %216
%218 = fadd double %217, 1.000000e+00
%219 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%220 = load i32, i32* %3
%221 = load double, double* %4
%222 = call i64 @compare_max(double %212, double %218, i8* %219, i32 %220, double %221, double* %6)
%223 = load i32, i32* %5
%224 = sext i32 %223 to i64
%225 = add nsw i64 %224, %222
%226 = trunc i64 %225 to i32
store i32 %226, i32* %5
br label %227
227: ; preds = %182
%228 = load i32, i32* %15
%229 = add nsw i32 %228, 1
store i32 %229, i32* %15
br label %178
230: ; preds = %178
store i32 0, i32* %15
br label %231
231: ; preds = %275, %230
%232 = load i32, i32* %15
%233 = load i32, i32* %7
%234 = icmp slt i32 %232, %233
br i1 %234, label %235, label %278
235: ; preds = %231
store i32 0, i32* %17
br label %236
236: ; preds = %271, %235
%237 = load i32, i32* %17
%238 = load i32, i32* %7
%239 = icmp slt i32 %237, %238
br i1 %239, label %240, label %274
240: ; preds = %236
%241 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%242 = load i32, i32* %15
%243 = load i32, i32* %17
%244 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %241, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 %242, i32 %243)
%245 = load double*, double** %11
%246 = load i32, i32* %15
%247 = load i32, i32* %7
%248 = mul nsw i32 %246, %247
%249 = load i32, i32* %17
%250 = add nsw i32 %248, %249
%251 = sext i32 %250 to i64
%252 = getelementptr inbounds double, double* %245, i64 %251
%253 = load double, double* %252
%254 = load double*, double** %14
%255 = load i32, i32* %15
%256 = load i32, i32* %7
%257 = mul nsw i32 %255, %256
%258 = load i32, i32* %17
%259 = add nsw i32 %257, %258
%260 = sext i32 %259 to i64
%261 = getelementptr inbounds double, double* %254, i64 %260
%262 = load double, double* %261
%263 = getelementptr inbounds [80 x i8], [80 x i8]* %16, i64 0, i64 0
%264 = load i32, i32* %3
%265 = load double, double* %4
%266 = call i64 @compare_max(double %253, double %262, i8* %263, i32 %264, double %265, double* %6)
%267 = load i32, i32* %5
%268 = sext i32 %267 to i64
%269 = add nsw i64 %268, %266
%270 = trunc i64 %269 to i32
store i32 %270, i32* %5
br label %271
271: ; preds = %240
%272 = load i32, i32* %17
%273 = add nsw i32 %272, 1
store i32 %273, i32* %17
br label %236
274: ; preds = %236
br label %275
275: ; preds = %274
%276 = load i32, i32* %15
%277 = add nsw i32 %276, 1
store i32 %277, i32* %15
br label %231
278: ; preds = %231
%279 = load double*, double** %8
%280 = call i32 @free(double* %279)
%281 = load double*, double** %9
%282 = call i32 @free(double* %281)
%283 = load double*, double** %10
%284 = call i32 @free(double* %283)
%285 = load double*, double** %11
%286 = call i32 @free(double* %285)
%287 = load double*, double** %12
%288 = call i32 @free(double* %287)
%289 = load double*, double** %13
%290 = call i32 @free(double* %289)
%291 = load double*, double** %14
%292 = call i32 @free(double* %291)
%293 = load i32, i32* %3
%294 = icmp ne i32 %293, 0
br i1 %294, label %295, label %309
295: ; preds = %278
%296 = load i32, i32* @stdout
%297 = load double, double* %6
%298 = load double, double* %4
%299 = call i32 (i32, i8*, ...) @fprintf(i32 %296, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), double %297, double %298)
%300 = load i32, i32* %5
%301 = icmp eq i32 %300, 0
br i1 %301, label %302, label %305
302: ; preds = %295
%303 = load i32, i32* @stdout
%304 = call i32 (i32, i8*, ...) @fprintf(i32 %303, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
br label %308
305: ; preds = %295
%306 = load i32, i32* @stdout
%307 = call i32 (i32, i8*, ...) @fprintf(i32 %306, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
br label %308
308: ; preds = %305, %302
br label %309
309: ; preds = %308, %278
%310 = load i32, i32* %5
ret i32 %310
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [74 x i8] c"==================================================\0Acheck_dgeev_c : start\0A\00"
@stderr = global i32 0
@.str.1 = [36 x i8] c"check_dgeev_c : malloc error for a\0A\00"
@.str.2 = [37 x i8] c"check_dgeev_c : malloc error for wr\0A\00"
@.str.3 = [37 x i8] c"check_dgeev_c : malloc error for wi\0A\00"
@.str.4 = [36 x i8] c"check_dgeev_c : malloc error for v\0A\00"
@.str.5 = [38 x i8] c"check_dgeev_c : malloc error for wr0\0A\00"
@.str.6 = [38 x i8] c"check_dgeev_c : malloc error for wi0\0A\00"
@.str.7 = [37 x i8] c"check_dgeev_c : malloc error for v0\0A\00"
@.str.8 = [7 x i8] c"wr[%d]\00"
@.str.9 = [7 x i8] c"wi[%d]\00"
@.str.10 = [8 x i8] c"v%d[%d]\00"
@.str.11 = [30 x i8] c" max error = %e vs tiny = %e\0A\00"
@.str.12 = [13 x i8] c" => PASSED\0A\0A\00"
@.str.13 = [13 x i8] c" => FAILED\0A\0A\00"
define i32 @check_dgeev_c(i32 %0, double %1) {
%3 = alloca double
%4 = alloca [80 x i8]
%5 = icmp eq i32 %0, 0
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, i32* @stdout
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str, i64 0, i64 0))
br label %9
9: ; preds = %6, %2
%10 = bitcast double* %3 to i8*
store double 0.000000e+00, double* %3
%11 = tail call i64 @malloc(i32 72)
%12 = inttoptr i64 %11 to double*
%13 = tail call i64 @malloc(i32 24)
%14 = inttoptr i64 %13 to double*
%15 = tail call i64 @malloc(i32 24)
%16 = inttoptr i64 %15 to double*
%17 = tail call i64 @malloc(i32 72)
%18 = inttoptr i64 %17 to double*
%19 = icmp eq i64 %11, 0
br i1 %19, label %20, label %24
20: ; preds = %9
%21 = load i32, i32* @stderr
%22 = tail call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%23 = tail call i32 @exit(i32 1)
unreachable
24: ; preds = %9
%25 = icmp eq i64 %13, 0
br i1 %25, label %26, label %30
26: ; preds = %24
%27 = load i32, i32* @stderr
%28 = tail call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%29 = tail call i32 @exit(i32 1)
unreachable
30: ; preds = %24
%31 = icmp eq i64 %15, 0
br i1 %31, label %32, label %36
32: ; preds = %30
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%35 = tail call i32 @exit(i32 1)
unreachable
36: ; preds = %30
%37 = icmp eq i64 %17, 0
br i1 %37, label %38, label %42
38: ; preds = %36
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%41 = tail call i32 @exit(i32 1)
unreachable
42: ; preds = %36
%43 = inttoptr i64 %11 to <2 x double>*
store <2 x double> <double 6.000000e+00, double -1.000000e+00>, <2 x double>* %43
%44 = getelementptr inbounds double, double* %12, i64 2
%45 = bitcast double* %44 to <2 x double>*
store <2 x double> <double 5.000000e+00, double -3.000000e+00>, <2 x double>* %45
%46 = getelementptr inbounds double, double* %12, i64 4
%47 = bitcast double* %46 to <2 x double>*
store <2 x double> <double 2.000000e+00, double -3.000000e+00>, <2 x double>* %47
%48 = getelementptr inbounds double, double* %12, i64 6
%49 = bitcast double* %48 to <2 x double>*
store <2 x double> <double -7.000000e+00, double 1.000000e+00>, <2 x double>* %49
%50 = getelementptr inbounds double, double* %12, i64 8
store double -6.000000e+00, double* %50
%51 = tail call i64 @malloc(i32 24)
%52 = inttoptr i64 %51 to double*
%53 = tail call i64 @malloc(i32 24)
%54 = inttoptr i64 %53 to double*
%55 = tail call i64 @malloc(i32 72)
%56 = inttoptr i64 %55 to double*
%57 = icmp eq i64 %51, 0
br i1 %57, label %58, label %62
58: ; preds = %42
%59 = load i32, i32* @stderr
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%61 = tail call i32 @exit(i32 1)
unreachable
62: ; preds = %42
%63 = icmp eq i64 %53, 0
br i1 %63, label %64, label %68
64: ; preds = %62
%65 = load i32, i32* @stderr
%66 = tail call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%67 = tail call i32 @exit(i32 1)
unreachable
68: ; preds = %62
%69 = icmp eq i64 %55, 0
br i1 %69, label %70, label %74
70: ; preds = %68
%71 = load i32, i32* @stderr
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0))
%73 = tail call i32 @exit(i32 1)
unreachable
74: ; preds = %68
%75 = getelementptr inbounds double, double* %52, i64 1
%76 = inttoptr i64 %51 to <2 x double>*
store <2 x double> <double 0xBFEFFFFFFFFFFFEE, double 0x3FEFFFFFFFFFFFFA>, <2 x double>* %76
%77 = getelementptr inbounds double, double* %52, i64 2
store double 2.000000e+00, double* %77
%78 = getelementptr inbounds double, double* %54, i64 1
%79 = getelementptr inbounds double, double* %54, i64 2
%80 = inttoptr i64 %53 to i8*
%81 = getelementptr inbounds double, double* %56, i64 1
%82 = inttoptr i64 %55 to <2 x double>*
store <2 x double> <double 0xBFE11ACEE560242C, double 0x3FD11ACEE5602428>, <2 x double>* %82
%83 = getelementptr inbounds double, double* %56, i64 2
%84 = getelementptr inbounds double, double* %56, i64 3
%85 = bitcast double* %83 to <2 x double>*
store <2 x double> <double 0x3FE9A8365810363E, double 0x3FE6A09E667F3BCC>, <2 x double>* %85
%86 = getelementptr inbounds double, double* %56, i64 4
%87 = getelementptr inbounds double, double* %56, i64 5
%88 = bitcast double* %86 to <2 x double>*
store <2 x double> <double 0xBCAB5A2CF82D8380, double 0xBFE6A09E667F3BCC>, <2 x double>* %88
%89 = getelementptr inbounds double, double* %56, i64 6
%90 = getelementptr inbounds double, double* %56, i64 7
%91 = bitcast double* %89 to <2 x double>*
store <2 x double> <double 0x3FE279A74590331E, double 0xBFE279A74590331C>, <2 x double>* %91
%92 = getelementptr inbounds double, double* %56, i64 8
store double 0xBFE279A74590331C, double* %92
%93 = tail call i32 @dgeev_wrap(i32 3, double* %12, double* %14, double* %16, double* %18)
%94 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
%95 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 0)
%96 = load double, double* %14
%97 = load double, double* %52
%98 = call i64 @compare_max(double %96, double %97, i8* %94, i32 %0, double %1, double* %3)
%99 = trunc i64 %98 to i32
%100 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 0)
%101 = load double, double* %16
%102 = fadd double %101, 1.000000e+00
%103 = load double, double* %54
%104 = fadd double %103, 1.000000e+00
%105 = call i64 @compare_max(double %102, double %104, i8* %94, i32 %0, double %1, double* %3)
%106 = trunc i64 %105 to i32
%107 = add i32 %99, %106
%108 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 1)
%109 = getelementptr inbounds double, double* %14, i64 1
%110 = load double, double* %109
%111 = load double, double* %75
%112 = call i64 @compare_max(double %110, double %111, i8* %94, i32 %0, double %1, double* %3)
%113 = trunc i64 %112 to i32
%114 = add i32 %107, %113
%115 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 1)
%116 = getelementptr inbounds double, double* %16, i64 1
%117 = load double, double* %116
%118 = fadd double %117, 1.000000e+00
%119 = load double, double* %78
%120 = fadd double %119, 1.000000e+00
%121 = call i64 @compare_max(double %118, double %120, i8* %94, i32 %0, double %1, double* %3)
%122 = trunc i64 %121 to i32
%123 = add i32 %114, %122
%124 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 2)
%125 = getelementptr inbounds double, double* %14, i64 2
%126 = load double, double* %125
%127 = load double, double* %77
%128 = call i64 @compare_max(double %126, double %127, i8* %94, i32 %0, double %1, double* %3)
%129 = trunc i64 %128 to i32
%130 = add i32 %123, %129
%131 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i32 2)
%132 = getelementptr inbounds double, double* %16, i64 2
%133 = load double, double* %132
%134 = fadd double %133, 1.000000e+00
%135 = load double, double* %79
%136 = fadd double %135, 1.000000e+00
%137 = call i64 @compare_max(double %134, double %136, i8* %94, i32 %0, double %1, double* %3)
%138 = trunc i64 %137 to i32
%139 = add i32 %130, %138
%140 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 0)
%141 = load double, double* %18
%142 = load double, double* %56
%143 = call i64 @compare_max(double %141, double %142, i8* %94, i32 %0, double %1, double* %3)
%144 = trunc i64 %143 to i32
%145 = add i32 %139, %144
%146 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 1)
%147 = getelementptr inbounds double, double* %18, i64 1
%148 = load double, double* %147
%149 = load double, double* %81
%150 = call i64 @compare_max(double %148, double %149, i8* %94, i32 %0, double %1, double* %3)
%151 = trunc i64 %150 to i32
%152 = add i32 %145, %151
%153 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 2)
%154 = getelementptr inbounds double, double* %18, i64 2
%155 = load double, double* %154
%156 = load double, double* %83
%157 = call i64 @compare_max(double %155, double %156, i8* %94, i32 %0, double %1, double* %3)
%158 = trunc i64 %157 to i32
%159 = add i32 %152, %158
%160 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 1, i32 0)
%161 = getelementptr inbounds double, double* %18, i64 3
%162 = load double, double* %161
%163 = load double, double* %84
%164 = call i64 @compare_max(double %162, double %163, i8* %94, i32 %0, double %1, double* %3)
%165 = trunc i64 %164 to i32
%166 = add i32 %159, %165
%167 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 1, i32 1)
%168 = getelementptr inbounds double, double* %18, i64 4
%169 = load double, double* %168
%170 = load double, double* %86
%171 = call i64 @compare_max(double %169, double %170, i8* %94, i32 %0, double %1, double* %3)
%172 = trunc i64 %171 to i32
%173 = add i32 %166, %172
%174 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 1, i32 2)
%175 = getelementptr inbounds double, double* %18, i64 5
%176 = load double, double* %175
%177 = load double, double* %87
%178 = call i64 @compare_max(double %176, double %177, i8* %94, i32 %0, double %1, double* %3)
%179 = trunc i64 %178 to i32
%180 = add i32 %173, %179
%181 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 2, i32 0)
%182 = getelementptr inbounds double, double* %18, i64 6
%183 = load double, double* %182
%184 = load double, double* %89
%185 = call i64 @compare_max(double %183, double %184, i8* %94, i32 %0, double %1, double* %3)
%186 = trunc i64 %185 to i32
%187 = add i32 %180, %186
%188 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 2, i32 1)
%189 = getelementptr inbounds double, double* %18, i64 7
%190 = load double, double* %189
%191 = load double, double* %90
%192 = call i64 @compare_max(double %190, double %191, i8* %94, i32 %0, double %1, double* %3)
%193 = trunc i64 %192 to i32
%194 = add i32 %187, %193
%195 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %94, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i32 2, i32 2)
%196 = getelementptr inbounds double, double* %18, i64 8
%197 = load double, double* %196
%198 = load double, double* %92
%199 = call i64 @compare_max(double %197, double %198, i8* %94, i32 %0, double %1, double* %3)
%200 = trunc i64 %199 to i32
%201 = add i32 %194, %200
%202 = call i32 @free(double* %12)
%203 = call i32 @free(double* %14)
%204 = call i32 @free(double* %16)
%205 = call i32 @free(double* %18)
%206 = call i32 @free(double* %52)
%207 = call i32 @free(double* %54)
%208 = call i32 @free(double* %56)
br i1 %5, label %217, label %209
209: ; preds = %74
%210 = load i32, i32* @stdout
%211 = load double, double* %3
%212 = call i32 (i32, i8*, ...) @fprintf(i32 %210, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), double %211, double %1)
%213 = icmp eq i32 %201, 0
%214 = load i32, i32* @stdout
%215 = select i1 %213, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0)
%216 = call i32 (i32, i8*, ...) @fprintf(i32 %214, i8* %215)
br label %217
217: ; preds = %209, %74
ret i32 %201
}