#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 */
char *basename(char *);
int /*<<< orphan*/ printf(char *, ...);
void rtfm(char *prog) {
  printf("%s translates a csv file to a LaTeX file\n", basename(prog));
  printf("Example: %s january_stats.csv > january_stats.tex\n", basename(prog));
  printf(
      "Usage: %s [--nohead] (LaTeX) no document header: useful for inclusion\n",
      basename(prog));
  printf("	[--bare] no document header or tabular envir for inculsion\n");
  printf(
      "	[--longtable] (LaTeX) use package longtable: useful for long input\n");
  printf("	[--noescape] (LaTeX) do not escape text: useful for mixed "
         "CSV/TeX input\n");
  printf("	[--guess] (CSV) guess separator and block |\n"
         "	[--separator <(c)omma|(s)emicolon|(t)ab|s(p)ace|co(l)on>] "
         "(CSV's comma)\n"
         "	[--block <(q)uote|(d)ouble|(n)one>] (CSV) block delimiter "
         "(e.g: none)\n");
  printf("	[--lines n] (LaTeX) rows per table: useful for long "
         "tabulars\n");
  printf("	[--position <l|c|r>] (LaTeX) text align in cells\n");
  printf(
      "	[--colorrows graylevel] (LaTeX) alternate gray rows (e.g: 0.75)\n");
  printf("	[--reduce level] (LaTeX) reduce table size (e.g: 1)\n");
  printf(
      "	[--repeatheader] (LaTeX) repeat table header (for long tables)\n");
  printf("	[--nohlines] (LaTeX) don't put hline between table rows\n");
  printf("	[--novlines] (LaTeX) don't put vline between columns\n");
  printf("		csv_file.csv\n");
  printf("The \"longtable\" option needs the {longtable} LaTeX package\n");
  printf("The \"colorrows\" option needs the {colortbl} LaTeX package\n");
  printf("The \"reduce\" option needs the {relsize} LaTeX package\n");
  return;
}


