#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 print_usage() {
  printf("\n");
  printf("* Usage:\n");
  printf("* mprfen [options] <out.vhd>\n");
  printf("* Example: ./mprfgen -infer -read-first -nwp 2 -nrp 3 file.vhd\n");
  printf("* \n");
  printf("* Options:\n");
  printf("*   -h:           Print this help.\n");
  printf("*   -infer:       Use generic RAM storage that can be inferred as\n");
  printf("*                 block RAM(s).\n");
  printf("*   -<read-mode>: Read mode supported by the generated RAM. Valid\n");
  printf("*                 options: {read-async, read-first, write-first,\n");
  printf(
      "*                 read-through}. \"read-through\" cannot be used for\n");
  printf("*                 for block RAM instantiation. Default is "
         "\"read-async\"\n");
  printf("*   -nwp <num>:   Number of write ports for the register file.\n");
  printf("*   -nrp <num>:   Number of read ports for the register file.\n");
  printf("*   -bw <num>:    Bitwidth for each memory entry (default: 16).\n");
  printf("*   -nregs <num>: Memory size (default: 1024).\n");
  printf("* \n");
  printf("* For further information, please refer to the website:\n");
  printf("* http://electronics.physics.auth.gr/tomeas/en/kavvadias.html\n\n");
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0x125d(%rip),%rdi
call   1030 <printf@plt>
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
lea    0xee9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
call   1030 <printf@plt>
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb0(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0x101e(%rip),%rdi
call   1030 <printf@plt>
lea    0x105a(%rip),%rdi
call   1030 <printf@plt>
lea    0x108e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c1(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f6(%rip),%rdi
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
lea    0x110e(%rip),%rdi
call   1030 <printf@plt>
lea    0x113b(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %rbx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xece(%rip),%rdi
call   1040 <puts@plt>
lea    0xecb(%rip),%rdi
call   1040 <puts@plt>
lea    0xedc(%rip),%rdi
call   1040 <puts@plt>
lea    0x1198(%rip),%rbx
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0xf00(%rip),%rdi
call   1040 <puts@plt>
lea    0xeff(%rip),%rdi
call   1040 <puts@plt>
lea    0xf16(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4c(%rip),%rdi
call   1040 <puts@plt>
lea    0xf60(%rip),%rdi
call   1040 <puts@plt>
lea    0xf96(%rip),%rdi
call   1040 <puts@plt>
lea    0xfcb(%rip),%rdi
call   1040 <puts@plt>
lea    0x1002(%rip),%rdi
call   1040 <puts@plt>
lea    0x103d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1070(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a2(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
lea    0x10f4(%rip),%rdi
call   1040 <puts@plt>
lea    0x1120(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [10 x i8] c"* Usage:\0A\00"
@.str.2 = [30 x i8] c"* mprfen [options] <out.vhd>\0A\00"
@.str.3 = [64 x i8] c"* Example: ./mprfgen -infer -read-first -nwp 2 -nrp 3 file.vhd\0A\00"
@.str.4 = [4 x i8] c"* \0A\00"
@.str.5 = [12 x i8] c"* Options:\0A\00"
@.str.6 = [36 x i8] c"* -h: Print this help.\0A\00"
@.str.7 = [67 x i8] c"* -infer: Use generic RAM storage that can be inferred as\0A\00"
@.str.8 = [33 x i8] c"* block RAM(s).\0A\00"
@.str.9 = [67 x i8] c"* -<read-mode>: Read mode supported by the generated RAM. Valid\0A\00"
@.str.10 = [66 x i8] c"* options: {read-async, read-first, write-first,\0A\00"
@.str.11 = [68 x i8] c"* read-through}. \22read-through\22 cannot be used for\0A\00"
@.str.12 = [72 x i8] c"* for block RAM instantiation. Default is \22read-async\22\0A\00"
@.str.13 = [64 x i8] c"* -nwp <num>: Number of write ports for the register file.\0A\00"
@.str.14 = [63 x i8] c"* -nrp <num>: Number of read ports for the register file.\0A\00"
@.str.15 = [65 x i8] c"* -bw <num>: Bitwidth for each memory entry (default: 16).\0A\00"
@.str.16 = [48 x i8] c"* -nregs <num>: Memory size (default: 1024).\0A\00"
@.str.17 = [57 x i8] c"* For further information, please refer to the website:\0A\00"
@.str.18 = [64 x i8] c"* http://electronics.physics.auth.gr/tomeas/en/kavvadias.html\0A\0A\00"
define void @print_usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.17, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.18, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [9 x i8] c"* Usage:\00"
@str.19 = [29 x i8] c"* mprfen [options] <out.vhd>\00"
@str.20 = [63 x i8] c"* Example: ./mprfgen -infer -read-first -nwp 2 -nrp 3 file.vhd\00"
@str.22 = [11 x i8] c"* Options:\00"
@str.23 = [35 x i8] c"* -h: Print this help.\00"
@str.24 = [66 x i8] c"* -infer: Use generic RAM storage that can be inferred as\00"
@str.25 = [32 x i8] c"* block RAM(s).\00"
@str.26 = [66 x i8] c"* -<read-mode>: Read mode supported by the generated RAM. Valid\00"
@str.27 = [65 x i8] c"* options: {read-async, read-first, write-first,\00"
@str.28 = [67 x i8] c"* read-through}. \22read-through\22 cannot be used for\00"
@str.29 = [71 x i8] c"* for block RAM instantiation. Default is \22read-async\22\00"
@str.30 = [63 x i8] c"* -nwp <num>: Number of write ports for the register file.\00"
@str.31 = [62 x i8] c"* -nrp <num>: Number of read ports for the register file.\00"
@str.32 = [64 x i8] c"* -bw <num>: Bitwidth for each memory entry (default: 16).\00"
@str.33 = [47 x i8] c"* -nregs <num>: Memory size (default: 1024).\00"
@str.34 = [3 x i8] c"* \00"
@str.35 = [56 x i8] c"* For further information, please refer to the website:\00"
@str.36 = [63 x i8] c"* http://electronics.physics.auth.gr/tomeas/en/kavvadias.html\0A\00"
define void @print_usage() {
%1 = tail call i32 @putchar(i32 10)
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.19, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.20, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.34, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.22, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.23, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.24, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.25, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str.26, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.27, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.28, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.29, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.30, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.31, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.32, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.33, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.34, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.35, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str.36, i64 0, i64 0))
ret void
}