#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 show_help(void) {
  printf("Syntax: frameshot [options] infile\n"
         "\n"
         "Infile is a raw bitstream of one of the following codecs:\n"
         "  YUV4MPEG(*.y4m), Dirac(*.drc)\n"
         "\n"
         "Options:\n"
         "\n"
         "  -h, --help                  Displays this message.\n");
  printf("  -f, --frames <int,int,...>  Frames numbers to grab.\n");
  printf("  -o, --outdir <string>       Output directory for images.\n");
  printf("  -z, --compression <integer> Ammount of compression to use.\n");
  printf("  -1, --fast                  Use fastest compression.\n");
  printf("  -9, --best                  Use best (slowest) compression.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf98(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc3(%rip),%rdi
call   1030 <printf@plt>
lea    0xff3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1025(%rip),%rdi
call   1030 <printf@plt>
lea    0x1051(%rip),%rdi
call   1030 <printf@plt>
lea    0xf91(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8a(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe3(%rip),%rdi
call   1040 <puts@plt>
lea    0x1014(%rip),%rdi
call   1040 <puts@plt>
lea    0x103f(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [191 x i8] c"Syntax: frameshot [options] infile\0A\0AInfile is a raw bitstream of one of the following codecs:\0A YUV4MPEG(*.y4m), Dirac(*.drc)\0A\0AOptions:\0A\0A -h, --help Displays this message.\0A\00"
@.str.1 = [55 x i8] c" -f, --frames <int,int,...> Frames numbers to grab.\0A\00"
@.str.2 = [60 x i8] c" -o, --outdir <string> Output directory for images.\0A\00"
@.str.3 = [62 x i8] c" -z, --compression <integer> Ammount of compression to use.\0A\00"
@.str.4 = [56 x i8] c" -1, --fast Use fastest compression.\0A\00"
@.str.5 = [63 x i8] c" -9, --best Use best (slowest) compression.\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
define void @show_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([191 x i8], [191 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [190 x i8] c"Syntax: frameshot [options] infile\0A\0AInfile is a raw bitstream of one of the following codecs:\0A YUV4MPEG(*.y4m), Dirac(*.drc)\0A\0AOptions:\0A\0A -h, --help Displays this message.\00"
@str.7 = [54 x i8] c" -f, --frames <int,int,...> Frames numbers to grab.\00"
@str.8 = [59 x i8] c" -o, --outdir <string> Output directory for images.\00"
@str.9 = [61 x i8] c" -z, --compression <integer> Ammount of compression to use.\00"
@str.10 = [55 x i8] c" -1, --fast Use fastest compression.\00"
@str.11 = [62 x i8] c" -9, --best Use best (slowest) compression.\00"
define void @show_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([190 x i8], [190 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.8, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.9, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.10, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.11, i64 0, i64 0))
%7 = tail call i32 @putchar(i32 10)
ret void
}