#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 */
int /*<<< orphan*/ check_caxpy(int);
int /*<<< orphan*/ check_ccopy(int);
int /*<<< orphan*/ check_cdotc(int);
int /*<<< orphan*/ check_cdotu(int);
int /*<<< orphan*/ check_cscal(int);
int /*<<< orphan*/ check_csscal(int);
int /*<<< orphan*/ check_cswap(int);
int /*<<< orphan*/ check_dasum(int);
int /*<<< orphan*/ check_daxpy(int);
int /*<<< orphan*/ check_dcopy(int);
int /*<<< orphan*/ check_ddot(int);
int /*<<< orphan*/ check_dnrm2(int);
int /*<<< orphan*/ check_drot(int);
int /*<<< orphan*/ check_drotg(int);
int /*<<< orphan*/ check_drotm(int);
int /*<<< orphan*/ check_drotmg(int);
int /*<<< orphan*/ check_dscal(int);
int /*<<< orphan*/ check_dsdot(int);
int /*<<< orphan*/ check_dswap(int);
int /*<<< orphan*/ check_dzasum(int);
int /*<<< orphan*/ check_dznrm2(int);
int /*<<< orphan*/ check_icamax(int);
int /*<<< orphan*/ check_idamax(int);
int /*<<< orphan*/ check_isamax(int);
int /*<<< orphan*/ check_izamax(int);
int /*<<< orphan*/ check_sasum(int);
int /*<<< orphan*/ check_saxpy(int);
int /*<<< orphan*/ check_scasum(int);
int /*<<< orphan*/ check_scnrm2(int);
int /*<<< orphan*/ check_scopy(int);
int /*<<< orphan*/ check_sdot(int);
int /*<<< orphan*/ check_sdsdot(int);
int /*<<< orphan*/ check_snrm2(int);
int /*<<< orphan*/ check_srot(int);
int /*<<< orphan*/ check_srotg(int);
int /*<<< orphan*/ check_srotm(int);
int /*<<< orphan*/ check_srotmg(int);
int /*<<< orphan*/ check_sscal(int);
int /*<<< orphan*/ check_sswap(int);
int /*<<< orphan*/ check_zaxpy(int);
int /*<<< orphan*/ check_zcopy(int);
int /*<<< orphan*/ check_zdotc(int);
int /*<<< orphan*/ check_zdotu(int);
int /*<<< orphan*/ check_zdscal(int);
int /*<<< orphan*/ check_zscal(int);
int /*<<< orphan*/ check_zswap(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ test_function(char *, int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int fail = 0;
  bool verbose = false;
  printf(" ---------------------------\n");
  printf("      CoBLAS Test Suite     \n");
  printf(" ---------------------------\n");
  if (test_function("cblas_sdot  ", check_sdot(verbose)))
    fail++;
  if (test_function("cblas_saxpy ", check_saxpy(verbose)))
    fail++;
  if (test_function("cblas_srotg ", check_srotg(verbose)))
    fail++;
  if (test_function("cblas_srot  ", check_srot(verbose)))
    fail++;
  if (test_function("cblas_scopy ", check_scopy(verbose)))
    fail++;
  if (test_function("cblas_sswap ", check_sswap(verbose)))
    fail++;
  if (test_function("cblas_snrm2 ", check_snrm2(verbose)))
    fail++;
  if (test_function("cblas_sasum ", check_sasum(verbose)))
    fail++;
  if (test_function("cblas_sscal ", check_sscal(verbose)))
    fail++;
  if (test_function("cblas_isamax", check_isamax(verbose)))
    fail++;
  if (test_function("cblas_srotmg", check_srotmg(verbose)))
    fail++;
  if (test_function("cblas_srotm ", check_srotm(verbose)))
    fail++;
  if (test_function("cblas_sdsdot", check_sdsdot(verbose)))
    fail++;
  if (test_function("cblas_ddot  ", check_ddot(verbose)))
    fail++;
  if (test_function("cblas_daxpy ", check_daxpy(verbose)))
    fail++;
  if (test_function("cblas_drotg ", check_drotg(verbose)))
    fail++;
  if (test_function("cblas_drot  ", check_drot(verbose)))
    fail++;
  if (test_function("cblas_dcopy ", check_dcopy(verbose)))
    fail++;
  if (test_function("cblas_dswap ", check_dswap(verbose)))
    fail++;
  if (test_function("cblas_dnrm2 ", check_dnrm2(verbose)))
    fail++;
  if (test_function("cblas_dasum ", check_dasum(verbose)))
    fail++;
  if (test_function("cblas_dscal ", check_dscal(verbose)))
    fail++;
  if (test_function("cblas_idamax", check_idamax(verbose)))
    fail++;
  if (test_function("cblas_drotmg", check_drotmg(verbose)))
    fail++;
  if (test_function("cblas_drotm ", check_drotm(verbose)))
    fail++;
  if (test_function("cblas_dsdot ", check_dsdot(verbose)))
    fail++;
  if (test_function("cblas_cdotc ", check_cdotc(verbose)))
    fail++;
  if (test_function("cblas_cdotu ", check_cdotu(verbose)))
    fail++;
  if (test_function("cblas_caxpy ", check_caxpy(verbose)))
    fail++;
  if (test_function("cblas_ccopy ", check_ccopy(verbose)))
    fail++;
  if (test_function("cblas_cswap ", check_cswap(verbose)))
    fail++;
  if (test_function("cblas_scnrm2", check_scnrm2(verbose)))
    fail++;
  if (test_function("cblas_scasum", check_scasum(verbose)))
    fail++;
  if (test_function("cblas_cscal ", check_cscal(verbose)))
    fail++;
  if (test_function("cblas_csscal", check_csscal(verbose)))
    fail++;
  if (test_function("cblas_icamax", check_icamax(verbose)))
    fail++;
  if (test_function("cblas_zdotc ", check_zdotc(verbose)))
    fail++;
  if (test_function("cblas_zdotu ", check_zdotu(verbose)))
    fail++;
  if (test_function("cblas_zaxpy ", check_zaxpy(verbose)))
    fail++;
  if (test_function("cblas_zcopy ", check_zcopy(verbose)))
    fail++;
  if (test_function("cblas_zswap ", check_zswap(verbose)))
    fail++;
  if (test_function("cblas_dznrm2", check_dznrm2(verbose)))
    fail++;
  if (test_function("cblas_dzasum", check_dzasum(verbose)))
    fail++;
  if (test_function("cblas_zscal ", check_zscal(verbose)))
    fail++;
  if (test_function("cblas_zdscal", check_zdscal(verbose)))
    fail++;
  if (test_function("cblas_izamax", check_izamax(verbose)))
    fail++;
  printf(" ---------------------------\n");
  if (fail == 0)
    printf(" All tests passed.\n");
  else if (fail == 1)
    printf(" There was one failed test.\n");
  else
    printf(" There were %d failed tests.\n", fail);
  return fail;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xbd5(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
lea    0xbe5(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
lea    0xbb9(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
mov    -0x18(%rbp),%edi
call   21c0 <check_sdot@plt>
mov    %eax,%esi
lea    0xbdd(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2477 <main+0x77>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   20b0 <check_saxpy@plt>
mov    %eax,%esi
lea    0xbc1(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     24a0 <main+0xa0>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2210 <check_srotg@plt>
mov    %eax,%esi
lea    0xba5(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     24c9 <main+0xc9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   20c0 <check_srot@plt>
mov    %eax,%esi
lea    0xb89(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     24f2 <main+0xf2>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2040 <check_scopy@plt>
mov    %eax,%esi
lea    0xb6d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     251b <main+0x11b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   20f0 <check_sswap@plt>
mov    %eax,%esi
lea    0xb51(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2544 <main+0x144>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2150 <check_snrm2@plt>
mov    %eax,%esi
lea    0xb35(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     256d <main+0x16d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2130 <check_sasum@plt>
mov    %eax,%esi
lea    0xb19(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2596 <main+0x196>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   22b0 <check_sscal@plt>
mov    %eax,%esi
lea    0xafd(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     25bf <main+0x1bf>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   21b0 <check_isamax@plt>
mov    %eax,%esi
lea    0xae1(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     25e8 <main+0x1e8>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2300 <check_srotmg@plt>
mov    %eax,%esi
lea    0xac5(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2611 <main+0x211>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2220 <check_srotm@plt>
mov    %eax,%esi
lea    0xaa9(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     263a <main+0x23a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2070 <check_sdsdot@plt>
mov    %eax,%esi
lea    0xa8d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2663 <main+0x263>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2140 <check_ddot@plt>
mov    %eax,%esi
lea    0xa71(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     268c <main+0x28c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2100 <check_daxpy@plt>
mov    %eax,%esi
lea    0xa55(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     26b5 <main+0x2b5>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2280 <check_drotg@plt>
mov    %eax,%esi
lea    0xa39(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     26de <main+0x2de>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2310 <check_drot@plt>
mov    %eax,%esi
lea    0xa1d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2707 <main+0x307>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2120 <check_dcopy@plt>
mov    %eax,%esi
lea    0xa01(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2730 <main+0x330>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2260 <check_dswap@plt>
mov    %eax,%esi
lea    0x9e5(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2759 <main+0x359>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2180 <check_dnrm2@plt>
mov    %eax,%esi
lea    0x9c9(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2782 <main+0x382>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2190 <check_dasum@plt>
mov    %eax,%esi
lea    0x9ad(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     27ab <main+0x3ab>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2230 <check_dscal@plt>
mov    %eax,%esi
lea    0x991(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     27d4 <main+0x3d4>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2110 <check_idamax@plt>
mov    %eax,%esi
lea    0x975(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     27fd <main+0x3fd>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   22d0 <check_drotmg@plt>
mov    %eax,%esi
lea    0x959(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2826 <main+0x426>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   22a0 <check_drotm@plt>
mov    %eax,%esi
lea    0x93d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     284f <main+0x44f>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2290 <check_dsdot@plt>
mov    %eax,%esi
lea    0x921(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2878 <main+0x478>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   21f0 <check_cdotc@plt>
mov    %eax,%esi
lea    0x905(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     28a1 <main+0x4a1>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2200 <check_cdotu@plt>
mov    %eax,%esi
lea    0x8e9(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     28ca <main+0x4ca>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2060 <check_caxpy@plt>
mov    %eax,%esi
lea    0x8cd(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     28f3 <main+0x4f3>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   21e0 <check_ccopy@plt>
mov    %eax,%esi
lea    0x8b1(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     291c <main+0x51c>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   21a0 <check_cswap@plt>
mov    %eax,%esi
lea    0x895(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2945 <main+0x545>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   20d0 <check_scnrm2@plt>
mov    %eax,%esi
lea    0x879(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     296e <main+0x56e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2080 <check_scasum@plt>
mov    %eax,%esi
lea    0x85d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2997 <main+0x597>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2270 <check_cscal@plt>
mov    %eax,%esi
lea    0x841(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     29c0 <main+0x5c0>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   20e0 <check_csscal@plt>
mov    %eax,%esi
lea    0x825(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     29e9 <main+0x5e9>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   21d0 <check_icamax@plt>
mov    %eax,%esi
lea    0x809(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2a12 <main+0x612>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   22c0 <check_zdotc@plt>
mov    %eax,%esi
lea    0x7ed(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2a3b <main+0x63b>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   22e0 <check_zdotu@plt>
mov    %eax,%esi
lea    0x7d1(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2a64 <main+0x664>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2320 <check_zaxpy@plt>
mov    %eax,%esi
lea    0x7b5(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2a8d <main+0x68d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2090 <check_zcopy@plt>
mov    %eax,%esi
lea    0x799(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2ab6 <main+0x6b6>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2160 <check_zswap@plt>
mov    %eax,%esi
lea    0x77d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2adf <main+0x6df>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2240 <check_dznrm2@plt>
mov    %eax,%esi
lea    0x761(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2b08 <main+0x708>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2170 <check_dzasum@plt>
mov    %eax,%esi
lea    0x745(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2b31 <main+0x731>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2050 <check_zscal@plt>
mov    %eax,%esi
lea    0x729(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2b5a <main+0x75a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2030 <check_zdscal@plt>
mov    %eax,%esi
lea    0x70d(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2b83 <main+0x783>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
call   2250 <check_izamax@plt>
mov    %eax,%esi
lea    0x6f1(%rip),%rdi
call   22f0 <test_function@plt>
cmp    $0x0,%rax
je     2bac <main+0x7ac>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
lea    0x44d(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    2bd7 <main+0x7d7>
lea    0x6c7(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
jmp    2c0a <main+0x80a>
cmpl   $0x1,-0x14(%rbp)
jne    2bf4 <main+0x7f4>
lea    0x6be(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
jmp    2c05 <main+0x805>
mov    -0x14(%rbp),%esi
lea    0x6c5(%rip),%rdi
mov    $0x0,%al
call   20a0 <printf@plt>
jmp    2c0a <main+0x80a>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xe76(%rip),%r14
mov    %r14,%rdi
call   2060 <puts@plt>
lea    0xe4a(%rip),%rdi
call   2060 <puts@plt>
mov    %r14,%rdi
call   2060 <puts@plt>
xor    %edi,%edi
call   21d0 <check_sdot@plt>
lea    0xbbb(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
xor    %edi,%edi
call   20c0 <check_saxpy@plt>
lea    0xbab(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
lea    0x1(%rbx),%ebp
test   %rax,%rax
cmove  %ebx,%ebp
xor    %edi,%edi
call   2220 <check_srotg@plt>
lea    0xb9a(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   20d0 <check_srot@plt>
lea    0xb8b(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2040 <check_scopy@plt>
lea    0xb7c(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2100 <check_sswap@plt>
lea    0xb6d(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2160 <check_snrm2@plt>
lea    0xb5e(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2140 <check_sasum@plt>
lea    0xb4f(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22c0 <check_sscal@plt>
lea    0xb40(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   21c0 <check_isamax@plt>
lea    0xb31(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2310 <check_srotmg@plt>
lea    0xb22(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2230 <check_srotm@plt>
lea    0xb13(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2080 <check_sdsdot@plt>
lea    0xb04(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2150 <check_ddot@plt>
lea    0xaf5(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2110 <check_daxpy@plt>
lea    0xae6(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2290 <check_drotg@plt>
lea    0xad7(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2320 <check_drot@plt>
lea    0xac8(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2130 <check_dcopy@plt>
lea    0xab9(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2270 <check_dswap@plt>
lea    0xaaa(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2190 <check_dnrm2@plt>
lea    0xa9b(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   21a0 <check_dasum@plt>
lea    0xa8c(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2240 <check_dscal@plt>
lea    0xa7d(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2120 <check_idamax@plt>
lea    0xa6e(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22e0 <check_drotmg@plt>
lea    0xa5f(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22b0 <check_drotm@plt>
lea    0xa50(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22a0 <check_dsdot@plt>
lea    0xa41(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2200 <check_cdotc@plt>
lea    0xa32(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2210 <check_cdotu@plt>
lea    0xa23(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2070 <check_caxpy@plt>
lea    0xa14(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   21f0 <check_ccopy@plt>
lea    0xa05(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   21b0 <check_cswap@plt>
lea    0x9f6(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   20e0 <check_scnrm2@plt>
lea    0x9e7(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2090 <check_scasum@plt>
lea    0x9d8(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2280 <check_cscal@plt>
lea    0x9c9(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   20f0 <check_csscal@plt>
lea    0x9ba(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   21e0 <check_icamax@plt>
lea    0x9ab(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22d0 <check_zdotc@plt>
lea    0x99c(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   22f0 <check_zdotu@plt>
lea    0x98d(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2330 <check_zaxpy@plt>
lea    0x97e(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   20a0 <check_zcopy@plt>
lea    0x96f(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2170 <check_zswap@plt>
lea    0x960(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2250 <check_dznrm2@plt>
lea    0x951(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2180 <check_dzasum@plt>
lea    0x942(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2050 <check_zscal@plt>
lea    0x933(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2030 <check_zdscal@plt>
lea    0x924(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
xor    %edi,%edi
call   2260 <check_izamax@plt>
lea    0x915(%rip),%rdi
mov    %eax,%esi
call   2300 <test_function@plt>
cmp    $0x1,%rax
sbb    $0xffffffff,%ebp
mov    %r14,%rdi
call   2060 <puts@plt>
cmp    $0x1,%ebp
je     2961 <main+0x551>
test   %ebp,%ebp
jne    296f <main+0x55f>
lea    0x970(%rip),%rdi
call   2060 <puts@plt>
jmp    297f <main+0x56f>
lea    0x946(%rip),%rdi
call   2060 <puts@plt>
jmp    297f <main+0x56f>
lea    0x8e0(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   20b0 <printf@plt>
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c" ---------------------------\0A\00"
@.str.1 = [30 x i8] c" CoBLAS Test Suite \0A\00"
@.str.2 = [13 x i8] c"cblas_sdot \00"
@.str.3 = [13 x i8] c"cblas_saxpy \00"
@.str.4 = [13 x i8] c"cblas_srotg \00"
@.str.5 = [13 x i8] c"cblas_srot \00"
@.str.6 = [13 x i8] c"cblas_scopy \00"
@.str.7 = [13 x i8] c"cblas_sswap \00"
@.str.8 = [13 x i8] c"cblas_snrm2 \00"
@.str.9 = [13 x i8] c"cblas_sasum \00"
@.str.10 = [13 x i8] c"cblas_sscal \00"
@.str.11 = [13 x i8] c"cblas_isamax\00"
@.str.12 = [13 x i8] c"cblas_srotmg\00"
@.str.13 = [13 x i8] c"cblas_srotm \00"
@.str.14 = [13 x i8] c"cblas_sdsdot\00"
@.str.15 = [13 x i8] c"cblas_ddot \00"
@.str.16 = [13 x i8] c"cblas_daxpy \00"
@.str.17 = [13 x i8] c"cblas_drotg \00"
@.str.18 = [13 x i8] c"cblas_drot \00"
@.str.19 = [13 x i8] c"cblas_dcopy \00"
@.str.20 = [13 x i8] c"cblas_dswap \00"
@.str.21 = [13 x i8] c"cblas_dnrm2 \00"
@.str.22 = [13 x i8] c"cblas_dasum \00"
@.str.23 = [13 x i8] c"cblas_dscal \00"
@.str.24 = [13 x i8] c"cblas_idamax\00"
@.str.25 = [13 x i8] c"cblas_drotmg\00"
@.str.26 = [13 x i8] c"cblas_drotm \00"
@.str.27 = [13 x i8] c"cblas_dsdot \00"
@.str.28 = [13 x i8] c"cblas_cdotc \00"
@.str.29 = [13 x i8] c"cblas_cdotu \00"
@.str.30 = [13 x i8] c"cblas_caxpy \00"
@.str.31 = [13 x i8] c"cblas_ccopy \00"
@.str.32 = [13 x i8] c"cblas_cswap \00"
@.str.33 = [13 x i8] c"cblas_scnrm2\00"
@.str.34 = [13 x i8] c"cblas_scasum\00"
@.str.35 = [13 x i8] c"cblas_cscal \00"
@.str.36 = [13 x i8] c"cblas_csscal\00"
@.str.37 = [13 x i8] c"cblas_icamax\00"
@.str.38 = [13 x i8] c"cblas_zdotc \00"
@.str.39 = [13 x i8] c"cblas_zdotu \00"
@.str.40 = [13 x i8] c"cblas_zaxpy \00"
@.str.41 = [13 x i8] c"cblas_zcopy \00"
@.str.42 = [13 x i8] c"cblas_zswap \00"
@.str.43 = [13 x i8] c"cblas_dznrm2\00"
@.str.44 = [13 x i8] c"cblas_dzasum\00"
@.str.45 = [13 x i8] c"cblas_zscal \00"
@.str.46 = [13 x i8] c"cblas_zdscal\00"
@.str.47 = [13 x i8] c"cblas_izamax\00"
@.str.48 = [20 x i8] c" All tests passed.\0A\00"
@.str.49 = [29 x i8] c" There was one failed test.\0A\00"
@.str.50 = [30 x i8] c" There were %d failed tests.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
store i32 0, i32* %7
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %7
%12 = call i32 @check_sdot(i32 %11)
%13 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %2
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
br label %18
18: ; preds = %15, %2
%19 = load i32, i32* %7
%20 = call i32 @check_saxpy(i32 %19)
%21 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, i32* %6
%25 = add nsw i32 %24, 1
store i32 %25, i32* %6
br label %26
26: ; preds = %23, %18
%27 = load i32, i32* %7
%28 = call i32 @check_srotg(i32 %27)
%29 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %26
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %34
34: ; preds = %31, %26
%35 = load i32, i32* %7
%36 = call i32 @check_srot(i32 %35)
%37 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %36)
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %42
39: ; preds = %34
%40 = load i32, i32* %6
%41 = add nsw i32 %40, 1
store i32 %41, i32* %6
br label %42
42: ; preds = %39, %34
%43 = load i32, i32* %7
%44 = call i32 @check_scopy(i32 %43)
%45 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, i32* %6
%49 = add nsw i32 %48, 1
store i32 %49, i32* %6
br label %50
50: ; preds = %47, %42
%51 = load i32, i32* %7
%52 = call i32 @check_sswap(i32 %51)
%53 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %52)
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %58
55: ; preds = %50
%56 = load i32, i32* %6
%57 = add nsw i32 %56, 1
store i32 %57, i32* %6
br label %58
58: ; preds = %55, %50
%59 = load i32, i32* %7
%60 = call i32 @check_snrm2(i32 %59)
%61 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %60)
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %58
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
br label %66
66: ; preds = %63, %58
%67 = load i32, i32* %7
%68 = call i32 @check_sasum(i32 %67)
%69 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %68)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %74
71: ; preds = %66
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
store i32 %73, i32* %6
br label %74
74: ; preds = %71, %66
%75 = load i32, i32* %7
%76 = call i32 @check_sscal(i32 %75)
%77 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %76)
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %74
%80 = load i32, i32* %6
%81 = add nsw i32 %80, 1
store i32 %81, i32* %6
br label %82
82: ; preds = %79, %74
%83 = load i32, i32* %7
%84 = call i32 @check_isamax(i32 %83)
%85 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %84)
%86 = icmp ne i64 %85, 0
br i1 %86, label %87, label %90
87: ; preds = %82
%88 = load i32, i32* %6
%89 = add nsw i32 %88, 1
store i32 %89, i32* %6
br label %90
90: ; preds = %87, %82
%91 = load i32, i32* %7
%92 = call i32 @check_srotmg(i32 %91)
%93 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %92)
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %98
95: ; preds = %90
%96 = load i32, i32* %6
%97 = add nsw i32 %96, 1
store i32 %97, i32* %6
br label %98
98: ; preds = %95, %90
%99 = load i32, i32* %7
%100 = call i32 @check_srotm(i32 %99)
%101 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %100)
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %98
%104 = load i32, i32* %6
%105 = add nsw i32 %104, 1
store i32 %105, i32* %6
br label %106
106: ; preds = %103, %98
%107 = load i32, i32* %7
%108 = call i32 @check_sdsdot(i32 %107)
%109 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %108)
%110 = icmp ne i64 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %106
%112 = load i32, i32* %6
%113 = add nsw i32 %112, 1
store i32 %113, i32* %6
br label %114
114: ; preds = %111, %106
%115 = load i32, i32* %7
%116 = call i32 @check_ddot(i32 %115)
%117 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %116)
%118 = icmp ne i64 %117, 0
br i1 %118, label %119, label %122
119: ; preds = %114
%120 = load i32, i32* %6
%121 = add nsw i32 %120, 1
store i32 %121, i32* %6
br label %122
122: ; preds = %119, %114
%123 = load i32, i32* %7
%124 = call i32 @check_daxpy(i32 %123)
%125 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %124)
%126 = icmp ne i64 %125, 0
br i1 %126, label %127, label %130
127: ; preds = %122
%128 = load i32, i32* %6
%129 = add nsw i32 %128, 1
store i32 %129, i32* %6
br label %130
130: ; preds = %127, %122
%131 = load i32, i32* %7
%132 = call i32 @check_drotg(i32 %131)
%133 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %132)
%134 = icmp ne i64 %133, 0
br i1 %134, label %135, label %138
135: ; preds = %130
%136 = load i32, i32* %6
%137 = add nsw i32 %136, 1
store i32 %137, i32* %6
br label %138
138: ; preds = %135, %130
%139 = load i32, i32* %7
%140 = call i32 @check_drot(i32 %139)
%141 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 %140)
%142 = icmp ne i64 %141, 0
br i1 %142, label %143, label %146
143: ; preds = %138
%144 = load i32, i32* %6
%145 = add nsw i32 %144, 1
store i32 %145, i32* %6
br label %146
146: ; preds = %143, %138
%147 = load i32, i32* %7
%148 = call i32 @check_dcopy(i32 %147)
%149 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i32 %148)
%150 = icmp ne i64 %149, 0
br i1 %150, label %151, label %154
151: ; preds = %146
%152 = load i32, i32* %6
%153 = add nsw i32 %152, 1
store i32 %153, i32* %6
br label %154
154: ; preds = %151, %146
%155 = load i32, i32* %7
%156 = call i32 @check_dswap(i32 %155)
%157 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %156)
%158 = icmp ne i64 %157, 0
br i1 %158, label %159, label %162
159: ; preds = %154
%160 = load i32, i32* %6
%161 = add nsw i32 %160, 1
store i32 %161, i32* %6
br label %162
162: ; preds = %159, %154
%163 = load i32, i32* %7
%164 = call i32 @check_dnrm2(i32 %163)
%165 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i32 %164)
%166 = icmp ne i64 %165, 0
br i1 %166, label %167, label %170
167: ; preds = %162
%168 = load i32, i32* %6
%169 = add nsw i32 %168, 1
store i32 %169, i32* %6
br label %170
170: ; preds = %167, %162
%171 = load i32, i32* %7
%172 = call i32 @check_dasum(i32 %171)
%173 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i32 %172)
%174 = icmp ne i64 %173, 0
br i1 %174, label %175, label %178
175: ; preds = %170
%176 = load i32, i32* %6
%177 = add nsw i32 %176, 1
store i32 %177, i32* %6
br label %178
178: ; preds = %175, %170
%179 = load i32, i32* %7
%180 = call i32 @check_dscal(i32 %179)
%181 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.23, i64 0, i64 0), i32 %180)
%182 = icmp ne i64 %181, 0
br i1 %182, label %183, label %186
183: ; preds = %178
%184 = load i32, i32* %6
%185 = add nsw i32 %184, 1
store i32 %185, i32* %6
br label %186
186: ; preds = %183, %178
%187 = load i32, i32* %7
%188 = call i32 @check_idamax(i32 %187)
%189 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.24, i64 0, i64 0), i32 %188)
%190 = icmp ne i64 %189, 0
br i1 %190, label %191, label %194
191: ; preds = %186
%192 = load i32, i32* %6
%193 = add nsw i32 %192, 1
store i32 %193, i32* %6
br label %194
194: ; preds = %191, %186
%195 = load i32, i32* %7
%196 = call i32 @check_drotmg(i32 %195)
%197 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0), i32 %196)
%198 = icmp ne i64 %197, 0
br i1 %198, label %199, label %202
199: ; preds = %194
%200 = load i32, i32* %6
%201 = add nsw i32 %200, 1
store i32 %201, i32* %6
br label %202
202: ; preds = %199, %194
%203 = load i32, i32* %7
%204 = call i32 @check_drotm(i32 %203)
%205 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 %204)
%206 = icmp ne i64 %205, 0
br i1 %206, label %207, label %210
207: ; preds = %202
%208 = load i32, i32* %6
%209 = add nsw i32 %208, 1
store i32 %209, i32* %6
br label %210
210: ; preds = %207, %202
%211 = load i32, i32* %7
%212 = call i32 @check_dsdot(i32 %211)
%213 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i64 0, i64 0), i32 %212)
%214 = icmp ne i64 %213, 0
br i1 %214, label %215, label %218
215: ; preds = %210
%216 = load i32, i32* %6
%217 = add nsw i32 %216, 1
store i32 %217, i32* %6
br label %218
218: ; preds = %215, %210
%219 = load i32, i32* %7
%220 = call i32 @check_cdotc(i32 %219)
%221 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i64 0, i64 0), i32 %220)
%222 = icmp ne i64 %221, 0
br i1 %222, label %223, label %226
223: ; preds = %218
%224 = load i32, i32* %6
%225 = add nsw i32 %224, 1
store i32 %225, i32* %6
br label %226
226: ; preds = %223, %218
%227 = load i32, i32* %7
%228 = call i32 @check_cdotu(i32 %227)
%229 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.29, i64 0, i64 0), i32 %228)
%230 = icmp ne i64 %229, 0
br i1 %230, label %231, label %234
231: ; preds = %226
%232 = load i32, i32* %6
%233 = add nsw i32 %232, 1
store i32 %233, i32* %6
br label %234
234: ; preds = %231, %226
%235 = load i32, i32* %7
%236 = call i32 @check_caxpy(i32 %235)
%237 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i32 %236)
%238 = icmp ne i64 %237, 0
br i1 %238, label %239, label %242
239: ; preds = %234
%240 = load i32, i32* %6
%241 = add nsw i32 %240, 1
store i32 %241, i32* %6
br label %242
242: ; preds = %239, %234
%243 = load i32, i32* %7
%244 = call i32 @check_ccopy(i32 %243)
%245 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.31, i64 0, i64 0), i32 %244)
%246 = icmp ne i64 %245, 0
br i1 %246, label %247, label %250
247: ; preds = %242
%248 = load i32, i32* %6
%249 = add nsw i32 %248, 1
store i32 %249, i32* %6
br label %250
250: ; preds = %247, %242
%251 = load i32, i32* %7
%252 = call i32 @check_cswap(i32 %251)
%253 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0), i32 %252)
%254 = icmp ne i64 %253, 0
br i1 %254, label %255, label %258
255: ; preds = %250
%256 = load i32, i32* %6
%257 = add nsw i32 %256, 1
store i32 %257, i32* %6
br label %258
258: ; preds = %255, %250
%259 = load i32, i32* %7
%260 = call i32 @check_scnrm2(i32 %259)
%261 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.33, i64 0, i64 0), i32 %260)
%262 = icmp ne i64 %261, 0
br i1 %262, label %263, label %266
263: ; preds = %258
%264 = load i32, i32* %6
%265 = add nsw i32 %264, 1
store i32 %265, i32* %6
br label %266
266: ; preds = %263, %258
%267 = load i32, i32* %7
%268 = call i32 @check_scasum(i32 %267)
%269 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i32 %268)
%270 = icmp ne i64 %269, 0
br i1 %270, label %271, label %274
271: ; preds = %266
%272 = load i32, i32* %6
%273 = add nsw i32 %272, 1
store i32 %273, i32* %6
br label %274
274: ; preds = %271, %266
%275 = load i32, i32* %7
%276 = call i32 @check_cscal(i32 %275)
%277 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i32 %276)
%278 = icmp ne i64 %277, 0
br i1 %278, label %279, label %282
279: ; preds = %274
%280 = load i32, i32* %6
%281 = add nsw i32 %280, 1
store i32 %281, i32* %6
br label %282
282: ; preds = %279, %274
%283 = load i32, i32* %7
%284 = call i32 @check_csscal(i32 %283)
%285 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.36, i64 0, i64 0), i32 %284)
%286 = icmp ne i64 %285, 0
br i1 %286, label %287, label %290
287: ; preds = %282
%288 = load i32, i32* %6
%289 = add nsw i32 %288, 1
store i32 %289, i32* %6
br label %290
290: ; preds = %287, %282
%291 = load i32, i32* %7
%292 = call i32 @check_icamax(i32 %291)
%293 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.37, i64 0, i64 0), i32 %292)
%294 = icmp ne i64 %293, 0
br i1 %294, label %295, label %298
295: ; preds = %290
%296 = load i32, i32* %6
%297 = add nsw i32 %296, 1
store i32 %297, i32* %6
br label %298
298: ; preds = %295, %290
%299 = load i32, i32* %7
%300 = call i32 @check_zdotc(i32 %299)
%301 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.38, i64 0, i64 0), i32 %300)
%302 = icmp ne i64 %301, 0
br i1 %302, label %303, label %306
303: ; preds = %298
%304 = load i32, i32* %6
%305 = add nsw i32 %304, 1
store i32 %305, i32* %6
br label %306
306: ; preds = %303, %298
%307 = load i32, i32* %7
%308 = call i32 @check_zdotu(i32 %307)
%309 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.39, i64 0, i64 0), i32 %308)
%310 = icmp ne i64 %309, 0
br i1 %310, label %311, label %314
311: ; preds = %306
%312 = load i32, i32* %6
%313 = add nsw i32 %312, 1
store i32 %313, i32* %6
br label %314
314: ; preds = %311, %306
%315 = load i32, i32* %7
%316 = call i32 @check_zaxpy(i32 %315)
%317 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.40, i64 0, i64 0), i32 %316)
%318 = icmp ne i64 %317, 0
br i1 %318, label %319, label %322
319: ; preds = %314
%320 = load i32, i32* %6
%321 = add nsw i32 %320, 1
store i32 %321, i32* %6
br label %322
322: ; preds = %319, %314
%323 = load i32, i32* %7
%324 = call i32 @check_zcopy(i32 %323)
%325 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.41, i64 0, i64 0), i32 %324)
%326 = icmp ne i64 %325, 0
br i1 %326, label %327, label %330
327: ; preds = %322
%328 = load i32, i32* %6
%329 = add nsw i32 %328, 1
store i32 %329, i32* %6
br label %330
330: ; preds = %327, %322
%331 = load i32, i32* %7
%332 = call i32 @check_zswap(i32 %331)
%333 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), i32 %332)
%334 = icmp ne i64 %333, 0
br i1 %334, label %335, label %338
335: ; preds = %330
%336 = load i32, i32* %6
%337 = add nsw i32 %336, 1
store i32 %337, i32* %6
br label %338
338: ; preds = %335, %330
%339 = load i32, i32* %7
%340 = call i32 @check_dznrm2(i32 %339)
%341 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.43, i64 0, i64 0), i32 %340)
%342 = icmp ne i64 %341, 0
br i1 %342, label %343, label %346
343: ; preds = %338
%344 = load i32, i32* %6
%345 = add nsw i32 %344, 1
store i32 %345, i32* %6
br label %346
346: ; preds = %343, %338
%347 = load i32, i32* %7
%348 = call i32 @check_dzasum(i32 %347)
%349 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.44, i64 0, i64 0), i32 %348)
%350 = icmp ne i64 %349, 0
br i1 %350, label %351, label %354
351: ; preds = %346
%352 = load i32, i32* %6
%353 = add nsw i32 %352, 1
store i32 %353, i32* %6
br label %354
354: ; preds = %351, %346
%355 = load i32, i32* %7
%356 = call i32 @check_zscal(i32 %355)
%357 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.45, i64 0, i64 0), i32 %356)
%358 = icmp ne i64 %357, 0
br i1 %358, label %359, label %362
359: ; preds = %354
%360 = load i32, i32* %6
%361 = add nsw i32 %360, 1
store i32 %361, i32* %6
br label %362
362: ; preds = %359, %354
%363 = load i32, i32* %7
%364 = call i32 @check_zdscal(i32 %363)
%365 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.46, i64 0, i64 0), i32 %364)
%366 = icmp ne i64 %365, 0
br i1 %366, label %367, label %370
367: ; preds = %362
%368 = load i32, i32* %6
%369 = add nsw i32 %368, 1
store i32 %369, i32* %6
br label %370
370: ; preds = %367, %362
%371 = load i32, i32* %7
%372 = call i32 @check_izamax(i32 %371)
%373 = call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.47, i64 0, i64 0), i32 %372)
%374 = icmp ne i64 %373, 0
br i1 %374, label %375, label %378
375: ; preds = %370
%376 = load i32, i32* %6
%377 = add nsw i32 %376, 1
store i32 %377, i32* %6
br label %378
378: ; preds = %375, %370
%379 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%380 = load i32, i32* %6
%381 = icmp eq i32 %380, 0
br i1 %381, label %382, label %384
382: ; preds = %378
%383 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.48, i64 0, i64 0))
br label %393
384: ; preds = %378
%385 = load i32, i32* %6
%386 = icmp eq i32 %385, 1
br i1 %386, label %387, label %389
387: ; preds = %384
%388 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.49, i64 0, i64 0))
br label %392
389: ; preds = %384
%390 = load i32, i32* %6
%391 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.50, i64 0, i64 0), i32 %390)
br label %392
392: ; preds = %389, %387
br label %393
393: ; preds = %392, %382
%394 = load i32, i32* %6
ret i32 %394
}

LLVM IR (-O2):
@.str.2 = [13 x i8] c"cblas_sdot \00"
@.str.3 = [13 x i8] c"cblas_saxpy \00"
@.str.4 = [13 x i8] c"cblas_srotg \00"
@.str.5 = [13 x i8] c"cblas_srot \00"
@.str.6 = [13 x i8] c"cblas_scopy \00"
@.str.7 = [13 x i8] c"cblas_sswap \00"
@.str.8 = [13 x i8] c"cblas_snrm2 \00"
@.str.9 = [13 x i8] c"cblas_sasum \00"
@.str.10 = [13 x i8] c"cblas_sscal \00"
@.str.11 = [13 x i8] c"cblas_isamax\00"
@.str.12 = [13 x i8] c"cblas_srotmg\00"
@.str.13 = [13 x i8] c"cblas_srotm \00"
@.str.14 = [13 x i8] c"cblas_sdsdot\00"
@.str.15 = [13 x i8] c"cblas_ddot \00"
@.str.16 = [13 x i8] c"cblas_daxpy \00"
@.str.17 = [13 x i8] c"cblas_drotg \00"
@.str.18 = [13 x i8] c"cblas_drot \00"
@.str.19 = [13 x i8] c"cblas_dcopy \00"
@.str.20 = [13 x i8] c"cblas_dswap \00"
@.str.21 = [13 x i8] c"cblas_dnrm2 \00"
@.str.22 = [13 x i8] c"cblas_dasum \00"
@.str.23 = [13 x i8] c"cblas_dscal \00"
@.str.24 = [13 x i8] c"cblas_idamax\00"
@.str.25 = [13 x i8] c"cblas_drotmg\00"
@.str.26 = [13 x i8] c"cblas_drotm \00"
@.str.27 = [13 x i8] c"cblas_dsdot \00"
@.str.28 = [13 x i8] c"cblas_cdotc \00"
@.str.29 = [13 x i8] c"cblas_cdotu \00"
@.str.30 = [13 x i8] c"cblas_caxpy \00"
@.str.31 = [13 x i8] c"cblas_ccopy \00"
@.str.32 = [13 x i8] c"cblas_cswap \00"
@.str.33 = [13 x i8] c"cblas_scnrm2\00"
@.str.34 = [13 x i8] c"cblas_scasum\00"
@.str.35 = [13 x i8] c"cblas_cscal \00"
@.str.36 = [13 x i8] c"cblas_csscal\00"
@.str.37 = [13 x i8] c"cblas_icamax\00"
@.str.38 = [13 x i8] c"cblas_zdotc \00"
@.str.39 = [13 x i8] c"cblas_zdotu \00"
@.str.40 = [13 x i8] c"cblas_zaxpy \00"
@.str.41 = [13 x i8] c"cblas_zcopy \00"
@.str.42 = [13 x i8] c"cblas_zswap \00"
@.str.43 = [13 x i8] c"cblas_dznrm2\00"
@.str.44 = [13 x i8] c"cblas_dzasum\00"
@.str.45 = [13 x i8] c"cblas_zscal \00"
@.str.46 = [13 x i8] c"cblas_zdscal\00"
@.str.47 = [13 x i8] c"cblas_izamax\00"
@.str.50 = [30 x i8] c" There were %d failed tests.\0A\00"
@str.51 = [29 x i8] c" CoBLAS Test Suite \00"
@str.53 = [29 x i8] c" ---------------------------\00"
@str.54 = [28 x i8] c" There was one failed test.\00"
@str.55 = [19 x i8] c" All tests passed.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.53, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.51, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.53, i64 0, i64 0))
%6 = tail call i32 @check_sdot(i32 0)
%7 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = icmp ne i64 %7, 0
%9 = zext i1 %8 to i32
%10 = tail call i32 @check_saxpy(i32 0)
%11 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = icmp eq i64 %11, 0
%13 = select i1 %8, i32 2, i32 1
%14 = select i1 %12, i32 %9, i32 %13
%15 = tail call i32 @check_srotg(i32 0)
%16 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i32 %15)
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i32
%19 = add nuw nsw i32 %14, %18
%20 = tail call i32 @check_srot(i32 0)
%21 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i32 %20)
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i32
%24 = add nuw nsw i32 %19, %23
%25 = tail call i32 @check_scopy(i32 0)
%26 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i32 %25)
%27 = icmp ne i64 %26, 0
%28 = zext i1 %27 to i32
%29 = add nuw nsw i32 %24, %28
%30 = tail call i32 @check_sswap(i32 0)
%31 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i32 %30)
%32 = icmp ne i64 %31, 0
%33 = zext i1 %32 to i32
%34 = add nuw nsw i32 %29, %33
%35 = tail call i32 @check_snrm2(i32 0)
%36 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0), i32 %35)
%37 = icmp ne i64 %36, 0
%38 = zext i1 %37 to i32
%39 = add nuw nsw i32 %34, %38
%40 = tail call i32 @check_sasum(i32 0)
%41 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 %40)
%42 = icmp ne i64 %41, 0
%43 = zext i1 %42 to i32
%44 = add nuw nsw i32 %39, %43
%45 = tail call i32 @check_sscal(i32 0)
%46 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0), i32 %45)
%47 = icmp ne i64 %46, 0
%48 = zext i1 %47 to i32
%49 = add nuw nsw i32 %44, %48
%50 = tail call i32 @check_isamax(i32 0)
%51 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i32 %50)
%52 = icmp ne i64 %51, 0
%53 = zext i1 %52 to i32
%54 = add nuw nsw i32 %49, %53
%55 = tail call i32 @check_srotmg(i32 0)
%56 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0), i32 %55)
%57 = icmp ne i64 %56, 0
%58 = zext i1 %57 to i32
%59 = add nuw nsw i32 %54, %58
%60 = tail call i32 @check_srotm(i32 0)
%61 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i32 %60)
%62 = icmp ne i64 %61, 0
%63 = zext i1 %62 to i32
%64 = add nuw nsw i32 %59, %63
%65 = tail call i32 @check_sdsdot(i32 0)
%66 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32 %65)
%67 = icmp ne i64 %66, 0
%68 = zext i1 %67 to i32
%69 = add nuw nsw i32 %64, %68
%70 = tail call i32 @check_ddot(i32 0)
%71 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), i32 %70)
%72 = icmp ne i64 %71, 0
%73 = zext i1 %72 to i32
%74 = add nuw nsw i32 %69, %73
%75 = tail call i32 @check_daxpy(i32 0)
%76 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.16, i64 0, i64 0), i32 %75)
%77 = icmp ne i64 %76, 0
%78 = zext i1 %77 to i32
%79 = add nuw nsw i32 %74, %78
%80 = tail call i32 @check_drotg(i32 0)
%81 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 %80)
%82 = icmp ne i64 %81, 0
%83 = zext i1 %82 to i32
%84 = add nuw nsw i32 %79, %83
%85 = tail call i32 @check_drot(i32 0)
%86 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0), i32 %85)
%87 = icmp ne i64 %86, 0
%88 = zext i1 %87 to i32
%89 = add nuw nsw i32 %84, %88
%90 = tail call i32 @check_dcopy(i32 0)
%91 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), i32 %90)
%92 = icmp ne i64 %91, 0
%93 = zext i1 %92 to i32
%94 = add nuw nsw i32 %89, %93
%95 = tail call i32 @check_dswap(i32 0)
%96 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.20, i64 0, i64 0), i32 %95)
%97 = icmp ne i64 %96, 0
%98 = zext i1 %97 to i32
%99 = add nuw nsw i32 %94, %98
%100 = tail call i32 @check_dnrm2(i32 0)
%101 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), i32 %100)
%102 = icmp ne i64 %101, 0
%103 = zext i1 %102 to i32
%104 = add nuw nsw i32 %99, %103
%105 = tail call i32 @check_dasum(i32 0)
%106 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0), i32 %105)
%107 = icmp ne i64 %106, 0
%108 = zext i1 %107 to i32
%109 = add nuw nsw i32 %104, %108
%110 = tail call i32 @check_dscal(i32 0)
%111 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.23, i64 0, i64 0), i32 %110)
%112 = icmp ne i64 %111, 0
%113 = zext i1 %112 to i32
%114 = add nuw nsw i32 %109, %113
%115 = tail call i32 @check_idamax(i32 0)
%116 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.24, i64 0, i64 0), i32 %115)
%117 = icmp ne i64 %116, 0
%118 = zext i1 %117 to i32
%119 = add nuw nsw i32 %114, %118
%120 = tail call i32 @check_drotmg(i32 0)
%121 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.25, i64 0, i64 0), i32 %120)
%122 = icmp ne i64 %121, 0
%123 = zext i1 %122 to i32
%124 = add nuw nsw i32 %119, %123
%125 = tail call i32 @check_drotm(i32 0)
%126 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.26, i64 0, i64 0), i32 %125)
%127 = icmp ne i64 %126, 0
%128 = zext i1 %127 to i32
%129 = add nuw nsw i32 %124, %128
%130 = tail call i32 @check_dsdot(i32 0)
%131 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.27, i64 0, i64 0), i32 %130)
%132 = icmp ne i64 %131, 0
%133 = zext i1 %132 to i32
%134 = add nuw nsw i32 %129, %133
%135 = tail call i32 @check_cdotc(i32 0)
%136 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.28, i64 0, i64 0), i32 %135)
%137 = icmp ne i64 %136, 0
%138 = zext i1 %137 to i32
%139 = add nuw nsw i32 %134, %138
%140 = tail call i32 @check_cdotu(i32 0)
%141 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.29, i64 0, i64 0), i32 %140)
%142 = icmp ne i64 %141, 0
%143 = zext i1 %142 to i32
%144 = add nuw nsw i32 %139, %143
%145 = tail call i32 @check_caxpy(i32 0)
%146 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.30, i64 0, i64 0), i32 %145)
%147 = icmp ne i64 %146, 0
%148 = zext i1 %147 to i32
%149 = add nuw nsw i32 %144, %148
%150 = tail call i32 @check_ccopy(i32 0)
%151 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.31, i64 0, i64 0), i32 %150)
%152 = icmp ne i64 %151, 0
%153 = zext i1 %152 to i32
%154 = add nuw nsw i32 %149, %153
%155 = tail call i32 @check_cswap(i32 0)
%156 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.32, i64 0, i64 0), i32 %155)
%157 = icmp ne i64 %156, 0
%158 = zext i1 %157 to i32
%159 = add nuw nsw i32 %154, %158
%160 = tail call i32 @check_scnrm2(i32 0)
%161 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.33, i64 0, i64 0), i32 %160)
%162 = icmp ne i64 %161, 0
%163 = zext i1 %162 to i32
%164 = add nuw nsw i32 %159, %163
%165 = tail call i32 @check_scasum(i32 0)
%166 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.34, i64 0, i64 0), i32 %165)
%167 = icmp ne i64 %166, 0
%168 = zext i1 %167 to i32
%169 = add nuw nsw i32 %164, %168
%170 = tail call i32 @check_cscal(i32 0)
%171 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.35, i64 0, i64 0), i32 %170)
%172 = icmp ne i64 %171, 0
%173 = zext i1 %172 to i32
%174 = add nuw nsw i32 %169, %173
%175 = tail call i32 @check_csscal(i32 0)
%176 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.36, i64 0, i64 0), i32 %175)
%177 = icmp ne i64 %176, 0
%178 = zext i1 %177 to i32
%179 = add nuw nsw i32 %174, %178
%180 = tail call i32 @check_icamax(i32 0)
%181 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.37, i64 0, i64 0), i32 %180)
%182 = icmp ne i64 %181, 0
%183 = zext i1 %182 to i32
%184 = add nuw nsw i32 %179, %183
%185 = tail call i32 @check_zdotc(i32 0)
%186 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.38, i64 0, i64 0), i32 %185)
%187 = icmp ne i64 %186, 0
%188 = zext i1 %187 to i32
%189 = add nuw nsw i32 %184, %188
%190 = tail call i32 @check_zdotu(i32 0)
%191 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.39, i64 0, i64 0), i32 %190)
%192 = icmp ne i64 %191, 0
%193 = zext i1 %192 to i32
%194 = add nuw nsw i32 %189, %193
%195 = tail call i32 @check_zaxpy(i32 0)
%196 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.40, i64 0, i64 0), i32 %195)
%197 = icmp ne i64 %196, 0
%198 = zext i1 %197 to i32
%199 = add nuw nsw i32 %194, %198
%200 = tail call i32 @check_zcopy(i32 0)
%201 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.41, i64 0, i64 0), i32 %200)
%202 = icmp ne i64 %201, 0
%203 = zext i1 %202 to i32
%204 = add nuw nsw i32 %199, %203
%205 = tail call i32 @check_zswap(i32 0)
%206 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.42, i64 0, i64 0), i32 %205)
%207 = icmp ne i64 %206, 0
%208 = zext i1 %207 to i32
%209 = add nuw nsw i32 %204, %208
%210 = tail call i32 @check_dznrm2(i32 0)
%211 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.43, i64 0, i64 0), i32 %210)
%212 = icmp ne i64 %211, 0
%213 = zext i1 %212 to i32
%214 = add nuw nsw i32 %209, %213
%215 = tail call i32 @check_dzasum(i32 0)
%216 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.44, i64 0, i64 0), i32 %215)
%217 = icmp ne i64 %216, 0
%218 = zext i1 %217 to i32
%219 = add nuw nsw i32 %214, %218
%220 = tail call i32 @check_zscal(i32 0)
%221 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.45, i64 0, i64 0), i32 %220)
%222 = icmp ne i64 %221, 0
%223 = zext i1 %222 to i32
%224 = add nuw nsw i32 %219, %223
%225 = tail call i32 @check_zdscal(i32 0)
%226 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.46, i64 0, i64 0), i32 %225)
%227 = icmp ne i64 %226, 0
%228 = zext i1 %227 to i32
%229 = add nuw nsw i32 %224, %228
%230 = tail call i32 @check_izamax(i32 0)
%231 = tail call i64 @test_function(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.47, i64 0, i64 0), i32 %230)
%232 = icmp ne i64 %231, 0
%233 = zext i1 %232 to i32
%234 = add nuw nsw i32 %229, %233
%235 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.53, i64 0, i64 0))
switch i32 %234, label %240 [
i32 0, label %236
i32 1, label %238
]
236: ; preds = %2
%237 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.55, i64 0, i64 0))
br label %242
238: ; preds = %2
%239 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.54, i64 0, i64 0))
br label %242
240: ; preds = %2
%241 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.50, i64 0, i64 0), i32 %234)
br label %242
242: ; preds = %238, %240, %236
ret i32 %234
}