#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 print_help() {
  printf("IMPERIAL FLEET PROBLEM - Introducao a informatica\n\n");
  printf("SYNOPSIS\n\n");
  printf("\tPrints the most frequent digits in a given interval.\n\n");
  printf("DESCRIPTION\n\n");
  printf(
      "\tINPUT:\n\t\tThis program uses the stdin. Type 'program < input.txt' "
      "for file input or use the -i argument for interactive mode.\n\n");
  printf("\tFORMAT:\n\t\tThe first line holds an integer 'N' with the number "
         "of intervals do consider. This number must be 1 <= N <= 1,000.\n");
  printf("\t\tThe following lines are composed of two integers 'A' and 'B'. "
         "These numbers must be 1 <= A <= B <= 1,000,000,000.\n\n");
  printf("\tOUTPUT:\n\t\tThe output is composed of N lines. The first number "
         "tells the frequency and the following numbers the digits that are "
         "most frequent.\n\n");
  printf("OPTIONS\n\n");
  printf("\t-h This help.\n\n");
  printf("\t-i Interactive mode.\n\n");
  printf("\t-s Simple, not optimized, algorithm.\n\n");
  printf("AUTHOR\n\n");
  printf("\tFrancisco Bischoff.\n\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xfae(%rip),%rdi
call   1030 <printf@plt>
lea    0x1021(%rip),%rdi
call   1030 <printf@plt>
lea    0x108b(%rip),%rdi
call   1030 <printf@plt>
lea    0x1111(%rip),%rdi
call   1030 <printf@plt>
lea    0x110f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1114(%rip),%rdi
call   1030 <printf@plt>
lea    0x1120(%rip),%rdi
call   1030 <printf@plt>
lea    0x113c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1139(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf38(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1030 <puts@plt>
lea    0xfac(%rip),%rdi
call   1030 <puts@plt>
lea    0x101e(%rip),%rdi
call   1030 <puts@plt>
lea    0x1087(%rip),%rdi
call   1030 <puts@plt>
lea    0x110c(%rip),%rdi
call   1030 <puts@plt>
lea    0x1109(%rip),%rdi
call   1030 <puts@plt>
lea    0x110d(%rip),%rdi
call   1030 <puts@plt>
lea    0x1118(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
lea    0x112f(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [52 x i8] c"IMPERIAL FLEET PROBLEM - Introducao a informatica\0A\0A\00"
@.str.1 = [11 x i8] c"SYNOPSIS\0A\0A\00"
@.str.2 = [56 x i8] c"\09Prints the most frequent digits in a given interval.\0A\0A\00"
@.str.3 = [14 x i8] c"DESCRIPTION\0A\0A\00"
@.str.4 = [128 x i8] c"\09INPUT:\0A\09\09This program uses the stdin. Type 'program < input.txt' for file input or use the -i argument for interactive mode.\0A\0A\00"
@.str.5 = [127 x i8] c"\09FORMAT:\0A\09\09The first line holds an integer 'N' with the number of intervals do consider. This number must be 1 <= N <= 1,000.\0A\00"
@.str.6 = [118 x i8] c"\09\09The following lines are composed of two integers 'A' and 'B'. These numbers must be 1 <= A <= B <= 1,000,000,000.\0A\0A\00"
@.str.7 = [146 x i8] c"\09OUTPUT:\0A\09\09The output is composed of N lines. The first number tells the frequency and the following numbers the digits that are most frequent.\0A\0A\00"
@.str.8 = [10 x i8] c"OPTIONS\0A\0A\00"
@.str.9 = [17 x i8] c"\09-h This help.\0A\0A\00"
@.str.10 = [24 x i8] c"\09-i Interactive mode.\0A\0A\00"
@.str.11 = [40 x i8] c"\09-s Simple, not optimized, algorithm.\0A\0A\00"
@.str.12 = [9 x i8] c"AUTHOR\0A\0A\00"
@.str.13 = [23 x i8] c"\09Francisco Bischoff.\0A\0A\00"
define void @print_help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([118 x i8], [118 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([146 x i8], [146 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [51 x i8] c"IMPERIAL FLEET PROBLEM - Introducao a informatica\0A\00"
@str.14 = [10 x i8] c"SYNOPSIS\0A\00"
@str.15 = [55 x i8] c"\09Prints the most frequent digits in a given interval.\0A\00"
@str.16 = [13 x i8] c"DESCRIPTION\0A\00"
@str.17 = [127 x i8] c"\09INPUT:\0A\09\09This program uses the stdin. Type 'program < input.txt' for file input or use the -i argument for interactive mode.\0A\00"
@str.18 = [126 x i8] c"\09FORMAT:\0A\09\09The first line holds an integer 'N' with the number of intervals do consider. This number must be 1 <= N <= 1,000.\00"
@str.19 = [117 x i8] c"\09\09The following lines are composed of two integers 'A' and 'B'. These numbers must be 1 <= A <= B <= 1,000,000,000.\0A\00"
@str.20 = [145 x i8] c"\09OUTPUT:\0A\09\09The output is composed of N lines. The first number tells the frequency and the following numbers the digits that are most frequent.\0A\00"
@str.21 = [9 x i8] c"OPTIONS\0A\00"
@str.22 = [16 x i8] c"\09-h This help.\0A\00"
@str.23 = [23 x i8] c"\09-i Interactive mode.\0A\00"
@str.24 = [39 x i8] c"\09-s Simple, not optimized, algorithm.\0A\00"
@str.25 = [8 x i8] c"AUTHOR\0A\00"
@str.26 = [22 x i8] c"\09Francisco Bischoff.\0A\00"
define void @print_help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([127 x i8], [127 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([126 x i8], [126 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([117 x i8], [117 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([145 x i8], [145 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.26, i64 0, i64 0))
ret void
}