#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 print_help(void) {
  printf("Comands\n");
  printf(" A        -  Open Shutter returns Y/N\n");
  printf(" B        -  Close Shutter returns Y/N\n");
  printf(" I        -  Print camera status\n");
  printf(" H        -  Print readout parameters\n");
  printf(" L        -  Print camera config parameters\n");
  printf(" J        -  Send default camera config parameters\n");
  printf(" S        -  Cooler On\n");
  printf(" T        -  Cooler Off\n");
  printf(" O        -  Abort Readout\n");
  printf(" status   -  Print DMA status\n");
  printf(" sendfile -  Load dspfile into camera eeprom\n");
  printf("dma  'cmd'- configure dma for 8 million bytes, start the dma\n");
  printf("            send the 'cmd' command to start a test download,\n");
  printf("            wait for completion\n");
  printf("            cmd can be C test image\n");
  printf("                       D regular image with shuttered exposure\n");
  printf("                       E dark image with closed shutter\n");
  printf("                       Z tdi image\n");
  printf("stopdma  - issue stopdma for testing\n");
  printf("repeat   - number of times to do dma\n");
  printf("verbose  - toggle verbose flag\n");
  printf("change_readout  - changed readout params\n");
  printf("change_config  - changed config params\n");
  printf("image [cmd]  - take image based on readout params\n");
  printf("setfile_readout 'file'\n");
  printf("send_readout\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee2(%rip),%rdi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
call   1030 <printf@plt>
lea    0xf19(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf6b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcf(%rip),%rdi
call   1030 <printf@plt>
lea    0xff1(%rip),%rdi
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
lea    0x1055(%rip),%rdi
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
call   1030 <printf@plt>
lea    0x1083(%rip),%rdi
call   1030 <printf@plt>
lea    0x10b7(%rip),%rdi
call   1030 <printf@plt>
lea    0x10e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x10fc(%rip),%rdi
call   1030 <printf@plt>
lea    0x1116(%rip),%rdi
call   1030 <printf@plt>
lea    0x1130(%rip),%rdi
call   1030 <printf@plt>
lea    0x1144(%rip),%rdi
call   1030 <printf@plt>
lea    0x1162(%rip),%rdi
call   1030 <printf@plt>
lea    0x117e(%rip),%rdi
call   1030 <printf@plt>
lea    0x11a5(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b1(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
lea    0xefe(%rip),%rdi
call   1030 <puts@plt>
lea    0xf19(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf68(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9a(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1019(%rip),%rdi
call   1030 <puts@plt>
lea    0x104a(%rip),%rdi
call   1030 <puts@plt>
lea    0x105e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1076(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d5(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ec(%rip),%rdi
call   1030 <puts@plt>
lea    0x1105(%rip),%rdi
call   1030 <puts@plt>
lea    0x111e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1131(%rip),%rdi
call   1030 <puts@plt>
lea    0x114e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1169(%rip),%rdi
call   1030 <puts@plt>
lea    0x118f(%rip),%rdi
call   1030 <puts@plt>
lea    0x119a(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Comands\0A\00"
@.str.1 = [39 x i8] c" A - Open Shutter returns Y/N\0A\00"
@.str.2 = [40 x i8] c" B - Close Shutter returns Y/N\0A\00"
@.str.3 = [34 x i8] c" I - Print camera status\0A\00"
@.str.4 = [39 x i8] c" H - Print readout parameters\0A\00"
@.str.5 = [45 x i8] c" L - Print camera config parameters\0A\00"
@.str.6 = [52 x i8] c" J - Send default camera config parameters\0A\00"
@.str.7 = [24 x i8] c" S - Cooler On\0A\00"
@.str.8 = [25 x i8] c" T - Cooler Off\0A\00"
@.str.9 = [28 x i8] c" O - Abort Readout\0A\00"
@.str.10 = [31 x i8] c" status - Print DMA status\0A\00"
@.str.11 = [46 x i8] c" sendfile - Load dspfile into camera eeprom\0A\00"
@.str.12 = [62 x i8] c"dma 'cmd'- configure dma for 8 million bytes, start the dma\0A\00"
@.str.13 = [62 x i8] c" send the 'cmd' command to start a test download,\0A\00"
@.str.14 = [33 x i8] c" wait for completion\0A\00"
@.str.15 = [37 x i8] c" cmd can be C test image\0A\00"
@.str.16 = [64 x i8] c" D regular image with shuttered exposure\0A\00"
@.str.17 = [57 x i8] c" E dark image with closed shutter\0A\00"
@.str.18 = [36 x i8] c" Z tdi image\0A\00"
@.str.19 = [38 x i8] c"stopdma - issue stopdma for testing\0A\00"
@.str.20 = [38 x i8] c"repeat - number of times to do dma\0A\00"
@.str.21 = [32 x i8] c"verbose - toggle verbose flag\0A\00"
@.str.22 = [42 x i8] c"change_readout - changed readout params\0A\00"
@.str.23 = [40 x i8] c"change_config - changed config params\0A\00"
@.str.24 = [51 x i8] c"image [cmd] - take image based on readout params\0A\00"
@.str.25 = [24 x i8] c"setfile_readout 'file'\0A\00"
@.str.26 = [14 x i8] c"send_readout\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.20, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.21, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.22, i64 0, i64 0))
%24 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.23, i64 0, i64 0))
%25 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.24, i64 0, i64 0))
%26 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.25, i64 0, i64 0))
%27 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [8 x i8] c"Comands\00"
@str.27 = [38 x i8] c" A - Open Shutter returns Y/N\00"
@str.28 = [39 x i8] c" B - Close Shutter returns Y/N\00"
@str.29 = [33 x i8] c" I - Print camera status\00"
@str.30 = [38 x i8] c" H - Print readout parameters\00"
@str.31 = [44 x i8] c" L - Print camera config parameters\00"
@str.32 = [51 x i8] c" J - Send default camera config parameters\00"
@str.33 = [23 x i8] c" S - Cooler On\00"
@str.34 = [24 x i8] c" T - Cooler Off\00"
@str.35 = [27 x i8] c" O - Abort Readout\00"
@str.36 = [30 x i8] c" status - Print DMA status\00"
@str.37 = [45 x i8] c" sendfile - Load dspfile into camera eeprom\00"
@str.38 = [61 x i8] c"dma 'cmd'- configure dma for 8 million bytes, start the dma\00"
@str.39 = [61 x i8] c" send the 'cmd' command to start a test download,\00"
@str.40 = [32 x i8] c" wait for completion\00"
@str.41 = [36 x i8] c" cmd can be C test image\00"
@str.42 = [63 x i8] c" D regular image with shuttered exposure\00"
@str.43 = [56 x i8] c" E dark image with closed shutter\00"
@str.44 = [35 x i8] c" Z tdi image\00"
@str.45 = [37 x i8] c"stopdma - issue stopdma for testing\00"
@str.46 = [37 x i8] c"repeat - number of times to do dma\00"
@str.47 = [31 x i8] c"verbose - toggle verbose flag\00"
@str.48 = [41 x i8] c"change_readout - changed readout params\00"
@str.49 = [39 x i8] c"change_config - changed config params\00"
@str.50 = [50 x i8] c"image [cmd] - take image based on readout params\00"
@str.51 = [23 x i8] c"setfile_readout 'file'\00"
@str.52 = [13 x i8] c"send_readout\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.27, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.28, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.29, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.30, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.31, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.32, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.33, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.34, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.35, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.36, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.37, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.38, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.39, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.40, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.41, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.42, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.43, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.44, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.45, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.46, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.47, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.48, i64 0, i64 0))
%24 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.49, i64 0, i64 0))
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.50, i64 0, i64 0))
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.51, i64 0, i64 0))
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.52, i64 0, i64 0))
ret void
}