#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(const char *name) {
  printf("\n");
  printf("Usage: %s [switches] <timestamp> <program with arguments>\n", name);
  printf("\n");
  printf("This will run the specified 'program' with the given 'arguments'.\n");
  printf("The program will be tricked into seeing the given 'timestamp' as its "
         "starting date and time.\n");
  printf("The clock will continue to run from this timestamp. Please see the "
         "manpage (man faketime)\n");
  printf("for advanced options, such as stopping the wall clock and make it "
         "run faster or slower.\n");
  printf("\n");
  printf("The optional switches are:\n");
  printf("  -m                  : Use the multi-threaded version of "
         "libfaketime\n");
  printf("  -f                  : Use the advanced timestamp specification "
         "format (see manpage)\n");
  printf("  --exclude-monotonic : Prevent monotonic clock from drifting (not "
         "the raw monotonic one)\n");
  printf("\n");
  printf("Examples:\n");
  printf("%s 'last friday 5 pm' /bin/date\n", name);
  printf("%s '2008-12-24 08:15:42' /bin/date\n", name);
  printf("%s -f '+2,5y x10,0' /bin/bash -c 'date; while true; do echo $SECONDS "
         "; sleep 1 ; done'\n",
         name);
  printf("%s -f '+2,5y x0,50' /bin/bash -c 'date; while true; do echo $SECONDS "
         "; sleep 1 ; done'\n",
         name);
  printf("%s -f '+2,5y i2,0' /bin/bash -c 'date; while true; do date; sleep 1 "
         "; done'\n",
         name);
  printf("In this single case all spawned processes will use the same global "
         "clock\n");
  printf("without restaring it at the start of each process.\n\n");
  printf("(Please note that it depends on your locale settings whether . or , "
         "has to be used for fractions)\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0x134c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x132c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12e6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1007(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1040(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1089(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x12a0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x10c1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x10d0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x10e2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x1128(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
lea    0x116e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11ad(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11e9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1210(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1200(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xebb(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x101d(%rip),%rdi
call   1040 <puts@plt>
lea    0x1053(%rip),%rdi
call   1040 <puts@plt>
lea    0x10a4(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f2(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1134(%rip),%rdi
call   1040 <puts@plt>
lea    0x1143(%rip),%rdi
call   1040 <puts@plt>
lea    0x117d(%rip),%rdi
call   1040 <puts@plt>
lea    0x11c7(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x120b(%rip),%rdi
call   1040 <puts@plt>
lea    0xe5b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe6b(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7e(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xec5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf0c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x11b4(%rip),%rdi
call   1040 <puts@plt>
lea    0x11f1(%rip),%rdi
call   1040 <puts@plt>
lea    0x1219(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [59 x i8] c"Usage: %s [switches] <timestamp> <program with arguments>\0A\00"
@.str.2 = [67 x i8] c"This will run the specified 'program' with the given 'arguments'.\0A\00"
@.str.3 = [94 x i8] c"The program will be tricked into seeing the given 'timestamp' as its starting date and time.\0A\00"
@.str.4 = [91 x i8] c"The clock will continue to run from this timestamp. Please see the manpage (man faketime)\0A\00"
@.str.5 = [89 x i8] c"for advanced options, such as stopping the wall clock and make it run faster or slower.\0A\00"
@.str.6 = [28 x i8] c"The optional switches are:\0A\00"
@.str.7 = [71 x i8] c" -m : Use the multi-threaded version of libfaketime\0A\00"
@.str.8 = [87 x i8] c" -f : Use the advanced timestamp specification format (see manpage)\0A\00"
@.str.9 = [91 x i8] c" --exclude-monotonic : Prevent monotonic clock from drifting (not the raw monotonic one)\0A\00"
@.str.10 = [11 x i8] c"Examples:\0A\00"
@.str.11 = [33 x i8] c"%s 'last friday 5 pm' /bin/date\0A\00"
@.str.12 = [36 x i8] c"%s '2008-12-24 08:15:42' /bin/date\0A\00"
@.str.13 = [88 x i8] c"%s -f '+2,5y x10,0' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done'\0A\00"
@.str.14 = [88 x i8] c"%s -f '+2,5y x0,50' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done'\0A\00"
@.str.15 = [77 x i8] c"%s -f '+2,5y i2,0' /bin/bash -c 'date; while true; do date; sleep 1 ; done'\0A\00"
@.str.16 = [74 x i8] c"In this single case all spawned processes will use the same global clock\0A\00"
@.str.17 = [53 x i8] c"without restaring it at the start of each process.\0A\0A\00"
@.str.18 = [99 x i8] c"(Please note that it depends on your locale settings whether . or , has to be used for fractions)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i8* %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.5, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.8, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.9, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%18 = load i8*, i8** %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* %18)
%20 = load i8*, i8** %2
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* %20)
%22 = load i8*, i8** %2
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.13, i64 0, i64 0), i8* %22)
%24 = load i8*, i8** %2
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.14, i64 0, i64 0), i8* %24)
%26 = load i8*, i8** %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.15, i64 0, i64 0), i8* %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.16, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.17, i64 0, i64 0))
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.18, i64 0, i64 0))
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [59 x i8] c"Usage: %s [switches] <timestamp> <program with arguments>\0A\00"
@.str.11 = [33 x i8] c"%s 'last friday 5 pm' /bin/date\0A\00"
@.str.12 = [36 x i8] c"%s '2008-12-24 08:15:42' /bin/date\0A\00"
@.str.13 = [88 x i8] c"%s -f '+2,5y x10,0' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done'\0A\00"
@.str.14 = [88 x i8] c"%s -f '+2,5y x0,50' /bin/bash -c 'date; while true; do echo $SECONDS ; sleep 1 ; done'\0A\00"
@.str.15 = [77 x i8] c"%s -f '+2,5y i2,0' /bin/bash -c 'date; while true; do date; sleep 1 ; done'\0A\00"
@str = [66 x i8] c"This will run the specified 'program' with the given 'arguments'.\00"
@str.19 = [93 x i8] c"The program will be tricked into seeing the given 'timestamp' as its starting date and time.\00"
@str.20 = [90 x i8] c"The clock will continue to run from this timestamp. Please see the manpage (man faketime)\00"
@str.21 = [88 x i8] c"for advanced options, such as stopping the wall clock and make it run faster or slower.\00"
@str.22 = [27 x i8] c"The optional switches are:\00"
@str.23 = [70 x i8] c" -m : Use the multi-threaded version of libfaketime\00"
@str.24 = [86 x i8] c" -f : Use the advanced timestamp specification format (see manpage)\00"
@str.25 = [90 x i8] c" --exclude-monotonic : Prevent monotonic clock from drifting (not the raw monotonic one)\00"
@str.26 = [10 x i8] c"Examples:\00"
@str.27 = [73 x i8] c"In this single case all spawned processes will use the same global clock\00"
@str.28 = [52 x i8] c"without restaring it at the start of each process.\0A\00"
@str.29 = [98 x i8] c"(Please note that it depends on your locale settings whether . or , has to be used for fractions)\00"
define void @usage(i8* %0) {
%2 = tail call i32 @putchar(i32 10)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([66 x i8], [66 x i8]* @str, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([93 x i8], [93 x i8]* @str.19, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.20, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @str.21, i64 0, i64 0))
%9 = tail call i32 @putchar(i32 10)
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([90 x i8], [90 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.26, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0), i8* %0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* %0)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.13, i64 0, i64 0), i8* %0)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.15, i64 0, i64 0), i8* %0)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.27, i64 0, i64 0))
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @str.28, i64 0, i64 0))
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.29, i64 0, i64 0))
%24 = tail call i32 @putchar(i32 10)
ret void
}