#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*/ exit(int);
int /*<<< orphan*/ printf(char *);
void print_usage(int exit_code) {
  printf("Usage: reheadSQ -m fa.dict -a assembly -s species\n\n");
  printf("Takes sam format from stdin, prints header where SQ lines are "
         "replaced with dict contents and rest of stdin to stdout.\n\n");
  printf("-d  --dict [file]    Path to fasta dict file (as generated by "
         "'samtools dict -a ASSEMBLY -s SPECIES genome.fasta')\n");
  printf("-h  --help           Display this usage information.\n");
  exit(exit_code);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xef6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcb(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf69(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd0(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"Usage: reheadSQ -m fa.dict -a assembly -s species\0A\0A\00"
@.str.1 = [121 x i8] c"Takes sam format from stdin, prints header where SQ lines are replaced with dict contents and rest of stdin to stdout.\0A\0A\00"
@.str.2 = [116 x i8] c"-d --dict [file] Path to fasta dict file (as generated by 'samtools dict -a ASSEMBLY -s SPECIES genome.fasta')\0A\00"
@.str.3 = [54 x i8] c"-h --help Display this usage information.\0A\00"
define void @print_usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.3, i64 0, i64 0))
%7 = load i32, i32* %2
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@str = [51 x i8] c"Usage: reheadSQ -m fa.dict -a assembly -s species\0A\00"
@str.4 = [120 x i8] c"Takes sam format from stdin, prints header where SQ lines are replaced with dict contents and rest of stdin to stdout.\0A\00"
@str.5 = [115 x i8] c"-d --dict [file] Path to fasta dict file (as generated by 'samtools dict -a ASSEMBLY -s SPECIES genome.fasta')\00"
@str.6 = [53 x i8] c"-h --help Display this usage information.\00"
define void @print_usage(i32 %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([120 x i8], [120 x i8]* @str.4, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([115 x i8], [115 x i8]* @str.5, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.6, i64 0, i64 0))
%6 = tail call i32 @exit(i32 %0)
unreachable
}