#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 *);
int help(void) {
  printf("\n burp\n");
  printf(" Copyright 2001, Evans Winner\n\n");
  printf(
      " PURPOSE: Generate an N-length stream of pseudo-random alpha-numeric\n");
  printf(
      " characters. Can be used with standard DOS redirection to fill test\n");
  printf(
      " files with data, generate random filenames from batch files, etc.\n\n");
  printf(" USAGE: burp N\n");
  printf(" --where N is an integer from from 1 to 65535, inclusive, "
         "representing the \n");
  printf(" number of bytes to output. Do not use commas in N (i.e. 4000, not "
         "4,000).\n");
  printf(" WARNING: Results are only slightly pseudo-random. Long streams of "
         "output will\n");
  printf(" always contain many repeated strings. Also, if called twice in the "
         "same system\n");
  printf(" second, output will be identical for the length of output both "
         "calls have in\n");
  printf(" common. Output is 0-9 and A-Z (uppercase only).\n");
  return (0);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee1(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa5(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1026(%rip),%rdi
call   1030 <printf@plt>
lea    0x106a(%rip),%rdi
call   1030 <printf@plt>
lea    0x10af(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f2(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xee3(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <puts@plt>
lea    0xf9f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa2(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe2(%rip),%rdi
call   1030 <puts@plt>
lea    0x1021(%rip),%rdi
call   1030 <puts@plt>
lea    0x1064(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a8(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ea(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"\0A burp\0A\00"
@.str.1 = [32 x i8] c" Copyright 2001, Evans Winner\0A\0A\00"
@.str.2 = [70 x i8] c" PURPOSE: Generate an N-length stream of pseudo-random alpha-numeric\0A\00"
@.str.3 = [69 x i8] c" characters. Can be used with standard DOS redirection to fill test\0A\00"
@.str.4 = [69 x i8] c" files with data, generate random filenames from batch files, etc.\0A\0A\00"
@.str.5 = [16 x i8] c" USAGE: burp N\0A\00"
@.str.6 = [77 x i8] c" --where N is an integer from from 1 to 65535, inclusive, representing the \0A\00"
@.str.7 = [76 x i8] c" number of bytes to output. Do not use commas in N (i.e. 4000, not 4,000).\0A\00"
@.str.8 = [80 x i8] c" WARNING: Results are only slightly pseudo-random. Long streams of output will\0A\00"
@.str.9 = [81 x i8] c" always contain many repeated strings. Also, if called twice in the same system\0A\00"
@.str.10 = [79 x i8] c" second, output will be identical for the length of output both calls have in\0A\00"
@.str.11 = [50 x i8] c" common. Output is 0-9 and A-Z (uppercase only).\0A\00"
define i32 @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [7 x i8] c"\0A burp\00"
@str.12 = [31 x i8] c" Copyright 2001, Evans Winner\0A\00"
@str.13 = [69 x i8] c" PURPOSE: Generate an N-length stream of pseudo-random alpha-numeric\00"
@str.14 = [68 x i8] c" characters. Can be used with standard DOS redirection to fill test\00"
@str.15 = [68 x i8] c" files with data, generate random filenames from batch files, etc.\0A\00"
@str.16 = [15 x i8] c" USAGE: burp N\00"
@str.17 = [76 x i8] c" --where N is an integer from from 1 to 65535, inclusive, representing the \00"
@str.18 = [75 x i8] c" number of bytes to output. Do not use commas in N (i.e. 4000, not 4,000).\00"
@str.19 = [79 x i8] c" WARNING: Results are only slightly pseudo-random. Long streams of output will\00"
@str.20 = [80 x i8] c" always contain many repeated strings. Also, if called twice in the same system\00"
@str.21 = [78 x i8] c" second, output will be identical for the length of output both calls have in\00"
@str.22 = [49 x i8] c" common. Output is 0-9 and A-Z (uppercase only).\00"
define i32 @help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.22, i64 0, i64 0))
ret i32 0
}