#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 printf(char *, char *);
int help(char *app) {
  printf("Usage:   %s [Ip String] Ports [/Save]\n", app);
  printf("Example: %s 12.12.12.12-12.12.12.254 80\n", app);
  printf("Example: %s 12.12.12.12 1-65535\n", app);
  printf("Example: %s 12.12.12.12/24 1-65535\n", app);
  printf("Example: %s 12.12.12.12-12.12.12.254 21,80,3389\n", app);
  return printf(
      "Example: %s 12.12.12.12,12.12.12.122 21,80,3389-22233  /Save\n", app);
}


x86 assembly (clang, -O0):
<help>:
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    0xef0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf09(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf1a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf2e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xf4f(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xefd(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
lea    0xf60(%rip),%rdi
mov    %rbx,%rsi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [39 x i8] c"Usage: %s [Ip String] Ports [/Save]\0A\00"
@.str.1 = [41 x i8] c"Example: %s 12.12.12.12-12.12.12.254 80\0A\00"
@.str.2 = [33 x i8] c"Example: %s 12.12.12.12 1-65535\0A\00"
@.str.3 = [36 x i8] c"Example: %s 12.12.12.12/24 1-65535\0A\00"
@.str.4 = [49 x i8] c"Example: %s 12.12.12.12-12.12.12.254 21,80,3389\0A\00"
@.str.5 = [62 x i8] c"Example: %s 12.12.12.12,12.12.12.122 21,80,3389-22233 /Save\0A\00"
define i32 @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = load i8*, i8** %2
%6 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%7 = load i8*, i8** %2
%8 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %7)
%9 = load i8*, i8** %2
%10 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%11 = load i8*, i8** %2
%12 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%13 = load i8*, i8** %2
%14 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %13)
ret i32 %14
}

LLVM IR (-O2):
@.str = [39 x i8] c"Usage: %s [Ip String] Ports [/Save]\0A\00"
@.str.1 = [41 x i8] c"Example: %s 12.12.12.12-12.12.12.254 80\0A\00"
@.str.2 = [33 x i8] c"Example: %s 12.12.12.12 1-65535\0A\00"
@.str.3 = [36 x i8] c"Example: %s 12.12.12.12/24 1-65535\0A\00"
@.str.4 = [49 x i8] c"Example: %s 12.12.12.12-12.12.12.254 21,80,3389\0A\00"
@.str.5 = [62 x i8] c"Example: %s 12.12.12.12,12.12.12.122 21,80,3389-22233 /Save\0A\00"
define i32 @help(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i8* %0)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i8* %0)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.5, i64 0, i64 0), i8* %0)
ret i32 %7
}