#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 Help() {
  printf("Available command list:\n");
  printf("init: open the digitizer\n");
  printf("setup: setup the digitizer\n");
  printf("start: start the data acquisition\n");
  printf("stop: stop the data acquisition\n");
  printf("prestart: start the preprocessing thread\n");
  printf("prestop: stop the preprocessing thread\n");
  printf("vistart [channelnumber]: start the visualization thread\n");
  printf("vistop: stop the visualization thread\n");
  printf("rawstart: start the raw data writing thread\n");
  printf("rawstop: stop the raw data writing thread\n");
  printf("close: close the digitizer\n");
  printf("send: send a software trigger\n");
  printf("help\n");
  printf("check: check the correctness of the configuration file\n");
  printf("chkconf: print the content of the configuration file\n");
  printf("write register 0x[register] 0x[data]\n");
  printf("read register 0x[register]\n");
  printf("-f [conf file path]: change the configuration file path\n");
  printf("-d [data file path]: change the data file path\n");
  printf("-l [log file path]: change the log file path\n");
  printf("print: print the internal configuration object used to configure the "
         "digitizer\n");
  printf("print files: print the path of the configuration file, of the data "
         "file and of the log file\n");
  printf("status: print the status of the threads acquisition, preprocessing, "
         "raw data and visualization\n");
  printf("more: display the content of the logfile\n");
  printf("exit: quit program\n");
  printf("quit: quit program\n");
}


