#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(const char *exeName) {
  if (exeName == NULL)
    exeName = "./thisBin";
  printf("Usage:"
         "\n"
         "%s <sub-command> <required arguments ...> [optional arguments ...]",
         exeName);
  printf(
      "\n"
      "\n"
      "sub-commands:"
      "\n"
      "veg-class-set <classNum> <className>"
      "\n"
      "veg-class-ls [--code=...]"
      "\n"
      "veg-class-rm <classNum>"
      "\n"
      "veg-info-set <vegName> <classNum> <neuInfoStr>"
      "\n"
      "veg-info-ls [--name-keyword=...] [--neu-keyword=...] [--class-code=...]"
      "\n"
      "veg-info-rm <vegName>"
      "\n"
      "job-set <jobNum> <vegNum> <area> <weight> <year>"
      "\n"
      "job-ls [--veg-name-keyword=...] [--veg-name=...] [--year=...]"
      "\n"
      "job-rm <jobNum>"
      "\n"
      "\n"
      "job-report-by-veg-class #print className+sumArea+sumWeight"
      "\n"
      "job-report-by-year-and-veg-name <yearBegin> <yearEnd(NOT included)> "
      "#print vegName+className+sumArea+sumWeight(decrease)"
      "\n"
      "check-weight-by-veg-class <classNum> #print sumWeight"
      "\n"
      "Please use veg-info-ls to print veg info by neu keyword."
      "\n"
      "\n");
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1132 <usage+0x22>
lea    0xed2(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xecd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf09(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
test   %rdi,%rdi
lea    0xed5(%rip),%rsi
cmovne %rdi,%rsi
lea    0xed4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf10(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"./thisBin\00"
@.str.1 = [74 x i8] c"Usage:\0A%s <sub-command> <required arguments ...> [optional arguments ...]\00"
@.str.2 = [665 x i8] c"\0A\0Asub-commands:\0Aveg-class-set <classNum> <className>\0Aveg-class-ls [--code=...]\0Aveg-class-rm <classNum>\0Aveg-info-set <vegName> <classNum> <neuInfoStr>\0Aveg-info-ls [--name-keyword=...] [--neu-keyword=...] [--class-code=...]\0Aveg-info-rm <vegName>\0Ajob-set <jobNum> <vegNum> <area> <weight> <year>\0Ajob-ls [--veg-name-keyword=...] [--veg-name=...] [--year=...]\0Ajob-rm <jobNum>\0A\0Ajob-report-by-veg-class #print className+sumArea+sumWeight\0Ajob-report-by-year-and-veg-name <yearBegin> <yearEnd(NOT included)> #print vegName+className+sumArea+sumWeight(decrease)\0Acheck-weight-by-veg-class <classNum> #print sumWeight\0APlease use veg-info-ls to print veg info by neu keyword.\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp eq i8* %3, null
br i1 %4, label %5, label %6
5: ; preds = %1
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8** %2
br label %6
6: ; preds = %5, %1
%7 = load i8*, i8** %2
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([665 x i8], [665 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"./thisBin\00"
@.str.1 = [74 x i8] c"Usage:\0A%s <sub-command> <required arguments ...> [optional arguments ...]\00"
@str = [664 x i8] c"\0A\0Asub-commands:\0Aveg-class-set <classNum> <className>\0Aveg-class-ls [--code=...]\0Aveg-class-rm <classNum>\0Aveg-info-set <vegName> <classNum> <neuInfoStr>\0Aveg-info-ls [--name-keyword=...] [--neu-keyword=...] [--class-code=...]\0Aveg-info-rm <vegName>\0Ajob-set <jobNum> <vegNum> <area> <weight> <year>\0Ajob-ls [--veg-name-keyword=...] [--veg-name=...] [--year=...]\0Ajob-rm <jobNum>\0A\0Ajob-report-by-veg-class #print className+sumArea+sumWeight\0Ajob-report-by-year-and-veg-name <yearBegin> <yearEnd(NOT included)> #print vegName+className+sumArea+sumWeight(decrease)\0Acheck-weight-by-veg-class <classNum> #print sumWeight\0APlease use veg-info-ls to print veg info by neu keyword.\0A\00"
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
%3 = select i1 %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %0
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([664 x i8], [664 x i8]* @str, i64 0, i64 0))
ret void
}