#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 /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage() {
  const char *cmd = "t01";
  fprintf(
      stderr,
      "Usage: %s [options]\n"
      "\nOptions:\n"
      "\t-c filename               configuration file\n"
      "\t-i interface              interface that captures incoming traffic\n"
      "\t-o interface              interface that sends outcoming traffic "
      "(default same as incoming interface)\n"
      "\t-r ruledb                 rule db file that saving rule and hit "
      "record\n"
      "\t-b ip                     ip address binded for rule management\n"
      "\t-p port                   port listening for rule management (default "
      "9899)\n"
      "\t-C cpu_thread             which core do you want to bind to "
      "receiveing thread\n"
      "\t-S | -M                   slave or master mode for rule management\n"
      "\t-d                        run in daemon mode or not\n"
      "\t-j ip:port                master address for rule management cluster "
      "(eg 192.168.1.2:9898)\n"
      "\t-H ip:port                udp server address for rule hits\n"
      "\t-F filter                 filter strategy for mirroring netflow (eg "
      "80/tcp,53/udp)\n"
      "\t-e engine                 backend/mirror engine to store network flow "
      "data\n"
      "\t-m mirror_eigine          arguments attached to mirror engine\n"
      "\t-B backup_eigine          arguments attached to backup engine\n"
      "\t-v verbosity              logger levels (0:debug, 1:verbose, "
      "2:notice, 3:warning)\n"
      "\t-l log_file               logger into file or screen\n"
      "",
      cmd);
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xebd(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xed3(%rip),%rsi
lea    0xec8(%rip),%rdx
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"t01\00"
@stderr = global i32 0
@.str.1 = [1237 x i8] c"Usage: %s [options]\0A\0AOptions:\0A\09-c filename configuration file\0A\09-i interface interface that captures incoming traffic\0A\09-o interface interface that sends outcoming traffic (default same as incoming interface)\0A\09-r ruledb rule db file that saving rule and hit record\0A\09-b ip ip address binded for rule management\0A\09-p port port listening for rule management (default 9899)\0A\09-C cpu_thread which core do you want to bind to receiveing thread\0A\09-S | -M slave or master mode for rule management\0A\09-d run in daemon mode or not\0A\09-j ip:port master address for rule management cluster (eg 192.168.1.2:9898)\0A\09-H ip:port udp server address for rule hits\0A\09-F filter filter strategy for mirroring netflow (eg 80/tcp,53/udp)\0A\09-e engine backend/mirror engine to store network flow data\0A\09-m mirror_eigine arguments attached to mirror engine\0A\09-B backup_eigine arguments attached to backup engine\0A\09-v verbosity logger levels (0:debug, 1:verbose, 2:notice, 3:warning)\0A\09-l log_file logger into file or screen\0A\00"
define void @usage() {
%1 = alloca i8*
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %1
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %1
%4 = call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([1237 x i8], [1237 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [4 x i8] c"t01\00"
@stderr = global i32 0
@.str.1 = [1237 x i8] c"Usage: %s [options]\0A\0AOptions:\0A\09-c filename configuration file\0A\09-i interface interface that captures incoming traffic\0A\09-o interface interface that sends outcoming traffic (default same as incoming interface)\0A\09-r ruledb rule db file that saving rule and hit record\0A\09-b ip ip address binded for rule management\0A\09-p port port listening for rule management (default 9899)\0A\09-C cpu_thread which core do you want to bind to receiveing thread\0A\09-S | -M slave or master mode for rule management\0A\09-d run in daemon mode or not\0A\09-j ip:port master address for rule management cluster (eg 192.168.1.2:9898)\0A\09-H ip:port udp server address for rule hits\0A\09-F filter filter strategy for mirroring netflow (eg 80/tcp,53/udp)\0A\09-e engine backend/mirror engine to store network flow data\0A\09-m mirror_eigine arguments attached to mirror engine\0A\09-B backup_eigine arguments attached to backup engine\0A\09-v verbosity logger levels (0:debug, 1:verbose, 2:notice, 3:warning)\0A\09-l log_file logger into file or screen\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([1237 x i8], [1237 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 0)
unreachable
}