#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_indent(char *, char *, int);
int /*<<< orphan*/ printf(char *, char const *);
int /*<<< orphan*/ snprintf(char *, int, char *, ...);
void __tractorbeam_print_recvusage(const char *prg) {
  char buffer[1024];
  printf("USAGE: %s recv OPTIONS...\n", prg);
  __printf_indent("",
                  "  This program connects to a zookeeper cluster and reads its"
                  "  entire tree allowing the user to dump the contents in many"
                  "  different formats.",
                  60);
  snprintf(buffer, 1024, "The zookeeper cluster to connect to [default:%s];",
           "localhost:2181");
  __printf_indent("  --zookeeper STRING         ", buffer, 76);
  snprintf(buffer, 1024, "The tree you want to read;");
  __printf_indent("  --path STRING              ", buffer, 76);
  snprintf(buffer, 1024,
           "The file to write the contents. Use - to write into the stdout "
           "[default:-];");
  __printf_indent("  --output FILE              ", buffer, 76);
  snprintf(
      buffer, 1024,
      "The layout to use when dumping the zookeeper tree. `filesystem' uses"
      " files and directories and `file' uses a single file [default:file];\n");
  __printf_indent("  --layout {filesystem,file} ", buffer, 76);
}


x86 assembly (clang, -O0):
<__tractorbeam_print_recvusage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x410,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
lea    0xebe(%rip),%rsi
mov    $0x3c,%edx
call   1040 <__printf_indent@plt>
lea    -0x410(%rbp),%rdi
mov    $0x400,%esi
lea    0xf2e(%rip),%rdx
lea    0xf59(%rip),%rcx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x410(%rbp),%rsi
lea    0xf53(%rip),%rdi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    -0x410(%rbp),%rdi
mov    $0x400,%esi
lea    0xf54(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x410(%rbp),%rsi
lea    0xf5a(%rip),%rdi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    -0x410(%rbp),%rdi
mov    $0x400,%esi
lea    0xf5b(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x410(%rbp),%rsi
lea    0xf92(%rip),%rdi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    -0x410(%rbp),%rdi
mov    $0x400,%esi
lea    0xf93(%rip),%rdx
mov    $0x0,%al
call   1050 <snprintf@plt>
lea    -0x410(%rbp),%rsi
lea    0x1008(%rip),%rdi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
add    $0x410,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<__tractorbeam_print_recvusage>:
push   %rbx
sub    $0x400,%rsp
mov    %rdi,%rsi
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
lea    0xec6(%rip),%rsi
mov    $0x3c,%edx
call   1040 <__printf_indent@plt>
lea    0xf42(%rip),%rdx
lea    0xf6d(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x400,%esi
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0xf63(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    0xf6d(%rip),%rdx
mov    %rbx,%rdi
mov    $0x400,%esi
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0xf72(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    0xf7c(%rip),%rdx
mov    %rbx,%rdi
mov    $0x400,%esi
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0xfb2(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
lea    0xfbc(%rip),%rdx
mov    %rbx,%rdi
mov    $0x400,%esi
xor    %eax,%eax
call   1050 <snprintf@plt>
lea    0x1030(%rip),%rdi
mov    %rbx,%rsi
mov    $0x4c,%edx
call   1040 <__printf_indent@plt>
add    $0x400,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"USAGE: %s recv OPTIONS...\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [141 x i8] c" This program connects to a zookeeper cluster and reads its entire tree allowing the user to dump the contents in many different formats.\00"
@.str.3 = [50 x i8] c"The zookeeper cluster to connect to [default:%s];\00"
@.str.4 = [15 x i8] c"localhost:2181\00"
@.str.5 = [30 x i8] c" --zookeeper STRING \00"
@.str.6 = [27 x i8] c"The tree you want to read;\00"
@.str.7 = [30 x i8] c" --path STRING \00"
@.str.8 = [76 x i8] c"The file to write the contents. Use - to write into the stdout [default:-];\00"
@.str.9 = [30 x i8] c" --output FILE \00"
@.str.10 = [138 x i8] c"The layout to use when dumping the zookeeper tree. `filesystem' uses files and directories and `file' uses a single file [default:file];\0A\00"
@.str.11 = [30 x i8] c" --layout {filesystem,file} \00"
define void @__tractorbeam_print_recvusage(i8* %0) {
%2 = alloca i8*
%3 = alloca [1024 x i8]
store i8* %0, i8** %2
%4 = load i8*, i8** %2
%5 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @__printf_indent(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.2, i64 0, i64 0), i32 60)
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %7, i32 1024, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%10 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %9, i32 76)
%11 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %11, i32 1024, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%14 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %13, i32 76)
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%16 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %15, i32 1024, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%17 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%18 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i8* %17, i32 76)
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%20 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %19, i32 1024, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.10, i64 0, i64 0))
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%22 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* %21, i32 76)
ret void
}

LLVM IR (-O2):
@.str = [27 x i8] c"USAGE: %s recv OPTIONS...\0A\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [141 x i8] c" This program connects to a zookeeper cluster and reads its entire tree allowing the user to dump the contents in many different formats.\00"
@.str.3 = [50 x i8] c"The zookeeper cluster to connect to [default:%s];\00"
@.str.4 = [15 x i8] c"localhost:2181\00"
@.str.5 = [30 x i8] c" --zookeeper STRING \00"
@.str.6 = [27 x i8] c"The tree you want to read;\00"
@.str.7 = [30 x i8] c" --path STRING \00"
@.str.8 = [76 x i8] c"The file to write the contents. Use - to write into the stdout [default:-];\00"
@.str.9 = [30 x i8] c" --output FILE \00"
@.str.10 = [138 x i8] c"The layout to use when dumping the zookeeper tree. `filesystem' uses files and directories and `file' uses a single file [default:file];\0A\00"
@.str.11 = [30 x i8] c" --layout {filesystem,file} \00"
define void @__tractorbeam_print_recvusage(i8* %0) {
%2 = alloca [1024 x i8]
%3 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0), i8* %0)
%5 = tail call i32 @__printf_indent(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([141 x i8], [141 x i8]* @.str.2, i64 0, i64 0), i32 60)
%6 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %3, i32 1024, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %3, i32 76)
%8 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %3, i32 1024, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %3, i32 76)
%10 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %3, i32 1024, i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.9, i64 0, i64 0), i8* %3, i32 76)
%12 = call i32 (i8*, i32, i8*, ...) @snprintf(i8* %3, i32 1024, i8* getelementptr inbounds ([138 x i8], [138 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @__printf_indent(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i8* %3, i32 76)
ret void
}