#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*/ printf(char *, ...);
void usage(const char *error) {
  if (error) {
    printf("invalid option: %s\n", error);
  }
  printf("timestamping interface option*\n\n"
         "Options:\n"
         "  IP_MULTICAST_LOOP - looping outgoing multicasts\n"
         "  SO_TIMESTAMP - normal software time stamping, ms resolution\n"
         "  SO_TIMESTAMPNS - more accurate software time stamping\n"
         "  SOF_TIMESTAMPING_TX_HARDWARE - hardware time stamping of outgoing "
         "packets\n"
         "  SOF_TIMESTAMPING_TX_SOFTWARE - software fallback for outgoing "
         "packets\n"
         "  SOF_TIMESTAMPING_RX_HARDWARE - hardware time stamping of incoming "
         "packets\n"
         "  SOF_TIMESTAMPING_RX_SOFTWARE - software fallback for incoming "
         "packets\n"
         "  SOF_TIMESTAMPING_SOFTWARE - request reporting of software time "
         "stamps\n"
         "  SOF_TIMESTAMPING_RAW_HARDWARE - request reporting of raw HW time "
         "stamps\n"
         "  SIOCGSTAMP - check last socket time stamp\n"
         "  SIOCGSTAMPNS - more accurate socket time stamp\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1149 <usage+0x29>
mov    -0x8(%rbp),%rsi
lea    0xebe(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
test   %rdi,%rdi
je     1147 <usage+0x17>
mov    %rdi,%rsi
lea    0xec0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec6(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [20 x i8] c"invalid option: %s\0A\00"
@.str.1 = [745 x i8] c"timestamping interface option*\0A\0AOptions:\0A IP_MULTICAST_LOOP - looping outgoing multicasts\0A SO_TIMESTAMP - normal software time stamping, ms resolution\0A SO_TIMESTAMPNS - more accurate software time stamping\0A SOF_TIMESTAMPING_TX_HARDWARE - hardware time stamping of outgoing packets\0A SOF_TIMESTAMPING_TX_SOFTWARE - software fallback for outgoing packets\0A SOF_TIMESTAMPING_RX_HARDWARE - hardware time stamping of incoming packets\0A SOF_TIMESTAMPING_RX_SOFTWARE - software fallback for incoming packets\0A SOF_TIMESTAMPING_SOFTWARE - request reporting of software time stamps\0A SOF_TIMESTAMPING_RAW_HARDWARE - request reporting of raw HW time stamps\0A SIOCGSTAMP - check last socket time stamp\0A SIOCGSTAMPNS - more accurate socket time stamp\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %8
5: ; preds = %1
%6 = load i8*, i8** %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %8
8: ; preds = %5, %1
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([745 x i8], [745 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@.str = [20 x i8] c"invalid option: %s\0A\00"
@str = [744 x i8] c"timestamping interface option*\0A\0AOptions:\0A IP_MULTICAST_LOOP - looping outgoing multicasts\0A SO_TIMESTAMP - normal software time stamping, ms resolution\0A SO_TIMESTAMPNS - more accurate software time stamping\0A SOF_TIMESTAMPING_TX_HARDWARE - hardware time stamping of outgoing packets\0A SOF_TIMESTAMPING_TX_SOFTWARE - software fallback for outgoing packets\0A SOF_TIMESTAMPING_RX_HARDWARE - hardware time stamping of incoming packets\0A SOF_TIMESTAMPING_RX_SOFTWARE - software fallback for incoming packets\0A SOF_TIMESTAMPING_SOFTWARE - request reporting of software time stamps\0A SOF_TIMESTAMPING_RAW_HARDWARE - request reporting of raw HW time stamps\0A SIOCGSTAMP - check last socket time stamp\0A SIOCGSTAMPNS - more accurate socket time stamp\00"
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %5, label %3
3: ; preds = %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %5
5: ; preds = %3, %1
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([744 x i8], [744 x i8]* @str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
}