#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 const *, ...);
int /*<<< orphan*/ show_version(char const *);
void show_help(const char *progname) {
  show_version(progname);
  printf("a speech synthesizer for Russian language\n");
  printf("usage: %s [options]\n", progname);
  printf("reads text from a file or from stdin (expects UTF-8 encoding)\n");
  printf("writes speech output to a file or to stdout\n");
  const char *fmt = "%-40s%s\n";
  printf(fmt, "-h, --help", "print this help message and exit");
  printf(fmt, "-V, --version", "print the program version and exit");
  printf(fmt, "-r, --rate=<number from 0 to 100>", "rate");
  printf(fmt, "-p, --pitch=<number from 0 to 100>", "rate");
  printf(fmt, "-v, --volume=<number from 0 to 100>", "volume");
  printf(fmt, "-P, --punct=<optional string>", "speak all or some punctuation");
  printf(fmt, "-i, --input=<path>", "input file");
  printf(fmt, "-o, --output=<path>", "output file");
  printf(fmt, "-w, --variant=<name>", "select a variant");
  printf(fmt, "-W, --voice=<name>", "select a voice");
  printf(fmt, "-t, --type", "type of input (text/ssml/characters)");
  printf(fmt, "--daemon-dir=<path-to-directory>",
         "Where to create socket and pid-file");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <show_version@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xee4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf34(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xf2e(%rip),%rsi
lea    0xf32(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf41(%rip),%rsi
lea    0xf48(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf59(%rip),%rsi
lea    0xf74(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf67(%rip),%rsi
lea    0xf5b(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf71(%rip),%rsi
lea    0xf8e(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xf83(%rip),%rsi
lea    0xf9a(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfa6(%rip),%rsi
lea    0xfb2(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfab(%rip),%rsi
lea    0xfb8(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfb2(%rip),%rsi
lea    0xfc0(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfbf(%rip),%rsi
lea    0xfcb(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfc8(%rip),%rsi
lea    0xfcc(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
lea    0xfdf(%rip),%rsi
lea    0xff9(%rip),%rdx
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1030 <show_version@plt>
lea    0x10e4(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb1(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10f1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1123(%rip),%rdi
call   1040 <puts@plt>
lea    0xe9d(%rip),%rbx
lea    0xe9f(%rip),%rsi
lea    0xea3(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xeb3(%rip),%rsi
lea    0xeba(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xecc(%rip),%rsi
lea    0xee7(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xee7(%rip),%rsi
lea    0xf04(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xefa(%rip),%rsi
lea    0xf11(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf1e(%rip),%rsi
lea    0xf2a(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf24(%rip),%rsi
lea    0xf31(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf2c(%rip),%rsi
lea    0xf3a(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf3a(%rip),%rsi
lea    0xf46(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf44(%rip),%rsi
lea    0xf48(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf5c(%rip),%rsi
lea    0xf76(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1050 <printf@plt>

LLVM IR (-O0):
@.str = [43 x i8] c"a speech synthesizer for Russian language\0A\00"
@.str.1 = [21 x i8] c"usage: %s [options]\0A\00"
@.str.2 = [63 x i8] c"reads text from a file or from stdin (expects UTF-8 encoding)\0A\00"
@.str.3 = [45 x i8] c"writes speech output to a file or to stdout\0A\00"
@.str.4 = [9 x i8] c"%-40s%s\0A\00"
@.str.5 = [11 x i8] c"-h, --help\00"
@.str.6 = [33 x i8] c"print this help message and exit\00"
@.str.7 = [14 x i8] c"-V, --version\00"
@.str.8 = [35 x i8] c"print the program version and exit\00"
@.str.9 = [34 x i8] c"-r, --rate=<number from 0 to 100>\00"
@.str.10 = [5 x i8] c"rate\00"
@.str.11 = [35 x i8] c"-p, --pitch=<number from 0 to 100>\00"
@.str.12 = [36 x i8] c"-v, --volume=<number from 0 to 100>\00"
@.str.13 = [7 x i8] c"volume\00"
@.str.14 = [30 x i8] c"-P, --punct=<optional string>\00"
@.str.15 = [30 x i8] c"speak all or some punctuation\00"
@.str.16 = [19 x i8] c"-i, --input=<path>\00"
@.str.17 = [11 x i8] c"input file\00"
@.str.18 = [20 x i8] c"-o, --output=<path>\00"
@.str.19 = [12 x i8] c"output file\00"
@.str.20 = [21 x i8] c"-w, --variant=<name>\00"
@.str.21 = [17 x i8] c"select a variant\00"
@.str.22 = [19 x i8] c"-W, --voice=<name>\00"
@.str.23 = [15 x i8] c"select a voice\00"
@.str.24 = [11 x i8] c"-t, --type\00"
@.str.25 = [37 x i8] c"type of input (text/ssml/characters)\00"
@.str.26 = [33 x i8] c"--daemon-dir=<path-to-directory>\00"
@.str.27 = [36 x i8] c"Where to create socket and pid-file\00"
define void @show_help(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @show_version(i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%7 = load i8*, i8** %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8** %3
%11 = load i8*, i8** %3
%12 = call i32 (i8*, ...) @printf(i8* %11, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%13 = load i8*, i8** %3
%14 = call i32 (i8*, ...) @printf(i8* %13, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%15 = load i8*, i8** %3
%16 = call i32 (i8*, ...) @printf(i8* %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%17 = load i8*, i8** %3
%18 = call i32 (i8*, ...) @printf(i8* %17, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%19 = load i8*, i8** %3
%20 = call i32 (i8*, ...) @printf(i8* %19, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%21 = load i8*, i8** %3
%22 = call i32 (i8*, ...) @printf(i8* %21, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%23 = load i8*, i8** %3
%24 = call i32 (i8*, ...) @printf(i8* %23, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%25 = load i8*, i8** %3
%26 = call i32 (i8*, ...) @printf(i8* %25, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0))
%27 = load i8*, i8** %3
%28 = call i32 (i8*, ...) @printf(i8* %27, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0))
%29 = load i8*, i8** %3
%30 = call i32 (i8*, ...) @printf(i8* %29, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0))
%31 = load i8*, i8** %3
%32 = call i32 (i8*, ...) @printf(i8* %31, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0))
%33 = load i8*, i8** %3
%34 = call i32 (i8*, ...) @printf(i8* %33, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [21 x i8] c"usage: %s [options]\0A\00"
@.str.4 = [9 x i8] c"%-40s%s\0A\00"
@.str.5 = [11 x i8] c"-h, --help\00"
@.str.6 = [33 x i8] c"print this help message and exit\00"
@.str.7 = [14 x i8] c"-V, --version\00"
@.str.8 = [35 x i8] c"print the program version and exit\00"
@.str.9 = [34 x i8] c"-r, --rate=<number from 0 to 100>\00"
@.str.10 = [5 x i8] c"rate\00"
@.str.11 = [35 x i8] c"-p, --pitch=<number from 0 to 100>\00"
@.str.12 = [36 x i8] c"-v, --volume=<number from 0 to 100>\00"
@.str.13 = [7 x i8] c"volume\00"
@.str.14 = [30 x i8] c"-P, --punct=<optional string>\00"
@.str.15 = [30 x i8] c"speak all or some punctuation\00"
@.str.16 = [19 x i8] c"-i, --input=<path>\00"
@.str.17 = [11 x i8] c"input file\00"
@.str.18 = [20 x i8] c"-o, --output=<path>\00"
@.str.19 = [12 x i8] c"output file\00"
@.str.20 = [21 x i8] c"-w, --variant=<name>\00"
@.str.21 = [17 x i8] c"select a variant\00"
@.str.22 = [19 x i8] c"-W, --voice=<name>\00"
@.str.23 = [15 x i8] c"select a voice\00"
@.str.24 = [11 x i8] c"-t, --type\00"
@.str.25 = [37 x i8] c"type of input (text/ssml/characters)\00"
@.str.26 = [33 x i8] c"--daemon-dir=<path-to-directory>\00"
@.str.27 = [36 x i8] c"Where to create socket and pid-file\00"
@str = [42 x i8] c"a speech synthesizer for Russian language\00"
@str.28 = [62 x i8] c"reads text from a file or from stdin (expects UTF-8 encoding)\00"
@str.29 = [44 x i8] c"writes speech output to a file or to stdout\00"
define void @show_help(i8* %0) {
%2 = tail call i32 @show_version(i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.28, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.29, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.19, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.21, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.25, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.27, i64 0, i64 0))
ret void
}