#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 printhelp(void) {
  printf("\nUsage:\n\n");
  printf("\tmf2t [-mntvh] [-f[n]] [midifile [textfile]]\n\n");
  printf("\t\ttranslate midifile to textfile.\n\n");
  printf("\tWhen textfile is not given, the text is written to standard "
         "output.\n");
  printf("\tWhen midifile is not given it is read from standard input. The "
         "meaning\n");
  printf("\tof the options is:\n\n");
  printf("\t-m\tmerge partial sysex into a single sysex message\n");
  printf("\t-n\twrite notes in symbolic rather than numeric form.\n");
  printf(
      "\t\t A-C optionally followed by # (sharp) followed by octave number.\n");
  printf("\t-b\tor\n");
  printf("\t-t\tevent times are written as bar:beat:click rather than a click "
         "number\n");
  printf("\t-v\tuse a slightly more verbose output\n");
  printf("\t-f<n>	fold long text and hex entries into more lines "
         "<n>=line length\n");
  printf("\t	   (default 80).\n");
  printf("\t-h\tprint this help text.\n");
}


x86 assembly (clang, -O0):
<printhelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee3(%rip),%rdi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf58(%rip),%rdi
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
call   1030 <printf@plt>
lea    0xf9f(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc8(%rip),%rdi
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
call   1030 <printf@plt>
lea    0x102b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1027(%rip),%rdi
call   1030 <printf@plt>
lea    0x1065(%rip),%rdi
call   1030 <printf@plt>
lea    0x1081(%rip),%rdi
call   1030 <printf@plt>
lea    0x10bc(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c4(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printhelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf93(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9c(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfee(%rip),%rdi
call   1030 <puts@plt>
lea    0x1025(%rip),%rdi
call   1030 <puts@plt>
lea    0x1020(%rip),%rdi
call   1030 <puts@plt>
lea    0x105d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b2(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b9(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"\0AUsage:\0A\0A\00"
@.str.1 = [47 x i8] c"\09mf2t [-mntvh] [-f[n]] [midifile [textfile]]\0A\0A\00"
@.str.2 = [36 x i8] c"\09\09translate midifile to textfile.\0A\0A\00"
@.str.3 = [70 x i8] c"\09When textfile is not given, the text is written to standard output.\0A\00"
@.str.4 = [73 x i8] c"\09When midifile is not given it is read from standard input. The meaning\0A\00"
@.str.5 = [22 x i8] c"\09of the options is:\0A\0A\00"
@.str.6 = [53 x i8] c"\09-m\09merge partial sysex into a single sysex message\0A\00"
@.str.7 = [55 x i8] c"\09-n\09write notes in symbolic rather than numeric form.\0A\00"
@.str.8 = [68 x i8] c"\09\09 A-C optionally followed by # (sharp) followed by octave number.\0A\00"
@.str.9 = [8 x i8] c"\09-b\09or\0A\00"
@.str.10 = [74 x i8] c"\09-t\09event times are written as bar:beat:click rather than a click number\0A\00"
@.str.11 = [40 x i8] c"\09-v\09use a slightly more verbose output\0A\00"
@.str.12 = [71 x i8] c"\09-f<n>\09fold long text and hex entries into more lines <n>=line length\0A\00"
@.str.13 = [20 x i8] c"\09\09 (default 80).\0A\00"
@.str.14 = [27 x i8] c"\09-h\09print this help text.\0A\00"
define void @printhelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"\0AUsage:\0A\00"
@str.15 = [46 x i8] c"\09mf2t [-mntvh] [-f[n]] [midifile [textfile]]\0A\00"
@str.16 = [35 x i8] c"\09\09translate midifile to textfile.\0A\00"
@str.17 = [69 x i8] c"\09When textfile is not given, the text is written to standard output.\00"
@str.18 = [72 x i8] c"\09When midifile is not given it is read from standard input. The meaning\00"
@str.19 = [21 x i8] c"\09of the options is:\0A\00"
@str.20 = [52 x i8] c"\09-m\09merge partial sysex into a single sysex message\00"
@str.21 = [54 x i8] c"\09-n\09write notes in symbolic rather than numeric form.\00"
@str.22 = [67 x i8] c"\09\09 A-C optionally followed by # (sharp) followed by octave number.\00"
@str.23 = [7 x i8] c"\09-b\09or\00"
@str.24 = [73 x i8] c"\09-t\09event times are written as bar:beat:click rather than a click number\00"
@str.25 = [39 x i8] c"\09-v\09use a slightly more verbose output\00"
@str.26 = [70 x i8] c"\09-f<n>\09fold long text and hex entries into more lines <n>=line length\00"
@str.27 = [19 x i8] c"\09\09 (default 80).\00"
@str.28 = [26 x i8] c"\09-h\09print this help text.\00"
define void @printhelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.15, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.28, i64 0, i64 0))
ret void
}