x86 assembly (clang, -O0):
<rtfm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,%rsi
lea    0xed1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1040 <basename@plt>
mov    %rax,%rsi
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1075(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10a6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10cb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1127(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x115a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1186(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11af(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11b1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11df(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x120c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rtfm>:
push   %rbx
mov    %rdi,%rbx
call   1050 <basename@plt>
lea    0xec0(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <basename@plt>
lea    0xed1(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1050 <basename@plt>
lea    0xeeb(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf21(%rip),%rdi
call   1030 <puts@plt>
lea    0xf51(%rip),%rdi
call   1030 <puts@plt>
lea    0xf89(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0x1077(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a9(%rip),%rdi
call   1030 <puts@plt>
lea    0x10cf(%rip),%rdi
call   1030 <puts@plt>
lea    0x1104(%rip),%rdi
call   1030 <puts@plt>
lea    0x112d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1161(%rip),%rdi
call   1030 <puts@plt>
lea    0x118e(%rip),%rdi
call   1030 <puts@plt>
lea    0x11b8(%rip),%rdi
call   1030 <puts@plt>
lea    0x11bb(%rip),%rdi
call   1030 <puts@plt>
lea    0x11ea(%rip),%rdi
call   1030 <puts@plt>
lea    0x1218(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [42 x i8] c"%s translates a csv file to a LaTeX file\0A\00"
@.str.1 = [51 x i8] c"Example: %s january_stats.csv > january_stats.tex\0A\00"
@.str.2 = [71 x i8] c"Usage: %s [--nohead] (LaTeX) no document header: useful for inclusion\0A\00"
@.str.3 = [61 x i8] c"\09[--bare] no document header or tabular envir for inculsion\0A\00"
@.str.4 = [69 x i8] c"\09[--longtable] (LaTeX) use package longtable: useful for long input\0A\00"
@.str.5 = [74 x i8] c"\09[--noescape] (LaTeX) do not escape text: useful for mixed CSV/TeX input\0A\00"
@.str.6 = [190 x i8] c"\09[--guess] (CSV) guess separator and block |\0A\09[--separator <(c)omma|(s)emicolon|(t)ab|s(p)ace|co(l)on>] (CSV's comma)\0A\09[--block <(q)uote|(d)ouble|(n)one>] (CSV) block delimiter (e.g: none)\0A\00"
@.str.7 = [63 x i8] c"\09[--lines n] (LaTeX) rows per table: useful for long tabulars\0A\00"
@.str.8 = [51 x i8] c"\09[--position <l|c|r>] (LaTeX) text align in cells\0A\00"
@.str.9 = [66 x i8] c"\09[--colorrows graylevel] (LaTeX) alternate gray rows (e.g: 0.75)\0A\00"
@.str.10 = [54 x i8] c"\09[--reduce level] (LaTeX) reduce table size (e.g: 1)\0A\00"
@.str.11 = [65 x i8] c"\09[--repeatheader] (LaTeX) repeat table header (for long tables)\0A\00"
@.str.12 = [58 x i8] c"\09[--nohlines] (LaTeX) don't put hline between table rows\0A\00"
@.str.13 = [55 x i8] c"\09[--novlines] (LaTeX) don't put vline between columns\0A\00"
@.str.14 = [16 x i8] c"\09\09csv_file.csv\0A\00"
@.str.15 = [60 x i8] c"The \22longtable\22 option needs the {longtable} LaTeX package\0A\00"
@.str.16 = [59 x i8] c"The \22colorrows\22 option needs the {colortbl} LaTeX package\0A\00"
@.str.17 = [55 x i8] c"The \22reduce\22 option needs the {relsize} LaTeX package\0A\00"
define void @rtfm(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i8* @basename(i8* %3)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i8*, i8** %2
%7 = call i8* @basename(i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %2
%10 = call i8* @basename(i8* %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0), i8* %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0))
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.15, i64 0, i64 0))
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.17, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [42 x i8] c"%s translates a csv file to a LaTeX file\0A\00"
@.str.1 = [51 x i8] c"Example: %s january_stats.csv > january_stats.tex\0A\00"
@.str.2 = [71 x i8] c"Usage: %s [--nohead] (LaTeX) no document header: useful for inclusion\0A\00"
@str = [60 x i8] c"\09[--bare] no document header or tabular envir for inculsion\00"
@str.18 = [68 x i8] c"\09[--longtable] (LaTeX) use package longtable: useful for long input\00"
@str.19 = [73 x i8] c"\09[--noescape] (LaTeX) do not escape text: useful for mixed CSV/TeX input\00"
@str.20 = [189 x i8] c"\09[--guess] (CSV) guess separator and block |\0A\09[--separator <(c)omma|(s)emicolon|(t)ab|s(p)ace|co(l)on>] (CSV's comma)\0A\09[--block <(q)uote|(d)ouble|(n)one>] (CSV) block delimiter (e.g: none)\00"
@str.21 = [62 x i8] c"\09[--lines n] (LaTeX) rows per table: useful for long tabulars\00"
@str.22 = [50 x i8] c"\09[--position <l|c|r>] (LaTeX) text align in cells\00"
@str.23 = [65 x i8] c"\09[--colorrows graylevel] (LaTeX) alternate gray rows (e.g: 0.75)\00"
@str.24 = [53 x i8] c"\09[--reduce level] (LaTeX) reduce table size (e.g: 1)\00"
@str.25 = [64 x i8] c"\09[--repeatheader] (LaTeX) repeat table header (for long tables)\00"
@str.26 = [57 x i8] c"\09[--nohlines] (LaTeX) don't put hline between table rows\00"
@str.27 = [54 x i8] c"\09[--novlines] (LaTeX) don't put vline between columns\00"
@str.28 = [15 x i8] c"\09\09csv_file.csv\00"
@str.29 = [59 x i8] c"The \22longtable\22 option needs the {longtable} LaTeX package\00"
@str.30 = [58 x i8] c"The \22colorrows\22 option needs the {colortbl} LaTeX package\00"
@str.31 = [54 x i8] c"The \22reduce\22 option needs the {relsize} LaTeX package\00"
define void @rtfm(i8* %0) {
%2 = tail call i8* @basename(i8* %0)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0), i8* %2)
%4 = tail call i8* @basename(i8* %0)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = tail call i8* @basename(i8* %0)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([189 x i8], [189 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.25, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.26, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.27, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.28, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @str.29, i64 0, i64 0))
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.30, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.31, i64 0, i64 0))
ret void
}