#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 *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void usage(FILE *out) {
  fprintf(out, "Compilation:\n\t%s %s\n", "Mar 15 2022", "18:27:41");
  fprintf(out, "Version:\n\t%s\n", "1.5.0");
  fputs("Author:\n\tPierre Lindenbaum PhD @yokofakun\n", out);
  fputs("WWW:\n\thttps://github.com/lindenb/makefile2graph\n", out);
  fputs("Usage:\n\tmake -Bnd | make2graph\n", out);
  fputs("Options:\n"
        "\t-h|--help help (this screen)\n",
        out);
  fputs("\t-f|--format (format)\n", out);
  fputs("\t\t(d)ot graphiz dot output format (default).\n", out);
  fputs("\t\t(x)xml (g)exf XML output (gexf)\n", out);
  fputs("\t\t(E) print the deepest indepedent targets.\n", out);
  fputs("\t\t(L)ist all targets.\n", out);
  fputs("\t-b|--basename only print file basename.\n", out);
  fputs("\t-s|--suffix only print file extension.\n", out);
  fputs("\t-r|--root show <ROOT> node.\n", out);
  fputs("\t-v|--version print version.\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    0xed7(%rip),%rdx
lea    0xedc(%rip),%rcx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xed3(%rip),%rsi
lea    0xeda(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rsi
lea    0xece(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xee9(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf0a(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf1a(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf32(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf39(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf57(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf6a(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf87(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf8e(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xfa8(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xfc1(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xfcf(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rsi
lea    0xf08(%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    0xed3(%rip),%rdx
lea    0xed8(%rip),%rcx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xed3(%rip),%rsi
lea    0xeda(%rip),%rdx
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xecf(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xee1(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xef9(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf00(%rip),%rdi
mov    $0x27,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf0f(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf0d(%rip),%rdi
mov    $0x2d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf22(%rip),%rdi
mov    $0x22,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf2c(%rip),%rdi
mov    $0x2c,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf40(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf3e(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf4f(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf5f(%rip),%rdi
mov    $0x1d,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1050 <fwrite@plt>
lea    0xf64(%rip),%rdi
mov    $0x1d,%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 = [21 x i8] c"Compilation:\0A\09%s %s\0A\00"
@.str.1 = [12 x i8] c"Mar 15 2022\00"
@.str.2 = [9 x i8] c"18:27:41\00"
@.str.3 = [14 x i8] c"Version:\0A\09%s\0A\00"
@.str.4 = [6 x i8] c"1.5.0\00"
@.str.5 = [43 x i8] c"Author:\0A\09Pierre Lindenbaum PhD @yokofakun\0A\00"
@.str.6 = [49 x i8] c"WWW:\0A\09https://github.com/lindenb/makefile2graph\0A\00"
@.str.7 = [32 x i8] c"Usage:\0A\09make -Bnd | make2graph\0A\00"
@.str.8 = [40 x i8] c"Options:\0A\09-h|--help help (this screen)\0A\00"
@.str.9 = [23 x i8] c"\09-f|--format (format)\0A\00"
@.str.10 = [46 x i8] c"\09\09(d)ot graphiz dot output format (default).\0A\00"
@.str.11 = [35 x i8] c"\09\09(x)xml (g)exf XML output (gexf)\0A\00"
@.str.12 = [45 x i8] c"\09\09(E) print the deepest indepedent targets.\0A\00"
@.str.13 = [23 x i8] c"\09\09(L)ist all targets.\0A\00"
@.str.14 = [42 x i8] c"\09-b|--basename only print file basename.\0A\00"
@.str.15 = [41 x i8] c"\09-s|--suffix only print file extension.\0A\00"
@.str.16 = [30 x i8] c"\09-r|--root show <ROOT> node.\0A\00"
@.str.17 = [30 x i8] c"\09-v|--version print version.\0A\00"
@.str.18 = [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 (i32*, i8*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([21 x i8], [21 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 (i32*, i8*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%7 = load i32*, i32** %2
%8 = call i32 @fputs(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i32* %7)
%9 = load i32*, i32** %2
%10 = call i32 @fputs(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), i32* %9)
%11 = load i32*, i32** %2
%12 = call i32 @fputs(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i32* %11)
%13 = load i32*, i32** %2
%14 = call i32 @fputs(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i32* %13)
%15 = load i32*, i32** %2
%16 = call i32 @fputs(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i32* %15)
%17 = load i32*, i32** %2
%18 = call i32 @fputs(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i32* %17)
%19 = load i32*, i32** %2
%20 = call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i32* %19)
%21 = load i32*, i32** %2
%22 = call i32 @fputs(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0), i32* %21)
%23 = load i32*, i32** %2
%24 = call i32 @fputs(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i32* %23)
%25 = load i32*, i32** %2
%26 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0), i32* %25)
%27 = load i32*, i32** %2
%28 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i32* %27)
%29 = load i32*, i32** %2
%30 = call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.16, i64 0, i64 0), i32* %29)
%31 = load i32*, i32** %2
%32 = call i32 @fputs(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i32* %31)
%33 = load i32*, i32** %2
%34 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0), i32* %33)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"Compilation:\0A\09%s %s\0A\00"
@.str.1 = [12 x i8] c"Mar 15 2022\00"
@.str.2 = [9 x i8] c"18:27:41\00"
@.str.3 = [14 x i8] c"Version:\0A\09%s\0A\00"
@.str.4 = [6 x i8] c"1.5.0\00"
@.str.5 = [43 x i8] c"Author:\0A\09Pierre Lindenbaum PhD @yokofakun\0A\00"
@.str.6 = [49 x i8] c"WWW:\0A\09https://github.com/lindenb/makefile2graph\0A\00"
@.str.7 = [32 x i8] c"Usage:\0A\09make -Bnd | make2graph\0A\00"
@.str.8 = [40 x i8] c"Options:\0A\09-h|--help help (this screen)\0A\00"
@.str.9 = [23 x i8] c"\09-f|--format (format)\0A\00"
@.str.10 = [46 x i8] c"\09\09(d)ot graphiz dot output format (default).\0A\00"
@.str.11 = [35 x i8] c"\09\09(x)xml (g)exf XML output (gexf)\0A\00"
@.str.12 = [45 x i8] c"\09\09(E) print the deepest indepedent targets.\0A\00"
@.str.13 = [23 x i8] c"\09\09(L)ist all targets.\0A\00"
@.str.14 = [42 x i8] c"\09-b|--basename only print file basename.\0A\00"
@.str.15 = [41 x i8] c"\09-s|--suffix only print file extension.\0A\00"
@.str.16 = [30 x i8] c"\09-r|--root show <ROOT> node.\0A\00"
@.str.17 = [30 x i8] c"\09-v|--version print version.\0A\00"
define void @usage(i32* nocapture %0) {
%2 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([21 x i8], [21 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 i32 (i32*, i8*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%4 = 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)
%5 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.6, i64 0, i64 0), i64 48, i64 1, i32* %0)
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0), i64 31, i64 1, i32* %0)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0), i64 39, i64 1, i32* %0)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), i64 22, i64 1, i32* %0)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i64 45, i64 1, i32* %0)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.11, i64 0, i64 0), i64 34, i64 1, i32* %0)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.12, i64 0, i64 0), i64 44, i64 1, i32* %0)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0), i64 22, i64 1, i32* %0)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.14, i64 0, i64 0), i64 41, i64 1, i32* %0)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.15, i64 0, i64 0), i64 40, i64 1, i32* %0)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.16, i64 0, i64 0), i64 29, i64 1, i32* %0)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i64 29, i64 1, i32* %0)
%17 = tail call i32 @fputc(i32 10, i32* %0)
ret void
}