#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() {
  printf("smlr - Truncates stdin to a maximum fixed size, \n");
  printf("abbreviating the output if over the specified length.\n");
  printf("\nUsage: [source] | smlr [-s SIZE] [-a ALIGNMENT]\n");
  printf("\t-s: \tSize of output \n");
  printf("\t\tIf equal or greater than input, input is relayed to stdout "
         "unchanged\n");
  printf("\t\tDefault value is 5\n");
  printf("\t-a: \tAlignment of output \n");
  printf("\t\tCan be either `left` or `right`\n");
  printf("\t\tDefault value is middle\n");
  printf("\nExamples:\n");
  printf("  > git rev-parse --abbrev-ref HEAD | smlr -s 10 -a left\n");
  printf("  > feat...-13\n\n");
  printf("  > echo \"abcdefghijkl\" | smlr -s 10 -a right\n");
  printf("  > ...ghijkl\n\n");
  printf("  > date | smlr -s 10\n");
  printf("  > Thu ...017\n\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf36(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf67(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfad(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe3(%rip),%rdi
call   1030 <printf@plt>
lea    0x1011(%rip),%rdi
call   1030 <printf@plt>
lea    0x1016(%rip),%rdi
call   1030 <printf@plt>
lea    0x1039(%rip),%rdi
call   1030 <printf@plt>
lea    0x103d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1048(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf37(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf66(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa1(%rip),%rdi
call   1030 <puts@plt>
lea    0xfaa(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xfcf(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdd(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1009(%rip),%rdi
call   1030 <puts@plt>
lea    0x100d(%rip),%rdi
call   1030 <puts@plt>
lea    0x102f(%rip),%rdi
call   1030 <puts@plt>
lea    0x1032(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [50 x i8] c"smlr - Truncates stdin to a maximum fixed size, \0A\00"
@.str.1 = [55 x i8] c"abbreviating the output if over the specified length.\0A\00"
@.str.2 = [50 x i8] c"\0AUsage: [source] | smlr [-s SIZE] [-a ALIGNMENT]\0A\00"
@.str.3 = [23 x i8] c"\09-s: \09Size of output \0A\00"
@.str.4 = [72 x i8] c"\09\09If equal or greater than input, input is relayed to stdout unchanged\0A\00"
@.str.5 = [22 x i8] c"\09\09Default value is 5\0A\00"
@.str.6 = [28 x i8] c"\09-a: \09Alignment of output \0A\00"
@.str.7 = [35 x i8] c"\09\09Can be either `left` or `right`\0A\00"
@.str.8 = [27 x i8] c"\09\09Default value is middle\0A\00"
@.str.9 = [12 x i8] c"\0AExamples:\0A\00"
@.str.10 = [58 x i8] c" > git rev-parse --abbrev-ref HEAD | smlr -s 10 -a left\0A\00"
@.str.11 = [17 x i8] c" > feat...-13\0A\0A\00"
@.str.12 = [47 x i8] c" > echo \22abcdefghijkl\22 | smlr -s 10 -a right\0A\00"
@.str.13 = [16 x i8] c" > ...ghijkl\0A\0A\00"
@.str.14 = [23 x i8] c" > date | smlr -s 10\0A\00"
@.str.15 = [17 x i8] c" > Thu ...017\0A\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.15, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [49 x i8] c"smlr - Truncates stdin to a maximum fixed size, \00"
@str.16 = [54 x i8] c"abbreviating the output if over the specified length.\00"
@str.17 = [49 x i8] c"\0AUsage: [source] | smlr [-s SIZE] [-a ALIGNMENT]\00"
@str.18 = [22 x i8] c"\09-s: \09Size of output \00"
@str.19 = [71 x i8] c"\09\09If equal or greater than input, input is relayed to stdout unchanged\00"
@str.20 = [21 x i8] c"\09\09Default value is 5\00"
@str.21 = [27 x i8] c"\09-a: \09Alignment of output \00"
@str.22 = [34 x i8] c"\09\09Can be either `left` or `right`\00"
@str.23 = [26 x i8] c"\09\09Default value is middle\00"
@str.24 = [11 x i8] c"\0AExamples:\00"
@str.25 = [57 x i8] c" > git rev-parse --abbrev-ref HEAD | smlr -s 10 -a left\00"
@str.26 = [16 x i8] c" > feat...-13\0A\00"
@str.27 = [46 x i8] c" > echo \22abcdefghijkl\22 | smlr -s 10 -a right\00"
@str.28 = [15 x i8] c" > ...ghijkl\0A\00"
@str.29 = [22 x i8] c" > date | smlr -s 10\00"
@str.30 = [16 x i8] c" > Thu ...017\0A\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.16, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.18, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.19, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.20, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.21, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.22, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.23, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.24, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str.25, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.26, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.27, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.28, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.29, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.30, i64 0, i64 0))
ret void
}