#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*/ double_axpy(unsigned int);
int /*<<< orphan*/ double_dmatvec_product(unsigned int);
int /*<<< orphan*/ double_dot_product(unsigned int);
int /*<<< orphan*/ double_norm(unsigned int);
int /*<<< orphan*/ double_scalar_mult(unsigned int);
int /*<<< orphan*/ double_spgemm(unsigned long);
int /*<<< orphan*/ double_spmatvec_product(unsigned long);
int /*<<< orphan*/ float_axpy(unsigned int);
int /*<<< orphan*/ float_dmatvec_product(unsigned int);
int /*<<< orphan*/ float_dot_product(unsigned int);
int /*<<< orphan*/ float_norm(unsigned int);
int /*<<< orphan*/ float_scalar_mult(unsigned int);
int /*<<< orphan*/ float_spmatvec_product(unsigned long);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ int_axpy(unsigned int);
int /*<<< orphan*/ int_dmatvec_product(unsigned int);
int /*<<< orphan*/ int_dot_product(unsigned int);
int /*<<< orphan*/ int_norm(unsigned int);
int /*<<< orphan*/ int_scalar_mult(unsigned int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stencil19(unsigned int);
int /*<<< orphan*/ stencil27(unsigned int);
int /*<<< orphan*/ stencil5(unsigned int);
int /*<<< orphan*/ stencil9(unsigned int);
scalar_t__ strcmp(char *, char *);
void bench_level1(char *b, unsigned int s, unsigned long r, char *o, char *dt) {
  if (strcmp(b, "blas_op") == 0) {
    if (strcmp(o, "dot_product") == 0) {
      if (strcmp(dt, "int") == 0)
        int_dot_product(s);
      else if (strcmp(dt, "float") == 0)
        float_dot_product(s);
      else if (strcmp(dt, "double") == 0)
        double_dot_product(s);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "scalar_mult") == 0) {
      if (strcmp(dt, "int") == 0)
        int_scalar_mult(s);
      else if (strcmp(dt, "float") == 0)
        float_scalar_mult(s);
      else if (strcmp(dt, "double") == 0)
        double_scalar_mult(s);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "norm") == 0) {
      if (strcmp(dt, "int") == 0)
        int_norm(s);
      else if (strcmp(dt, "float") == 0)
        float_norm(s);
      else if (strcmp(dt, "double") == 0)
        double_norm(s);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "axpy") == 0) {
      if (strcmp(dt, "int") == 0)
        int_axpy(s);
      else if (strcmp(dt, "float") == 0)
        float_axpy(s);
      else if (strcmp(dt, "double") == 0)
        double_axpy(s);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "dmatvec_product") == 0) {
      if (strcmp(dt, "int") == 0)
        int_dmatvec_product(s);
      else if (strcmp(dt, "float") == 0)
        float_dmatvec_product(s);
      else if (strcmp(dt, "double") == 0)
        double_dmatvec_product(s);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "spmv") == 0) {
      if (strcmp(dt, "float") == 0)
        float_spmatvec_product(r);
      else if (strcmp(dt, "double") == 0)
        double_spmatvec_product(r);
      else
        fprintf(stderr, "ERROR: check you are using a valid data type...\n");
    } else if (strcmp(o, "spgemm") == 0) {
      double_spgemm(r);
    }
  } else if (strcmp(b, "stencil") == 0) {
    if (strcmp(o, "27") == 0 || strcmp(o, "dot_product") == 0)
      stencil27(s);
    else if (strcmp(o, "19") == 0)
      stencil19(s);
    else if (strcmp(o, "9") == 0)
      stencil9(s);
    else if (strcmp(o, "5") == 0)
      stencil5(s);
    else
      fprintf(stderr, "ERROR: check you are using a valid operation type...\n");
  } else
    fprintf(stderr, "ERROR: check you are using a valid benchmark...\n");
}


