#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage() {
  fprintf(stderr,
          "Canon Pixma Scanner Driver %s\n"
          "Copyright (C) 2006  Martin Schewe  <pixma@schewe.com>\n\n"
          "Usage: pixma_scan [OPTION]... -o <outfile.pnm>\n\n"
          "-r <resolution>        set resolution in dpi (default: 75)\n"
          "-x <x>     -y <y>      set image offset\n"
          "-w <width> -h <height> set image size\n"
          "-c                     calibrate before scanning\n"
          "-a                     use ADF\n"
          "-m                     use monochrome color weights\n"
          "-v <level>             set verbosity level (default: 1)\n"
          "-o <outfile.pnm>       write PNM image date to outfile.pnm\n",
          "0.1");
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
lea    0x10cb(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e91(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xecf(%rip),%rsi
lea    0x10ce(%rip),%rdx
call   1030 <fprintf@plt>
mov    0x2e94(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [518 x i8] c"Canon Pixma Scanner Driver %s\0ACopyright (C) 2006 Martin Schewe <pixma@schewe.com>\0A\0AUsage: pixma_scan [OPTION]... -o <outfile.pnm>\0A\0A-r <resolution> set resolution in dpi (default: 75)\0A-x <x> -y <y> set image offset\0A-w <width> -h <height> set image size\0A-c calibrate before scanning\0A-a use ADF\0A-m use monochrome color weights\0A-v <level> set verbosity level (default: 1)\0A-o <outfile.pnm> write PNM image date to outfile.pnm\0A\00"
@.str.1 = [4 x i8] c"0.1\00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([518 x i8], [518 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = call i32 @exit(i32 %3)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [518 x i8] c"Canon Pixma Scanner Driver %s\0ACopyright (C) 2006 Martin Schewe <pixma@schewe.com>\0A\0AUsage: pixma_scan [OPTION]... -o <outfile.pnm>\0A\0A-r <resolution> set resolution in dpi (default: 75)\0A-x <x> -y <y> set image offset\0A-w <width> -h <height> set image size\0A-c calibrate before scanning\0A-a use ADF\0A-m use monochrome color weights\0A-v <level> set verbosity level (default: 1)\0A-o <outfile.pnm> write PNM image date to outfile.pnm\0A\00"
@.str.1 = [4 x i8] c"0.1\00"
@EXIT_FAILURE = global i32 0
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([518 x i8], [518 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%3 = load i32, i32* @EXIT_FAILURE
%4 = tail call i32 @exit(i32 %3)
unreachable
}