#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void usage(FILE *out) {
  fprintf(out,
          "Version: "
          "1.0.1"
          "\nCompilation:\n\t%s %s\n",
          "Mar 18 2022", "17:54:55");
  fputs("Author:\n\tPierre Lindenbaum PhD @yokofakun\n", out);
  fputs("WWW:\n\thttps://github.com/lindenb/verticalize\n", out);
  fputs("Usage:\n\tverticalize (option) (file|stdin)\n", out);
  fputs("Options:\n"
        "\t-h help (this screen)\n"
        "\t-v print version and exit\n",
        out);
  fputs("\t-n first line is NOT header\n", out);
  fputs("\t-d (char) delimiter. Default is tabulation.\n", out);
  fputs("\n", out);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
lea    0xee6(%rip),%rdx
lea    0xeeb(%rip),%rcx
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rsi
lea    0xee4(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xeff(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf1d(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf38(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf64(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf72(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf06(%rip),%rdi
call   1030 <fputs@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xec5(%rip),%rsi
lea    0xee2(%rip),%rdx
lea    0xee7(%rip),%rcx
call   1040 <fprintf@plt>
lea    0xee4(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xef6(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf0b(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf1d(%rip),%rdi
mov    $0x3b,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf40(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf45(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <fputc@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Version: 1.0.1\0ACompilation:\0A\09%s %s\0A\00"
@.str.1 = [12 x i8] c"Mar 18 2022\00"
@.str.2 = [9 x i8] c"17:54:55\00"
@.str.3 = [43 x i8] c"Author:\0A\09Pierre Lindenbaum PhD @yokofakun\0A\00"
@.str.4 = [46 x i8] c"WWW:\0A\09https://github.com/lindenb/verticalize\0A\00"
@.str.5 = [43 x i8] c"Usage:\0A\09verticalize (option) (file|stdin)\0A\00"
@.str.6 = [60 x i8] c"Options:\0A\09-h help (this screen)\0A\09-v print version and exit\0A\00"
@.str.7 = [30 x i8] c"\09-n first line is NOT header\0A\00"
@.str.8 = [46 x i8] c"\09-d (char) delimiter. Default is tabulation.\0A\00"
@.str.9 = [2 x i8] c"\0A\00"
define void @usage(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%5 = load i32*, i32** %2
%6 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i32* %5)
%7 = load i32*, i32** %2
%8 = call i32 @fputs(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%9 = load i32*, i32** %2
%10 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32* %9)
%11 = load i32*, i32** %2
%12 = call i32 @fputs(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0), i32* %11)
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32* %13)
%15 = load i32*, i32** %2
%16 = call i32 @fputs(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32* %15)
%17 = load i32*, i32** %2
%18 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0), i32* %17)
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"Version: 1.0.1\0ACompilation:\0A\09%s %s\0A\00"
@.str.1 = [12 x i8] c"Mar 18 2022\00"
@.str.2 = [9 x i8] c"17:54:55\00"
@.str.3 = [43 x i8] c"Author:\0A\09Pierre Lindenbaum PhD @yokofakun\0A\00"
@.str.4 = [46 x i8] c"WWW:\0A\09https://github.com/lindenb/verticalize\0A\00"
@.str.5 = [43 x i8] c"Usage:\0A\09verticalize (option) (file|stdin)\0A\00"
@.str.6 = [60 x i8] c"Options:\0A\09-h help (this screen)\0A\09-v print version and exit\0A\00"
@.str.7 = [30 x i8] c"\09-n first line is NOT header\0A\00"
@.str.8 = [46 x i8] c"\09-d (char) delimiter. Default is tabulation.\0A\00"
define void @usage(i32* nocapture %0) {
%2 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0), i64 42, i64 1, i32* %0)
%4 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.4, i64 0, i64 0), i64 45, i64 1, i32* %0)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i64 42, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.6, i64 0, i64 0), i64 59, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i64 29, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i64 45, i64 1, i32* %0)
%9 = tail call i32 @fputc(i32 10, i32* %0)
ret void
}