#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void help(int argc, char *argv[]) {
  fprintf(stderr, "%s: Use \"%s [options]\n", argv[0], argv[0]);
  fprintf(stderr, "\t Options are: \n");
  fprintf(stderr, "\t  -d device  : specify device index of hex busid "
                  "(default: first card available)\n");
  fprintf(stderr,
          "\t  -m mode    : the mode: disable, pulse or delay (mandatory)\n");
  fprintf(stderr, "\t  -o channel : the output channel, 1..4 (mandatory) \n");
  fprintf(stderr,
          "\t  -a time    : specify trigger absolute time (default: none)\n");
  fprintf(stderr, "\t  -s time    : specify trigger relative time (default: 1s "
                  "in pulse generator mode and 0.5 us in delay mode).\n");
  fprintf(stderr,
          "\t  -w time    : specify output pulse width (default: 200 ns). \n");
  fprintf(stderr, "\t  -g time    : specify output pulse spacing. \n");
  fprintf(stderr,
          "\t  -t         : wait for trigger before exiting (default: on) \n");
  fprintf(stderr,
          "\t  -q count   : number of pulses to generate (default: 1)\n");
  fprintf(
      stderr,
      "\t  -c         : generate infinite number of pulses (default: off)\n");
  fprintf(stderr, "\t  -p         : generate PPS\n");
  fprintf(stderr, "\t  -1         : generate 10 MHz\n");
  fprintf(stderr, "Time format is a sum of times expressed in (full, milli, "
                  "micro, nano, pico)seconds, for example:\n");
  fprintf(
      stderr,
      "1s+20u-100n is 1 sec, 19.9 us. Fractional numbers are NOT allowed.\n\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
lea    0xec3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e95(%rip),%rax
mov    (%rax),%edi
lea    0xec3(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e7e(%rip),%rax
mov    (%rax),%edi
lea    0xebd(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e67(%rip),%rax
mov    (%rax),%edi
lea    0xef9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e50(%rip),%rax
mov    (%rax),%edi
lea    0xf21(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
lea    0xf41(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xf69(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e0b(%rip),%rax
mov    (%rax),%edi
lea    0xfc1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df4(%rip),%rax
mov    (%rax),%edi
lea    0xfea(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
lea    0x1003(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
lea    0x102c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2daf(%rip),%rax
mov    (%rax),%edi
lea    0x1050(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d98(%rip),%rax
mov    (%rax),%edi
lea    0x107c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d81(%rip),%rax
mov    (%rax),%edi
lea    0x1083(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
lea    0x108d(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d53(%rip),%rax
mov    (%rax),%edi
lea    0x10d8(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
mov    (%rsi),%rcx
lea    0xedc(%rip),%rsi
mov    %rcx,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xee1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf24(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf53(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf7a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1008(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1038(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1058(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1088(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10b3(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10e6(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10f4(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1105(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1157(%rip),%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [23 x i8] c"%s: Use \22%s [options]\0A\00"
@.str.1 = [17 x i8] c"\09 Options are: \0A\00"
@.str.2 = [83 x i8] c"\09 -d device : specify device index of hex busid (default: first card available)\0A\00"
@.str.3 = [63 x i8] c"\09 -m mode : the mode: disable, pulse or delay (mandatory)\0A\00"
@.str.4 = [55 x i8] c"\09 -o channel : the output channel, 1..4 (mandatory) \0A\00"
@.str.5 = [63 x i8] c"\09 -a time : specify trigger absolute time (default: none)\0A\00"
@.str.6 = [111 x i8] c"\09 -s time : specify trigger relative time (default: 1s in pulse generator mode and 0.5 us in delay mode).\0A\00"
@.str.7 = [64 x i8] c"\09 -w time : specify output pulse width (default: 200 ns). \0A\00"
@.str.8 = [48 x i8] c"\09 -g time : specify output pulse spacing. \0A\00"
@.str.9 = [64 x i8] c"\09 -t : wait for trigger before exiting (default: on) \0A\00"
@.str.10 = [59 x i8] c"\09 -q count : number of pulses to generate (default: 1)\0A\00"
@.str.11 = [67 x i8] c"\09 -c : generate infinite number of pulses (default: off)\0A\00"
@.str.12 = [30 x i8] c"\09 -p : generate PPS\0A\00"
@.str.13 = [33 x i8] c"\09 -1 : generate 10 MHz\0A\00"
@.str.14 = [98 x i8] c"Time format is a sum of times expressed in (full, milli, micro, nano, pico)seconds, for example:\0A\00"
@.str.15 = [69 x i8] c"1s+20u-100n is 1 sec, 19.9 us. Fractional numbers are NOT allowed.\0A\0A\00"
define void @help(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* @stderr
%6 = load i8**, i8*** %4
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = load i8**, i8*** %4
%10 = getelementptr inbounds i8*, i8** %9, i64 0
%11 = load i8*, i8** %10
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %11)
%13 = load i32, i32* @stderr
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 (i32, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.6, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %27, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 (i32, i8*, ...) @fprintf(i32 %29, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.14, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [23 x i8] c"%s: Use \22%s [options]\0A\00"
@.str.1 = [17 x i8] c"\09 Options are: \0A\00"
@.str.2 = [83 x i8] c"\09 -d device : specify device index of hex busid (default: first card available)\0A\00"
@.str.3 = [63 x i8] c"\09 -m mode : the mode: disable, pulse or delay (mandatory)\0A\00"
@.str.4 = [55 x i8] c"\09 -o channel : the output channel, 1..4 (mandatory) \0A\00"
@.str.5 = [63 x i8] c"\09 -a time : specify trigger absolute time (default: none)\0A\00"
@.str.6 = [111 x i8] c"\09 -s time : specify trigger relative time (default: 1s in pulse generator mode and 0.5 us in delay mode).\0A\00"
@.str.7 = [64 x i8] c"\09 -w time : specify output pulse width (default: 200 ns). \0A\00"
@.str.8 = [48 x i8] c"\09 -g time : specify output pulse spacing. \0A\00"
@.str.9 = [64 x i8] c"\09 -t : wait for trigger before exiting (default: on) \0A\00"
@.str.10 = [59 x i8] c"\09 -q count : number of pulses to generate (default: 1)\0A\00"
@.str.11 = [67 x i8] c"\09 -c : generate infinite number of pulses (default: off)\0A\00"
@.str.12 = [30 x i8] c"\09 -p : generate PPS\0A\00"
@.str.13 = [33 x i8] c"\09 -1 : generate 10 MHz\0A\00"
@.str.14 = [98 x i8] c"Time format is a sum of times expressed in (full, milli, micro, nano, pico)seconds, for example:\0A\00"
@.str.15 = [69 x i8] c"1s+20u-100n is 1 sec, 19.9 us. Fractional numbers are NOT allowed.\0A\0A\00"
define void @help(i32 %0, i8** nocapture %1) {
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %1
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %4)
%6 = load i32, i32* @stderr
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([111 x i8], [111 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.13, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.14, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.15, i64 0, i64 0))
ret void
}