#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 *);
void usage() {
  printf("Usage: ratelimit [OPTION]\n");
  printf("Example: { printf \"a\\nb\\n\" ; sleep 2; printf \"c\\nd\"; sleep 1; "
         "printf \"e\\nf\"; } | ratelimit -f 0.8\n");
  printf("\n\t-f, --frequency\t\tfrequency of text lines relayed per second");
  printf("\n\t--help\t\t\tdisplay this help text and exit");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef4(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf7d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf31(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xf31(%rip),%rdi
call   1040 <puts@plt>
lea    0xf3f(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb0(%rip),%rdi
call   1050 <printf@plt>
lea    0xee2(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Usage: ratelimit [OPTION]\0A\00"
@.str.1 = [99 x i8] c"Example: { printf \22a\\nb\\n\22 ; sleep 2; printf \22c\\nd\22; sleep 1; printf \22e\\nf\22; } | ratelimit -f 0.8\0A\00"
@.str.2 = [62 x i8] c"\0A\09-f, --frequency\09\09frequency of text lines relayed per second\00"
@.str.3 = [43 x i8] c"\0A\09--help\09\09\09display this help text and exit\00"
@.str.4 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.2 = [62 x i8] c"\0A\09-f, --frequency\09\09frequency of text lines relayed per second\00"
@.str.3 = [43 x i8] c"\0A\09--help\09\09\09display this help text and exit\00"
@str = [26 x i8] c"Usage: ratelimit [OPTION]\00"
@str.5 = [98 x i8] c"Example: { printf \22a\\nb\\n\22 ; sleep 2; printf \22c\\nd\22; sleep 1; printf \22e\\nf\22; } | ratelimit -f 0.8\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @putchar(i32 10)
ret void
}