#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 usage(char *av) {
  printf(" usage : \n");
  printf(" (1)   %s [option] mat\n", av);
  printf(" (2)   %s [option] - \n\n", av);
  printf(" options can be:\n");
  printf(
      "   -n : convert from new format to old format. [default: old to new]\n");
  printf("   -f : convert from new format to old format compatible to FL "
         "implementation. [default: old to new]\n");
  printf("   -s : sorts the row by weight (smallest first) [default : enabled, "
         "new format only]\n");
  printf("   -S : don't sort the rows by weight (smallest first) \n");
  printf("   -r : reverts order [default : enabled, new format only] \n");
  printf("   -R : don't revert order \n");
  printf(" (1) will produce a file on stdout from matrix mat\n");
  printf(" (2) will produce a file on stdout from  stdin \n");
  printf(" this would happen like : zcat mat.gz | %s mat - > mat.gbm\n", av);
  printf(" Warning : the input matrix has to be in the correct format\n");
  printf(
      " Warning : new matrix format is suffixed by .gbm (but not necessary)\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xedd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xedc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfee(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x101d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x102c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1052(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x1071(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x109f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10ce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xf41(%rip),%rdi
call   1030 <puts@plt>
lea    0xec9(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf22(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xffe(%rip),%rdi
call   1030 <puts@plt>
lea    0x102a(%rip),%rdi
call   1030 <puts@plt>
lea    0x105a(%rip),%rdi
call   1030 <puts@plt>
lea    0x106a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1091(%rip),%rdi
call   1030 <puts@plt>
lea    0xe6b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10a4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d4(%rip),%rdi
pop    %rbx
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [11 x i8] c" usage : \0A\00"
@.str.1 = [24 x i8] c" (1) %s [option] mat\0A\00"
@.str.2 = [24 x i8] c" (2) %s [option] - \0A\0A\00"
@.str.3 = [18 x i8] c" options can be:\0A\00"
@.str.4 = [70 x i8] c" -n : convert from new format to old format. [default: old to new]\0A\00"
@.str.5 = [102 x i8] c" -f : convert from new format to old format compatible to FL implementation. [default: old to new]\0A\00"
@.str.6 = [87 x i8] c" -s : sorts the row by weight (smallest first) [default : enabled, new format only]\0A\00"
@.str.7 = [57 x i8] c" -S : don't sort the rows by weight (smallest first) \0A\00"
@.str.8 = [61 x i8] c" -r : reverts order [default : enabled, new format only] \0A\00"
@.str.9 = [29 x i8] c" -R : don't revert order \0A\00"
@.str.10 = [52 x i8] c" (1) will produce a file on stdout from matrix mat\0A\00"
@.str.11 = [49 x i8] c" (2) will produce a file on stdout from stdin \0A\00"
@.str.12 = [60 x i8] c" this would happen like : zcat mat.gz | %s mat - > mat.gbm\0A\00"
@.str.13 = [61 x i8] c" Warning : the input matrix has to be in the correct format\0A\00"
@.str.14 = [70 x i8] c" Warning : new matrix format is suffixed by .gbm (but not necessary)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.8, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.10, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.11, i64 0, i64 0))
%17 = load i8*, i8** %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0), i8* %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.13, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [24 x i8] c" (1) %s [option] mat\0A\00"
@.str.2 = [24 x i8] c" (2) %s [option] - \0A\0A\00"
@.str.12 = [60 x i8] c" this would happen like : zcat mat.gz | %s mat - > mat.gbm\0A\00"
@str = [10 x i8] c" usage : \00"
@str.15 = [17 x i8] c" options can be:\00"
@str.16 = [69 x i8] c" -n : convert from new format to old format. [default: old to new]\00"
@str.17 = [101 x i8] c" -f : convert from new format to old format compatible to FL implementation. [default: old to new]\00"
@str.18 = [86 x i8] c" -s : sorts the row by weight (smallest first) [default : enabled, new format only]\00"
@str.19 = [56 x i8] c" -S : don't sort the rows by weight (smallest first) \00"
@str.20 = [60 x i8] c" -r : reverts order [default : enabled, new format only] \00"
@str.21 = [28 x i8] c" -R : don't revert order \00"
@str.22 = [51 x i8] c" (1) will produce a file on stdout from matrix mat\00"
@str.23 = [48 x i8] c" (2) will produce a file on stdout from stdin \00"
@str.24 = [60 x i8] c" Warning : the input matrix has to be in the correct format\00"
@str.25 = [69 x i8] c" Warning : new matrix format is suffixed by .gbm (but not necessary)\00"
define void @usage(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.22, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.23, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.25, i64 0, i64 0))
ret void
}