x86 assembly (clang, -O0):
<bench_level1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xd5a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1703 <bench_level1+0x483>
mov    -0x20(%rbp),%rdi
lea    0xd48(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1368 <bench_level1+0xe8>
mov    -0x28(%rbp),%rdi
lea    0xd3a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    12f6 <bench_level1+0x76>
mov    -0xc(%rbp),%edi
call   10c0 <int_dot_product@plt>
jmp    1363 <bench_level1+0xe3>
mov    -0x28(%rbp),%rdi
lea    0xd17(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    131d <bench_level1+0x9d>
mov    -0xc(%rbp),%edi
call   1070 <float_dot_product@plt>
jmp    135e <bench_level1+0xde>
mov    -0x28(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1344 <bench_level1+0xc4>
mov    -0xc(%rbp),%edi
call   1180 <double_dot_product@plt>
jmp    1359 <bench_level1+0xd9>
mov    0x2c95(%rip),%rax
mov    (%rax),%edi
lea    0xcd1(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    135e <bench_level1+0xde>
jmp    1363 <bench_level1+0xe3>
jmp    16fe <bench_level1+0x47e>
mov    -0x20(%rbp),%rdi
lea    0xce3(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    141b <bench_level1+0x19b>
mov    -0x28(%rbp),%rdi
lea    0xc87(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13a9 <bench_level1+0x129>
mov    -0xc(%rbp),%edi
call   1130 <int_scalar_mult@plt>
jmp    1416 <bench_level1+0x196>
mov    -0x28(%rbp),%rdi
lea    0xc64(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13d0 <bench_level1+0x150>
mov    -0xc(%rbp),%edi
call   1140 <float_scalar_mult@plt>
jmp    1411 <bench_level1+0x191>
mov    -0x28(%rbp),%rdi
lea    0xc43(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13f7 <bench_level1+0x177>
mov    -0xc(%rbp),%edi
call   10f0 <double_scalar_mult@plt>
jmp    140c <bench_level1+0x18c>
mov    0x2be2(%rip),%rax
mov    (%rax),%edi
lea    0xc1e(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    1411 <bench_level1+0x191>
jmp    1416 <bench_level1+0x196>
jmp    16f9 <bench_level1+0x479>
mov    -0x20(%rbp),%rdi
lea    0xc3c(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    14ce <bench_level1+0x24e>
mov    -0x28(%rbp),%rdi
lea    0xbd4(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    145c <bench_level1+0x1dc>
mov    -0xc(%rbp),%edi
call   1050 <int_norm@plt>
jmp    14c9 <bench_level1+0x249>
mov    -0x28(%rbp),%rdi
lea    0xbb1(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1483 <bench_level1+0x203>
mov    -0xc(%rbp),%edi
call   1090 <float_norm@plt>
jmp    14c4 <bench_level1+0x244>
mov    -0x28(%rbp),%rdi
lea    0xb90(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    14aa <bench_level1+0x22a>
mov    -0xc(%rbp),%edi
call   1190 <double_norm@plt>
jmp    14bf <bench_level1+0x23f>
mov    0x2b2f(%rip),%rax
mov    (%rax),%edi
lea    0xb6b(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    14c4 <bench_level1+0x244>
jmp    14c9 <bench_level1+0x249>
jmp    16f4 <bench_level1+0x474>
mov    -0x20(%rbp),%rdi
lea    0xb8e(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1581 <bench_level1+0x301>
mov    -0x28(%rbp),%rdi
lea    0xb21(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    150f <bench_level1+0x28f>
mov    -0xc(%rbp),%edi
call   1160 <int_axpy@plt>
jmp    157c <bench_level1+0x2fc>
mov    -0x28(%rbp),%rdi
lea    0xafe(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1536 <bench_level1+0x2b6>
mov    -0xc(%rbp),%edi
call   11a0 <float_axpy@plt>
jmp    1577 <bench_level1+0x2f7>
mov    -0x28(%rbp),%rdi
lea    0xadd(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    155d <bench_level1+0x2dd>
mov    -0xc(%rbp),%edi
call   1080 <double_axpy@plt>
jmp    1572 <bench_level1+0x2f2>
mov    0x2a7c(%rip),%rax
mov    (%rax),%edi
lea    0xab8(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    1577 <bench_level1+0x2f7>
jmp    157c <bench_level1+0x2fc>
jmp    16ef <bench_level1+0x46f>
mov    -0x20(%rbp),%rdi
lea    0xae0(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1634 <bench_level1+0x3b4>
mov    -0x28(%rbp),%rdi
lea    0xa6e(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    15c2 <bench_level1+0x342>
mov    -0xc(%rbp),%edi
call   10e0 <int_dmatvec_product@plt>
jmp    162f <bench_level1+0x3af>
mov    -0x28(%rbp),%rdi
lea    0xa4b(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    15e9 <bench_level1+0x369>
mov    -0xc(%rbp),%edi
call   10a0 <float_dmatvec_product@plt>
jmp    162a <bench_level1+0x3aa>
mov    -0x28(%rbp),%rdi
lea    0xa2a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1610 <bench_level1+0x390>
mov    -0xc(%rbp),%edi
call   1150 <double_dmatvec_product@plt>
jmp    1625 <bench_level1+0x3a5>
mov    0x29c9(%rip),%rax
mov    (%rax),%edi
lea    0xa05(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    162a <bench_level1+0x3aa>
jmp    162f <bench_level1+0x3af>
jmp    16ea <bench_level1+0x46a>
mov    -0x20(%rbp),%rdi
lea    0xa3d(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    16bd <bench_level1+0x43d>
mov    -0x28(%rbp),%rdi
lea    0x9bf(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1676 <bench_level1+0x3f6>
mov    -0x18(%rbp),%rdi
call   1110 <float_spmatvec_product@plt>
jmp    16b8 <bench_level1+0x438>
mov    -0x28(%rbp),%rdi
lea    0x99d(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    169e <bench_level1+0x41e>
mov    -0x18(%rbp),%rdi
call   1170 <double_spmatvec_product@plt>
jmp    16b3 <bench_level1+0x433>
mov    0x293b(%rip),%rax
mov    (%rax),%edi
lea    0x977(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    16b8 <bench_level1+0x438>
jmp    16e5 <bench_level1+0x465>
mov    -0x20(%rbp),%rdi
lea    0x9b9(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    16e0 <bench_level1+0x460>
mov    -0x18(%rbp),%rdi
call   1100 <double_spgemm@plt>
jmp    16e5 <bench_level1+0x465>
jmp    16ea <bench_level1+0x46a>
jmp    16ef <bench_level1+0x46f>
jmp    16f4 <bench_level1+0x474>
jmp    16f9 <bench_level1+0x479>
jmp    16fe <bench_level1+0x47e>
jmp    1816 <bench_level1+0x596>
mov    -0x8(%rbp),%rdi
lea    0x97a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    17fc <bench_level1+0x57c>
mov    -0x20(%rbp),%rdi
lea    0x968(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
je     1751 <bench_level1+0x4d1>
mov    -0x20(%rbp),%rdi
lea    0x8c6(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    175e <bench_level1+0x4de>
mov    -0xc(%rbp),%edi
call   1060 <stencil27@plt>
jmp    17f7 <bench_level1+0x577>
mov    -0x20(%rbp),%rdi
lea    0x92a(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1785 <bench_level1+0x505>
mov    -0xc(%rbp),%edi
call   1120 <stencil19@plt>
jmp    17f2 <bench_level1+0x572>
mov    -0x20(%rbp),%rdi
lea    0x904(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    17ac <bench_level1+0x52c>
mov    -0xc(%rbp),%edi
call   1030 <stencil9@plt>
jmp    17ed <bench_level1+0x56d>
mov    -0x20(%rbp),%rdi
lea    0x8df(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    17d3 <bench_level1+0x553>
mov    -0xc(%rbp),%edi
call   1040 <stencil5@plt>
jmp    17e8 <bench_level1+0x568>
mov    0x2806(%rip),%rax
mov    (%rax),%edi
lea    0x8b5(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    17ed <bench_level1+0x56d>
jmp    17f2 <bench_level1+0x572>
jmp    17f7 <bench_level1+0x577>
jmp    1811 <bench_level1+0x591>
mov    0x27dd(%rip),%rax
mov    (%rax),%edi
lea    0x8c2(%rip),%rsi
call   10d0 <fprintf@plt>
jmp    1816 <bench_level1+0x596>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bench_level1>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8,%r15
mov    %rcx,%rbp
mov    %rdx,%r12
mov    %esi,%r14d
mov    %rdi,%rbx
lea    0xd62(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     12dd <bench_level1+0x5d>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     138e <bench_level1+0x10e>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
lea    0xdfe(%rip),%rsi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10d0 <fprintf@plt>
lea    0xd24(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1423 <bench_level1+0x1a3>
lea    0xd5a(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     147b <bench_level1+0x1fb>
lea    0xd4e(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     14d3 <bench_level1+0x253>
lea    0xd3b(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     153b <bench_level1+0x2bb>
lea    0xd28(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     15c3 <bench_level1+0x343>
lea    0xd20(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1647 <bench_level1+0x3c7>
lea    0xd0d(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16bc <bench_level1+0x43c>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcfb(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1413 <bench_level1+0x193>
lea    0xc5f(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1413 <bench_level1+0x193>
lea    0xcd6(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1593 <bench_level1+0x313>
lea    0xcbf(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1617 <bench_level1+0x397>
lea    0xca9(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     168c <bench_level1+0x40c>
mov    0x2bdb(%rip),%rax
mov    (%rax),%edi
lea    0xc8a(%rip),%rsi
jmp    12d0 <bench_level1+0x50>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <stencil27@plt>
lea    0xbea(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     152b <bench_level1+0x2ab>
lea    0xbd6(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     15a3 <bench_level1+0x323>
lea    0xbc4(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    1677 <bench_level1+0x3f7>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1180 <double_dot_product@plt>
lea    0xb92(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     15b3 <bench_level1+0x333>
lea    0xb7e(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1627 <bench_level1+0x3a7>
lea    0xb6c(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    1677 <bench_level1+0x3f7>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10f0 <double_scalar_mult@plt>
lea    0xb3a(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1637 <bench_level1+0x3b7>
lea    0xb26(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     169c <bench_level1+0x41c>
lea    0xb14(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    1677 <bench_level1+0x3f7>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1190 <double_norm@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10c0 <int_dot_product@plt>
lea    0xad2(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16ac <bench_level1+0x42c>
lea    0xabe(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16cc <bench_level1+0x44c>
lea    0xaac(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    1677 <bench_level1+0x3f7>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1080 <double_axpy@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1120 <stencil19@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1070 <float_dot_product@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1130 <int_scalar_mult@plt>
lea    0xa4a(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16dc <bench_level1+0x45c>
lea    0xa36(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16ec <bench_level1+0x46c>
lea    0xa24(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    1677 <bench_level1+0x3f7>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1150 <double_dmatvec_product@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <stencil9@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1140 <float_scalar_mult@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <int_norm@plt>
lea    0x9ca(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     16fc <bench_level1+0x47c>
lea    0x9b8(%rip),%rsi
mov    %r15,%rdi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     170c <bench_level1+0x48c>
mov    0x2962(%rip),%rax
mov    (%rax),%edi
lea    0x99e(%rip),%rsi
jmp    12d0 <bench_level1+0x50>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <stencil5@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1090 <float_norm@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1160 <int_axpy@plt>
mov    %r12,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1100 <double_spgemm@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    11a0 <float_axpy@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10e0 <int_dmatvec_product@plt>
mov    %r14d,%edi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    10a0 <float_dmatvec_product@plt>
mov    %r12,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1110 <float_spmatvec_product@plt>
mov    %r12,%rdi
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1170 <double_spmatvec_product@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"blas_op\00"
@.str.1 = [12 x i8] c"dot_product\00"
@.str.2 = [4 x i8] c"int\00"
@.str.3 = [6 x i8] c"float\00"
@.str.4 = [7 x i8] c"double\00"
@stderr = global i32 0
@.str.5 = [49 x i8] c"ERROR: check you are using a valid data type...\0A\00"
@.str.6 = [12 x i8] c"scalar_mult\00"
@.str.7 = [5 x i8] c"norm\00"
@.str.8 = [5 x i8] c"axpy\00"
@.str.9 = [16 x i8] c"dmatvec_product\00"
@.str.10 = [5 x i8] c"spmv\00"
@.str.11 = [7 x i8] c"spgemm\00"
@.str.12 = [8 x i8] c"stencil\00"
@.str.13 = [3 x i8] c"27\00"
@.str.14 = [3 x i8] c"19\00"
@.str.15 = [2 x i8] c"9\00"
@.str.16 = [2 x i8] c"5\00"
@.str.17 = [54 x i8] c"ERROR: check you are using a valid operation type...\0A\00"
@.str.18 = [49 x i8] c"ERROR: check you are using a valid benchmark...\0A\00"
define void @bench_level1(i8* %0, i32 %1, i64 %2, i8* %3, i8* %4) {
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i64
%9 = alloca i8*
%10 = alloca i8*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i64 %2, i64* %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i8*, i8** %6
%12 = call i64 @strcmp(i8* %11, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %206
14: ; preds = %5
%15 = load i8*, i8** %9
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %45
18: ; preds = %14
%19 = load i8*, i8** %10
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %18
%23 = load i32, i32* %7
%24 = call i32 @int_dot_product(i32 %23)
br label %44
25: ; preds = %18
%26 = load i8*, i8** %10
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %32
29: ; preds = %25
%30 = load i32, i32* %7
%31 = call i32 @float_dot_product(i32 %30)
br label %43
32: ; preds = %25
%33 = load i8*, i8** %10
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %32
%37 = load i32, i32* %7
%38 = call i32 @double_dot_product(i32 %37)
br label %42
39: ; preds = %32
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %42
42: ; preds = %39, %36
br label %43
43: ; preds = %42, %29
br label %44
44: ; preds = %43, %22
br label %205
45: ; preds = %14
%46 = load i8*, i8** %9
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %76
49: ; preds = %45
%50 = load i8*, i8** %10
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, i32* %7
%55 = call i32 @int_scalar_mult(i32 %54)
br label %75
56: ; preds = %49
%57 = load i8*, i8** %10
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load i32, i32* %7
%62 = call i32 @float_scalar_mult(i32 %61)
br label %74
63: ; preds = %56
%64 = load i8*, i8** %10
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %63
%68 = load i32, i32* %7
%69 = call i32 @double_scalar_mult(i32 %68)
br label %73
70: ; preds = %63
%71 = load i32, i32* @stderr
%72 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %73
73: ; preds = %70, %67
br label %74
74: ; preds = %73, %60
br label %75
75: ; preds = %74, %53
br label %204
76: ; preds = %45
%77 = load i8*, i8** %9
%78 = call i64 @strcmp(i8* %77, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %107
80: ; preds = %76
%81 = load i8*, i8** %10
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = load i32, i32* %7
%86 = call i32 @int_norm(i32 %85)
br label %106
87: ; preds = %80
%88 = load i8*, i8** %10
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = load i32, i32* %7
%93 = call i32 @float_norm(i32 %92)
br label %105
94: ; preds = %87
%95 = load i8*, i8** %10
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load i32, i32* %7
%100 = call i32 @double_norm(i32 %99)
br label %104
101: ; preds = %94
%102 = load i32, i32* @stderr
%103 = call i32 @fprintf(i32 %102, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %104
104: ; preds = %101, %98
br label %105
105: ; preds = %104, %91
br label %106
106: ; preds = %105, %84
br label %203
107: ; preds = %76
%108 = load i8*, i8** %9
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %138
111: ; preds = %107
%112 = load i8*, i8** %10
%113 = call i64 @strcmp(i8* %112, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%114 = icmp eq i64 %113, 0
br i1 %114, label %115, label %118
115: ; preds = %111
%116 = load i32, i32* %7
%117 = call i32 @int_axpy(i32 %116)
br label %137
118: ; preds = %111
%119 = load i8*, i8** %10
%120 = call i64 @strcmp(i8* %119, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %125
122: ; preds = %118
%123 = load i32, i32* %7
%124 = call i32 @float_axpy(i32 %123)
br label %136
125: ; preds = %118
%126 = load i8*, i8** %10
%127 = call i64 @strcmp(i8* %126, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %132
129: ; preds = %125
%130 = load i32, i32* %7
%131 = call i32 @double_axpy(i32 %130)
br label %135
132: ; preds = %125
%133 = load i32, i32* @stderr
%134 = call i32 @fprintf(i32 %133, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %135
135: ; preds = %132, %129
br label %136
136: ; preds = %135, %122
br label %137
137: ; preds = %136, %115
br label %202
138: ; preds = %107
%139 = load i8*, i8** %9
%140 = call i64 @strcmp(i8* %139, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %169
142: ; preds = %138
%143 = load i8*, i8** %10
%144 = call i64 @strcmp(i8* %143, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %149
146: ; preds = %142
%147 = load i32, i32* %7
%148 = call i32 @int_dmatvec_product(i32 %147)
br label %168
149: ; preds = %142
%150 = load i8*, i8** %10
%151 = call i64 @strcmp(i8* %150, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %156
153: ; preds = %149
%154 = load i32, i32* %7
%155 = call i32 @float_dmatvec_product(i32 %154)
br label %167
156: ; preds = %149
%157 = load i8*, i8** %10
%158 = call i64 @strcmp(i8* %157, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%159 = icmp eq i64 %158, 0
br i1 %159, label %160, label %163
160: ; preds = %156
%161 = load i32, i32* %7
%162 = call i32 @double_dmatvec_product(i32 %161)
br label %166
163: ; preds = %156
%164 = load i32, i32* @stderr
%165 = call i32 @fprintf(i32 %164, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
166: ; preds = %163, %160
br label %167
167: ; preds = %166, %153
br label %168
168: ; preds = %167, %146
br label %201
169: ; preds = %138
%170 = load i8*, i8** %9
%171 = call i64 @strcmp(i8* %170, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %192
173: ; preds = %169
%174 = load i8*, i8** %10
%175 = call i64 @strcmp(i8* %174, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%176 = icmp eq i64 %175, 0
br i1 %176, label %177, label %180
177: ; preds = %173
%178 = load i64, i64* %8
%179 = call i32 @float_spmatvec_product(i64 %178)
br label %191
180: ; preds = %173
%181 = load i8*, i8** %10
%182 = call i64 @strcmp(i8* %181, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%183 = icmp eq i64 %182, 0
br i1 %183, label %184, label %187
184: ; preds = %180
%185 = load i64, i64* %8
%186 = call i32 @double_spmatvec_product(i64 %185)
br label %190
187: ; preds = %180
%188 = load i32, i32* @stderr
%189 = call i32 @fprintf(i32 %188, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %190
190: ; preds = %187, %184
br label %191
191: ; preds = %190, %177
br label %200
192: ; preds = %169
%193 = load i8*, i8** %9
%194 = call i64 @strcmp(i8* %193, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%195 = icmp eq i64 %194, 0
br i1 %195, label %196, label %199
196: ; preds = %192
%197 = load i64, i64* %8
%198 = call i32 @double_spgemm(i64 %197)
br label %199
199: ; preds = %196, %192
br label %200
200: ; preds = %199, %191
br label %201
201: ; preds = %200, %168
br label %202
202: ; preds = %201, %137
br label %203
203: ; preds = %202, %106
br label %204
204: ; preds = %203, %75
br label %205
205: ; preds = %204, %44
br label %253
206: ; preds = %5
%207 = load i8*, i8** %6
%208 = call i64 @strcmp(i8* %207, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%209 = icmp eq i64 %208, 0
br i1 %209, label %210, label %249
210: ; preds = %206
%211 = load i8*, i8** %9
%212 = call i64 @strcmp(i8* %211, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%213 = icmp eq i64 %212, 0
br i1 %213, label %218, label %214
214: ; preds = %210
%215 = load i8*, i8** %9
%216 = call i64 @strcmp(i8* %215, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%217 = icmp eq i64 %216, 0
br i1 %217, label %218, label %221
218: ; preds = %214, %210
%219 = load i32, i32* %7
%220 = call i32 @stencil27(i32 %219)
br label %248
221: ; preds = %214
%222 = load i8*, i8** %9
%223 = call i64 @strcmp(i8* %222, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%224 = icmp eq i64 %223, 0
br i1 %224, label %225, label %228
225: ; preds = %221
%226 = load i32, i32* %7
%227 = call i32 @stencil19(i32 %226)
br label %247
228: ; preds = %221
%229 = load i8*, i8** %9
%230 = call i64 @strcmp(i8* %229, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%231 = icmp eq i64 %230, 0
br i1 %231, label %232, label %235
232: ; preds = %228
%233 = load i32, i32* %7
%234 = call i32 @stencil9(i32 %233)
br label %246
235: ; preds = %228
%236 = load i8*, i8** %9
%237 = call i64 @strcmp(i8* %236, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%238 = icmp eq i64 %237, 0
br i1 %238, label %239, label %242
239: ; preds = %235
%240 = load i32, i32* %7
%241 = call i32 @stencil5(i32 %240)
br label %245
242: ; preds = %235
%243 = load i32, i32* @stderr
%244 = call i32 @fprintf(i32 %243, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
br label %245
245: ; preds = %242, %239
br label %246
246: ; preds = %245, %232
br label %247
247: ; preds = %246, %225
br label %248
248: ; preds = %247, %218
br label %252
249: ; preds = %206
%250 = load i32, i32* @stderr
%251 = call i32 @fprintf(i32 %250, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.18, i64 0, i64 0))
br label %252
252: ; preds = %249, %248
br label %253
253: ; preds = %252, %205
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"blas_op\00"
@.str.1 = [12 x i8] c"dot_product\00"
@.str.2 = [4 x i8] c"int\00"
@.str.3 = [6 x i8] c"float\00"
@.str.4 = [7 x i8] c"double\00"
@stderr = global i32 0
@.str.5 = [49 x i8] c"ERROR: check you are using a valid data type...\0A\00"
@.str.6 = [12 x i8] c"scalar_mult\00"
@.str.7 = [5 x i8] c"norm\00"
@.str.8 = [5 x i8] c"axpy\00"
@.str.9 = [16 x i8] c"dmatvec_product\00"
@.str.10 = [5 x i8] c"spmv\00"
@.str.11 = [7 x i8] c"spgemm\00"
@.str.12 = [8 x i8] c"stencil\00"
@.str.13 = [3 x i8] c"27\00"
@.str.14 = [3 x i8] c"19\00"
@.str.15 = [2 x i8] c"9\00"
@.str.16 = [2 x i8] c"5\00"
@.str.17 = [54 x i8] c"ERROR: check you are using a valid operation type...\0A\00"
@.str.18 = [49 x i8] c"ERROR: check you are using a valid benchmark...\0A\00"
define void @bench_level1(i8* %0, i32 %1, i64 %2, i8* %3, i8* %4) {
%6 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %134
8: ; preds = %5
%9 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = tail call i32 @int_dot_product(i32 %1)
br label %166
16: ; preds = %11
%17 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = tail call i32 @float_dot_product(i32 %1)
br label %166
21: ; preds = %16
%22 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = tail call i32 @double_dot_product(i32 %1)
br label %166
26: ; preds = %21
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
29: ; preds = %8
%30 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.6, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %50
32: ; preds = %29
%33 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = tail call i32 @int_scalar_mult(i32 %1)
br label %166
37: ; preds = %32
%38 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = tail call i32 @float_scalar_mult(i32 %1)
br label %166
42: ; preds = %37
%43 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %47
45: ; preds = %42
%46 = tail call i32 @double_scalar_mult(i32 %1)
br label %166
47: ; preds = %42
%48 = load i32, i32* @stderr
%49 = tail call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
50: ; preds = %29
%51 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %71
53: ; preds = %50
%54 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 @int_norm(i32 %1)
br label %166
58: ; preds = %53
%59 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = tail call i32 @float_norm(i32 %1)
br label %166
63: ; preds = %58
%64 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = tail call i32 @double_norm(i32 %1)
br label %166
68: ; preds = %63
%69 = load i32, i32* @stderr
%70 = tail call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
71: ; preds = %50
%72 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %92
74: ; preds = %71
%75 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %79
77: ; preds = %74
%78 = tail call i32 @int_axpy(i32 %1)
br label %166
79: ; preds = %74
%80 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = tail call i32 @float_axpy(i32 %1)
br label %166
84: ; preds = %79
%85 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = tail call i32 @double_axpy(i32 %1)
br label %166
89: ; preds = %84
%90 = load i32, i32* @stderr
%91 = tail call i32 @fprintf(i32 %90, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
92: ; preds = %71
%93 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %95, label %113
95: ; preds = %92
%96 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %100
98: ; preds = %95
%99 = tail call i32 @int_dmatvec_product(i32 %1)
br label %166
100: ; preds = %95
%101 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %100
%104 = tail call i32 @float_dmatvec_product(i32 %1)
br label %166
105: ; preds = %100
%106 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %110
108: ; preds = %105
%109 = tail call i32 @double_dmatvec_product(i32 %1)
br label %166
110: ; preds = %105
%111 = load i32, i32* @stderr
%112 = tail call i32 @fprintf(i32 %111, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
113: ; preds = %92
%114 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %129
116: ; preds = %113
%117 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%118 = icmp eq i64 %117, 0
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = tail call i32 @float_spmatvec_product(i64 %2)
br label %166
121: ; preds = %116
%122 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%123 = icmp eq i64 %122, 0
br i1 %123, label %124, label %126
124: ; preds = %121
%125 = tail call i32 @double_spmatvec_product(i64 %2)
br label %166
126: ; preds = %121
%127 = load i32, i32* @stderr
%128 = tail call i32 @fprintf(i32 %127, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.5, i64 0, i64 0))
br label %166
129: ; preds = %113
%130 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %166
132: ; preds = %129
%133 = tail call i32 @double_spgemm(i64 %2)
br label %166
134: ; preds = %5
%135 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %163
137: ; preds = %134
%138 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%139 = icmp eq i64 %138, 0
br i1 %139, label %143, label %140
140: ; preds = %137
%141 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%142 = icmp eq i64 %141, 0
br i1 %142, label %143, label %145
143: ; preds = %140, %137
%144 = tail call i32 @stencil27(i32 %1)
br label %166
145: ; preds = %140
%146 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %150
148: ; preds = %145
%149 = tail call i32 @stencil19(i32 %1)
br label %166
150: ; preds = %145
%151 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %155
153: ; preds = %150
%154 = tail call i32 @stencil9(i32 %1)
br label %166
155: ; preds = %150
%156 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %160
158: ; preds = %155
%159 = tail call i32 @stencil5(i32 %1)
br label %166
160: ; preds = %155
%161 = load i32, i32* @stderr
%162 = tail call i32 @fprintf(i32 %161, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.17, i64 0, i64 0))
br label %166
163: ; preds = %134
%164 = load i32, i32* @stderr
%165 = tail call i32 @fprintf(i32 %164, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.18, i64 0, i64 0))
br label %166
166: ; preds = %163, %148, %158, %160, %153, %143, %19, %26, %24, %14, %61, %68, %66, %56, %103, %110, %108, %98, %129, %132, %119, %126, %124, %77, %87, %89, %82, %35, %45, %47, %40
ret void
}