#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(void) {
  printf("\nlogtail: version %s \n\n", "1.11");
  printf("Written by Craig H. Rowland <crowland@psionic.com>\n");
  printf(
      "Based upon original utility: retail (c)Trusted Information Systems\n");
  printf("This program is covered by the GNU license.\n");
  printf("\nUsage: logtail [LOG_FILE] <offset_file>\n");
  printf("\nlogtail will read in a file and output to stdout.\n\n");
  printf("After outputing the file, logtail will create a file called\n");
  printf("[LOG_FILE].offset in the same directory that will contain the\n");
  printf("decimal offset and inode of the file in ASCII format. \n\n");
  printf("Next time logtail is run on FILE the offset file is read and\n");
  printf("output begins at the saved offset.\n\n");
  printf("Rotated log files will be automatically accounted for by having\n");
  printf("the offset reset to zero.\n\n");
  printf("The optional <offset_file> parameter can be used to specify your\n");
  printf("own name for the offset file. \n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xef6(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeed(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x100b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1036(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1066(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x107d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10b0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10be(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0xee9(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee0(%rip),%rdi
call   1030 <puts@plt>
lea    0xf07(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf7b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1030 <puts@plt>
lea    0xfd3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1005(%rip),%rdi
call   1030 <puts@plt>
lea    0x1031(%rip),%rdi
call   1030 <puts@plt>
lea    0x1062(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10ae(%rip),%rdi
call   1030 <puts@plt>
lea    0x10bd(%rip),%rdi
call   1030 <puts@plt>
lea    0x10f2(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"\0Alogtail: version %s \0A\0A\00"
@.str.1 = [5 x i8] c"1.11\00"
@.str.2 = [52 x i8] c"Written by Craig H. Rowland <crowland@psionic.com>\0A\00"
@.str.3 = [68 x i8] c"Based upon original utility: retail (c)Trusted Information Systems\0A\00"
@.str.4 = [45 x i8] c"This program is covered by the GNU license.\0A\00"
@.str.5 = [42 x i8] c"\0AUsage: logtail [LOG_FILE] <offset_file>\0A\00"
@.str.6 = [53 x i8] c"\0Alogtail will read in a file and output to stdout.\0A\0A\00"
@.str.7 = [61 x i8] c"After outputing the file, logtail will create a file called\0A\00"
@.str.8 = [63 x i8] c"[LOG_FILE].offset in the same directory that will contain the\0A\00"
@.str.9 = [57 x i8] c"decimal offset and inode of the file in ASCII format. \0A\0A\00"
@.str.10 = [62 x i8] c"Next time logtail is run on FILE the offset file is read and\0A\00"
@.str.11 = [37 x i8] c"output begins at the saved offset.\0A\0A\00"
@.str.12 = [65 x i8] c"Rotated log files will be automatically accounted for by having\0A\00"
@.str.13 = [28 x i8] c"the offset reset to zero.\0A\0A\00"
@.str.14 = [66 x i8] c"The optional <offset_file> parameter can be used to specify your\0A\00"
@.str.15 = [33 x i8] c"own name for the offset file. \0A\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.14, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0Alogtail: version %s \0A\0A\00"
@.str.1 = [5 x i8] c"1.11\00"
@str = [51 x i8] c"Written by Craig H. Rowland <crowland@psionic.com>\00"
@str.16 = [67 x i8] c"Based upon original utility: retail (c)Trusted Information Systems\00"
@str.17 = [44 x i8] c"This program is covered by the GNU license.\00"
@str.18 = [41 x i8] c"\0AUsage: logtail [LOG_FILE] <offset_file>\00"
@str.19 = [52 x i8] c"\0Alogtail will read in a file and output to stdout.\0A\00"
@str.20 = [60 x i8] c"After outputing the file, logtail will create a file called\00"
@str.21 = [62 x i8] c"[LOG_FILE].offset in the same directory that will contain the\00"
@str.22 = [56 x i8] c"decimal offset and inode of the file in ASCII format. \0A\00"
@str.23 = [61 x i8] c"Next time logtail is run on FILE the offset file is read and\00"
@str.24 = [36 x i8] c"output begins at the saved offset.\0A\00"
@str.25 = [64 x i8] c"Rotated log files will be automatically accounted for by having\00"
@str.26 = [27 x i8] c"the offset reset to zero.\0A\00"
@str.27 = [65 x i8] c"The optional <offset_file> parameter can be used to specify your\00"
@str.28 = [32 x i8] c"own name for the offset file. \0A\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([67 x i8], [67 x i8]* @str.16, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.17, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.22, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.23, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.24, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.25, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.26, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.27, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.28, i64 0, i64 0))
ret void
}