#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*/ exit(int);
int /*<<< orphan*/ strlen(char *);
int /*<<< orphan*/ write(int, char *, int /*<<< orphan*/);
void usage() {
  write(
      2,
      "Usage: waitmax [-s SIGNUM] MAXTIME PROGRAM [ARGS...]\n"
      "\n"
      "Execute PROGRAM as a subprocess. If PROGRAM does not exit before "
      "MAXTIME\n"
      "seconds, it will be killed with SIGTERM or an alternative signal.\n"
      "\n"
      "   -s, --signal SIGNUM   kill with SIGNUM on timeout\n"
      "   -h, --help            this help\n"
      "   -V, --version         show version an exit\n\n",
      strlen(
          "Usage: waitmax [-s SIGNUM] MAXTIME PROGRAM [ARGS...]\n"
          "\n"
          "Execute PROGRAM as a subprocess. If PROGRAM does not exit before "
          "MAXTIME\n"
          "seconds, it will be killed with SIGTERM or an alternative signal.\n"
          "\n"
          "   -s, --signal SIGNUM   kill with SIGNUM on timeout\n"
          "   -h, --help            this help\n"
          "   -V, --version         show version an exit\n\n"));
  ;
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xec5(%rip),%rdi
call   1040 <strlen@plt>
mov    %eax,%edx
mov    $0x2,%edi
lea    0xeb2(%rip),%rsi
call   1030 <write@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
lea    0xec8(%rip),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [330 x i8] c"Usage: waitmax [-s SIGNUM] MAXTIME PROGRAM [ARGS...]\0A\0AExecute PROGRAM as a subprocess. If PROGRAM does not exit before MAXTIME\0Aseconds, it will be killed with SIGTERM or an alternative signal.\0A\0A -s, --signal SIGNUM kill with SIGNUM on timeout\0A -h, --help this help\0A -V, --version show version an exit\0A\0A\00"
define void @usage() {
%1 = call i32 @strlen(i8* getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @write(i32 2, i8* getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [330 x i8] c"Usage: waitmax [-s SIGNUM] MAXTIME PROGRAM [ARGS...]\0A\0AExecute PROGRAM as a subprocess. If PROGRAM does not exit before MAXTIME\0Aseconds, it will be killed with SIGTERM or an alternative signal.\0A\0A -s, --signal SIGNUM kill with SIGNUM on timeout\0A -h, --help this help\0A -V, --version show version an exit\0A\0A\00"
define void @usage() {
%1 = tail call i32 @strlen(i8* getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @write(i32 2, i8* getelementptr inbounds ([330 x i8], [330 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @exit(i32 1)
unreachable
}