#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 print_usage(char *argv[]) {
  char helptext[] =
      ""
      "  -c, --check            Run zamsu2l1c on duplicate files.\n"
      "  -d, --duplicates       Find duplicate files.\n"
      "  -g, --gaps             Perform gap detection.\n"
      "  -h, --help             Print this help\n"
      "  -i, --info             Print info about the input data.\n"
      "  -l, --list             Print swath list.\n"
      "      --norefine         Only do simple gap detection. (FOR TESTING "
      "ONLY)\n"
      "  -m, --move=DIRECTORY   Move duplicate files to DIRECTORY. Requires "
      "-c.\n"
      "  -s, --size=GAPSIZE     Ignore gaps smaller than GAPSIZE minutes.\n"
      "  -t, --timestamp=TIME   Check if any file provides data for the\n"
      "                         given timestamp. TIME needs to be specified\n"
      "                         the format yyyy-mm-dd hh:mm. NOTE: The time\n"
      "                         you give is converted from localtime to GMT.\n"
      "  -v, --verbose          Be more verbose.\n"
      "\n"
      "Report bugs to Oliver Lemke <olemke@core-dump.info>.\n";
  printf("Usage: %s OPTIONS\n", argv[0]);
  printf("\n");
  printf("%s", helptext);
}


x86 assembly (clang, -O0):
<print_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x380,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x380(%rbp),%rdi
lea    0xec3(%rip),%rsi
mov    $0x370,%edx
call   1040 <memcpy@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%rsi
lea    0x121b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x121e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x380(%rbp),%rsi
lea    0x120b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x380,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_usage>:
push   %r14
push   %rbx
sub    $0x378,%rsp
mov    %rdi,%rbx
lea    0xebc(%rip),%rsi
mov    %rsp,%r14
mov    $0x370,%edx
mov    %r14,%rdi
call   1050 <memcpy@plt>
mov    (%rbx),%rsi
lea    0x1212(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x120d(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x378,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.print_usage.helptext = [880 x i8] c" -c, --check Run zamsu2l1c on duplicate files.\0A -d, --duplicates Find duplicate files.\0A -g, --gaps Perform gap detection.\0A -h, --help Print this help\0A -i, --info Print info about the input data.\0A -l, --list Print swath list.\0A --norefine Only do simple gap detection. (FOR TESTING ONLY)\0A -m, --move=DIRECTORY Move duplicate files to DIRECTORY. Requires -c.\0A -s, --size=GAPSIZE Ignore gaps smaller than GAPSIZE minutes.\0A -t, --timestamp=TIME Check if any file provides data for the\0A given timestamp. TIME needs to be specified\0A the format yyyy-mm-dd hh:mm. NOTE: The time\0A you give is converted from localtime to GMT.\0A -v, --verbose Be more verbose.\0A\0AReport bugs to Oliver Lemke <olemke@core-dump.info>.\0A\00"
@.str = [19 x i8] c"Usage: %s OPTIONS\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [3 x i8] c"%s\00"
define void @print_usage(i8** %0) {
%2 = alloca i8**
%3 = alloca [880 x i8]
store i8** %0, i8*** %2
%4 = bitcast [880 x i8]* %3 to i8*
%5 = load i8**, i8*** %2
%6 = getelementptr inbounds i8*, i8** %5, i64 0
%7 = load i8*, i8** %6
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = getelementptr inbounds [880 x i8], [880 x i8]* %3, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %10)
ret void
}

LLVM IR (-O2):
@__const.print_usage.helptext = [880 x i8] c" -c, --check Run zamsu2l1c on duplicate files.\0A -d, --duplicates Find duplicate files.\0A -g, --gaps Perform gap detection.\0A -h, --help Print this help\0A -i, --info Print info about the input data.\0A -l, --list Print swath list.\0A --norefine Only do simple gap detection. (FOR TESTING ONLY)\0A -m, --move=DIRECTORY Move duplicate files to DIRECTORY. Requires -c.\0A -s, --size=GAPSIZE Ignore gaps smaller than GAPSIZE minutes.\0A -t, --timestamp=TIME Check if any file provides data for the\0A given timestamp. TIME needs to be specified\0A the format yyyy-mm-dd hh:mm. NOTE: The time\0A you give is converted from localtime to GMT.\0A -v, --verbose Be more verbose.\0A\0AReport bugs to Oliver Lemke <olemke@core-dump.info>.\0A\00"
@.str = [19 x i8] c"Usage: %s OPTIONS\0A\00"
@.str.2 = [3 x i8] c"%s\00"
define void @print_usage(i8** nocapture %0) {
%2 = alloca [880 x i8]
%3 = getelementptr inbounds [880 x i8], [880 x i8]* %2, i64 0, i64 0
%4 = load i8*, i8** %0
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = tail call i32 @putchar(i32 10)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %3)
ret void
}