#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*/ printf(char *);
void usage() {
  printf("\n");
  printf("Usage: spmv -f <matrixfile> [device_type] [kernel_type] [options]\n");
  printf("\n");
  printf("Note: <matrixfile> should include the relative path from this "
         "executable.\n");
  printf("\n");
  printf(" Device Type:\n");
  printf("\n");
  printf("  -c, --cpu          Use CPU device for kernel computations.\n");
  printf("  -g, --gpu          Use GPU device for kernel computations.\n");
  printf(
      "  -a, --accel        Use ACCELERATOR device for kernel computations.\n");
  printf("\n");
  printf(
      " Kernel Type (default is -A for ACCELERATOR device, -L otherwise):\n");
  printf("\n");
  printf("  -L, --ls           Use 'load-store' kernel to solve problem.\n");
  printf("  -A, --awgc         Use 'async-work-group-copy' kernel to solve "
         "problem.\n");
  printf("\n");
  printf(" Options (all options default to 'not selected'):\n");
  printf("\n");
  printf("  -l, --lwgsize [n]  Specify local work group size for GPU use "
         "(coerced to power of 2).\n");
  printf("\n");
  printf("  -h, --help         Print this usage message.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0x119d(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1185(%rip),%rdi
call   1030 <printf@plt>
lea    0xf04(%rip),%rdi
call   1030 <printf@plt>
lea    0x116d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf37(%rip),%rdi
call   1030 <printf@plt>
lea    0x1155(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf60(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
lea    0x1125(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
call   1030 <printf@plt>
lea    0x1020(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1053(%rip),%rdi
call   1030 <printf@plt>
lea    0x10d1(%rip),%rdi
call   1030 <printf@plt>
lea    0x106e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b9(%rip),%rdi
call   1030 <printf@plt>
lea    0x10af(%rip),%rdi
call   1030 <printf@plt>
lea    0x10a1(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xefa(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf2e(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xf26(%rip),%rdi
call   1040 <puts@plt>
lea    0xf57(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfb7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xfe4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1017(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x104b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1067(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x10a9(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [67 x i8] c"Usage: spmv -f <matrixfile> [device_type] [kernel_type] [options]\0A\00"
@.str.2 = [75 x i8] c"Note: <matrixfile> should include the relative path from this executable.\0A\00"
@.str.3 = [15 x i8] c" Device Type:\0A\00"
@.str.4 = [62 x i8] c" -c, --cpu Use CPU device for kernel computations.\0A\00"
@.str.5 = [62 x i8] c" -g, --gpu Use GPU device for kernel computations.\0A\00"
@.str.6 = [70 x i8] c" -a, --accel Use ACCELERATOR device for kernel computations.\0A\00"
@.str.7 = [68 x i8] c" Kernel Type (default is -A for ACCELERATOR device, -L otherwise):\0A\00"
@.str.8 = [64 x i8] c" -L, --ls Use 'load-store' kernel to solve problem.\0A\00"
@.str.9 = [75 x i8] c" -A, --awgc Use 'async-work-group-copy' kernel to solve problem.\0A\00"
@.str.10 = [51 x i8] c" Options (all options default to 'not selected'):\0A\00"
@.str.11 = [89 x i8] c" -l, --lwgsize [n] Specify local work group size for GPU use (coerced to power of 2).\0A\00"
@.str.12 = [48 x i8] c" -h, --help Print this usage message.\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [66 x i8] c"Usage: spmv -f <matrixfile> [device_type] [kernel_type] [options]\00"
@str.13 = [74 x i8] c"Note: <matrixfile> should include the relative path from this executable.\00"
@str.14 = [14 x i8] c" Device Type:\00"
@str.15 = [61 x i8] c" -c, --cpu Use CPU device for kernel computations.\00"
@str.16 = [61 x i8] c" -g, --gpu Use GPU device for kernel computations.\00"
@str.17 = [69 x i8] c" -a, --accel Use ACCELERATOR device for kernel computations.\00"
@str.18 = [67 x i8] c" Kernel Type (default is -A for ACCELERATOR device, -L otherwise):\00"
@str.19 = [63 x i8] c" -L, --ls Use 'load-store' kernel to solve problem.\00"
@str.20 = [74 x i8] c" -A, --awgc Use 'async-work-group-copy' kernel to solve problem.\00"
@str.21 = [50 x i8] c" Options (all options default to 'not selected'):\00"
@str.22 = [88 x i8] c" -l, --lwgsize [n] Specify local work group size for GPU use (coerced to power of 2).\00"
@str.23 = [47 x i8] c" -h, --help Print this usage message.\00"
define void @usage() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.14, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.15, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.16, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.17, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.18, i64 0, i64 0))
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.19, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.20, i64 0, i64 0))
%16 = tail call i32 @putchar(i32 10)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.21, i64 0, i64 0))
%18 = tail call i32 @putchar(i32 10)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.22, i64 0, i64 0))
%20 = tail call i32 @putchar(i32 10)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.23, i64 0, i64 0))
%22 = tail call i32 @putchar(i32 10)
ret void
}