#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *, char const *);
char *name(char const *);
int usage(FILE *pOut, const char *argv0) {
  argv0 = name(argv0);
  fprintf(pOut,
          "usage: %s <seconds>[s]\n"
          "   or: %s <milliseconds>ms\n"
          "   or: %s <minutes>m\n"
          "   or: %s <hours>h\n"
          "   or: %s <days>d\n"
          "   or: %s --help\n"
          "   or: %s --version\n"
          "\n"
          "Only integer values are accepted.\n",
          argv0, argv0, argv0, argv0, argv0, argv0, argv0);
  return 1;
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <name@plt>
mov    %rax,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x10(%rbp),%r11
mov    -0x10(%rbp),%r10
mov    -0x10(%rbp),%rax
lea    0xe9c(%rip),%rsi
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <fprintf@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
call   1030 <name@plt>
sub    $0x8,%rsp
lea    0xec9(%rip),%rsi
mov    %rbx,%rdi
mov    %rax,%rdx
mov    %rax,%rcx
mov    %rax,%r8
mov    %rax,%r9
push   %rax
push   %rax
push   %rax
call   1040 <fprintf@plt>
add    $0x20,%rsp
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [181 x i8] c"usage: %s <seconds>[s]\0A or: %s <milliseconds>ms\0A or: %s <minutes>m\0A or: %s <hours>h\0A or: %s <days>d\0A or: %s --help\0A or: %s --version\0A\0AOnly integer values are accepted.\0A\00"
define i32 @usage(i32* %0, i8* %1) {
%3 = alloca i32*
%4 = alloca i8*
store i32* %0, i32** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i8* @name(i8* %5)
store i8* %6, i8** %4
%7 = load i32*, i32** %3
%8 = load i8*, i8** %4
%9 = load i8*, i8** %4
%10 = load i8*, i8** %4
%11 = load i8*, i8** %4
%12 = load i8*, i8** %4
%13 = load i8*, i8** %4
%14 = load i8*, i8** %4
%15 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14)
ret i32 1
}

LLVM IR (-O2):
@.str = [181 x i8] c"usage: %s <seconds>[s]\0A or: %s <milliseconds>ms\0A or: %s <minutes>m\0A or: %s <hours>h\0A or: %s <days>d\0A or: %s --help\0A or: %s --version\0A\0AOnly integer values are accepted.\0A\00"
define i32 @usage(i32* nocapture %0, i8* %1) {
%3 = tail call i8* @name(i8* %1)
%4 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([181 x i8], [181 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %3, i8* %3, i8* %3, i8* %3, i8* %3, i8* %3)
ret i32 1
}