#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void display_usage() {
  fprintf(stderr, "\n");
  fprintf(stderr,
          "NOTE: Input field order is assumed to be species,pu,amount\n\n");
  fprintf(stderr, "Usage: convert_mtx [conversion type] [input file name] "
                  "[output file name]\n");
  fprintf(stderr, "                   {value} {suppress header row} {convert "
                  "m2 to hectares}\n\n");
  fprintf(stderr, "Where conversion type is:\n\n");
  fprintf(stderr, "  1 Tabular format to relational format.\n");
  fprintf(stderr, "  2 Species order to planning unit order.\n");
  fprintf(stderr, "  3 Planning unit to species order order.\n");
  fprintf(stderr, "  4 Species order to planning unit order,\n    input field "
                  "order is pu,species,amount.\n");
  fprintf(stderr, "  5 Tabular format to relational format,\n    add value to "
                  "base species index.\n");
  fprintf(stderr, "  6 MarProb Species order to planning unit order.\n");
  fprintf(stderr, "  7 MarProb Planning unit to species order order.\n");
  fprintf(
      stderr,
      "\nParameters in {curly brackets} apply only to conversion type 5.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<display_usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xfba(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8b(%rip),%rax
mov    (%rax),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e76(%rip),%rax
mov    (%rax),%edi
lea    0xf15(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
lea    0xf4c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%edi
lea    0xf53(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e37(%rip),%rax
mov    (%rax),%edi
lea    0xf68(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e22(%rip),%rax
mov    (%rax),%edi
lea    0xf7e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xf94(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0xfd6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de3(%rip),%rax
mov    (%rax),%edi
lea    0x1010(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
lea    0x102e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0x104c(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<display_usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xfbd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xec1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xef0(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2d(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf6b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf79(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf95(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfb2(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfcf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1018(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1059(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x107e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10a3(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [61 x i8] c"NOTE: Input field order is assumed to be species,pu,amount\0A\0A\00"
@.str.2 = [75 x i8] c"Usage: convert_mtx [conversion type] [input file name] [output file name]\0A\00"
@.str.3 = [76 x i8] c" {value} {suppress header row} {convert m2 to hectares}\0A\0A\00"
@.str.4 = [28 x i8] c"Where conversion type is:\0A\0A\00"
@.str.5 = [42 x i8] c" 1 Tabular format to relational format.\0A\00"
@.str.6 = [43 x i8] c" 2 Species order to planning unit order.\0A\00"
@.str.7 = [43 x i8] c" 3 Planning unit to species order order.\0A\00"
@.str.8 = [87 x i8] c" 4 Species order to planning unit order,\0A input field order is pu,species,amount.\0A\00"
@.str.9 = [79 x i8] c" 5 Tabular format to relational format,\0A add value to base species index.\0A\00"
@.str.10 = [51 x i8] c" 6 MarProb Species order to planning unit order.\0A\00"
@.str.11 = [51 x i8] c" 7 MarProb Planning unit to species order order.\0A\00"
@.str.12 = [66 x i8] c"\0AParameters in {curly brackets} apply only to conversion type 5.\0A\00"
define void @display_usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [2 x i8] c"\0A\00"
@.str.1 = [61 x i8] c"NOTE: Input field order is assumed to be species,pu,amount\0A\0A\00"
@.str.2 = [75 x i8] c"Usage: convert_mtx [conversion type] [input file name] [output file name]\0A\00"
@.str.3 = [76 x i8] c" {value} {suppress header row} {convert m2 to hectares}\0A\0A\00"
@.str.4 = [28 x i8] c"Where conversion type is:\0A\0A\00"
@.str.5 = [42 x i8] c" 1 Tabular format to relational format.\0A\00"
@.str.6 = [43 x i8] c" 2 Species order to planning unit order.\0A\00"
@.str.7 = [43 x i8] c" 3 Planning unit to species order order.\0A\00"
@.str.8 = [87 x i8] c" 4 Species order to planning unit order,\0A input field order is pu,species,amount.\0A\00"
@.str.9 = [79 x i8] c" 5 Tabular format to relational format,\0A add value to base species index.\0A\00"
@.str.10 = [51 x i8] c" 6 MarProb Species order to planning unit order.\0A\00"
@.str.11 = [51 x i8] c" 7 MarProb Planning unit to species order order.\0A\00"
@.str.12 = [66 x i8] c"\0AParameters in {curly brackets} apply only to conversion type 5.\0A\00"
define void @display_usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.9, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.10, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.11, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.12, i64 0, i64 0))
%27 = tail call i32 @exit(i32 1)
unreachable
}