#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() {
  printf("embin - tool to encode, decode and upload MERA-400 binary streams\n"
         "Usage: embin [options] input\n"
         "Options:\n"
         "  --help                   : print help\n"
         "  --output, -o <output>    : output file name or serial port, stdout "
         "is used if no file name given\n"
         "  --decode|--encode, -d|-e : decode or encode (encode by default)\n"
         "  --speed, -s <baud>       : baudrate to use when output is a serial "
         "port (9600 default)\n"
         "  --no-progress, -n        : don't print progress bar during serial "
         "transmission\n"
         "  --continue, -c           : continue decoding input stream after "
         "the first data block has ended.\n"
         "                             this requires a filename specified with "
         "-o filename.\n"
         "                             if more blocks are found, they are "
         "written in subsequent *_N files\n"
         "  --verbose, -v            : be more verbose\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
lea    0xee9(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [801 x i8] c"embin - tool to encode, decode and upload MERA-400 binary streams\0AUsage: embin [options] input\0AOptions:\0A --help : print help\0A --output, -o <output> : output file name or serial port, stdout is used if no file name given\0A --decode|--encode, -d|-e : decode or encode (encode by default)\0A --speed, -s <baud> : baudrate to use when output is a serial port (9600 default)\0A --no-progress, -n : don't print progress bar during serial transmission\0A --continue, -c : continue decoding input stream after the first data block has ended.\0A this requires a filename specified with -o filename.\0A if more blocks are found, they are written in subsequent *_N files\0A --verbose, -v : be more verbose\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([801 x i8], [801 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [800 x i8] c"embin - tool to encode, decode and upload MERA-400 binary streams\0AUsage: embin [options] input\0AOptions:\0A --help : print help\0A --output, -o <output> : output file name or serial port, stdout is used if no file name given\0A --decode|--encode, -d|-e : decode or encode (encode by default)\0A --speed, -s <baud> : baudrate to use when output is a serial port (9600 default)\0A --no-progress, -n : don't print progress bar during serial transmission\0A --continue, -c : continue decoding input stream after the first data block has ended.\0A this requires a filename specified with -o filename.\0A if more blocks are found, they are written in subsequent *_N files\0A --verbose, -v : be more verbose\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([800 x i8], [800 x i8]* @str, i64 0, i64 0))
ret void
}