#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 EXIT_SUCCESS;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *);
void usage(int status) {
  if (status != EXIT_SUCCESS)
    printf("Try `ivictl --help' for more information.\n");
  else {
    printf(
        "Usage:  ivictl -r [rule_options]\n	(used to insert a mapping "
        "rule)\n	ivictl -s [start_options]\n	(used to start MAP "
        "module)\n	ivictl -q\n	(used to stop MAP module)\n	ivictl "
        "-h\n	(used to display this help "
        "information)\n\nrule_options:\n	-p --prefix4 "
        "[PREFIX4/PLEN4]\n		specify the ipv4 prefix and "
        "length\n	-P --prefix6 [PREFIX6/PLEN6]\n		specify the "
        "ipv6 prefix and length\n	-z --psidoffset PSIDOFFSET\n	"
        "	specify the psid offset parameter in GMA\n	-R --ratio "
        "RATIO\n		specify the address sharing ratio in "
        "GMA\n	-d --default\n		specify the ipv4 prefix is '0.0.0.0/0' "
        "instead of using '-p 0.0.0.0 -l 0'\n	-E --encapsulate\n	"
        "	specify the mapping rule is used for MAP-E\n	-T "
        "--translate\n		specify the mapping rule is used for "
        "MAP-T\n\nstart_options:\n	-i --dev4 DEV4\n		"
        "specify the name of ipv4 device\n	-I --dev6 DEV6\n	"
        "	specify the name of ipv6 device\n	-c --mssclamping "
        "MSS\n		specify the reduced tcp mss value\n\n	HGW "
        "mode:\n		-H --hgw\n			specify that "
        "IVI is working as home gateway\n		-N --nat44\n	"
        "		specify that IVI HGW is performing NAT44\n	"
        "	-o --psid PSID\n			specify the local PSID "
        "of the HGW, default is 0\n		-a --address "
        "[ADDRRESS/PREFIXLENGTH]\n			specify the ipv4 "
        "address and mask used by the HGW\n		-A --publicaddr "
        "[PUBLICADDR/PUBLICPREFIXLENGTH]\n			specify the "
        "public ipv4 address and mask used by the HGW in NAT44 mode\n	"
        "		always used with -N (--nat44)\n		-P --prefix6 "
        "[PREFIX6/PLEN6]\n			specify the local IVI prefix "
        "and length used by the HGW\n		-z --psidoffset "
        "PSIDOFFSET\n			specify the local psid offset "
        "parameter in GMA\n		-R --ratio RATIO\n		"
        "	specify the local address sharing ratio in GMA\n	"
        "	-X --noeabits\n			specify that the HGW doesn't "
        "use eabits to constitute the IPv6 address\n		-E "
        "--encapsulate\n			specify that the HGW supports "
        "MAP-E mode\n		-T --translate\n			"
        "specify that the HGW supports MAP-T\n\n");
  }
  exit(status);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    0x2eab(%rip),%rcx
cmp    (%rcx),%eax
je     114e <usage+0x2e>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
jmp    115a <usage+0x3a>
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %edi,%ebx
mov    0x2eb6(%rip),%rax
cmp    %edi,(%rax)
lea    0xecd(%rip),%rax
lea    0x15b2(%rip),%rdi
cmove  %rax,%rdi
call   1030 <puts@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@EXIT_SUCCESS = global i32 0
@.str = [43 x i8] c"Try `ivictl --help' for more information.\0A\00"
@.str.1 = [1773 x i8] c"Usage: ivictl -r [rule_options]\0A\09(used to insert a mapping rule)\0A\09ivictl -s [start_options]\0A\09(used to start MAP module)\0A\09ivictl -q\0A\09(used to stop MAP module)\0A\09ivictl -h\0A\09(used to display this help information)\0A\0Arule_options:\0A\09-p --prefix4 [PREFIX4/PLEN4]\0A\09\09specify the ipv4 prefix and length\0A\09-P --prefix6 [PREFIX6/PLEN6]\0A\09\09specify the ipv6 prefix and length\0A\09-z --psidoffset PSIDOFFSET\0A\09\09specify the psid offset parameter in GMA\0A\09-R --ratio RATIO\0A\09\09specify the address sharing ratio in GMA\0A\09-d --default\0A\09\09specify the ipv4 prefix is '0.0.0.0/0' instead of using '-p 0.0.0.0 -l 0'\0A\09-E --encapsulate\0A\09\09specify the mapping rule is used for MAP-E\0A\09-T --translate\0A\09\09specify the mapping rule is used for MAP-T\0A\0Astart_options:\0A\09-i --dev4 DEV4\0A\09\09specify the name of ipv4 device\0A\09-I --dev6 DEV6\0A\09\09specify the name of ipv6 device\0A\09-c --mssclamping MSS\0A\09\09specify the reduced tcp mss value\0A\0A\09HGW mode:\0A\09\09-H --hgw\0A\09\09\09specify that IVI is working as home gateway\0A\09\09-N --nat44\0A\09\09\09specify that IVI HGW is performing NAT44\0A\09\09-o --psid PSID\0A\09\09\09specify the local PSID of the HGW, default is 0\0A\09\09-a --address [ADDRRESS/PREFIXLENGTH]\0A\09\09\09specify the ipv4 address and mask used by the HGW\0A\09\09-A --publicaddr [PUBLICADDR/PUBLICPREFIXLENGTH]\0A\09\09\09specify the public ipv4 address and mask used by the HGW in NAT44 mode\0A\09\09\09always used with -N (--nat44)\0A\09\09-P --prefix6 [PREFIX6/PLEN6]\0A\09\09\09specify the local IVI prefix and length used by the HGW\0A\09\09-z --psidoffset PSIDOFFSET\0A\09\09\09specify the local psid offset parameter in GMA\0A\09\09-R --ratio RATIO\0A\09\09\09specify the local address sharing ratio in GMA\0A\09\09-X --noeabits\0A\09\09\09specify that the HGW doesn't use eabits to constitute the IPv6 address\0A\09\09-E --encapsulate\0A\09\09\09specify that the HGW supports MAP-E mode\0A\09\09-T --translate\0A\09\09\09specify that the HGW supports MAP-T\0A\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = load i32, i32* @EXIT_SUCCESS
%5 = icmp ne i32 %3, %4
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
br label %10
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([1773 x i8], [1773 x i8]* @.str.1, i64 0, i64 0))
br label %10
10: ; preds = %8, %6
%11 = load i32, i32* %2
%12 = call i32 @exit(i32 %11)
unreachable
}