x86 assembly (clang, -O0):
<Help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xf00(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xf27(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf76(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbe(%rip),%rdi
call   1030 <printf@plt>
lea    0xfdf(%rip),%rdi
call   1030 <printf@plt>
lea    0xffe(%rip),%rdi
call   1030 <printf@plt>
lea    0x100e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
lea    0x101b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1047(%rip),%rdi
call   1030 <printf@plt>
lea    0x1071(%rip),%rdi
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
call   1030 <printf@plt>
lea    0x109b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x10ec(%rip),%rdi
call   1030 <printf@plt>
lea    0x110e(%rip),%rdi
call   1030 <printf@plt>
lea    0x1152(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a3(%rip),%rdi
call   1030 <printf@plt>
lea    0x11f7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1215(%rip),%rdi
call   1030 <printf@plt>
lea    0x121d(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xf01(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb8(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd8(%rip),%rdi
call   1030 <puts@plt>
lea    0xff6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x1017(%rip),%rdi
call   1030 <puts@plt>
lea    0x1010(%rip),%rdi
call   1030 <puts@plt>
lea    0x103b(%rip),%rdi
call   1030 <puts@plt>
lea    0x1064(%rip),%rdi
call   1030 <puts@plt>
lea    0x107d(%rip),%rdi
call   1030 <puts@plt>
lea    0x108c(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10db(%rip),%rdi
call   1030 <puts@plt>
lea    0x10fc(%rip),%rdi
call   1030 <puts@plt>
lea    0x113f(%rip),%rdi
call   1030 <puts@plt>
lea    0x118f(%rip),%rdi
call   1030 <puts@plt>
lea    0x11e2(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ff(%rip),%rdi
call   1030 <puts@plt>
lea    0x1206(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Available command list:\0A\00"
@.str.1 = [26 x i8] c"init: open the digitizer\0A\00"
@.str.2 = [28 x i8] c"setup: setup the digitizer\0A\00"
@.str.3 = [35 x i8] c"start: start the data acquisition\0A\00"
@.str.4 = [33 x i8] c"stop: stop the data acquisition\0A\00"
@.str.5 = [42 x i8] c"prestart: start the preprocessing thread\0A\00"
@.str.6 = [40 x i8] c"prestop: stop the preprocessing thread\0A\00"
@.str.7 = [57 x i8] c"vistart [channelnumber]: start the visualization thread\0A\00"
@.str.8 = [39 x i8] c"vistop: stop the visualization thread\0A\00"
@.str.9 = [45 x i8] c"rawstart: start the raw data writing thread\0A\00"
@.str.10 = [43 x i8] c"rawstop: stop the raw data writing thread\0A\00"
@.str.11 = [28 x i8] c"close: close the digitizer\0A\00"
@.str.12 = [31 x i8] c"send: send a software trigger\0A\00"
@.str.13 = [6 x i8] c"help\0A\00"
@.str.14 = [56 x i8] c"check: check the correctness of the configuration file\0A\00"
@.str.15 = [54 x i8] c"chkconf: print the content of the configuration file\0A\00"
@.str.16 = [38 x i8] c"write register 0x[register] 0x[data]\0A\00"
@.str.17 = [28 x i8] c"read register 0x[register]\0A\00"
@.str.18 = [57 x i8] c"-f [conf file path]: change the configuration file path\0A\00"
@.str.19 = [48 x i8] c"-d [data file path]: change the data file path\0A\00"
@.str.20 = [46 x i8] c"-l [log file path]: change the log file path\0A\00"
@.str.21 = [80 x i8] c"print: print the internal configuration object used to configure the digitizer\0A\00"
@.str.22 = [93 x i8] c"print files: print the path of the configuration file, of the data file and of the log file\0A\00"
@.str.23 = [96 x i8] c"status: print the status of the threads acquisition, preprocessing, raw data and visualization\0A\00"
@.str.24 = [42 x i8] c"more: display the content of the logfile\0A\00"
@.str.25 = [20 x i8] c"exit: quit program\0A\00"
@.str.26 = [20 x i8] c"quit: quit program\0A\00"
define void @Help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([93 x i8], [93 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.26, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [24 x i8] c"Available command list:\00"
@str.27 = [25 x i8] c"init: open the digitizer\00"
@str.28 = [27 x i8] c"setup: setup the digitizer\00"
@str.29 = [34 x i8] c"start: start the data acquisition\00"
@str.30 = [32 x i8] c"stop: stop the data acquisition\00"
@str.31 = [41 x i8] c"prestart: start the preprocessing thread\00"
@str.32 = [39 x i8] c"prestop: stop the preprocessing thread\00"
@str.33 = [56 x i8] c"vistart [channelnumber]: start the visualization thread\00"
@str.34 = [38 x i8] c"vistop: stop the visualization thread\00"
@str.35 = [44 x i8] c"rawstart: start the raw data writing thread\00"
@str.36 = [42 x i8] c"rawstop: stop the raw data writing thread\00"
@str.37 = [27 x i8] c"close: close the digitizer\00"
@str.38 = [30 x i8] c"send: send a software trigger\00"
@str.39 = [5 x i8] c"help\00"
@str.40 = [55 x i8] c"check: check the correctness of the configuration file\00"
@str.41 = [53 x i8] c"chkconf: print the content of the configuration file\00"
@str.42 = [37 x i8] c"write register 0x[register] 0x[data]\00"
@str.43 = [27 x i8] c"read register 0x[register]\00"
@str.44 = [56 x i8] c"-f [conf file path]: change the configuration file path\00"
@str.45 = [47 x i8] c"-d [data file path]: change the data file path\00"
@str.46 = [45 x i8] c"-l [log file path]: change the log file path\00"
@str.47 = [79 x i8] c"print: print the internal configuration object used to configure the digitizer\00"
@str.48 = [92 x i8] c"print files: print the path of the configuration file, of the data file and of the log file\00"
@str.49 = [95 x i8] c"status: print the status of the threads acquisition, preprocessing, raw data and visualization\00"
@str.50 = [41 x i8] c"more: display the content of the logfile\00"
@str.51 = [19 x i8] c"exit: quit program\00"
@str.52 = [19 x i8] c"quit: quit program\00"
define void @Help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.27, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.28, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.29, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.30, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.31, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.32, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.33, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.34, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.35, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.36, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.37, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.38, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.39, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.40, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.41, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.42, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.43, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.44, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.45, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.46, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.47, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([92 x i8], [92 x i8]* @str.48, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.49, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.50, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.51, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.52, i64 0, i64 0))
ret void
}