#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*/ EXIT_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
void prtusage(void) {
  printf("glord: rearranges a certain line range of a specified input file "
         "from columnwise to rowwise and vice versa\n");
  printf("example usage: ./glord -i m3.txt -r -b 1 -u 6 -f 2\n");
  printf("this would take line 1 to line 6 (allinclusive) of file m3.txt and "
         "render it row-wise if it were columnwise.\n");
  printf(
      "-f is hte first dimension of the required wise-ness. In this case lines "
      "1 to 6 would be originally 3 rows, but will turn to 2, so -f 2\n");
  printf("Beware files with more than one range that has to be rearranged! You "
         "need to multiple passes through this program, modifying -b and -u as "
         "you go on.\n");
  printf("example: second range of column wise8x12 section: glord -i gord.txt "
         "-r -b 97 -u 192 -f 12\n");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<prtusage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbf(%rip),%rdi
call   1030 <printf@plt>
lea    0x103b(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<prtusage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbf(%rip),%rdi
call   1030 <puts@plt>
lea    0x103a(%rip),%rdi
call   1030 <puts@plt>
lea    0x10c3(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e70(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [108 x i8] c"glord: rearranges a certain line range of a specified input file from columnwise to rowwise and vice versa\0A\00"
@.str.1 = [52 x i8] c"example usage: ./glord -i m3.txt -r -b 1 -u 6 -f 2\0A\00"
@.str.2 = [110 x i8] c"this would take line 1 to line 6 (allinclusive) of file m3.txt and render it row-wise if it were columnwise.\0A\00"
@.str.3 = [136 x i8] c"-f is hte first dimension of the required wise-ness. In this case lines 1 to 6 would be originally 3 rows, but will turn to 2, so -f 2\0A\00"
@.str.4 = [150 x i8] c"Beware files with more than one range that has to be rearranged! You need to multiple passes through this program, modifying -b and -u as you go on.\0A\00"
@.str.5 = [91 x i8] c"example: second range of column wise8x12 section: glord -i gord.txt -r -b 97 -u 192 -f 12\0A\00"
@EXIT_FAILURE = global i32 0
define void @prtusage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([108 x i8], [108 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([110 x i8], [110 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([150 x i8], [150 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.5, i64 0, i64 0))
%7 = load i32, i32* @EXIT_FAILURE
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@str = [107 x i8] c"glord: rearranges a certain line range of a specified input file from columnwise to rowwise and vice versa\00"
@str.6 = [51 x i8] c"example usage: ./glord -i m3.txt -r -b 1 -u 6 -f 2\00"
@str.7 = [109 x i8] c"this would take line 1 to line 6 (allinclusive) of file m3.txt and render it row-wise if it were columnwise.\00"
@str.8 = [135 x i8] c"-f is hte first dimension of the required wise-ness. In this case lines 1 to 6 would be originally 3 rows, but will turn to 2, so -f 2\00"
@str.9 = [149 x i8] c"Beware files with more than one range that has to be rearranged! You need to multiple passes through this program, modifying -b and -u as you go on.\00"
@str.10 = [90 x i8] c"example: second range of column wise8x12 section: glord -i gord.txt -r -b 97 -u 192 -f 12\00"
define void @prtusage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([107 x i8], [107 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([109 x i8], [109 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([135 x i8], [135 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([149 x i8], [149 x i8]* @str.9, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.10, i64 0, i64 0))
%7 = load i32, i32* @EXIT_FAILURE
%8 = tail call i32 @exit(i32 %7)
unreachable
}