#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 show_usage(int argc, char **argv) {
  printf("Usage : %s <OPTIONS>\n", argv[0]);
  printf("OPTIONS:\n");
  printf("	[-1 loops] Number of loops for delay injection 1\n");
  printf("	[-2 loops] Number of loops for delay injection 2\n");
  printf("	[-3 loops] Number of loops for delay injection 3\n");
  printf("	[-4 loops] Number of loops for delay injection 4\n");
  printf("	[-5 loops] Number of loops for delay injection 5\n");
  printf("	[-6 loops] Number of loops for delay injection 6\n");
  printf(
      "	[-7 loops] Number of loops for delay injection 7 (-1 to enable -m)\n");
  printf(
      "	[-8 loops] Number of loops for delay injection 8 (-1 to enable -m)\n");
  printf(
      "	[-9 loops] Number of loops for delay injection 9 (-1 to enable -m)\n");
  printf(
      "	[-m N] Yield/sleep/kill every modulo N (default 0: disabled) (>= 0)\n");
  printf("	[-y] Yield\n");
  printf("	[-k] Kill thread with signal\n");
  printf("	[-s S] S: =0: disabled (default), >0: sleep time (ms)\n");
  printf("	[-t N] Number of threads (default 200)\n");
  printf("	[-r N] Number of repetitions per thread (default 5000)\n");
  printf("	[-d] Disable rseq system call (no initialization)\n");
  printf("	[-D M] Disable rseq for each M threads\n");
  printf("	[-T test] Choose test: (s)pinlock, (l)ist, (b)uffer, (m)emcpy, "
         "(i)ncrement, membarrie(r)\n");
  printf(
      "	[-M] Push into buffer and memcpy buffer with memory barriers.\n");
  printf("	[-v] Verbose output.\n");
  printf("	[-h] Show this help.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf90(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfec(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1092(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1091(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1112(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1138(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1153(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11d2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11db(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
push   %rax
mov    (%rsi),%rsi
lea    0xec5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecd(%rip),%rdi
call   1040 <puts@plt>
lea    0xeca(%rip),%rdi
call   1040 <puts@plt>
lea    0xef0(%rip),%rdi
call   1040 <puts@plt>
lea    0xf16(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf62(%rip),%rdi
call   1040 <puts@plt>
lea    0xf88(%rip),%rdi
call   1040 <puts@plt>
lea    0xfae(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe6(%rip),%rdi
call   1040 <puts@plt>
lea    0x101e(%rip),%rdi
call   1040 <puts@plt>
lea    0x1056(%rip),%rdi
call   1040 <puts@plt>
lea    0x108f(%rip),%rdi
call   1040 <puts@plt>
lea    0x108f(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a1(%rip),%rdi
call   1040 <puts@plt>
lea    0x10cc(%rip),%rdi
call   1040 <puts@plt>
lea    0x10e8(%rip),%rdi
call   1040 <puts@plt>
lea    0x1114(%rip),%rdi
call   1040 <puts@plt>
lea    0x113b(%rip),%rdi
call   1040 <puts@plt>
lea    0x1157(%rip),%rdi
call   1040 <puts@plt>
lea    0x11a5(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d8(%rip),%rdi
call   1040 <puts@plt>
lea    0x11e2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"Usage : %s <OPTIONS>\0A\00"
@.str.1 = [10 x i8] c"OPTIONS:\0A\00"
@.str.2 = [51 x i8] c"\09[-1 loops] Number of loops for delay injection 1\0A\00"
@.str.3 = [51 x i8] c"\09[-2 loops] Number of loops for delay injection 2\0A\00"
@.str.4 = [51 x i8] c"\09[-3 loops] Number of loops for delay injection 3\0A\00"
@.str.5 = [51 x i8] c"\09[-4 loops] Number of loops for delay injection 4\0A\00"
@.str.6 = [51 x i8] c"\09[-5 loops] Number of loops for delay injection 5\0A\00"
@.str.7 = [51 x i8] c"\09[-6 loops] Number of loops for delay injection 6\0A\00"
@.str.8 = [69 x i8] c"\09[-7 loops] Number of loops for delay injection 7 (-1 to enable -m)\0A\00"
@.str.9 = [69 x i8] c"\09[-8 loops] Number of loops for delay injection 8 (-1 to enable -m)\0A\00"
@.str.10 = [69 x i8] c"\09[-9 loops] Number of loops for delay injection 9 (-1 to enable -m)\0A\00"
@.str.11 = [70 x i8] c"\09[-m N] Yield/sleep/kill every modulo N (default 0: disabled) (>= 0)\0A\00"
@.str.12 = [13 x i8] c"\09[-y] Yield\0A\00"
@.str.13 = [31 x i8] c"\09[-k] Kill thread with signal\0A\00"
@.str.14 = [56 x i8] c"\09[-s S] S: =0: disabled (default), >0: sleep time (ms)\0A\00"
@.str.15 = [41 x i8] c"\09[-t N] Number of threads (default 200)\0A\00"
@.str.16 = [57 x i8] c"\09[-r N] Number of repetitions per thread (default 5000)\0A\00"
@.str.17 = [52 x i8] c"\09[-d] Disable rseq system call (no initialization)\0A\00"
@.str.18 = [41 x i8] c"\09[-D M] Disable rseq for each M threads\0A\00"
@.str.19 = [91 x i8] c"\09[-T test] Choose test: (s)pinlock, (l)ist, (b)uffer, (m)emcpy, (i)ncrement, membarrie(r)\0A\00"
@.str.20 = [64 x i8] c"\09[-M] Push into buffer and memcpy buffer with memory barriers.\0A\00"
@.str.21 = [23 x i8] c"\09[-v] Verbose output.\0A\00"
@.str.22 = [23 x i8] c"\09[-h] Show this help.\0A\00"
@.str.23 = [2 x i8] c"\0A\00"
define void @show_usage(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i8**, i8*** %4
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.4, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.8, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.9, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.10, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.11, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.12, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.13, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.16, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.17, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.18, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.19, i64 0, i64 0))
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.20, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.21, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.22, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"Usage : %s <OPTIONS>\0A\00"
@str = [9 x i8] c"OPTIONS:\00"
@str.24 = [50 x i8] c"\09[-1 loops] Number of loops for delay injection 1\00"
@str.25 = [50 x i8] c"\09[-2 loops] Number of loops for delay injection 2\00"
@str.26 = [50 x i8] c"\09[-3 loops] Number of loops for delay injection 3\00"
@str.27 = [50 x i8] c"\09[-4 loops] Number of loops for delay injection 4\00"
@str.28 = [50 x i8] c"\09[-5 loops] Number of loops for delay injection 5\00"
@str.29 = [50 x i8] c"\09[-6 loops] Number of loops for delay injection 6\00"
@str.30 = [68 x i8] c"\09[-7 loops] Number of loops for delay injection 7 (-1 to enable -m)\00"
@str.31 = [68 x i8] c"\09[-8 loops] Number of loops for delay injection 8 (-1 to enable -m)\00"
@str.32 = [68 x i8] c"\09[-9 loops] Number of loops for delay injection 9 (-1 to enable -m)\00"
@str.33 = [69 x i8] c"\09[-m N] Yield/sleep/kill every modulo N (default 0: disabled) (>= 0)\00"
@str.34 = [12 x i8] c"\09[-y] Yield\00"
@str.35 = [30 x i8] c"\09[-k] Kill thread with signal\00"
@str.36 = [55 x i8] c"\09[-s S] S: =0: disabled (default), >0: sleep time (ms)\00"
@str.37 = [40 x i8] c"\09[-t N] Number of threads (default 200)\00"
@str.38 = [56 x i8] c"\09[-r N] Number of repetitions per thread (default 5000)\00"
@str.39 = [51 x i8] c"\09[-d] Disable rseq system call (no initialization)\00"
@str.40 = [40 x i8] c"\09[-D M] Disable rseq for each M threads\00"
@str.41 = [90 x i8] c"\09[-T test] Choose test: (s)pinlock, (l)ist, (b)uffer, (m)emcpy, (i)ncrement, membarrie(r)\00"
@str.42 = [63 x i8] c"\09[-M] Push into buffer and memcpy buffer with memory barriers.\00"
@str.43 = [22 x i8] c"\09[-v] Verbose output.\00"
@str.44 = [22 x i8] c"\09[-h] Show this help.\00"
define void @show_usage(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.39, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str.40, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.41, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.42, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.43, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.44, i64 0, i64 0))
%27 = tail call i32 @putchar(i32 10)
ret void
}