#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 *, char *);
int /*<<< orphan*/ stderr;
void usage(int argc, char **argv) {
  (void)argc;
  fprintf(
      stderr,
      "Usage: %s mode [OPTIONS] [-f file|proxy1 [proxy2...]]\n"
      "The proxies are chained to strenghten privacy\n"
      "\n"
      "mode:\n"
      "  cat    c  stdin and stdout are piped through the proxy chain\n"
      "  serve  s  starts a server sending data through the chain\n"
      "  check  k  check the proxy chain\n"
      "\n"
      "OPTIONS:\n"
      "  --continue  -c  ignore any unreachable proxy and test the next one\n"
      "  --verbose   -v  show more information\n"
      "\n"
      "proxies: the list of proxies can be given as the arguments of the "
      "command line\n"
      "         or as a file (one per line) ; if no option is given, stdin is "
      "assumed\n"
      "         a proxy is of the form\n"
      "\n"
      "host:port[:type[:user:pass]]\n"
      "  host   is an IPv4, IPv6 (not after a SOCKS4 proxy) or domain address\n"
      "  port   is the port where the server listens for connections\n"
      "  type   optionnal, can be either 'socks4' or 'socks5'\n"
      "  user   optionnal, used for username/password authentication\n"
      "  pass   optionnal, used for username/password authentication\n",
      argv[0]);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eba(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xeca(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%edi
mov    (%rsi),%rdx
lea    0xedd(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [916 x i8] c"Usage: %s mode [OPTIONS] [-f file|proxy1 [proxy2...]]\0AThe proxies are chained to strenghten privacy\0A\0Amode:\0A cat c stdin and stdout are piped through the proxy chain\0A serve s starts a server sending data through the chain\0A check k check the proxy chain\0A\0AOPTIONS:\0A --continue -c ignore any unreachable proxy and test the next one\0A --verbose -v show more information\0A\0Aproxies: the list of proxies can be given as the arguments of the command line\0A or as a file (one per line) ; if no option is given, stdin is assumed\0A a proxy is of the form\0A\0Ahost:port[:type[:user:pass]]\0A host is an IPv4, IPv6 (not after a SOCKS4 proxy) or domain address\0A port is the port where the server listens for connections\0A type optionnal, can be either 'socks4' or 'socks5'\0A user optionnal, used for username/password authentication\0A pass optionnal, used for username/password authentication\0A\00"
define void @usage(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i8**
store i32 %0, i32* %3
store i8** %1, i8*** %4
%5 = load i32, i32* %3
%6 = load i32, i32* @stderr
%7 = load i8**, i8*** %4
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([916 x i8], [916 x i8]* @.str, i64 0, i64 0), i8* %9)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [916 x i8] c"Usage: %s mode [OPTIONS] [-f file|proxy1 [proxy2...]]\0AThe proxies are chained to strenghten privacy\0A\0Amode:\0A cat c stdin and stdout are piped through the proxy chain\0A serve s starts a server sending data through the chain\0A check k check the proxy chain\0A\0AOPTIONS:\0A --continue -c ignore any unreachable proxy and test the next one\0A --verbose -v show more information\0A\0Aproxies: the list of proxies can be given as the arguments of the command line\0A or as a file (one per line) ; if no option is given, stdin is assumed\0A a proxy is of the form\0A\0Ahost:port[:type[:user:pass]]\0A host is an IPv4, IPv6 (not after a SOCKS4 proxy) or domain address\0A port is the port where the server listens for connections\0A type optionnal, can be either 'socks4' or 'socks5'\0A user optionnal, used for username/password authentication\0A pass optionnal, used for username/password authentication\0A\00"
define void @usage(i32 %0, i8** nocapture %1) {
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %1
%5 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([916 x i8], [916 x i8]* @.str, i64 0, i64 0), i8* %4)
ret void
}