#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() {
  static const char THYNAME[] = "ysort";
  printf("%s 0.0 (built %s): yepos input pre-sort program\n", THYNAME,
         "Mar 17 2022");
  printf("Copyright (C) 2009 Ineiev<ineiev@users.berlios.de>, super V 93\n");
  printf("%s comes with NO WARRANTY, to the extent permitted by law.\n",
         THYNAME);
  printf("You may redistribute copies of %s\n", THYNAME);
  printf("under the terms of the GNU GPL v3+\n");
  printf("Usage: %s unsorted.txt sorted.txt\n", THYNAME);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xeeb(%rip),%rdi
lea    0xede(%rip),%rsi
lea    0xf0e(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
lea    0xeb4(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf65(%rip),%rdi
lea    0xe9f(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf73(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
lea    0xe7c(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xede(%rip),%rdi
lea    0xed1(%rip),%rbx
lea    0xf01(%rip),%rdx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf7e(%rip),%rdi
call   1030 <puts@plt>
lea    0xef0(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf8f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf21(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@usage.THYNAME = internal constant [6 x i8] c"ysort\00"
@.str = [49 x i8] c"%s 0.0 (built %s): yepos input pre-sort program\0A\00"
@.str.1 = [12 x i8] c"Mar 17 2022\00"
@.str.2 = [64 x i8] c"Copyright (C) 2009 Ineiev<ineiev@users.berlios.de>, super V 93\0A\00"
@.str.3 = [60 x i8] c"%s comes with NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.4 = [35 x i8] c"You may redistribute copies of %s\0A\00"
@.str.5 = [36 x i8] c"under the terms of the GNU GPL v3+\0A\00"
@.str.6 = [35 x i8] c"Usage: %s unsorted.txt sorted.txt\0A\00"
define void @usage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@usage.THYNAME = internal constant [6 x i8] c"ysort\00"
@.str = [49 x i8] c"%s 0.0 (built %s): yepos input pre-sort program\0A\00"
@.str.1 = [12 x i8] c"Mar 17 2022\00"
@.str.3 = [60 x i8] c"%s comes with NO WARRANTY, to the extent permitted by law.\0A\00"
@.str.4 = [35 x i8] c"You may redistribute copies of %s\0A\00"
@.str.6 = [35 x i8] c"Usage: %s unsorted.txt sorted.txt\0A\00"
@str = [63 x i8] c"Copyright (C) 2009 Ineiev<ineiev@users.berlios.de>, super V 93\00"
@str.7 = [35 x i8] c"under the terms of the GNU GPL v3+\00"
define void @usage() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([63 x i8], [63 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.7, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @usage.THYNAME, i64 0, i64 0))
ret void
}