#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*/ flag_int(int *, char *, char *);
int /*<<< orphan*/ flag_parse(int, char const **, char *);
int /*<<< orphan*/ flag_string(char const **, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int main(int argc, const char **argv) {
  int requests = 5000;
  int concurrency = 10;
  const char *url = ":3000";
  flag_int(&requests, "requests", "Number of total requests");
  flag_int(&concurrency, "concurrency", "Number of concurrent requests");
  flag_string(&url, "url", "Target url");
  flag_parse(argc, argv, "v1.0.0");
  puts("");
  printf("     requests: %d\n", requests);
  printf("  concurrency: %d\n", concurrency);
  printf("          url: %s\n", url);
  puts("");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x1388,-0x14(%rbp)
movl   $0xa,-0x18(%rbp)
lea    0xe85(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
lea    0xe8c(%rip),%rsi
lea    0xe75(%rip),%rdx
call   1050 <flag_int@plt>
lea    -0x18(%rbp),%rdi
lea    0xe7e(%rip),%rsi
lea    0xe83(%rip),%rdx
call   1050 <flag_int@plt>
lea    -0x20(%rbp),%rdi
lea    0xe98(%rip),%rsi
lea    0xe8a(%rip),%rdx
call   1070 <flag_string@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe82(%rip),%rdx
call   1060 <flag_parse@plt>
lea    0xe8f(%rip),%rdi
call   1030 <puts@plt>
mov    -0x14(%rbp),%esi
lea    0xe6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%esi
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%rsi
lea    0xe71(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe4f(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
movl   $0x1388,0xc(%rsp)
movl   $0xa,0x8(%rsp)
lea    0xe8e(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe98(%rip),%rsi
lea    0xe81(%rip),%rdx
lea    0xc(%rsp),%rdi
call   1050 <flag_int@plt>
lea    0xe89(%rip),%rsi
lea    0xe8e(%rip),%rdx
lea    0x8(%rsp),%rdi
call   1050 <flag_int@plt>
lea    0xea2(%rip),%rsi
lea    0xe94(%rip),%rdx
lea    0x10(%rsp),%rdi
call   1070 <flag_string@plt>
lea    0xe8e(%rip),%rdx
mov    %ebp,%edi
mov    %rbx,%rsi
call   1060 <flag_parse@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%esi
lea    0xe76(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%esi
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x10(%rsp),%rsi
lea    0xe77(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c":3000\00"
@.str.1 = [9 x i8] c"requests\00"
@.str.2 = [25 x i8] c"Number of total requests\00"
@.str.3 = [12 x i8] c"concurrency\00"
@.str.4 = [30 x i8] c"Number of concurrent requests\00"
@.str.5 = [4 x i8] c"url\00"
@.str.6 = [11 x i8] c"Target url\00"
@.str.7 = [7 x i8] c"v1.0.0\00"
@.str.8 = [1 x i8] zeroinitializer
@.str.9 = [19 x i8] c" requests: %d\0A\00"
@.str.10 = [19 x i8] c" concurrency: %d\0A\00"
@.str.11 = [19 x i8] c" url: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 5000, i32* %6
store i32 10, i32* %7
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %8
%9 = call i32 @flag_int(i32* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @flag_int(i32* %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @flag_string(i8** %8, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%14 = call i32 @flag_parse(i32 %12, i8** %13, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%15 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
%16 = load i32, i32* %6
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %16)
%18 = load i32, i32* %7
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %18)
%20 = load i8*, i8** %8
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %20)
%22 = call i32 @puts(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c":3000\00"
@.str.1 = [9 x i8] c"requests\00"
@.str.2 = [25 x i8] c"Number of total requests\00"
@.str.3 = [12 x i8] c"concurrency\00"
@.str.4 = [30 x i8] c"Number of concurrent requests\00"
@.str.5 = [4 x i8] c"url\00"
@.str.6 = [11 x i8] c"Target url\00"
@.str.7 = [7 x i8] c"v1.0.0\00"
@.str.9 = [19 x i8] c" requests: %d\0A\00"
@.str.10 = [19 x i8] c" concurrency: %d\0A\00"
@.str.11 = [19 x i8] c" url: %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = bitcast i32* %3 to i8*
store i32 5000, i32* %3
%7 = bitcast i32* %4 to i8*
store i32 10, i32* %4
%8 = bitcast i8** %5 to i8*
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %5
%9 = call i32 @flag_int(i32* %3, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @flag_int(i32* %4, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 @flag_string(i8** %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%12 = call i32 @flag_parse(i32 %0, i8** %1, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%13 = call i32 @putchar(i32 10)
%14 = load i32, i32* %3
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0), i32 %14)
%16 = load i32, i32* %4
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.10, i64 0, i64 0), i32 %16)
%18 = load i8*, i8** %5
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.11, i64 0, i64 0), i8* %18)
%20 = call i32 @putchar(i32 10)
ret i32 0
}