#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*/ puts(char *);
void do_usage() {
  puts("Usage: ldcell [options] [inputfile]");
  puts("options:");
  puts("\t     -x n: repeat n in X direction, default is 1");
  puts("\t     -y n: repeat n in Y direction, default is 1");
  puts("\t     -z n: repeat n in Z direction, default is 1");
  puts("\t-o output: output file, default is stdout");
  puts("\t  -t type: output type, one of the following:");
  puts("\t           direct: default, use relative coordinates based on "
       "proportions of the cell");
  puts("\t           carte: expand coordinates to real cartesian");
  puts("\t       -r: regroup to make atoms of same species are neighbers in "
       "output positions");
  puts("\t       -v: calculate cell volume only, to stdout, and quit");
  puts("\t       -h: output this message");
  puts("\tinputfile: input coordinates in cellfile format");
  puts("\t           if not provided, stdin will be used");
}


x86 assembly (clang, -O0):
<do_usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
lea    0xf20(%rip),%rdi
call   1030 <puts@plt>
lea    0xf46(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8b(%rip),%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xff9(%rip),%rdi
call   1030 <puts@plt>
lea    0x1025(%rip),%rdi
call   1030 <puts@plt>
lea    0x106d(%rip),%rdi
call   1030 <puts@plt>
lea    0x109d(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b1(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d6(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_usage>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf00(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf23(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb1(%rip),%rdi
call   1030 <puts@plt>
lea    0xffc(%rip),%rdi
call   1030 <puts@plt>
lea    0x1028(%rip),%rdi
call   1030 <puts@plt>
lea    0x1070(%rip),%rdi
call   1030 <puts@plt>
lea    0x10a0(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b4(%rip),%rdi
call   1030 <puts@plt>
lea    0x10d9(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Usage: ldcell [options] [inputfile]\00"
@.str.1 = [9 x i8] c"options:\00"
@.str.2 = [50 x i8] c"\09 -x n: repeat n in X direction, default is 1\00"
@.str.3 = [50 x i8] c"\09 -y n: repeat n in Y direction, default is 1\00"
@.str.4 = [50 x i8] c"\09 -z n: repeat n in Z direction, default is 1\00"
@.str.5 = [43 x i8] c"\09-o output: output file, default is stdout\00"
@.str.6 = [47 x i8] c"\09 -t type: output type, one of the following:\00"
@.str.7 = [87 x i8] c"\09 direct: default, use relative coordinates based on proportions of the cell\00"
@.str.8 = [56 x i8] c"\09 carte: expand coordinates to real cartesian\00"
@.str.9 = [84 x i8] c"\09 -r: regroup to make atoms of same species are neighbers in output positions\00"
@.str.10 = [60 x i8] c"\09 -v: calculate cell volume only, to stdout, and quit\00"
@.str.11 = [32 x i8] c"\09 -h: output this message\00"
@.str.12 = [49 x i8] c"\09inputfile: input coordinates in cellfile format\00"
@.str.13 = [48 x i8] c"\09 if not provided, stdin will be used\00"
define void @do_usage() {
%1 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @puts(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @puts(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @puts(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @puts(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [36 x i8] c"Usage: ldcell [options] [inputfile]\00"
@.str.1 = [9 x i8] c"options:\00"
@.str.2 = [50 x i8] c"\09 -x n: repeat n in X direction, default is 1\00"
@.str.3 = [50 x i8] c"\09 -y n: repeat n in Y direction, default is 1\00"
@.str.4 = [50 x i8] c"\09 -z n: repeat n in Z direction, default is 1\00"
@.str.5 = [43 x i8] c"\09-o output: output file, default is stdout\00"
@.str.6 = [47 x i8] c"\09 -t type: output type, one of the following:\00"
@.str.7 = [87 x i8] c"\09 direct: default, use relative coordinates based on proportions of the cell\00"
@.str.8 = [56 x i8] c"\09 carte: expand coordinates to real cartesian\00"
@.str.9 = [84 x i8] c"\09 -r: regroup to make atoms of same species are neighbers in output positions\00"
@.str.10 = [60 x i8] c"\09 -v: calculate cell volume only, to stdout, and quit\00"
@.str.11 = [32 x i8] c"\09 -h: output this message\00"
@.str.12 = [49 x i8] c"\09inputfile: input coordinates in cellfile format\00"
@.str.13 = [48 x i8] c"\09 if not provided, stdin will be used\00"
define void @do_usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @.str.13, i64 0, i64 0))
ret void
}