#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(char *argv[]) {
  printf("\n%s [-c ncols] [-r nrows] [-t num_thr] [-s nsteps] [-G ngpu] [-d "
         "debug] [-v] [-h]",
         argv[0]);
  printf("\n -d <0|1|2> : <no output | debug info (default) | display "
         "interactively> ");
  printf("\n -s <int>   : steps  (step num. default=1000)");
  printf("\n -n <int>   : Computation load  (default=1000)");
  printf("\n -G <int>   : GPU (default 0)");
  printf("\n -t <int>   : Threads num ( default = OMP_NUM_THREADS if set, "
         "otherwise = cores num");
  printf("\n -v   : version ");
  printf("\n -h   : help ");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    (%rdi),%rsi
lea    0xed5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf56(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf99(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfaa(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xff1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xff5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [82 x i8] c"\0A%s [-c ncols] [-r nrows] [-t num_thr] [-s nsteps] [-G ngpu] [-d debug] [-v] [-h]\00"
@.str.1 = [75 x i8] c"\0A -d <0|1|2> : <no output | debug info (default) | display interactively> \00"
@.str.2 = [47 x i8] c"\0A -s <int> : steps (step num. default=1000)\00"
@.str.3 = [48 x i8] c"\0A -n <int> : Computation load (default=1000)\00"
@.str.4 = [31 x i8] c"\0A -G <int> : GPU (default 0)\00"
@.str.5 = [85 x i8] c"\0A -t <int> : Threads num ( default = OMP_NUM_THREADS if set, otherwise = cores num\00"
@.str.6 = [18 x i8] c"\0A -v : version \00"
@.str.7 = [15 x i8] c"\0A -h : help \00"
@.str.8 = [2 x i8] c"\0A\00"
define void @usage(i8** %0) {
%2 = alloca i8**
store i8** %0, i8*** %2
%3 = load i8**, i8*** %2
%4 = getelementptr inbounds i8*, i8** %3, i64 0
%5 = load i8*, i8** %4
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [82 x i8] c"\0A%s [-c ncols] [-r nrows] [-t num_thr] [-s nsteps] [-G ngpu] [-d debug] [-v] [-h]\00"
@.str.1 = [75 x i8] c"\0A -d <0|1|2> : <no output | debug info (default) | display interactively> \00"
@.str.2 = [47 x i8] c"\0A -s <int> : steps (step num. default=1000)\00"
@.str.3 = [48 x i8] c"\0A -n <int> : Computation load (default=1000)\00"
@.str.4 = [31 x i8] c"\0A -G <int> : GPU (default 0)\00"
@.str.5 = [85 x i8] c"\0A -t <int> : Threads num ( default = OMP_NUM_THREADS if set, otherwise = cores num\00"
@.str.6 = [18 x i8] c"\0A -v : version \00"
@.str.7 = [15 x i8] c"\0A -h : help \00"
define void @usage(i8** nocapture %0) {
%2 = load i8*, i8** %0
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([82 x i8], [82 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([85 x i8], [85 x i8]* @.str.5, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
ret void
}