LLVM IR (-O2):
@EXIT_SUCCESS = global i32 0
@str = [1772 x i8] c"Usage: ivictl -r [rule_options]\0A\09(used to insert a mapping rule)\0A\09ivictl -s [start_options]\0A\09(used to start MAP module)\0A\09ivictl -q\0A\09(used to stop MAP module)\0A\09ivictl -h\0A\09(used to display this help information)\0A\0Arule_options:\0A\09-p --prefix4 [PREFIX4/PLEN4]\0A\09\09specify the ipv4 prefix and length\0A\09-P --prefix6 [PREFIX6/PLEN6]\0A\09\09specify the ipv6 prefix and length\0A\09-z --psidoffset PSIDOFFSET\0A\09\09specify the psid offset parameter in GMA\0A\09-R --ratio RATIO\0A\09\09specify the address sharing ratio in GMA\0A\09-d --default\0A\09\09specify the ipv4 prefix is '0.0.0.0/0' instead of using '-p 0.0.0.0 -l 0'\0A\09-E --encapsulate\0A\09\09specify the mapping rule is used for MAP-E\0A\09-T --translate\0A\09\09specify the mapping rule is used for MAP-T\0A\0Astart_options:\0A\09-i --dev4 DEV4\0A\09\09specify the name of ipv4 device\0A\09-I --dev6 DEV6\0A\09\09specify the name of ipv6 device\0A\09-c --mssclamping MSS\0A\09\09specify the reduced tcp mss value\0A\0A\09HGW mode:\0A\09\09-H --hgw\0A\09\09\09specify that IVI is working as home gateway\0A\09\09-N --nat44\0A\09\09\09specify that IVI HGW is performing NAT44\0A\09\09-o --psid PSID\0A\09\09\09specify the local PSID of the HGW, default is 0\0A\09\09-a --address [ADDRRESS/PREFIXLENGTH]\0A\09\09\09specify the ipv4 address and mask used by the HGW\0A\09\09-A --publicaddr [PUBLICADDR/PUBLICPREFIXLENGTH]\0A\09\09\09specify the public ipv4 address and mask used by the HGW in NAT44 mode\0A\09\09\09always used with -N (--nat44)\0A\09\09-P --prefix6 [PREFIX6/PLEN6]\0A\09\09\09specify the local IVI prefix and length used by the HGW\0A\09\09-z --psidoffset PSIDOFFSET\0A\09\09\09specify the local psid offset parameter in GMA\0A\09\09-R --ratio RATIO\0A\09\09\09specify the local address sharing ratio in GMA\0A\09\09-X --noeabits\0A\09\09\09specify that the HGW doesn't use eabits to constitute the IPv6 address\0A\09\09-E --encapsulate\0A\09\09\09specify that the HGW supports MAP-E mode\0A\09\09-T --translate\0A\09\09\09specify that the HGW supports MAP-T\0A\00"
@str.2 = [42 x i8] c"Try `ivictl --help' for more information.\00"
define void @usage(i32 %0) {
%2 = load i32, i32* @EXIT_SUCCESS
%3 = icmp eq i32 %2, %0
%4 = select i1 %3, i8* getelementptr inbounds ([1772 x i8], [1772 x i8]* @str, i64 0, i64 0), i8* getelementptr inbounds ([42 x i8], [42 x i8]* @str.2, i64 0, i64 0)
%5 = tail call i32 @puts(i8* dereferenceable(1) %4)
%6 = tail call i32 @exit(i32 %0)
unreachable
}