#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usageerror() {
  char msg[] =
      "Usage: dcm_dump_file [-b] [-g] [-l] [-m mult] [-t] [-v] [-w flag] [-z] "
      "file [file ...]\n\n    -b        Input files are stored in big-endian "
      "byte order\n    -e        Exit on file open error.  Do not process "
      "other files\n    -g        Remove group length elements\n    -l        "
      "Use (retired) length-to-end attribute for object length\n    -m mult   "
      "Change VM limit from 0 to mult\n    -t        Part 10 file\n    -v      "
      "  Place DCM facility in verbose mode\n    -w        Set open options; "
      "flag can be REPEAT \n    -z        Perform format conversion "
      "(verification) on data in files\n\n    file      One or more "
      "information objects to be dumped\n";
  fprintf(stderr, msg);
  exit(1);
}


x86 assembly (clang, -O0):
<usageerror>:
push   %rbp
mov    %rsp,%rbp
sub    $0x280,%rsp
lea    -0x280(%rbp),%rdi
lea    0xeb7(%rip),%rsi
mov    $0x27c,%edx
call   1040 <memcpy@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    -0x280(%rbp),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<usageerror>:
push   %rbx
sub    $0x280,%rsp
lea    0xec1(%rip),%rsi
mov    %rsp,%rbx
mov    $0x27c,%edx
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    0x2e8a(%rip),%rax
mov    (%rax),%edi
mov    %rbx,%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@__const.usageerror.msg = [636 x i8] c"Usage: dcm_dump_file [-b] [-g] [-l] [-m mult] [-t] [-v] [-w flag] [-z] file [file ...]\0A\0A -b Input files are stored in big-endian byte order\0A -e Exit on file open error. Do not process other files\0A -g Remove group length elements\0A -l Use (retired) length-to-end attribute for object length\0A -m mult Change VM limit from 0 to mult\0A -t Part 10 file\0A -v Place DCM facility in verbose mode\0A -w Set open options; flag can be REPEAT \0A -z Perform format conversion (verification) on data in files\0A\0A file One or more information objects to be dumped\0A\00"
@stderr = global i32 0
define void @usageerror() {
%1 = alloca [636 x i8]
%2 = bitcast [636 x i8]* %1 to i8*
%3 = load i32, i32* @stderr
%4 = getelementptr inbounds [636 x i8], [636 x i8]* %1, i64 0, i64 0
%5 = call i32 @fprintf(i32 %3, i8* %4)
%6 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@__const.usageerror.msg = [636 x i8] c"Usage: dcm_dump_file [-b] [-g] [-l] [-m mult] [-t] [-v] [-w flag] [-z] file [file ...]\0A\0A -b Input files are stored in big-endian byte order\0A -e Exit on file open error. Do not process other files\0A -g Remove group length elements\0A -l Use (retired) length-to-end attribute for object length\0A -m mult Change VM limit from 0 to mult\0A -t Part 10 file\0A -v Place DCM facility in verbose mode\0A -w Set open options; flag can be REPEAT \0A -z Perform format conversion (verification) on data in files\0A\0A file One or more information objects to be dumped\0A\00"
@stderr = global i32 0
define void @usageerror() {
%1 = alloca [636 x i8]
%2 = getelementptr inbounds [636 x i8], [636 x i8]* %1, i64 0, i64 0
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* %2)
%5 = call i32 @exit(i32 1)
unreachable
}