#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 *, char *);
int usage(char *fn) {
  printf("%s <infile>\t\tGet information from <infile>\n", fn);
  printf("%s -t <tracker-url>\tUse specific tracker\n", fn);
  printf("%s -h <info-hash>\t\tQuery for specific hash\n", fn);
  printf("%s -c\t\t\tRequest peers in compact notation [No]\n", fn);
  printf("%s -s\t\t\tAlso issue scrape request [No]\n", fn);
  printf("%s -v <4|6>\t\tForce IPv4/6 connection\n", fn);
  printf("%s -n <peers>\t\tNumber of peers to request [50]\n", fn);
  printf("%s -p <port>\t\tOpened port [6969]\n", fn);
  printf("%s -e <event>\t\tEvent to send [none]\n", fn);
  printf("%s -i <peerid>\t\tURLEncoded peer ID to send [-TC0010-%%rand%%]\n",
         fn);
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf2b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf63(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf99(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfab(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xfc0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf02(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf1d(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf74(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf8b(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xfac(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xfd5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [44 x i8] c"%s <infile>\09\09Get information from <infile>\0A\00"
@.str.1 = [42 x i8] c"%s -t <tracker-url>\09Use specific tracker\0A\00"
@.str.2 = [44 x i8] c"%s -h <info-hash>\09\09Query for specific hash\0A\00"
@.str.3 = [48 x i8] c"%s -c\09\09\09Request peers in compact notation [No]\0A\00"
@.str.4 = [40 x i8] c"%s -s\09\09\09Also issue scrape request [No]\0A\00"
@.str.5 = [38 x i8] c"%s -v <4|6>\09\09Force IPv4/6 connection\0A\00"
@.str.6 = [48 x i8] c"%s -n <peers>\09\09Number of peers to request [50]\0A\00"
@.str.7 = [34 x i8] c"%s -p <port>\09\09Opened port [6969]\0A\00"
@.str.8 = [37 x i8] c"%s -e <event>\09\09Event to send [none]\0A\00"
@.str.9 = [63 x i8] c"%s -i <peerid>\09\09URLEncoded peer ID to send [-TC0010-%%rand%%]\0A\00"
define i32 @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%13 = load i8*, i8** %2
%14 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %13)
%15 = load i8*, i8** %2
%16 = call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i8* %15)
%17 = load i8*, i8** %2
%18 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i8* %17)
%19 = load i8*, i8** %2
%20 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i8* %19)
%21 = load i8*, i8** %2
%22 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0), i8* %21)
ret i32 1
}

LLVM IR (-O2):
@.str = [44 x i8] c"%s <infile>\09\09Get information from <infile>\0A\00"
@.str.1 = [42 x i8] c"%s -t <tracker-url>\09Use specific tracker\0A\00"
@.str.2 = [44 x i8] c"%s -h <info-hash>\09\09Query for specific hash\0A\00"
@.str.3 = [48 x i8] c"%s -c\09\09\09Request peers in compact notation [No]\0A\00"
@.str.4 = [40 x i8] c"%s -s\09\09\09Also issue scrape request [No]\0A\00"
@.str.5 = [38 x i8] c"%s -v <4|6>\09\09Force IPv4/6 connection\0A\00"
@.str.6 = [48 x i8] c"%s -n <peers>\09\09Number of peers to request [50]\0A\00"
@.str.7 = [34 x i8] c"%s -p <port>\09\09Opened port [6969]\0A\00"
@.str.8 = [37 x i8] c"%s -e <event>\09\09Event to send [none]\0A\00"
@.str.9 = [63 x i8] c"%s -i <peerid>\09\09URLEncoded peer ID to send [-TC0010-%%rand%%]\0A\00"
define i32 @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i8* %0)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.6, i64 0, i64 0), i8* %0)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i8* %0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.8, i64 0, i64 0), i8* %0)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.9, i64 0, i64 0), i8* %0)
ret i32 1
}