#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*/ copyright();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *prog_name) {
  fprintf(
      stderr,
      "\n"
      "Usage:\n"
      "Print version:\n"
      "        %s -v\n"
      "Print partition table:\n"
      "        %s -P {r|s|t} [options] device\n"
      "Interactive use:\n"
      "        %s [options] device\n"
      "\n"
      "Options:\n"
      "-a: Use arrow instead of highlighting;\n"
      "-z: Start with a zero partition table, instead of reading the pt from "
      "disk;\n"
      "-c C -h H -s S: Override the kernel's idea of the number of cylinders,\n"
      "                the number of heads and the number of "
      "sectors/track.\n\n",
      prog_name, prog_name, prog_name);
  copyright();
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
mov    -0x8(%rbp),%rcx
mov    -0x8(%rbp),%r8
lea    0xeb8(%rip),%rsi
call   1040 <fprintf@plt>
mov    $0x0,%al
call   1030 <copyright@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rcx
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
call   1040 <fprintf@plt>
xor    %eax,%eax
pop    %rcx
jmp    1030 <copyright@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [411 x i8] c"\0AUsage:\0APrint version:\0A %s -v\0APrint partition table:\0A %s -P {r|s|t} [options] device\0AInteractive use:\0A %s [options] device\0A\0AOptions:\0A-a: Use arrow instead of highlighting;\0A-z: Start with a zero partition table, instead of reading the pt from disk;\0A-c C -h H -s S: Override the kernel's idea of the number of cylinders,\0A the number of heads and the number of sectors/track.\0A\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = load i8*, i8** %2
%6 = load i8*, i8** %2
%7 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([411 x i8], [411 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6)
%8 = call i32 (...) @copyright()
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [411 x i8] c"\0AUsage:\0APrint version:\0A %s -v\0APrint partition table:\0A %s -P {r|s|t} [options] device\0AInteractive use:\0A %s [options] device\0A\0AOptions:\0A-a: Use arrow instead of highlighting;\0A-z: Start with a zero partition table, instead of reading the pt from disk;\0A-c C -h H -s S: Override the kernel's idea of the number of cylinders,\0A the number of heads and the number of sectors/track.\0A\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([411 x i8], [411 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %0, i8* %0)
%4 = tail call i32 (...) @copyright()
ret void
}