#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "Usage: fpart [OPTIONS] -n num | -f files | -s size "
                  "[FILE or DIR...]\n");
  fprintf(stderr, "Sort and pack files into partitions.\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "General options:\n");
  fprintf(stderr, "  -h\tthis help\n");
  fprintf(stderr, "  -V\tprint version\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Partition control:\n");
  fprintf(stderr, "  -n\tpack files into <num> partitions\n");
  fprintf(stderr, "  -f\tlimit partitions to <files> files or directories\n");
  fprintf(stderr, "  -s\tlimit partitions to <size> bytes\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Input control:\n");
  fprintf(stderr, "  -i\tread file list from <infile> "
                  "(stdin if '-' is specified)\n");
  fprintf(stderr, "  -a\tinput contains arbitrary values "
                  "(do not crawl filesystem)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Output control:\n");
  fprintf(stderr, "  -o\toutput partitions to <outfile> template "
                  "(stdout if '-' is specified)\n");
  fprintf(stderr, "  -0\tend filenames with a null (\\0) character when "
                  "using option -o\n");
  fprintf(stderr, "  -e\tadd ending slash to directories\n");
  fprintf(stderr, "  -v\tverbose mode (may be specified more than once to "
                  "increase verbosity)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Filesystem crawling control:\n");
  fprintf(stderr, "  -l\tfollow symbolic links\n");
  fprintf(stderr, "  -b\tdo not cross filesystem boundaries\n");
  fprintf(stderr, "  -y\tinclude files matching <pattern> only (may be "
                  "specified more than once)\n");
  fprintf(stderr, "  -x\texclude files matching <pattern> (may be specified "
                  "more than once)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Directory handling:\n");
  fprintf(stderr, "  -z\tpack empty directories too "
                  "(default: pack files only)\n");
  fprintf(stderr, "  -zz\ttreat un-readable directories as empty\n");
  fprintf(stderr, "  -zzz\tpack all directories (as empty)\n");
  fprintf(stderr, "  -d\tpack directories instead of files after a certain "
                  "<depth>\n");
  fprintf(stderr, "  -D\tpack leaf directories (i.e. containing files only, "
                  "implies -z)\n");
  fprintf(stderr, "  -E\tpack directories instead of files (implies -D)\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Live mode:\n");
  fprintf(stderr, "  -L\tlive mode: generate partitions during filesystem "
                  "crawling\n");
  fprintf(stderr, "  -w\tpre-partition hook: execute <cmd> at partition "
                  "start\n");
  fprintf(stderr, "  -W\tpost-partition hook: execute <cmd> at partition "
                  "end\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Size handling:\n");
  fprintf(stderr, "  -p\tpreload each partition with <num> bytes\n");
  fprintf(stderr, "  -q\toverload each file with <num> bytes\n");
  fprintf(stderr, "  -r\tround each file size up to next <num> bytes "
                  "multiple\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Example: fpart -n 3 -o var-parts /var\n");
  fprintf(stderr, "\n");
  fprintf(stderr, "Please report bugs to Ganael LAPLANCHE "
                  "<ganael.laplanche@martymac.org>\n");
  return;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xf0c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0x13e5(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf08(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf05(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xf00(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0x1391(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xeea(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0xee9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0xefb(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xf1d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%edi
lea    0x1328(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2dc9(%rip),%rax
mov    (%rax),%edi
lea    0xf1a(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2db4(%rip),%rax
mov    (%rax),%edi
lea    0xf15(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d9f(%rip),%rax
mov    (%rax),%edi
lea    0xf3f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d8a(%rip),%rax
mov    (%rax),%edi
lea    0x12d4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d75(%rip),%rax
mov    (%rax),%edi
lea    0xf55(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edi
lea    0xf51(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
lea    0xf87(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
lea    0xfb6(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d21(%rip),%rax
mov    (%rax),%edi
lea    0xfc7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
lea    0x1256(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cf7(%rip),%rax
mov    (%rax),%edi
lea    0xfe8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
lea    0xff1(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
lea    0xff8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2cb8(%rip),%rax
mov    (%rax),%edi
lea    0x100c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ca3(%rip),%rax
mov    (%rax),%edi
lea    0x1045(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c8e(%rip),%rax
mov    (%rax),%edi
lea    0x11d8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c79(%rip),%rax
mov    (%rax),%edi
lea    0x1064(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c64(%rip),%rax
mov    (%rax),%edi
lea    0x1064(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c4f(%rip),%rax
mov    (%rax),%edi
lea    0x108b(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c3a(%rip),%rax
mov    (%rax),%edi
lea    0x10a4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c25(%rip),%rax
mov    (%rax),%edi
lea    0x10b7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
lea    0x10e2(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bfb(%rip),%rax
mov    (%rax),%edi
lea    0x1112(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2be6(%rip),%rax
mov    (%rax),%edi
lea    0x1130(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bd1(%rip),%rax
mov    (%rax),%edi
lea    0x111d(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2bbc(%rip),%rax
mov    (%rax),%edi
lea    0x1114(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ba7(%rip),%rax
mov    (%rax),%edi
lea    0x113f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b92(%rip),%rax
mov    (%rax),%edi
lea    0x1165(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b7d(%rip),%rax
mov    (%rax),%edi
lea    0x10c7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b68(%rip),%rax
mov    (%rax),%edi
lea    0x1175(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b53(%rip),%rax
mov    (%rax),%edi
lea    0x1170(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b3e(%rip),%rax
mov    (%rax),%edi
lea    0x1189(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b29(%rip),%rax
mov    (%rax),%edi
lea    0x119e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2b14(%rip),%rax
mov    (%rax),%edi
lea    0x105e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2aff(%rip),%rax
mov    (%rax),%edi
lea    0x11af(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2aea(%rip),%rax
mov    (%rax),%edi
lea    0x1034(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ad5(%rip),%rax
mov    (%rax),%edi
lea    0x11ac(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf13(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x13f3(%rip),%r14
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1a(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf20(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf1c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf22(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf3b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf64(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf73(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf75(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfa6(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfce(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfd1(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x100e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1044(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x105c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x108f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x109f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10ad(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1108(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1139(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1140(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x116e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x118e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11a8(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x11da(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1211(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x122e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x122c(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x125e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x128b(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12ad(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12af(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12cf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x12eb(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x130e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    %r14,%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x131d(%rip),%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [69 x i8] c"Usage: fpart [OPTIONS] -n num | -f files | -s size [FILE or DIR...]\0A\00"
@.str.1 = [38 x i8] c"Sort and pack files into partitions.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [18 x i8] c"General options:\0A\00"
@.str.4 = [16 x i8] c" -h\09this help\0A\00"
@.str.5 = [20 x i8] c" -V\09print version\0A\00"
@.str.6 = [20 x i8] c"Partition control:\0A\00"
@.str.7 = [39 x i8] c" -n\09pack files into <num> partitions\0A\00"
@.str.8 = [55 x i8] c" -f\09limit partitions to <files> files or directories\0A\00"
@.str.9 = [39 x i8] c" -s\09limit partitions to <size> bytes\0A\00"
@.str.10 = [16 x i8] c"Input control:\0A\00"
@.str.11 = [63 x i8] c" -i\09read file list from <infile> (stdin if '-' is specified)\0A\00"
@.str.12 = [64 x i8] c" -a\09input contains arbitrary values (do not crawl filesystem)\0A\00"
@.str.13 = [17 x i8] c"Output control:\0A\00"
@.str.14 = [75 x i8] c" -o\09output partitions to <outfile> template (stdout if '-' is specified)\0A\00"
@.str.15 = [68 x i8] c" -0\09end filenames with a null (\\0) character when using option -o\0A\00"
@.str.16 = [38 x i8] c" -e\09add ending slash to directories\0A\00"
@.str.17 = [75 x i8] c" -v\09verbose mode (may be specified more than once to increase verbosity)\0A\00"
@.str.18 = [30 x i8] c"Filesystem crawling control:\0A\00"
@.str.19 = [28 x i8] c" -l\09follow symbolic links\0A\00"
@.str.20 = [41 x i8] c" -b\09do not cross filesystem boundaries\0A\00"
@.str.21 = [78 x i8] c" -y\09include files matching <pattern> only (may be specified more than once)\0A\00"
@.str.22 = [73 x i8] c" -x\09exclude files matching <pattern> (may be specified more than once)\0A\00"
@.str.23 = [21 x i8] c"Directory handling:\0A\00"
@.str.24 = [60 x i8] c" -z\09pack empty directories too (default: pack files only)\0A\00"
@.str.25 = [46 x i8] c" -zz\09treat un-readable directories as empty\0A\00"
@.str.26 = [40 x i8] c" -zzz\09pack all directories (as empty)\0A\00"
@.str.27 = [64 x i8] c" -d\09pack directories instead of files after a certain <depth>\0A\00"
@.str.28 = [69 x i8] c" -D\09pack leaf directories (i.e. containing files only, implies -z)\0A\00"
@.str.29 = [53 x i8] c" -E\09pack directories instead of files (implies -D)\0A\00"
@.str.30 = [12 x i8] c"Live mode:\0A\00"
@.str.31 = [64 x i8] c" -L\09live mode: generate partitions during filesystem crawling\0A\00"
@.str.32 = [59 x i8] c" -w\09pre-partition hook: execute <cmd> at partition start\0A\00"
@.str.33 = [58 x i8] c" -W\09post-partition hook: execute <cmd> at partition end\0A\00"
@.str.34 = [16 x i8] c"Size handling:\0A\00"
@.str.35 = [46 x i8] c" -p\09preload each partition with <num> bytes\0A\00"
@.str.36 = [42 x i8] c" -q\09overload each file with <num> bytes\0A\00"
@.str.37 = [59 x i8] c" -r\09round each file size up to next <num> bytes multiple\0A\00"
@.str.38 = [39 x i8] c"Example: fpart -n 3 -o var-parts /var\0A\00"
@.str.39 = [72 x i8] c"Please report bugs to Ganael LAPLANCHE <ganael.laplanche@martymac.org>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.14, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.15, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.17, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.18, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.21, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.24, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.25, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.26, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.27, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.28, i64 0, i64 0))
%69 = load i32, i32* @stderr
%70 = call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.29, i64 0, i64 0))
%71 = load i32, i32* @stderr
%72 = call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%73 = load i32, i32* @stderr
%74 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.30, i64 0, i64 0))
%75 = load i32, i32* @stderr
%76 = call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.31, i64 0, i64 0))
%77 = load i32, i32* @stderr
%78 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.32, i64 0, i64 0))
%79 = load i32, i32* @stderr
%80 = call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.33, i64 0, i64 0))
%81 = load i32, i32* @stderr
%82 = call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0))
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.35, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.36, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.37, i64 0, i64 0))
%91 = load i32, i32* @stderr
%92 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%93 = load i32, i32* @stderr
%94 = call i32 @fprintf(i32 %93, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.38, i64 0, i64 0))
%95 = load i32, i32* @stderr
%96 = call i32 @fprintf(i32 %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%97 = load i32, i32* @stderr
%98 = call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.39, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [69 x i8] c"Usage: fpart [OPTIONS] -n num | -f files | -s size [FILE or DIR...]\0A\00"
@.str.1 = [38 x i8] c"Sort and pack files into partitions.\0A\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [18 x i8] c"General options:\0A\00"
@.str.4 = [16 x i8] c" -h\09this help\0A\00"
@.str.5 = [20 x i8] c" -V\09print version\0A\00"
@.str.6 = [20 x i8] c"Partition control:\0A\00"
@.str.7 = [39 x i8] c" -n\09pack files into <num> partitions\0A\00"
@.str.8 = [55 x i8] c" -f\09limit partitions to <files> files or directories\0A\00"
@.str.9 = [39 x i8] c" -s\09limit partitions to <size> bytes\0A\00"
@.str.10 = [16 x i8] c"Input control:\0A\00"
@.str.11 = [63 x i8] c" -i\09read file list from <infile> (stdin if '-' is specified)\0A\00"
@.str.12 = [64 x i8] c" -a\09input contains arbitrary values (do not crawl filesystem)\0A\00"
@.str.13 = [17 x i8] c"Output control:\0A\00"
@.str.14 = [75 x i8] c" -o\09output partitions to <outfile> template (stdout if '-' is specified)\0A\00"
@.str.15 = [68 x i8] c" -0\09end filenames with a null (\\0) character when using option -o\0A\00"
@.str.16 = [38 x i8] c" -e\09add ending slash to directories\0A\00"
@.str.17 = [75 x i8] c" -v\09verbose mode (may be specified more than once to increase verbosity)\0A\00"
@.str.18 = [30 x i8] c"Filesystem crawling control:\0A\00"
@.str.19 = [28 x i8] c" -l\09follow symbolic links\0A\00"
@.str.20 = [41 x i8] c" -b\09do not cross filesystem boundaries\0A\00"
@.str.21 = [78 x i8] c" -y\09include files matching <pattern> only (may be specified more than once)\0A\00"
@.str.22 = [73 x i8] c" -x\09exclude files matching <pattern> (may be specified more than once)\0A\00"
@.str.23 = [21 x i8] c"Directory handling:\0A\00"
@.str.24 = [60 x i8] c" -z\09pack empty directories too (default: pack files only)\0A\00"
@.str.25 = [46 x i8] c" -zz\09treat un-readable directories as empty\0A\00"
@.str.26 = [40 x i8] c" -zzz\09pack all directories (as empty)\0A\00"
@.str.27 = [64 x i8] c" -d\09pack directories instead of files after a certain <depth>\0A\00"
@.str.28 = [69 x i8] c" -D\09pack leaf directories (i.e. containing files only, implies -z)\0A\00"
@.str.29 = [53 x i8] c" -E\09pack directories instead of files (implies -D)\0A\00"
@.str.30 = [12 x i8] c"Live mode:\0A\00"
@.str.31 = [64 x i8] c" -L\09live mode: generate partitions during filesystem crawling\0A\00"
@.str.32 = [59 x i8] c" -w\09pre-partition hook: execute <cmd> at partition start\0A\00"
@.str.33 = [58 x i8] c" -W\09post-partition hook: execute <cmd> at partition end\0A\00"
@.str.34 = [16 x i8] c"Size handling:\0A\00"
@.str.35 = [46 x i8] c" -p\09preload each partition with <num> bytes\0A\00"
@.str.36 = [42 x i8] c" -q\09overload each file with <num> bytes\0A\00"
@.str.37 = [59 x i8] c" -r\09round each file size up to next <num> bytes multiple\0A\00"
@.str.38 = [39 x i8] c"Example: fpart -n 3 -o var-parts /var\0A\00"
@.str.39 = [72 x i8] c"Please report bugs to Ganael LAPLANCHE <ganael.laplanche@martymac.org>\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.8, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = tail call i32 @fprintf(i32 %21, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = load i32, i32* @stderr
%26 = tail call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%27 = load i32, i32* @stderr
%28 = tail call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.11, i64 0, i64 0))
%29 = load i32, i32* @stderr
%30 = tail call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.12, i64 0, i64 0))
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%33 = load i32, i32* @stderr
%34 = tail call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.13, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.14, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = tail call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.15, i64 0, i64 0))
%39 = load i32, i32* @stderr
%40 = tail call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0))
%41 = load i32, i32* @stderr
%42 = tail call i32 @fprintf(i32 %41, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.17, i64 0, i64 0))
%43 = load i32, i32* @stderr
%44 = tail call i32 @fprintf(i32 %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* @stderr
%46 = tail call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.18, i64 0, i64 0))
%47 = load i32, i32* @stderr
%48 = tail call i32 @fprintf(i32 %47, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.19, i64 0, i64 0))
%49 = load i32, i32* @stderr
%50 = tail call i32 @fprintf(i32 %49, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.20, i64 0, i64 0))
%51 = load i32, i32* @stderr
%52 = tail call i32 @fprintf(i32 %51, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.21, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = tail call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.22, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = tail call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%57 = load i32, i32* @stderr
%58 = tail call i32 @fprintf(i32 %57, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.23, i64 0, i64 0))
%59 = load i32, i32* @stderr
%60 = tail call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.24, i64 0, i64 0))
%61 = load i32, i32* @stderr
%62 = tail call i32 @fprintf(i32 %61, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.25, i64 0, i64 0))
%63 = load i32, i32* @stderr
%64 = tail call i32 @fprintf(i32 %63, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.26, i64 0, i64 0))
%65 = load i32, i32* @stderr
%66 = tail call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.27, i64 0, i64 0))
%67 = load i32, i32* @stderr
%68 = tail call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.28, i64 0, i64 0))
%69 = load i32, i32* @stderr
%70 = tail call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.29, i64 0, i64 0))
%71 = load i32, i32* @stderr
%72 = tail call i32 @fprintf(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%73 = load i32, i32* @stderr
%74 = tail call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.30, i64 0, i64 0))
%75 = load i32, i32* @stderr
%76 = tail call i32 @fprintf(i32 %75, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.31, i64 0, i64 0))
%77 = load i32, i32* @stderr
%78 = tail call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.32, i64 0, i64 0))
%79 = load i32, i32* @stderr
%80 = tail call i32 @fprintf(i32 %79, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.33, i64 0, i64 0))
%81 = load i32, i32* @stderr
%82 = tail call i32 @fprintf(i32 %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%83 = load i32, i32* @stderr
%84 = tail call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.34, i64 0, i64 0))
%85 = load i32, i32* @stderr
%86 = tail call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.35, i64 0, i64 0))
%87 = load i32, i32* @stderr
%88 = tail call i32 @fprintf(i32 %87, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.36, i64 0, i64 0))
%89 = load i32, i32* @stderr
%90 = tail call i32 @fprintf(i32 %89, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.37, i64 0, i64 0))
%91 = load i32, i32* @stderr
%92 = tail call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%93 = load i32, i32* @stderr
%94 = tail call i32 @fprintf(i32 %93, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.38, i64 0, i64 0))
%95 = load i32, i32* @stderr
%96 = tail call i32 @fprintf(i32 %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%97 = load i32, i32* @stderr
%98 = tail call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.39, i64 0, i64 0))
ret void
}