#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(unsigned verbose) {
  if (verbose) {
    fprintf(stderr, "Usage: ipcalc [OPTION...]\n");
    fprintf(stderr, "  -c, --check                     Validate IP address\n");
    fprintf(stderr, "  -r, --random-private=PREFIX     Generate a random "
                    "private IP network using\n");
    fprintf(stderr, "  -S, --split=PREFIX              Split the provided "
                    "network using the\n");
    fprintf(stderr,
            "                                  provided prefix/netmask\n");
    fprintf(stderr, "  -i, --info                      Print information on "
                    "the provided IP address\n");
    fprintf(stderr, "                                  (default)\n");
    fprintf(stderr, "      --all-info                  Print verbose "
                    "information on the provided IP\n");
    fprintf(stderr, "                                  address\n");
    fprintf(stderr, "      --reverse-dns               Print network in a the "
                    "reverse DNS format\n");
    fprintf(stderr, "  -4, --ipv4                      Explicitly specify the "
                    "IPv4 address family\n");
    fprintf(stderr, "  -6, --ipv6                      Explicitly specify the "
                    "IPv6 address family\n");
    fprintf(stderr, "\n");
    fprintf(stderr, "Specific info options:\n");
    fprintf(stderr, "  -b, --broadcast                 Display calculated "
                    "broadcast address\n");
    fprintf(stderr,
            "  -m, --netmask                   Display netmask for IP\n");
    fprintf(stderr,
            "  -n, --network                   Display network address\n");
    fprintf(stderr,
            "  -p, --prefix                    Display network prefix\n");
    fprintf(stderr, "      --minaddr                   Display the minimum "
                    "address in the network\n");
    fprintf(stderr, "      --maxaddr                   Display the maximum "
                    "address in the network\n");
    fprintf(stderr, "      --addresses                 Display the maximum "
                    "number of addresses in\n");
    fprintf(stderr, "                                  the network\n");
    fprintf(stderr, "      --addrspace                 Display the address "
                    "space the network\n");
    fprintf(stderr, "                                  resides on\n");
    fprintf(
        stderr,
        "  -h, --hostname                  Show hostname determined via DNS\n");
    fprintf(
        stderr,
        "  -o, --lookup-host=STRING        Show IP as determined via DNS\n");
    fprintf(stderr, "\n");
    fprintf(stderr, "Other options:\n");
    fprintf(stderr, "      --class-prefix              When specified the "
                    "default prefix will be determined\n");
    fprintf(stderr,
            "                                  by the IPv4 address class\n");
    fprintf(stderr, "      --no-decorate               Print only the "
                    "requested information\n");
    fprintf(stderr, "  -s, --silent                    Don't ever display "
                    "error messages\n");
    fprintf(stderr,
            "  -v, --version                   Display program version\n");
    fprintf(stderr,
            "  -?, --help                      Show this help message\n");
    fprintf(stderr,
            "      --usage                     Display brief usage message\n");
  } else {
    fprintf(stderr, "Usage: ipcalc [-46sv?] [-c|--check] "
                    "[-r|--random-private=STRING] [-i|--info]\n");
    fprintf(stderr,
            "        [--all-info] [-4|--ipv4] [-6|--ipv6] [-b|--broadcast]\n");
    fprintf(
        stderr,
        "        [-h|--hostname] [-o|--lookup-host=STRING] [-g|--geoinfo]\n");
    fprintf(stderr, "        [-m|--netmask] [-n|--network] [-p|--prefix] "
                    "[--minaddr] [--maxaddr]\n");
    fprintf(
        stderr,
        "        [--addresses] [--addrspace] [-s|--silent] [-v|--version]\n");
    fprintf(stderr, "        [--reverse-dns] [--class-prefix]\n");
    fprintf(stderr, "        [-?|--help] [--usage]\n");
  }
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
je     1409 <usage+0x2f9>
mov    0x2eb4(%rip),%rax
mov    (%rax),%edi
lea    0xecb(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9f(%rip),%rax
mov    (%rax),%edi
lea    0xed1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
lea    0xef3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
lea    0xf2c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e60(%rip),%rax
mov    (%rax),%edi
lea    0xf5f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%edi
lea    0xf85(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e36(%rip),%rax
mov    (%rax),%edi
lea    0xfc0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e21(%rip),%rax
mov    (%rax),%edi
lea    0xfd8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
lea    0x1013(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
lea    0x1029(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2de2(%rip),%rax
mov    (%rax),%edi
lea    0x1061(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
lea    0x109a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db8(%rip),%rax
mov    (%rax),%edi
lea    0xf6d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2da3(%rip),%rax
mov    (%rax),%edi
lea    0x10be(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8e(%rip),%rax
mov    (%rax),%edi
lea    0x10c1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
lea    0x10f4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d64(%rip),%rax
mov    (%rax),%edi
lea    0x1119(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d4f(%rip),%rax
mov    (%rax),%edi
lea    0x113f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d3a(%rip),%rax
mov    (%rax),%edi
lea    0x1164(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d25(%rip),%rax
mov    (%rax),%edi
lea    0x119d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d10(%rip),%rax
mov    (%rax),%edi
lea    0x11d6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
lea    0x120f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ce6(%rip),%rax
mov    (%rax),%edi
lea    0x1229(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cd1(%rip),%rax
mov    (%rax),%edi
lea    0x125d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cbc(%rip),%rax
mov    (%rax),%edi
lea    0x1276(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ca7(%rip),%rax
mov    (%rax),%edi
lea    0x12a5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c92(%rip),%rax
mov    (%rax),%edi
lea    0xe47(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c7d(%rip),%rax
mov    (%rax),%edi
lea    0x12bc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c68(%rip),%rax
mov    (%rax),%edi
lea    0x12b7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c53(%rip),%rax
mov    (%rax),%edi
lea    0x12fa(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c3e(%rip),%rax
mov    (%rax),%edi
lea    0x1322(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c29(%rip),%rax
mov    (%rax),%edi
lea    0x1355(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c14(%rip),%rax
mov    (%rax),%edi
lea    0x1385(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bff(%rip),%rax
mov    (%rax),%edi
lea    0x13ab(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bea(%rip),%rax
mov    (%rax),%edi
lea    0x13d0(%rip),%rsi
call   1030 <fprintf@plt>
jmp    149c <usage+0x38c>
mov    0x2bd0(%rip),%rax
mov    (%rax),%edi
lea    0x13f5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bbb(%rip),%rax
mov    (%rax),%edi
lea    0x142e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ba6(%rip),%rax
mov    (%rax),%edi
lea    0x1458(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b91(%rip),%rax
mov    (%rax),%edi
lea    0x1485(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b7c(%rip),%rax
mov    (%rax),%edi
lea    0x14bd(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b67(%rip),%rax
mov    (%rax),%edi
lea    0x14ea(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b52(%rip),%rax
mov    (%rax),%edi
lea    0x14ff(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%eax
mov    0x2ebc(%rip),%rbp
mov    0x0(%rbp),%edi
test   %eax,%eax
je     130a <usage+0x1fa>
lea    0xeca(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xed6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xefe(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xf3d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xf76(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xfa2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xfe3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1001(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1042(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x105e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x109c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x10db(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xfb4(%rip),%rbx
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1108(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1111(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x114a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1175(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x11a1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x11cc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x120b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x124a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1289(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x12a9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x12e3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1302(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x1337(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x135e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x135f(%rip),%rsi
call   1030 <fprintf@plt>
lea    0x14ea(%rip),%r14
lea    0x14a9(%rip),%r15
lea    0x1467(%rip),%r12
lea    0x141b(%rip),%r13
lea    0x13cc(%rip),%rbx
lea    0x1388(%rip),%rsi
jmp    1340 <usage+0x230>
lea    0x14fd(%rip),%rsi
call   1030 <fprintf@plt>
lea    0x1679(%rip),%r14
lea    0x1648(%rip),%r15
lea    0x15ff(%rip),%r12
lea    0x15ab(%rip),%r13
lea    0x1562(%rip),%rbx
lea    0x151c(%rip),%rsi
mov    0x0(%rbp),%edi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %r13,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %r12,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %r15,%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [27 x i8] c"Usage: ipcalc [OPTION...]\0A\00"
@.str.1 = [55 x i8] c" -c, --check Validate IP address\0A\00"
@.str.2 = [78 x i8] c" -r, --random-private=PREFIX Generate a random private IP network using\0A\00"
@.str.3 = [72 x i8] c" -S, --split=PREFIX Split the provided network using the\0A\00"
@.str.4 = [59 x i8] c" provided prefix/netmask\0A\00"
@.str.5 = [80 x i8] c" -i, --info Print information on the provided IP address\0A\00"
@.str.6 = [45 x i8] c" (default)\0A\00"
@.str.7 = [80 x i8] c" --all-info Print verbose information on the provided IP\0A\00"
@.str.8 = [43 x i8] c" address\0A\00"
@.str.9 = [77 x i8] c" --reverse-dns Print network in a the reverse DNS format\0A\00"
@.str.10 = [78 x i8] c" -4, --ipv4 Explicitly specify the IPv4 address family\0A\00"
@.str.11 = [78 x i8] c" -6, --ipv6 Explicitly specify the IPv6 address family\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [24 x i8] c"Specific info options:\0A\00"
@.str.14 = [72 x i8] c" -b, --broadcast Display calculated broadcast address\0A\00"
@.str.15 = [58 x i8] c" -m, --netmask Display netmask for IP\0A\00"
@.str.16 = [59 x i8] c" -n, --network Display network address\0A\00"
@.str.17 = [58 x i8] c" -p, --prefix Display network prefix\0A\00"
@.str.18 = [78 x i8] c" --minaddr Display the minimum address in the network\0A\00"
@.str.19 = [78 x i8] c" --maxaddr Display the maximum address in the network\0A\00"
@.str.20 = [78 x i8] c" --addresses Display the maximum number of addresses in\0A\00"
@.str.21 = [47 x i8] c" the network\0A\00"
@.str.22 = [73 x i8] c" --addrspace Display the address space the network\0A\00"
@.str.23 = [46 x i8] c" resides on\0A\00"
@.str.24 = [68 x i8] c" -h, --hostname Show hostname determined via DNS\0A\00"
@.str.25 = [65 x i8] c" -o, --lookup-host=STRING Show IP as determined via DNS\0A\00"
@.str.26 = [16 x i8] c"Other options:\0A\00"
@.str.27 = [88 x i8] c" --class-prefix When specified the default prefix will be determined\0A\00"
@.str.28 = [61 x i8] c" by the IPv4 address class\0A\00"
@.str.29 = [72 x i8] c" --no-decorate Print only the requested information\0A\00"
@.str.30 = [69 x i8] c" -s, --silent Don't ever display error messages\0A\00"
@.str.31 = [59 x i8] c" -v, --version Display program version\0A\00"
@.str.32 = [58 x i8] c" -?, --help Show this help message\0A\00"
@.str.33 = [63 x i8] c" --usage Display brief usage message\0A\00"
@.str.34 = [78 x i8] c"Usage: ipcalc [-46sv?] [-c|--check] [-r|--random-private=STRING] [-i|--info]\0A\00"
@.str.35 = [63 x i8] c" [--all-info] [-4|--ipv4] [-6|--ipv6] [-b|--broadcast]\0A\00"
@.str.36 = [66 x i8] c" [-h|--hostname] [-o|--lookup-host=STRING] [-g|--geoinfo]\0A\00"
@.str.37 = [77 x i8] c" [-m|--netmask] [-n|--network] [-p|--prefix] [--minaddr] [--maxaddr]\0A\00"
@.str.38 = [66 x i8] c" [--addresses] [--addrspace] [-s|--silent] [-v|--version]\0A\00"
@.str.39 = [42 x i8] c" [--reverse-dns] [--class-prefix]\0A\00"
@.str.40 = [31 x i8] c" [-?|--help] [--usage]\0A\00"
define void @usage(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp ne i32 %3, 0
br i1 %4, label %5, label %76
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.14, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.17, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.18, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.19, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.20, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.24, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.25, i64 0, i64 0))
%58 = load i32, i32* @stderr
%59 = call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = call i32 @fprintf(i32 %60, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.27, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = call i32 @fprintf(i32 %64, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0))
%66 = load i32, i32* @stderr
%67 = call i32 @fprintf(i32 %66, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.29, i64 0, i64 0))
%68 = load i32, i32* @stderr
%69 = call i32 @fprintf(i32 %68, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.30, i64 0, i64 0))
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.31, i64 0, i64 0))
%72 = load i32, i32* @stderr
%73 = call i32 @fprintf(i32 %72, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.32, i64 0, i64 0))
%74 = load i32, i32* @stderr
%75 = call i32 @fprintf(i32 %74, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.33, i64 0, i64 0))
br label %91
76: ; preds = %1
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.34, i64 0, i64 0))
%79 = load i32, i32* @stderr
%80 = call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.35, i64 0, i64 0))
%81 = load i32, i32* @stderr
%82 = call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.36, i64 0, i64 0))
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.37, i64 0, i64 0))
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.38, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.39, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.40, i64 0, i64 0))
br label %91
91: ; preds = %76, %5
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [27 x i8] c"Usage: ipcalc [OPTION...]\0A\00"
@.str.1 = [55 x i8] c" -c, --check Validate IP address\0A\00"
@.str.2 = [78 x i8] c" -r, --random-private=PREFIX Generate a random private IP network using\0A\00"
@.str.3 = [72 x i8] c" -S, --split=PREFIX Split the provided network using the\0A\00"
@.str.4 = [59 x i8] c" provided prefix/netmask\0A\00"
@.str.5 = [80 x i8] c" -i, --info Print information on the provided IP address\0A\00"
@.str.6 = [45 x i8] c" (default)\0A\00"
@.str.7 = [80 x i8] c" --all-info Print verbose information on the provided IP\0A\00"
@.str.8 = [43 x i8] c" address\0A\00"
@.str.9 = [77 x i8] c" --reverse-dns Print network in a the reverse DNS format\0A\00"
@.str.10 = [78 x i8] c" -4, --ipv4 Explicitly specify the IPv4 address family\0A\00"
@.str.11 = [78 x i8] c" -6, --ipv6 Explicitly specify the IPv6 address family\0A\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [24 x i8] c"Specific info options:\0A\00"
@.str.14 = [72 x i8] c" -b, --broadcast Display calculated broadcast address\0A\00"
@.str.15 = [58 x i8] c" -m, --netmask Display netmask for IP\0A\00"
@.str.16 = [59 x i8] c" -n, --network Display network address\0A\00"
@.str.17 = [58 x i8] c" -p, --prefix Display network prefix\0A\00"
@.str.18 = [78 x i8] c" --minaddr Display the minimum address in the network\0A\00"
@.str.19 = [78 x i8] c" --maxaddr Display the maximum address in the network\0A\00"
@.str.20 = [78 x i8] c" --addresses Display the maximum number of addresses in\0A\00"
@.str.21 = [47 x i8] c" the network\0A\00"
@.str.22 = [73 x i8] c" --addrspace Display the address space the network\0A\00"
@.str.23 = [46 x i8] c" resides on\0A\00"
@.str.24 = [68 x i8] c" -h, --hostname Show hostname determined via DNS\0A\00"
@.str.25 = [65 x i8] c" -o, --lookup-host=STRING Show IP as determined via DNS\0A\00"
@.str.26 = [16 x i8] c"Other options:\0A\00"
@.str.27 = [88 x i8] c" --class-prefix When specified the default prefix will be determined\0A\00"
@.str.28 = [61 x i8] c" by the IPv4 address class\0A\00"
@.str.29 = [72 x i8] c" --no-decorate Print only the requested information\0A\00"
@.str.30 = [69 x i8] c" -s, --silent Don't ever display error messages\0A\00"
@.str.31 = [59 x i8] c" -v, --version Display program version\0A\00"
@.str.32 = [58 x i8] c" -?, --help Show this help message\0A\00"
@.str.33 = [63 x i8] c" --usage Display brief usage message\0A\00"
@.str.34 = [78 x i8] c"Usage: ipcalc [-46sv?] [-c|--check] [-r|--random-private=STRING] [-i|--info]\0A\00"
@.str.35 = [63 x i8] c" [--all-info] [-4|--ipv4] [-6|--ipv6] [-b|--broadcast]\0A\00"
@.str.36 = [66 x i8] c" [-h|--hostname] [-o|--lookup-host=STRING] [-g|--geoinfo]\0A\00"
@.str.37 = [77 x i8] c" [-m|--netmask] [-n|--network] [-p|--prefix] [--minaddr] [--maxaddr]\0A\00"
@.str.38 = [66 x i8] c" [--addresses] [--addrspace] [-s|--silent] [-v|--version]\0A\00"
@.str.39 = [42 x i8] c" [--reverse-dns] [--class-prefix]\0A\00"
@.str.40 = [31 x i8] c" [-?|--help] [--usage]\0A\00"
define void @usage(i32 %0) {
%2 = icmp eq i32 %0, 0
%3 = load i32, i32* @stderr
br i1 %2, label %62, label %4
4: ; preds = %1
%5 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* @stderr
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.2, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = tail call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.4, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = tail call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.5, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = tail call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = tail call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.7, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = tail call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.9, i64 0, i64 0))
%24 = load i32, i32* @stderr
%25 = tail call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.10, i64 0, i64 0))
%26 = load i32, i32* @stderr
%27 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%28 = load i32, i32* @stderr
%29 = tail call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 @fprintf(i32 %32, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.14, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 @fprintf(i32 %34, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = tail call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.16, i64 0, i64 0))
%38 = load i32, i32* @stderr
%39 = tail call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.17, i64 0, i64 0))
%40 = load i32, i32* @stderr
%41 = tail call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.18, i64 0, i64 0))
%42 = load i32, i32* @stderr
%43 = tail call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.19, i64 0, i64 0))
%44 = load i32, i32* @stderr
%45 = tail call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.20, i64 0, i64 0))
%46 = load i32, i32* @stderr
%47 = tail call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0))
%48 = load i32, i32* @stderr
%49 = tail call i32 @fprintf(i32 %48, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%50 = load i32, i32* @stderr
%51 = tail call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.23, i64 0, i64 0))
%52 = load i32, i32* @stderr
%53 = tail call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.24, i64 0, i64 0))
%54 = load i32, i32* @stderr
%55 = tail call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.25, i64 0, i64 0))
%56 = load i32, i32* @stderr
%57 = tail call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%58 = load i32, i32* @stderr
%59 = tail call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
%60 = load i32, i32* @stderr
%61 = tail call i32 @fprintf(i32 %60, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.27, i64 0, i64 0))
br label %64
62: ; preds = %1
%63 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.34, i64 0, i64 0))
br label %64
64: ; preds = %62, %4
%65 = phi i8* [ getelementptr inbounds ([63 x i8], [63 x i8]* @.str.35, i64 0, i64 0), %62 ], [ getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0), %4 ]
%66 = phi i8* [ getelementptr inbounds ([66 x i8], [66 x i8]* @.str.36, i64 0, i64 0), %62 ], [ getelementptr inbounds ([72 x i8], [72 x i8]* @.str.29, i64 0, i64 0), %4 ]
%67 = phi i8* [ getelementptr inbounds ([77 x i8], [77 x i8]* @.str.37, i64 0, i64 0), %62 ], [ getelementptr inbounds ([69 x i8], [69 x i8]* @.str.30, i64 0, i64 0), %4 ]
%68 = phi i8* [ getelementptr inbounds ([66 x i8], [66 x i8]* @.str.38, i64 0, i64 0), %62 ], [ getelementptr inbounds ([59 x i8], [59 x i8]* @.str.31, i64 0, i64 0), %4 ]
%69 = phi i8* [ getelementptr inbounds ([42 x i8], [42 x i8]* @.str.39, i64 0, i64 0), %62 ], [ getelementptr inbounds ([58 x i8], [58 x i8]* @.str.32, i64 0, i64 0), %4 ]
%70 = phi i8* [ getelementptr inbounds ([31 x i8], [31 x i8]* @.str.40, i64 0, i64 0), %62 ], [ getelementptr inbounds ([63 x i8], [63 x i8]* @.str.33, i64 0, i64 0), %4 ]
%71 = load i32, i32* @stderr
%72 = tail call i32 @fprintf(i32 %71, i8* %65)
%73 = load i32, i32* @stderr
%74 = tail call i32 @fprintf(i32 %73, i8* %66)
%75 = load i32, i32* @stderr
%76 = tail call i32 @fprintf(i32 %75, i8* %67)
%77 = load i32, i32* @stderr
%78 = tail call i32 @fprintf(i32 %77, i8* %68)
%79 = load i32, i32* @stderr
%80 = tail call i32 @fprintf(i32 %79, i8* %69)
%81 = load i32, i32* @stderr
%82 = tail call i32 @fprintf(i32 %81, i8* %70)
ret void
}